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

use handleHost property

parent c784b0dc
Pipeline #132363 passed with stages
in 7 minutes and 41 seconds
......@@ -67,6 +67,7 @@ public class BrowseController {
// common variables for browse-root aggregations and browse single items
model.addAttribute("handleHost", this.tgrepConfig.getHandleHost());
model.addAttribute("textgridHost", this.tgrepConfig.getTextgridHost());
model.addAttribute("mode", mode);
model.addAttribute("i18n", i18n.getTranslationMap());
......
......@@ -3,14 +3,22 @@
<c:when test="${format == 'text/tg.edition+tg.aggregation+xml'}">
<dl>
<dt>${i18n['edition-citation-heading']}</dt>
<dd>TextGrid Repository (${fn:substring(metadata.object.generic.generated.issued, 0, 4)}). ${metadata.object.edition.agent[0].value}. ${metadata.object.generic.provided.title[0]}. ${metadata.object.generic.generated.project.value}. <a href="https://hdl.handle.net/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}">https://hdl.handle.net/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}</a></dd>
<dd>TextGrid Repository (${fn:substring(metadata.object.generic.generated.issued, 0, 4)}). ${metadata.object.edition.agent[0].value}. ${metadata.object.generic.provided.title[0]}. ${metadata.object.generic.generated.project.value}.
<a href="${handleHost}/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}">
${handleHost}/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}
</a>
</dd>
</dl>
</c:when>
<c:when test="${format == 'text/tg.collection+tg.aggregation+xml'}">
<dl>
<dt>${i18n['collection-citation-heading']}</dt>
<dd>TextGrid Repository (${fn:substring(metadata.object.generic.generated.issued, 0, 4)}). ${metadata.object.generic.provided.title[0]}. ${metadata.object.generic.generated.project.value}. ${metadata.object.collection.collector[0].value}. <a href="https://hdl.handle.net/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}">https://hdl.handle.net/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}</a></dd>
<dd>TextGrid Repository (${fn:substring(metadata.object.generic.generated.issued, 0, 4)}). ${metadata.object.generic.provided.title[0]}. ${metadata.object.generic.generated.project.value}. ${metadata.object.collection.collector[0].value}.
<a href="${handleHost}/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}">
${handleHost}/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}
</a>
</dd>
</dl>
</c:when>
......@@ -18,21 +26,29 @@
<dl>
<dt>${i18n['aggregation-citation-heading']}</dt>
<dd>TextGrid Repository (${fn:substring(metadata.object.generic.generated.issued, 0, 4)}).
<c:forEach items="${result.pathResponse.pathGroup}" var="pathGroup">
<c:forEach items="${pathGroup.path}" var="path">
<c:forEach items="${path.entry}" var="pathEntry">
${pathEntry.title}.
</c:forEach>
</c:forEach>
</c:forEach>
${metadata.object.generic.provided.title[0]}. ${metadata.object.generic.generated.project.value}. ${metadata.object.item.rightsHolder[0].value}. <a href="https://hdl.handle.net/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}">https://hdl.handle.net/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}</a></dd>
<c:forEach items="${result.pathResponse.pathGroup}" var="pathGroup">
<c:forEach items="${pathGroup.path}" var="path">
<c:forEach items="${path.entry}" var="pathEntry">
${pathEntry.title}.
</c:forEach>
</c:forEach>
</c:forEach>
${metadata.object.generic.provided.title[0]}. ${metadata.object.generic.generated.project.value}. ${metadata.object.item.rightsHolder[0].value}.
<a href="${handleHost}/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}">
${handleHost}/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}
</a>
</dd>
</dl>
</c:when>
<c:when test="${format == 'text/tg.work+xml'}">
<dl>
<dt>${i18n['work-citation-heading']}</dt>
<dd>TextGrid Repository (${fn:substring(metadata.object.generic.generated.issued, 0, 4)}). ${metadata.object.work.agent[0].value}. ${metadata.object.generic.provided.title[0]}. ${metadata.object.generic.generated.project.value}. <a href="https://hdl.handle.net/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}">https://hdl.handle.net/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}</a></dd>
<dd>TextGrid Repository (${fn:substring(metadata.object.generic.generated.issued, 0, 4)}). ${metadata.object.work.agent[0].value}. ${metadata.object.generic.provided.title[0]}. ${metadata.object.generic.generated.project.value}.
<a href="${handleHost}/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}">
${handleHost}/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}
</a>
</dd>
</dl>
</c:when>
......@@ -40,14 +56,18 @@
<dl>
<dt>${i18n['item-citation-heading']}</dt>
<dd>TextGrid Repository (${fn:substring(metadata.object.generic.generated.issued, 0, 4)}).
<c:forEach items="${result.pathResponse.pathGroup}" var="pathGroup">
<c:forEach items="${pathGroup.path}" var="path">
<c:forEach items="${path.entry}" var="pathEntry">
${pathEntry.title}.
</c:forEach>
</c:forEach>
</c:forEach>
${metadata.object.generic.provided.title[0]}. ${metadata.object.generic.generated.project.value}. ${metadata.object.item.rightsHolder[0].value}. <a href="https://hdl.handle.net/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}">https://hdl.handle.net/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}</a></dd>
<c:forEach items="${result.pathResponse.pathGroup}" var="pathGroup">
<c:forEach items="${pathGroup.path}" var="path">
<c:forEach items="${path.entry}" var="pathEntry">
${pathEntry.title}.
</c:forEach>
</c:forEach>
</c:forEach>
${metadata.object.generic.provided.title[0]}. ${metadata.object.generic.generated.project.value}. ${metadata.object.item.rightsHolder[0].value}.
<a href="${handleHost}/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}">
${handleHost}/${fn:substringAfter(metadata.object.generic.generated.pid[0].value, 'hdl:')}
</a>
</dd>
</dl>
</c:otherwise>
</c:choose>
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