[Koha-bugs] [Bug 11213] GetItemsInfo() called twice

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 17 01:37:36 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11213

--- Comment #12 from Srdjan Jankovic <srdjan at catalyst.net.nz> ---
(In reply to M. Tompsett from comment #11)
> Because I'm worried you are breaking the hiding functionality with this
> patch. I don't see any changes which reflect moving the exclusion from one
> place to another.

diff --git a/C4/XSLT.pm b/C4/XSLT.pm
index d85b048..0fde9dc 100644
--- a/C4/XSLT.pm
+++ b/C4/XSLT.pm
@@ -156,8 +156,17 @@ sub _get_best_default_xslt_filename {
     return $xslfilename;
 }

+=head2 XSLTParse4Display( $biblionumber, $orig_record, $xslsyspref, $items,
$fixamps )
+
+  $items => an array of items rerords, as returned from eg. GetItemsInfo
+
+Returns XSLT block
+
+=cut
+
 sub XSLTParse4Display {
-    my ( $biblionumber, $orig_record, $xslsyspref, $fixamps, $hidden_items ) =
@_;
+    my ( $biblionumber, $orig_record, $xslsyspref, $items, $fixamps ) = @_;
+
     my $xslfilename = C4::Context->preference($xslsyspref);
     if ( $xslfilename =~ /^\s*"?default"?\s*$/i ) {
         my $htdocs;

Exclusion list ($hidden_items) is dropped in favour of inclusiuon list ($items)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list