Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
DARIAH-DE
TextGridRep Portal
Commits
cfa4ef29
Commit
cfa4ef29
authored
Jun 06, 2020
by
Ubbo Veentjer
Browse files
fix merge conflict
parents
a5789b7f
5da5c9fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/info/textgrid/rep/browse/BrowseController.java
View file @
cfa4ef29
...
@@ -210,7 +210,7 @@ public class BrowseController {
...
@@ -210,7 +210,7 @@ public class BrowseController {
}
}
/**
/**
* setup browsing of aggre
a
gtions
* setup browsing of aggreg
a
tions
*
*
* @param model
* @param model
* @param i18n
* @param i18n
...
@@ -240,13 +240,15 @@ public class BrowseController {
...
@@ -240,13 +240,15 @@ public class BrowseController {
}
else
{
}
else
{
log
.
info
(
"listing agg: "
+
id
);
log
.
info
(
"listing agg: "
+
id
);
List
<
ResultType
>
results
;
List
<
ResultType
>
results
;
if
(
format
.
contains
(
"text/tg.work+xml"
))
{
if
(
format
.
contains
(
"text/tg.work+xml"
))
{
List
<
String
>
editionFilter
=
results
=
this
.
tgsearchClientService
.
getSearchClient
()
Arrays
.
asList
(
new
String
[]
{
"format:text/tg.edition+tg.aggregation+xml"
});
.
searchQuery
()
results
=
this
.
tgsearchClientService
.
setQuery
(
"*"
)
.
search
(
"isEditionOf:\""
+
id
+
"\""
,
"relevance"
,
0
,
20
,
editionFilter
,
true
)
.
addFilter
(
"edition.isEditionOf:"
+
id
)
.
addFilter
(
"format:text/tg.edition+tg.aggregation+xml"
)
.
execute
()
.
getResult
();
.
getResult
();
}
else
{
}
else
{
results
=
this
.
tgsearchClientService
.
listAggregation
(
id
).
getResult
();
results
=
this
.
tgsearchClientService
.
listAggregation
(
id
).
getResult
();
...
...
src/main/java/info/textgrid/rep/service/TgsearchClientService.java
View file @
cfa4ef29
...
@@ -103,4 +103,8 @@ public class TgsearchClientService {
...
@@ -103,4 +103,8 @@ public class TgsearchClientService {
return
searchClient
.
infoQuery
().
listRevisions
(
id
);
return
searchClient
.
infoQuery
().
listRevisions
(
id
);
}
}
public
SearchClient
getSearchClient
()
{
return
searchClient
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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