individual--foaf-person.ftl: updated commented-out QR code sample to add link to "about" page
IndividualTemplateModel.java: add link to "about" page to QR data
This commit is contained in:
parent
baa7835a35
commit
d3287a7493
2 changed files with 10 additions and 1 deletions
|
@ -70,7 +70,14 @@
|
||||||
<#-- Links -->
|
<#-- Links -->
|
||||||
<@p.vitroLinks propertyGroups namespaces editable "individual-urls-people" />
|
<@p.vitroLinks propertyGroups namespaces editable "individual-urls-people" />
|
||||||
|
|
||||||
<#-- <a href="${individual.qrData.exportQrCodeUrl}"><@qrCodeVCard qrCodeWidth="150" /></a> -->
|
<#--
|
||||||
|
<div style="border:1px solid #cccccc">
|
||||||
|
<span style="padding-left:5px">vCard QR <a style="font-size:smaller" href="${individual.qrData.aboutQrCodesUrl}">What is this?</a></span>
|
||||||
|
<a title="Export QR codes" href="${individual.qrData.exportQrCodeUrl}">
|
||||||
|
<@qrCodeVCard qrCodeWidth="150" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
-->
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="individual-info" ${infoClass!} role="region">
|
<section id="individual-info" ${infoClass!} role="region">
|
||||||
|
|
|
@ -115,6 +115,8 @@ public class IndividualTemplateModel extends BaseIndividualTemplateModel {
|
||||||
String contextPath = vreq.getContextPath();
|
String contextPath = vreq.getContextPath();
|
||||||
qrData.put("exportQrCodeUrl", contextPath + "/qrcode?uri=" + UrlBuilder.urlEncode(individualUri));
|
qrData.put("exportQrCodeUrl", contextPath + "/qrcode?uri=" + UrlBuilder.urlEncode(individualUri));
|
||||||
|
|
||||||
|
qrData.put("aboutQrCodesUrl", contextPath + "/qrcode/about");
|
||||||
|
|
||||||
return qrData;
|
return qrData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue