LP#1992827: Improve OPAC URI display user/miker/lp-1992827-URI-display-rebase
authorMike Rylander <mrylander@gmail.com>
Thu, 13 Oct 2022 16:12:42 +0000 (12:12 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 27 Feb 2023 19:53:30 +0000 (14:53 -0500)
commitf705e057bfa6624f8ca16361e0042e5ec59a03dd
treedc7c7a9e4a438fa63fd3b40ee0fd038a14b43ec7
parent45119e4e465887315b8841145081bb378d4527ff
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