Bug 5558 - Changes to OPACItemsResultsDisplay are not reflected in search results display
Summary: Changes to OPACItemsResultsDisplay are not reflected in search results display
Status: CLOSED DUPLICATE of bug 4268
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: rel_3_2
Hardware: All All
: P5 - low normal (vote)
Assignee: Owen Leonard
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-30 11:31 UTC by Janusz Kaczmarek
Modified: 2012-10-26 00:40 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janusz Kaczmarek 2010-12-30 11:31:54 UTC
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.
Comment 1 Owen Leonard 2010-12-30 13:24:47 UTC

*** This bug has been marked as a duplicate of bug 4268 ***