]> git.koha-community.org Git - koha.git/commit
Bug 21330: Allow XSLT for authority detail view in OPAC
authorjeremy breuillard <jeremy.breuillard@biblibre.com>
Mon, 7 Feb 2022 11:00:00 +0000 (12:00 +0100)
committerPedro Amorim <pedro.amorim@ptfs-europe.com>
Wed, 7 Jun 2023 09:05:01 +0000 (09:05 +0000)
commit406f5eff3cdddff410af73d790d0378176fabe42
treefa394d2addd836806372be13182910df878e2da0
parent3d4e74a9cd27960ea6fec2a78ab6279792b53510
Bug 21330: Allow XSLT for authority detail view in OPAC

This patch adds a syspref that allow to customize the authority detail
view in OPAC with XSLT.

Test plan:
1. Make sure to have at least one or more authorities
2. OPAC: Home > Authority search(Submit) > Authority search results
3. Click details on a result and notice the view
4. Apply patch
5. INTRA: Home > Administration > System preferences ->find
   "AuthorityXSLTOpacDetailsDisplay"
6. Write the path where your file is. You can try with the XSLT for
   biblio for instance:
   .../koha/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl
7. Save changes
8. Repeat 2-3 and notice the display

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Thibault <thibault.keromnes@univ-paris8.fr>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 287b55f33b71db640e1feb4a8769ce62e736ed3d)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
installer/data/mysql/atomicupdate/bug-21330.pl [new file with mode: 0644]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt
opac/opac-authoritiesdetail.pl