Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DARIAH-DE
TextGridRep Portal
Commits
5da5c9fb
Commit
5da5c9fb
authored
Jun 06, 2020
by
Ubbo Veentjer
Browse files
get editions for work using filtes, fixes problems with es6 branch
parent
0538fac2
Pipeline
#138595
passed with stages
in 9 minutes and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/info/textgrid/rep/browse/BrowseController.java
View file @
5da5c9fb
...
...
@@ -190,7 +190,7 @@ public class BrowseController {
}
/**
* setup browsing of aggre
a
gtions
* setup browsing of aggreg
a
tions
*
* @param model
* @param i18n
...
...
@@ -220,13 +220,15 @@ public class BrowseController {
}
else
{
log
.
info
(
"listing agg: "
+
id
);
List
<
ResultType
>
results
;
if
(
format
.
contains
(
"text/tg.work+xml"
))
{
List
<
String
>
editionFilter
=
Arrays
.
asList
(
new
String
[]
{
"format:text/tg.edition+tg.aggregation+xml"
});
results
=
this
.
tgsearchClientService
.
search
(
"isEditionOf:\""
+
id
+
"\""
,
"relevance"
,
0
,
20
,
editionFilter
,
true
)
results
=
this
.
tgsearchClientService
.
getSearchClient
()
.
searchQuery
()
.
setQuery
(
"*"
)
.
addFilter
(
"edition.isEditionOf:"
+
id
)
.
addFilter
(
"format:text/tg.edition+tg.aggregation+xml"
)
.
execute
()
.
getResult
();
}
else
{
results
=
this
.
tgsearchClientService
.
listAggregation
(
id
).
getResult
();
...
...
src/main/java/info/textgrid/rep/service/tgsearch/TgsearchClientService.java
View file @
5da5c9fb
...
...
@@ -98,4 +98,8 @@ public class TgsearchClientService {
}
public
SearchClient
getSearchClient
()
{
return
searchClient
;
}
}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment