Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DARIAH-DE OAI-PMH Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DARIAH-DE
DARIAH-DE OAI-PMH Services
Commits
f8f5857d
Commit
f8f5857d
authored
3 years ago
by
Stefan E. Funk
Browse files
Options
Downloads
Patches
Plain Diff
More changes concerning logging
parent
d56911e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
oaipmh-core/src/main/java/info/textgrid/middleware/RecordDelivererDATACITE.java
+15
-2
15 additions, 2 deletions
...ava/info/textgrid/middleware/RecordDelivererDATACITE.java
with
15 additions
and
2 deletions
oaipmh-core/src/main/java/info/textgrid/middleware/RecordDelivererDATACITE.java
+
15
−
2
View file @
f8f5857d
...
...
@@ -63,7 +63,7 @@ public class RecordDelivererDATACITE extends RecordDelivererAbstract {
private
static
Log
log
=
LogFactory
.
getLog
(
RecordDelivererDATACITE
.
class
);
// Container object for the result of the elasticsearch request. This object contains the source
// of the response
// of the response
.
private
JSONObject
jsonObj
=
new
JSONObject
();
// This variables contains the field requested in the ElasticSearch Index. The content will be
...
...
@@ -110,7 +110,15 @@ public class RecordDelivererDATACITE extends RecordDelivererAbstract {
System
.
out
.
println
(
"idInElasticSearchIndex: "
+
idInElasticSearchIndex
);
System
.
out
.
println
(
"fields: "
+
(
this
.
fields
==
null
?
"NULL"
:
this
.
fields
));
System
.
out
.
println
(
" ## fields (getRecordById): "
);
if
(
this
.
fields
!=
null
)
{
for
(
int
i
=
0
;
i
<
this
.
fields
.
length
;
i
++)
{
System
.
out
.
println
(
"\t"
+
this
.
fields
[
i
]);
}
}
else
{
System
.
out
.
println
(
"NULL"
);
}
System
.
out
.
println
(
"repositoryObjectURIPrefix: "
+
(
this
.
repositoryObjectURIPrefix
==
null
?
"NULL"
:
this
.
repositoryObjectURIPrefix
));
...
...
@@ -162,6 +170,11 @@ public class RecordDelivererDATACITE extends RecordDelivererAbstract {
OAIPMHtype
oai
=
new
OAIPMHtype
();
HeaderType
header
=
new
HeaderType
();
System
.
out
.
println
(
" ## fields (getRecord): "
);
for
(
int
i
=
0
;
i
<
this
.
fields
.
length
;
i
++)
{
System
.
out
.
println
(
"\t"
+
this
.
fields
[
i
]);
}
this
.
jsonObj
=
new
JSONObject
(
OAIPMHUtilities
.
getRcordByIDFromElasticSearch
(
OAI_ESClient
.
getEsIndex
(),
idInElasticSearchIndex
,
this
.
fields
,
Strings
.
EMPTY_ARRAY
).
getSource
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment