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
551f771b
Commit
551f771b
authored
2 years ago
by
Stefan E. Funk
Browse files
Options
Downloads
Patches
Plain Diff
fix: use administrativeMetadata for ListSets request
parent
11ad08d1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#307871
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
oaipmh-core/src/main/java/info/textgrid/middleware/SetListDeliverer.java
+5
-5
5 additions, 5 deletions
.../main/java/info/textgrid/middleware/SetListDeliverer.java
with
5 additions
and
5 deletions
oaipmh-core/src/main/java/info/textgrid/middleware/SetListDeliverer.java
+
5
−
5
View file @
551f771b
...
...
@@ -94,13 +94,13 @@ public class SetListDeliverer {
"doc['administrativeMetadata.dcterms:identifier'].value + '"
+
DH_FIELD_DIVIDER
+
"' + doc['descriptiveMetadata.dc:title'].value"
);
// Do filter all collections (via
descrip
tiveMetadata.dc:format) AND get out all the
child
// objects and collections (NO
descrip
tiveMetadata.dc:relation), so we get exactly
one set per
// root collection only!
// Do filter all collections (via
administra
tiveMetadata.dc
terms
:format) AND get out all the
//
child,
objects and collections (NO
administra
tiveMetadata.dc:relation), so we get exactly
//
one set per
root collection only!
AggregationBuilder
collectionFilter
=
AggregationBuilders
.
filter
(
DH_COLLECTION_FILTER_NAME
,
QueryBuilders
.
boolQuery
()
.
mustNot
(
QueryBuilders
.
existsQuery
(
"
descrip
tiveMetadata.dc:relation"
))
.
must
(
QueryBuilders
.
matchPhraseQuery
(
"
descrip
tiveMetadata.dc:format"
,
.
mustNot
(
QueryBuilders
.
existsQuery
(
"
administra
tiveMetadata.dc
terms
:relation"
))
.
must
(
QueryBuilders
.
matchPhraseQuery
(
"
administra
tiveMetadata.dc
terms
:format"
,
TextGridMimetypes
.
DARIAH_COLLECTION
)));
AggregationBuilder
collectionFilterTerm
=
AggregationBuilders
.
terms
(
DH_COLLECTION_FILTER_TERM_NAME
).
script
(
mergeCollectionIDAndTitle
).
size
(
DH_SIZE
);
...
...
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