[Koha-bugs] [Bug 5558] New: Changes to OPACItemsResultsDisplay are not reflected in search results display

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 30 12:31:54 CET 2010


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

           Summary: Changes to OPACItemsResultsDisplay are not reflected
                    in search results display
 Change sponsored?: ---
           Product: Koha
           Version: rel_3_2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: OPAC
        AssignedTo: oleonard at myacpl.org
        ReportedBy: januszop at gmail.com
         QAContact: koha-bugs at lists.koha-community.org
   Estimated Hours: 0.0


In Koha 3.2 there has been change made in syspref OPACItemsResultsDisplay: now
in is boolean (cf. searching.pref), before it was statuses|itemdetails.  But
this change has not been reflected in scripts that use this syspref, in
particular opac-search.pl (also probably updatedatabase.pl, sysprefs.sql et
al.).  As a result changing this syspref does not makes callnumbers to appear
in search result list. 

My workaround follows.  

Regards,

Janusz

--- ../koha-3.2.2/opac/opac-search.pl   2010-12-22 01:58:29.000000000 +0200
+++ opac-search.pl      2010-12-30 11:08:54.000000000 +0200
@@ -543,7 +543,7 @@
             $template->param(stopwords_removed => "@$stopwords_removed") if
$stopwords_removed;
             $template->param(results_per_page =>  $results_per_page);
             $template->param(SEARCH_RESULTS => \@newresults,
-                                OPACItemsResultsDisplay =>
(C4::Context->preference("OPACItemsResultsDisplay") eq "itemdetails"?1:0),
+                                OPACItemsResultsDisplay =>
(C4::Context->preference("OPACItemsResultsDisplay") ?1:0),
                             );
             ## Build the page numbers on the bottom of the page
             my @page_numbers;



Or one could, in contrary, change the appropriate fragment of searching.pref to
preserve the old way.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Koha-bugs mailing list