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
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)
Created attachment 5553 [details] [review] 0001-Bug-4841
Patch attached.
Created attachment 5586 [details] [review] 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.
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.
Seems to work fine, pushed
There have been no further reports of problems so I am marking this bug resolved.