[Bug 4841] New: Advanced search returns 0 results if the itemtype have no items
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4841 Summary: Advanced search returns 0 results if the itemtype have no items Change sponsored?: --- Product: Koha Version: rel_3_2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: Searching AssignedTo: gmcharlt@gmail.com ReportedBy: altiraboschi@yahoo.com.ar QAContact: koha-bugs@lists.koha-community.org Estimated Hours: 0.0 When you specify the item type of that you’re searching, advanced search seeks on the subfield 952$y. So, if you do not have items, the search returns 0 results. You can modify two templates in such a way that the criteria of search were the subfield 942$c: /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl /usr/share/koha/opac/htdocs/opac-tmpl/prog/en/modules/opac-advsearch.tmpl In these files you should change mc-<!-- TMPL_VAR NAME="ccl" --> with itemtype -- 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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4841 dev_patches@biblibre.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dev_patches@biblibre.com --- Comment #1 from dev_patches@biblibre.com 2010-08-27 08:21:39 UTC --- Is this a bug ? Your solution looks strange. I would have edited record.abs to make the index point on a biblio field... (assuming it is a local need) -- 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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4841 --- Comment #2 from Larry Baerveldt <larry@bywatersolutions.com> 2011-09-22 20:49:24 UTC --- Created attachment 5553 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5553 0001-Bug-4841 -- 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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4841 Larry Baerveldt <larry@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 |PATCH-Sent Status|NEW |ASSIGNED CC| |larry@bywatersolutions.com Patch Status|--- |Needs Signoff AssignedTo|gmcharlt@gmail.com |larry@bywatersolutions.com --- Comment #3 from Larry Baerveldt <larry@bywatersolutions.com> 2011-09-22 20:53:46 UTC --- Patch attached. -- 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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4841 Ian Walls <ian.walls@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #5553|0 |1 is obsolete| | --- Comment #4 from Ian Walls <ian.walls@bywatersolutions.com> 2011-09-26 12:01:38 UTC --- Created attachment 5586 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5586 Signed off Patch This patch simply adds 942$c to the itype index as well as the itemtype index. This allows the biblio-level itemtype to serve as a fall-back value for biblios without any attached items (in an item-level_itypes set up, which is more common). In particular, this is useful for E-books and Serials, which may not have attached items, but could have their own item types in the OPAC. -- 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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4841 Ian Walls <ian.walls@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ian.walls@bywatersolutions. | |com Version|rel_3_2 |master Patch Status|Needs Signoff |Passed QA --- Comment #5 from Ian Walls <ian.walls@bywatersolutions.com> 2011-09-26 12:04:51 UTC --- If anyone feels uncomfortable about my doing both the signoff and the QA work on this patch, or the fact that the author is also with ByWater Solutions, please speak up. Adds data from a specific MARC field to an additional index; no issues with regression. Running successfully on a production library catalog. Marking as Passed QA. -- 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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4841 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris@bigballofwax.co.nz Patch Status|Passed QA |Patch Pushed --- Comment #6 from Chris Cormack <chris@bigballofwax.co.nz> 2011-09-26 20:49:10 UTC --- Seems to work fine, pushed -- 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.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org