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
8231256a
Commit
8231256a
authored
3 years ago
by
mbrodhu
Browse files
Options
Downloads
Patches
Plain Diff
increase counter in ListIdentifiers
parent
1ac1292e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
oaipmh-core/src/main/java/info/textgrid/middleware/IdentifierListDelivererIDIOM.java
+9
-16
9 additions, 16 deletions
...nfo/textgrid/middleware/IdentifierListDelivererIDIOM.java
oaipmh-webapp/src/main/webapp/WEB-INF/beans.xml
+1
-1
1 addition, 1 deletion
oaipmh-webapp/src/main/webapp/WEB-INF/beans.xml
with
10 additions
and
17 deletions
oaipmh-core/src/main/java/info/textgrid/middleware/IdentifierListDelivererIDIOM.java
+
9
−
16
View file @
8231256a
...
...
@@ -85,31 +85,24 @@ public class IdentifierListDelivererIDIOM extends IdentifierListDelivererAbstrac
//long listSize = Queries.getAmountOfArtefacts();
if
(
completeListSize
>
0
)
{
setFoundItems
(
true
);
int
i
=
0
;
int
i
=
0
;
for
(
SearchHit
hit
:
scrollResp
.
getHits
().
getHits
())
{
i
++;
String
textgridURI
=
hit
.
getFields
().
get
(
"textgridUri"
).
getValue
().
toString
().
replace
(
".0"
,
""
);
RecordDelivererIDIOM
idiomRecord
=
new
RecordDelivererIDIOM
(
true
,
false
);
identifierList
.
getHeader
()
.
add
(
idiomRecord
.
getRecordById
(
textgridURI
).
getRecord
().
getHeader
());
}
/* for (String artefactURI : artefactURIs) {
RecordDelivererIDIOM idiomRecord = new RecordDelivererIDIOM(true, false);
identifierList.getHeader()
.add(idiomRecord.getRecordById(artefactURI).getRecord().getHeader());
i++;
}*/
// Check the need for a resumption token!
ResumptionTokenType
resTokenForResponse
=
OAIPMHUtilities
.
getResumptionToken
(
completeListSize
,
resumptionToken
,
cursorCollector
,
scrollID
,
30
,
i
);
if
(
resTokenForResponse
!=
null
)
{
identifierList
.
setResumptionToken
(
resTokenForResponse
);
}
ResumptionTokenType
resTokenForResponse
=
OAIPMHUtilities
.
getResumptionToken
(
completeListSize
,
resumptionToken
,
cursorCollector
,
scrollID
,
30
,
i
);
if
(
resTokenForResponse
!=
null
)
{
identifierList
.
setResumptionToken
(
resTokenForResponse
);
}
}
else
{
setFoundItems
(
false
);
setFoundItems
(
false
);
}
return
identifierList
;
}
...
...
This diff is collapsed.
Click to expand it.
oaipmh-webapp/src/main/webapp/WEB-INF/beans.xml
+
1
−
1
View file @
8231256a
...
...
@@ -22,7 +22,7 @@
<bean
id=
"propertyPlaceholderConfigurer"
class=
"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
>
<property
name=
"locations"
>
<list>
<value>
file:/etc/dhrep/oaipmh/oaipmh.properties
</value>
<value>
file:/etc/dhrep/oaipmh/oaipmh.properties
_tmp
</value>
</list>
</property>
<property
name=
"ignoreResourceNotFound"
value=
"true"
/>
...
...
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