Bug 25428: Correctly encode link if authority subfield is a URL
authorOwen Leonard <oleonard@myacpl.org>
Fri, 8 May 2020 16:13:40 +0000 (16:13 +0000)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Fri, 12 Jun 2020 01:14:55 +0000 (03:14 +0200)
commitdf8e0a1205fd23243d8207710c4a001e4ed59c79
tree20491c35b6bb48e79397b09da8696440822403c0
parentffbdb202fa461fcbe2ca7102b9a860179bbefa2e
Bug 25428: Correctly encode link if authority subfield is a URL

This patch modifies the script and template for showing the details of
an authority record so that if the authority subfield is configured to
be a link the link is correctly output in the template.

To test you must have an authority type configured with at least one
subfield designated as a URL:

 - Go to Administration -> Authority types
 - Select "MARC structure" from the actions menu for the authority type
   you want to modify.
 - Select "Subfields" from the actions menu for the tag containing
   the subfield you want to modify (for instance 856).
 - Edit the subfield you want to display as a link (e.g. subfield u).
 - In the subfield configuration form under "Advanced constraints" check
   the "Is a URL" checkbox and save your changes.

 - Apply the patch and go to Authorities in the staff interface.
 - Search for or create an authority record which contains URL
   information in the right subfield (for instance 856$u).
 - View the details for the record. Using the 856 example, the "8" tab
   should contain an active link pointing to the correct URL.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 1bcc45be621b19dc602d675ca10d844301496b06)
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>

(cherry picked from commit c5d8ee7651da7732990139682c1ad404d17a9d7f)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
authorities/detail.pl
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt