@@ -, +, @@
---
.gitignore | 1 +
...spref-AuthorityXSLTOpacDetailsDisplay.perl | 9 ++++++++
installer/data/mysql/mandatory/sysprefs.sql | 1 +
.../admin/preferences/staff_interface.pref | 4 ++++
.../opac-authoritiessearchresultlist.tt | 8 ++++++-
opac/opac-authorities-home.pl | 23 +++++++++++++++++++
6 files changed, 45 insertions(+), 1 deletion(-)
create mode 100644 installer/data/mysql/atomicupdate/add-syspref-AuthorityXSLTOpacDetailsDisplay.perl
--- a/.gitignore
+++ a/.gitignore
@@ -5,3 +5,4 @@
node_modules/
koha-tmpl/opac-tmpl/bootstrap/css/maps/
koha-tmpl/intranet-tmpl/prog/css/maps/
+UNIMARCauthResults.xsl
--- a/installer/data/mysql/atomicupdate/add-syspref-AuthorityXSLTOpacDetailsDisplay.perl
+++ a/installer/data/mysql/atomicupdate/add-syspref-AuthorityXSLTOpacDetailsDisplay.perl
@@ -0,0 +1,9 @@
+$DBversion = 'XXX';
+if (CheckVersion($DBversion)) {
+ $dbh->do(q{
+ INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`)
+ VALUES ('AuthorityXSLTOpacResultsDisplay','','','Enable XSL stylesheet control over authority results page display on opac','Free')
+ });
+
+ NewVersion($DBversion, '11083', 'Add syspref AuthorityXSLTResultsDisplay');
+}
--- a/installer/data/mysql/mandatory/sysprefs.sql
+++ a/installer/data/mysql/mandatory/sysprefs.sql
@@ -69,6 +69,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('AuthorityMergeLimit','50',NULL,'Maximum number of biblio records updated immediately when an authority record has been modified.','integer'),
('AuthorityMergeMode','loose','loose|strict','Authority merge mode','Choice'),
('AuthoritySeparator','--','10','Used to separate a list of authorities in a display. Usually --','free'),
+('AuthorityXSLTOpacResultsDisplay','','','Enable XSL stylesheet control over authority results page display on opac','Free'),
('AuthSuccessLog','0',NULL,'If enabled, log successful authentications','YesNo'),
('autoBarcode','OFF','incremental|annual|hbyymmincr|EAN13|OFF','Used to autogenerate a barcode: incremental will be of the form 1, 2, 3; annual of the form 2007-0001, 2007-0002; hbyymmincr of the form HB08010001 where HB=Home Branch','Choice'),
('AutoCreateAuthorities','0',NULL,'Automatically create authorities that do not exist when cataloging records.','YesNo'),
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref
@@ -1,6 +1,10 @@
Staff interface:
Appearance:
-
+ - 'Display authority results in the opac interface using XSLT stylesheet at: '
+ - pref: AuthorityXSLTOpacResultsDisplay
+ class: file
+ - '
Options: