]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 15 May 2023 21:24:03 +0000 (18:24 -0300)
commit287b55f33b71db640e1feb4a8769ce62e736ed3d
treef3498fe16a8aa9cb3421ced8094972b5e61a0e23
parent7f5752d814073cf352f7b386061cb67b0b6dc5e8
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>
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