From fd8a3b4eaf976fda950aee84f756deaa85cb5b04 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 20 Sep 2011 15:27:08 +1200 Subject: [PATCH] Bug 6886 - OPAC XSLT respecting single branch mode This is only for the MARC21 XSLT at this stage, follow up patch for UNIMARC will come Conflicts: C4/XSLT.pm koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref --- C4/XSLT.pm | 1 + .../prog/en/modules/admin/preferences/opac.pref | 2 +- .../prog/en/xslt/MARC21slim2OPACResults.xsl | 33 ++++++++++++++------ 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index ac97e65..36a3bfc 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -188,6 +188,7 @@ sub XSLTParse4Display { UseAuthoritiesForTracings TraceSubjectSubdivisions Display856uAsImage OPACDisplay856uAsImage UseControlNumber IntranetBiblioDefaultView BiblioDefaultView + singleBranchMode AlternateHoldingsField AlternateHoldingsSeparator / ) { my $sp = C4::Context->preference( $syspref ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref index 0fe79d4..4ed639e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref @@ -359,7 +359,7 @@ OPAC: choices: yes: "Don't allow" no: Allow - - patrons to select their library on the OPAC. + - patrons to select their branch on the OPAC or show branch names with callnumbers. - - pref: SearchMyLibraryFirst choices: diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl index 2b5aacc..3662c34 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl @@ -27,6 +27,7 @@ + @@ -1025,15 +1026,29 @@ Copies available for loan: - - - [] - ( - - ) -. , - - + + + + [] + ( + + ) + . , + + + + + + [] + ( + + ) + . , + + + + + -- 1.7.9.5