From 326222e3f109d816a8fa3118c068df7a3f706f52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Thu, 10 Mar 2011 11:29:11 -0600 Subject: [PATCH] Bug 4072 Lost items aren't hidden on OPAC result page When hidelostitems system preference is enabled, lost items are hidden on OPAC detail page but are shown on result page. This patch modify MARC21/UNIMARC XSL in order to take into account hidelostitems syspref on OPAC result page. Signed-off-by: Liz Rea Signed-off-by: Chris Cormack --- C4/XSLT.pm | 5 ++++- koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl | 3 ++- koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index f1c5293ea6..4b6a99c3fa 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -128,7 +128,10 @@ sub XSLTParse4Display { my $itemsxml = buildKohaItemsNamespace($biblionumber); my $xmlrecord = $record->as_xml(C4::Context->preference('marcflavour')); my $sysxml = "\n"; - foreach my $syspref ( qw/OPACURLOpenInNewWindow DisplayOPACiconsXSLT URLLinkText viewISBD OPACBaseURL/ ) { + foreach my $syspref ( qw/ hidelostitems OPACURLOpenInNewWindow + DisplayOPACiconsXSLT URLLinkText viewISBD + OPACBaseURL / ) + { my $sp = C4::Context->preference( $syspref ); next unless defined($sp); $sysxml .= "$sp\n"; diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl index b3f61e53b5..39eddd7321 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl @@ -19,6 +19,7 @@ + @@ -1005,7 +1006,7 @@ ). - + Lost ( diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl index 19b6745283..cfb88232cb 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl @@ -26,6 +26,8 @@ + + @@ -163,7 +165,7 @@ ). - + Lost ( -- 2.39.2