Commit db928454 authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

Merge branch 'release/3.1.2'

parents 5d49c75f c26cac0f
Pipeline #140483 passed with stages
in 8 minutes and 40 seconds
......@@ -49,3 +49,37 @@ For the latter i recommend to open two terminal windows too run two commands par
and one for running the spring-boot dev server:
./gradlew bootRun
# Release process
We use git-flow.
git checkout develop
git flow release start 3.1.1
edit build.gradle and set version number, afterwards:
git commit -am "set version 3.1.1"
git checkout master
git push
git checkout develop
edit build.gradle and set version number to 3.1.2-SNAPSHOT, afterwards:
git commit -am "start 3.1.2-SNAPSHOT"
git push
in gitlab-ci go to https://gitlab.gwdg.de/dariah-de/textgridrep-portal/-/releases, click on "New Release"
* Tag name: 3.1.1
* Create from: master
* Message:
* Release notes:
* rewritten index.md
* rename doc and explore link
* own page for mission statement
This creates a new tag 3.1.1. Creating the tag will trigger the relase-build, which will be deployed to https://textgridrep.org
......@@ -9,7 +9,7 @@ apply plugin: 'jacoco'
apply plugin: 'war'
group = 'info.textgrid.rep'
version = '3.1.1'
version = '3.1.2'
sourceCompatibility = '1.8'
repositories {
......
......@@ -6,4 +6,8 @@ Die Inhalte sind demnach zum Teil projektspezifisch und wachsen im Laufe der Zei
Neben der erweiterten [Suche](/docs/syntax) sind die Inhalte des TextGrid Repository auch explorativ durch Filter [nach Autor](/facet/edition.agent.value?order=term:asc), [nach Genre](/facet/work.genre), [nach Dateityp](/facet/format) und [nach Projekt](https://textgridrep.org/facet/project.value) erkundbar.
Alle veröffentlichten Inhalte sind nach dem Open-Access-Prinzip frei zugänglich, sollten aber wie gewöhnlich nach dem jeweils angegeben Zitationsvorschlag nachgewiesen werden. Das TextGrid Repository bietet über die [Regalfunktion](/shelf) die Möglichkeit, individuelle Kollektionen zusammenzustellen. Diese können in den Formaten xml oder txt gesammelt heruntergeladen oder direkt mit einer Reihe von digitalen Werkzeugen untersucht werden.
\ No newline at end of file
Alle veröffentlichten Inhalte sind nach dem Open-Access-Prinzip frei zugänglich, sollten aber wie gewöhnlich nach dem jeweils angegeben Zitationsvorschlag nachgewiesen werden. Das TextGrid Repository bietet über die [Regalfunktion](/shelf) die Möglichkeit, individuelle Kollektionen zusammenzustellen. Diese können in den Formaten xml oder txt gesammelt heruntergeladen oder direkt mit einer Reihe von digitalen Werkzeugen untersucht werden.
**Mitmachen**
Möchten Sie eigenes XML-erschlossenes Material im TextGrid Repository zitierfähig archivieren und zugänglich machen?
Nehmen Sie [Kontakt](https://textgrid.de/de/kontakt/) mit uns auf.
\ No newline at end of file
# Mission Statement
The TextGrid Repository (TextGridRep) is a digital preservation archive for human sciences research data providing a variety of data for teaching and research purposes. It promotes open access to research data including open standards allowing an efficient reuse for research. The TextGridRep also provides researchers with a comprehensive and reliable service to store their data permanently, well described and with a stable reference for citation and reuse.
The TextGridRep is part of the [TextGrid](https://textgrid.de/en/) Virtual Research Environment (VRE), which offers besides digital preservation also open-source software for collaborative creation, analysis and publication of text and images. The TextGrid VRE is optimised for XML/TEI formats and editorial publication out of the TextGrid Laboratory (TextGridLab). An independent publication from the TextGridLab including other types of data and formats is equally possible by tools using the TextGridRep API such as TG-import.
The TextGrid Repository is a community orientated result of a national program to establish a Digital Humanities infrastructure in Germany and operates together with the DARIAH-DE Repository as part of the [Humanities Data Center](https://humanities-data-centre.de/) (HDC).
The mission of the TextGridRep is to serve national and international research, teaching and learning by providing long term preservation, further processing, openly sharing and dissemination of digital research data according to ethical and scientific standards of the international research community.
The repository's mission is in line with the [Open Access strategy of the University of Göttingen](https://www.uni-goettingen.de/en/221506.html) and its [research data policy](http://www.uni-goettingen.de/en/488918.html). It provides all necessary resources to promote and support making the research results of its researchers as widely accessible and usable as possible. This commitment to open access is reflected in the organisational and technical infrastructure as well as in its archiving procedures of the repository to allow the use of publications and data without any access restriction in order “to support research and innovation in science […] and society in a direct and lasting way”.
In terms of [data management](https://wiki.de.dariah.eu/display/TextGrid/Digital+Object+Management), publication and preservation workflows are based on the Open Archiving Information System, see [TextGrid Repository – Digital Object Management](https://wiki.de.dariah.eu/display/TextGrid/Digital+Object+Management#DigitalObjectManagement-TextGridandtheOpenArchivalInformationSystem(OAIS)).
The commitment is strongly supported by the two relevant institutions ensuring also the long-term sustainability of the repository and its data: The [Göttingen State and University Library](https://www.sub.uni-goettingen.de/en/about-us/portrait/) (SUB) and the [Gesellschaft für wissenschaftliche Datenverarbeitung Göttingen mbH](https://www.gwdg.de/about-us) (GWDG).
Both institutions share a commitment to the sustainability of services and to [FAIR principles](https://www.go-fair.org/fair-principles/) in research and its infrastructures. For the SUB research data management is an important aspect of the [strategic aims of Göttingen State and University Library](https://www.sub.uni-goettingen.de/en/about-us/portrait/strategy/#c13124). Not only for research data, but for all digital resources, Göttingen State and University Library follows a [policy](https://www.sub.uni-goettingen.de/en/about-us/portrait/goettingen-state-and-university-library-digital-policies-guiding-principles/), which contains guiding principles in order to ensure the quality for access, metadata and IT architecture.
In the context of open access, the Göttingen State and University Library also participates in national and international projects, such as the [Confederation of Open Access Repositories](https://www.coar-repositories.org/) (COAR) and [OpenAIRE](http://www.openaire.eu/). In this perspective the TextGrid Repository is also in line with open access requirements of important funders of the German research system as the German Research Foundation (DFG) (see <https://www.dfg.de/formulare/2_00/v/dfg_2_00_de_v1215.pdf>, p. 44, section 12.2.1) and the European Union. Mandates of the European Commission and the European Research Council require as stated e.g. in the European Open Access Pilot on Open Data all funded projects to publish their results in Open Access (see the [Horizon 2020 Online Manual](https://ec.europa.eu/research/participants/docs/h2020-funding-guide/cross-cutting-issues/open-access-data-management/open-access_en.htm)). The Research Department at Göttingen University offers detailed information about the [European Union Open Access Pilot](https://www.uni-goettingen.de/en/487290.html) also on its web pages.
# [Mission Statement](/docs/mission-statement)
# Corpus and Digital Library of TextGrid
......
# Mission Statement
The TextGrid Repository (TextGridRep) is a digital preservation archive for human sciences research data providing a variety of data for teaching and research purposes. It promotes open access to research data including open standards allowing an efficient reuse for research. The TextGridRep also provides researchers with a comprehensive and reliable service to store their data permanently, well described and with a stable reference for citation and reuse.
Das TextGrid Repository (TextGridRep) ist ein digitales Langzeitarchiv für geisteswissenschaftliche Forschungsdaten und bietet eine Vielzahl an Daten für Lehr- und Forschungszwecke. Es folgt den Prinzipien des Open Access, bedient offene Standards und erlaubt damit eine effiziente Nachnutzung für die Forschung. Das TextGridRep bietet Wissenschaftlerinnen und Wissenschaftlern weiterhin umfassende und zuverlässige Dienste für die permanente Datensicherung, gut dokumentiert und mit stabilen Referenzen für Zitation und Nachhaltigkeit.
The TextGridRep is part of the [TextGrid](https://textgrid.de/en/) Virtual Research Environment (VRE), which offers besides digital preservation also open-source software for collaborative creation, analysis and publication of text and images. The TextGrid VRE is optimised for XML/TEI formats and editorial publication out of the TextGrid Laboratory (TextGridLab). An independent publication from the TextGridLab including other types of data and formats is equally possible by tools using the TextGridRep API such as TG-import.
Das TextGridRep ist Teil der Virtuellen Forschungsumgebung [TextGrid](https://textgrid.de), die neben dem fachwissenschaftlichen Langzeitarchiv eine Open Source-Software für die kollaborative Erstellung, Analyse und Publikation von Texten und Bildern bietet. Die virtuelle Forschungsumgebung ist optimiert für digitale Editionen auf XML/TEI-Basis und editorische Publikation mit dem TextGrid Laboratory (TextGridLab). Eine von diesen Formaten unabhängige Publikation aus dem TextGridLab ist jedoch ebenso möglich wie ein Import von Daten über die TextGridRep API wie z. B. TG-import.
The TextGrid Repository is a community orientated result of a national program to establish a Digital Humanities infrastructure in Germany and operates together with the DARIAH-DE Repository as part of the [Humanities Data Center](https://humanities-data-centre.de/) (HDC).
Das TextGrid Repository wurde als Projekt der Digitalen Forschungsinfrastruktur für die Geistes- und Kulturwissenschaften in Deutschland [DARIAH-DE](https://de.dariah.eu/) Community-orientiert erarbeitet und ist zusammen mit dem [DARIAH-DE Repository](https://de.dariah.eu/repository) Teil des [Humanities Data Center](https://humanities-data-centre.de/) (HDC).
The mission of the TextGridRep is to serve national and international research, teaching and learning by providing long term preservation, further processing, openly sharing and dissemination of digital research data according to ethical and scientific standards of the international research community.
Ziel des TextGridRep ist die Unterstützung nationaler und internationaler Forschung und Lehre durch das Erhalten, Nachnutzen, öffentliche Teilen und Verbreiten von digitalen Forschungsdaten unter Einhaltung der wissenschaftlichen und ethischen Standards der internationalen Forschungsgemeinschaft.
The repository's mission is in line with the [Open Access strategy of the University of Göttingen](https://www.uni-goettingen.de/en/221506.html) and its [research data policy](http://www.uni-goettingen.de/en/488918.html). It provides all necessary resources to promote and support making the research results of its researchers as widely accessible and usable as possible. This commitment to open access is reflected in the organisational and technical infrastructure as well as in its archiving procedures of the repository to allow the use of publications and data without any access restriction in order “to support research and innovation in science […] and society in a direct and lasting way”.
Damit ist das Projekt auf die [Open Access Strategie der Universität Göttingen](https://www.uni-goettingen.de/de/221506.html) und ihrer [Forschungsdaten-Leitlinie](https://www.uni-goettingen.de/de/488918.html) abgestimmt und stellt somit alle notwendigen Ressourcen zur Unterstützung der Forschung zur Verfügung. Der Einsatz für Open Access betrifft sowohl die organisatorische und technische Infrastruktur, als auch die Archvierungsvorgänge des Repositorys, sodass Daten und Publikationen ohne Zugangsbeschränkungen verfügbar sind.
In terms of [data management](https://wiki.de.dariah.eu/display/TextGrid/Digital+Object+Management), publication and preservation workflows are based on the Open Archiving Information System, see [TextGrid Repository Digital Object Management](https://wiki.de.dariah.eu/display/TextGrid/Digital+Object+Management#DigitalObjectManagement-TextGridandtheOpenArchivalInformationSystem(OAIS)).
Das [Data Management](https://wiki.de.dariah.eu/display/TextGrid/Digital+Object+Management) nutzt für Verwaltung, Publikation und Erhaltung der Daten die Workflows des Open Archiving Information Systems (OAIS). Mehr Informationen dazu sind im öffentlichen TextGrid-Wiki auf der Seite [TextGrid Repository - Digital Object Management](https://wiki.de.dariah.eu/display/TextGrid/Digital+Object+Management#DigitalObjectManagement-TextGridandtheOpenArchivalInformationSystem(OAIS)) dokumentiert.
The commitment is strongly supported by the two relevant institutions ensuring also the long-term sustainability of the repository and its data: The [Göttingen State and University Library](https://www.sub.uni-goettingen.de/en/about-us/portrait/) (SUB) and the [Gesellschaft für wissenschaftliche Datenverarbeitung Göttingen mbH](https://www.gwdg.de/about-us) (GWDG).
Die langfristige Nachhaltigkeit des Repositorys wird durch die Unterstützung der [Niedersächsischen Staats- und Universitätsbibliothek Göttingen (SUB)](https://www.sub.uni-goettingen.de/wir-ueber-uns/portrait/) und der [Gesellschaft für wissenschaftliche Datenverarbeitung Göttingen mbH (GWDG)](https://www.gwdg.de/about-us) gewährleistet.
Both institutions share a commitment to the sustainability of services and to [FAIR principles](https://www.go-fair.org/fair-principles/) in research and its infrastructures. For the SUB research data management is an important aspect of the [strategic aims of Göttingen State and University Library](https://www.sub.uni-goettingen.de/en/about-us/portrait/strategy/#c13124). Not only for research data, but for all digital resources, Göttingen State and University Library follows a [policy](https://www.sub.uni-goettingen.de/en/about-us/portrait/goettingen-state-and-university-library-digital-policies-guiding-principles/), which contains guiding principles in order to ensure the quality for access, metadata and IT architecture.
In the context of open access, the Göttingen State and University Library also participates in national and international projects, such as the [Confederation of Open Access Repositories](https://www.coar-repositories.org/) (COAR) and [OpenAIRE](http://www.openaire.eu/). In this perspective the TextGrid Repository is also in line with open access requirements of important funders of the German research system as the German Research Foundation (DFG) (see <https://www.dfg.de/formulare/2_00/v/dfg_2_00_de_v1215.pdf>, p. 44, section 12.2.1) and the European Union. Mandates of the European Commission and the European Research Council require as stated e.g. in the European Open Access Pilot on Open Data all funded projects to publish their results in Open Access (see the [Horizon 2020 Online Manual](https://ec.europa.eu/research/participants/docs/h2020-funding-guide/cross-cutting-issues/open-access-data-management/open-access_en.htm)). The Research Department at Göttingen University offers detailed information about the [European Union Open Access Pilot](https://www.uni-goettingen.de/en/487290.html) also on its web pages.
Beide Institutionen teilen ihren Einsatz für die Nachhaltigkeit ihrer Dienstleistungen und halten sich an die Richtlinien der [FAIR principles](https://www.force11.org/group/fairgroup/fairprinciples) für Forschung und Infrastruktur. Das Thema Forschungsdatenmanagement ist ein wichtiger Aspekt der [Strategie der SUB Göttingen](https://www.sub.uni-goettingen.de/wir-ueber-uns/portrait/strategie-2018-2021/). Nicht nur für Forschungsdaten, sondern auch für alle digitalen Ressourcen, folgt die SUB Göttingen den [Grundsätzen für die digitalen Angebote](https://www.sub.uni-goettingen.de/wir-ueber-uns/portrait/digital-policies-grundsaetze-fuer-die-digitalen-angebote-der-sub-goettingen/), die Leitlinien für die Qualitätssicherung von Zugriff, Metadaten und IT Architektur beinhalten.
Im Zusammenhang mit Open Access beteiligt sich die SUB auch an nationalen und internationalen Projekten wie der [Confederation of Open Access Repositories (COAR)](https://www.coar-repositories.org/) und [OpenAIRE](https://www.openaire.eu/). Dadurch ist das TextGrid Repository auch auf die [Open Access Richtlinien der Deutschen Forschungsgemeinschaft (S.44 Abschnitt 12.2.1)](https://www.dfg.de/formulare/2_00/v/dfg_2_00_de_v1215.pdf) und der Europäischen Union abgestimmt. Nach Erlass der Europäischen Kommission und des Europäischen Forschungsrats müssen alle geförderten Projekte ihre Ergebnisse als Open Access veröffentlichen. Weitere Informationen finden sich im [Horizon 2020 Online Manual](https://ec.europa.eu/research/participants/docs/h2020-funding-guide/cross-cutting-issues/open-access-data-management/open-access_en.htm) und auf der Webseite der Universität Göttingen [Open Access & Pilot on Open Data](https://www.uni-goettingen.de/en/487290.html).
......@@ -4,7 +4,7 @@ The TextGrid Repository (TextGridRep) is a digital preservation archive for huma
The TextGridRep is part of the [TextGrid](https://textgrid.de/en/) Virtual Research Environment (VRE), which offers besides digital preservation also open-source software for collaborative creation, analysis and publication of text and images. The TextGrid VRE is optimised for XML/TEI formats and editorial publication out of the TextGrid Laboratory (TextGridLab). An independent publication from the TextGridLab including other types of data and formats is equally possible by tools using the TextGridRep API such as TG-import.
The TextGrid Repository is a community orientated result of a national program to establish a Digital Humanities infrastructure in Germany and operates together with the DARIAH-DE Repository as part of the [Humanities Data Center](https://humanities-data-centre.de/) (HDC).
The TextGrid Repository is a community orientated result of a national program to establish a Digital Humanities infrastructure in Germany [DARIAH-DE](https://de.dariah.eu/) and operates together with the [DARIAH-DE Repository](https://de.dariah.eu/repository) as part of the [Humanities Data Center](https://humanities-data-centre.de/) (HDC).
The mission of the TextGridRep is to serve national and international research, teaching and learning by providing long term preservation, further processing, openly sharing and dissemination of digital research data according to ethical and scientific standards of the international research community.
......@@ -14,7 +14,7 @@ In terms of [data management](https://wiki.de.dariah.eu/display/TextGrid/Digital
The commitment is strongly supported by the two relevant institutions ensuring also the long-term sustainability of the repository and its data: The [Göttingen State and University Library](https://www.sub.uni-goettingen.de/en/about-us/portrait/) (SUB) and the [Gesellschaft für wissenschaftliche Datenverarbeitung Göttingen mbH](https://www.gwdg.de/about-us) (GWDG).
Both institutions share a commitment to the sustainability of services and to [FAIR principles](https://www.go-fair.org/fair-principles/) in research and its infrastructures. For the SUB research data management is an important aspect of the [strategic aims of Göttingen State and University Library](https://www.sub.uni-goettingen.de/en/about-us/portrait/strategy/#c13124). Not only for research data, but for all digital resources, Göttingen State and University Library follows a [policy](https://www.sub.uni-goettingen.de/en/about-us/portrait/goettingen-state-and-university-library-digital-policies-guiding-principles/), which contains guiding principles in order to ensure the quality for access, metadata and IT architecture.
Both institutions share a commitment to the sustainability of services and to [FAIR principles](https://www.force11.org/group/fairgroup/fairprinciples) in research and its infrastructures. For the SUB research data management is an important aspect of the [strategic aims of Göttingen State and University Library](https://www.sub.uni-goettingen.de/en/about-us/portrait/strategy/#c13124). Not only for research data, but for all digital resources, Göttingen State and University Library follows a [policy](https://www.sub.uni-goettingen.de/en/about-us/portrait/goettingen-state-and-university-library-digital-policies-guiding-principles/), which contains guiding principles in order to ensure the quality for access, metadata and IT architecture.
In the context of open access, the Göttingen State and University Library also participates in national and international projects, such as the [Confederation of Open Access Repositories](https://www.coar-repositories.org/) (COAR) and [OpenAIRE](http://www.openaire.eu/). In this perspective the TextGrid Repository is also in line with open access requirements of important funders of the German research system as the German Research Foundation (DFG) (see <https://www.dfg.de/formulare/2_00/v/dfg_2_00_de_v1215.pdf>, p. 44, section 12.2.1) and the European Union. Mandates of the European Commission and the European Research Council require as stated e.g. in the European Open Access Pilot on Open Data all funded projects to publish their results in Open Access (see the [Horizon 2020 Online Manual](https://ec.europa.eu/research/participants/docs/h2020-funding-guide/cross-cutting-issues/open-access-data-management/open-access_en.htm)). The Research Department at Göttingen University offers detailed information about the [European Union Open Access Pilot](https://www.uni-goettingen.de/en/487290.html) also on its web pages.
......@@ -89,7 +89,7 @@ public class SearchController {
model.addAttribute("mode", mode);
model.addAttribute("results", res.getResult());
model.addAttribute("facets", res.getFacetResponse().getFacetGroup());
model.addAttribute("facetResponse", res.getFacetResponse());
model.addAttribute("query", HtmlUtils.htmlEscape(query));
model.addAttribute("order", order);
model.addAttribute("start", start);
......
package info.textgrid.rep.service.tgsearch;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
@Service
public class TgrepConfigurationService {
private static final Log log = LogFactory.getLog(TgrepConfigurationService.class);
@Value("${textgrid.host}")
private String textgridHost;
@Value("${handle.host}")
......@@ -73,13 +77,13 @@ public class TgrepConfigurationService {
@PostConstruct
public void postConstruct() {
System.out.println("--------textgrid host: " + textgridHost);
System.out.println("--------handle host: " + handleHost);
System.out.println("--------voyant host: " + toolVoyantHost);
System.out.println("--------annotate host: " + toolAnnotateHost);
System.out.println("--------mirador host: " + toolMiradorHost);
System.out.println("--------digilib host: " + toolDigilibHost);
System.out.println("--------switchboard host: " + toolSwitchboardHost);
log.info("textgrid host: " + textgridHost);
log.info("handle host: " + handleHost);
log.info("voyant host: " + toolVoyantHost);
log.info("annotate host: " + toolAnnotateHost);
log.info("mirador host: " + toolMiradorHost);
log.info("digilib host: " + toolDigilibHost);
log.info("switchboard host: " + toolSwitchboardHost);
}
}
......@@ -6,18 +6,27 @@ import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import info.textgrid.clients.SearchClient;
import info.textgrid.namespaces.middleware.tgsearch.FacetResponse;
import info.textgrid.namespaces.middleware.tgsearch.Response;
import info.textgrid.namespaces.middleware.tgsearch.ResultType;
@Service
public class TgsearchClientService {
@Value("${tgsearch.query.facetlimit}")
private int facetLimit = 10;
@Autowired
private TgrepConfigurationService tgrepConfig;
private SearchClient searchClient;
private static final Log log = LogFactory.getLog(TgsearchClientService.class);
private List<String> facets = Arrays.asList(new String[] {
"edition.agent.value",
"work.genre",
......@@ -25,13 +34,6 @@ public class TgsearchClientService {
"project.value"
});
private static final Log log = LogFactory.getLog(TgsearchClientService.class);
@Autowired
public TgsearchClientService(TgrepConfigurationService tgrepConfig) {
this.tgrepConfig = tgrepConfig;
}
@PostConstruct
public void postConstruct() {
this.setupClient();
......@@ -40,7 +42,7 @@ public class TgsearchClientService {
private void setupClient() {
log.info("setting up tgsearch client for host: " + tgrepConfig.getTextgridHost());
// Create Searchclient with GZIP Compression enabled
// Create Searchclient with GZIP compression enabled
searchClient = new SearchClient(tgrepConfig.getTextgridHost() + "/1.0/tgsearch-public")
.enableGzipCompression();
......@@ -56,6 +58,7 @@ public class TgsearchClientService {
.setStart(start)
.setLimit(limit)
.setFacetList(facets)
.setFacetLimit(facetLimit)
.setFilterList(filter)
.setSearchSandbox(sandbox)
.setResolvePath(true)
......
......@@ -20,3 +20,5 @@ tool.switchboard.host: https://switchboard.clarin.eu/#/textgridrep
lang.available: en, de
lang.default: en
tgsearch.query.facetlimit = 10000
#tgsearch.query.facetlimit = 10
\ No newline at end of file
......@@ -64,7 +64,7 @@
</section>
</c:if>
<c:forEach items="${facets}" var="facetGroup">
<c:forEach items="${facetResponse.facetGroup}" var="facetGroup">
<c:if test="${facetGroup.facet.size() != 0}">
<section class="tgrep sidebar_panel">
<h3 class="tgrep sidebar_subheading">${i18n[facetGroup.name]}</h3>
......
......@@ -130,6 +130,17 @@ public class SearchControllerTest {
.andExpect(model().attribute("filter", hasSize(2)));
}
// #57 - NPE when no facetresponse set (empty result)
@Test
public void noResults() throws Exception {
mvc.perform(MockMvcRequestBuilders.get("/search")
.queryParam("query", "(genre:\"roman\") AND (work.dateOfCreation.date:\"18??\") AND format:\"text/xml\"")
.accept(MediaType.TEXT_HTML))
.andExpect(status().isOk())
.andExpect(view().name("search"))
.andExpect(forwardedUrl("/WEB-INF/jsp/search.jsp"));
}
// TODO: test gallery image view: changing filters, view or limit should persist the
// already set properties and not drop them
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment