Skip to content

Commit

Permalink
Fix accept headers for keywords.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwallen committed Feb 20, 2024
1 parent 1cbee75 commit 1e4f188
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ public Object getKeywordById(
@Parameter(hidden = true)
HttpServletRequest request
) throws Exception {
return getKeyword(uri,sThesaurusName,langs, keywordOnly, transformation,langMapJson,allRequestParams, accept, request);
return getKeyword(uri,sThesaurusName,langs, keywordOnly, transformation,langMapJson,allRequestParams, request);
}

/**
Expand Down Expand Up @@ -450,15 +450,10 @@ public Object getKeywordByIds(
@Parameter(hidden = true)
@RequestParam
Map<String, String> allRequestParams,
@RequestHeader(
value = "Accept",
defaultValue = MediaType.APPLICATION_XML_VALUE
)
String accept,
@Parameter(hidden = true)
HttpServletRequest request
) throws Exception {
return getKeyword(uri,sThesaurusName,langs, keywordOnly, transformation,langMapJson,allRequestParams, accept, request);
return getKeyword(uri,sThesaurusName,langs, keywordOnly, transformation,langMapJson,allRequestParams, request);
}

/**
Expand All @@ -482,7 +477,6 @@ private Object getKeyword(
String transformation,
String langMapJson,
Map<String, String> allRequestParams,
String accept,
HttpServletRequest request
) throws Exception {
final String SEPARATOR = ",";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,18 @@ <h3 data-translate="">tempExtent</h3>
<h3 data-translate="">resourceVerticalRange</h3>
<div class="flex flex-col">
<p data-ng-repeat="range in mdView.current.record.resourceVerticalRange">
<span data-ng-show="range.gte || range.gte===0"> {{range.gte}}{{range.unit || 'm'}} </span>
<span data-ng-show="range.gte || range.gte===0">
{{range.gte}}{{range.unit || 'm'}}
</span>
<span
class="spacer"
data-ng-show="(range.gte || range.gte===0) && (range.lte || range.lte===0)"
>
<i class="fa fa-long-arrow-right"></i>
</span>
<span data-ng-show="range.lte || range.lte===0"> {{range.lte}}{{range.unit || 'm'}} </span>
<span data-ng-show="range.lte || range.lte===0">
{{range.lte}}{{range.unit || 'm'}}
</span>
</p>
</div>
</div>
Expand Down

0 comments on commit 1e4f188

Please sign in to comment.