From 6ecb2ddbb525a69c7752268d209461b5128a1ef4 Mon Sep 17 00:00:00 2001 From: Jane Wagner Date: Mon, 16 Nov 2009 14:20:28 -0500 Subject: [PATCH] Bug 3788 XSLT does not obey viewISBD syspref Modified XSLT.pm and MARC21slim2OPACDetail.xsl to obey the viewISBD syspref setting in the OPAC. Signed-off-by: Galen Charlton --- C4/XSLT.pm | 3 +-- koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index ec5d5320ca..f1fc9db844 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -127,8 +127,7 @@ sub XSLTParse4Display { my $itemsxml = buildKohaItemsNamespace($biblionumber); my $xmlrecord = $record->as_xml(C4::Context->preference('marcflavour')); my $sysxml = "\n"; -# warn $xmlrecord; - foreach my $syspref ( qw/OPACURLOpenInNewWindow DisplayOPACiconsXSLT URLLinkText/ ) { + foreach my $syspref ( qw/OPACURLOpenInNewWindow DisplayOPACiconsXSLT URLLinkText viewISBD/ ) { $sysxml .= "" . C4::Context->preference( $syspref ) . "\n"; diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl index 40d4cc73d5..3c7ca28dbe 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl @@ -19,6 +19,7 @@ + @@ -161,7 +162,9 @@ Normal View MARC View Expanded MARC View + Card View (ISBD) + -- 2.39.5