Skip to content

Commit

Permalink
Fehlerhafte Sentence-ID lookup repariert;
Browse files Browse the repository at this point in the history
  • Loading branch information
RDBloese committed Sep 15, 2023
1 parent 1039495 commit 32e2960
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tla/web/mvc/SentenceController.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ public String getSearchResultsPage(
model.addAttribute("contextInformation", searchConfig.getContextInformation());
return super.getSearchResultsPage(form, page, params, model);
}

@RequestMapping(value = "/token/lookup", method = RequestMethod.GET)
public RedirectView lookup(@RequestParam String id) {
public RedirectView lookupToken(@RequestParam String id) {
return new RedirectView(String.format("/sentence/token/" + id), true);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/fragments/search/results.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h2 class="result-list-item-element label bbaw-libertine" th:utext="${{'<shortla
<!-- Block view -->
<table class="sentence-line-mode">
<tr th:each="obj : ${searchResults}" class="occ-list-item" th:object="${obj}" th:with="hasGlyphs=*{hasGlyphs},isArtificiallyAligned=*{isArtificiallyAligned},position=*{getContextPosition}">
<td>(<a th:href="${(#mvc.url('SC#getSingleObjectDetailsPage').arg(0,obj.id)).build()}" th:text="${position}">1</a>)</td>
<td>(<a th:href="${(#mvc.url('SC#getSingleObjectDetailsPage').arg(0,obj.id)).build()}" th:text="${position}+1">1</a>)</td>

<td>
<div class="mt-sm-1 py-sm-1">
Expand Down

0 comments on commit 32e2960

Please sign in to comment.