LP#1992827: Improve OPAC URI display user/miker/lp-1992827-improved-opac-uri-display
authorMike Rylander <mrylander@gmail.com>
Thu, 13 Oct 2022 16:12:42 +0000 (12:12 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 13 Oct 2022 16:12:42 +0000 (12:12 -0400)
commit66b3b7f8b1025484ba6a7483756158b9143c52dc
treec737aab7f4ec7a8c33a55b3fe4f25c195d585664
parent9a677906cc200db4c6f8f0fa5a326334d5da4a72
LP#1992827: Improve OPAC URI display

Currently, the web staff client displays URIs in a slightly different
(and arguably better/more complete) way than the OPAC. In particular,
the staff client includes any 856 with an ind2 value of 0, 1, or 2, and
provides a label indicating the purpose of the URI based on the ind2
value. The OPAC, on the other hand, only displays 856s with an ind2 of 0
or 1, and does not distinguish the purpose.

This commit both implements the "purpose" labeling and allows ind2=2
URIs to be displayed.  Both BooPAC and TPAC templates are adjusted.

This does not change the way Located URIs are excluded from OPAC
display, they are still filtered out based on the existence of subfield
9.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates-bootstrap/opac/parts/misc_util.tt2
Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2
Open-ILS/src/templates/opac/parts/misc_util.tt2
Open-ILS/src/templates/opac/parts/record/summary.tt2