| Summary: | Changes to OPACItemsResultsDisplay are not reflected in search results display | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Janusz Kaczmarek <januszop> |
| Component: | OPAC | Assignee: | Owen Leonard <oleonard> |
| Status: | CLOSED DUPLICATE | QA Contact: | Bugs List <koha-bugs> |
| Severity: | normal | ||
| Priority: | P5 - low | ||
| Version: | rel_3_2 | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
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.