Case for selecting Item types preference in Koha OPAC search module
My Library is currently implementing Koha 3.14. Library has about 9 lakh records in its database out of which about 70000 are books and around 5 lakhs are article records (analytic records). When a search is done in Koha, it retrieves mostly articles and other documents. Books are not listed at the beginning in the search results (i.e. in the first 20 results) which causes some inconvenience to users. Even in faceted navigation links shown on the left side on the search results page, books are listed only if 'Show more' link is selected. Is there any way to display book item types at the beginning in the OPAC search results? Pull-down menu like 'Libraries' in the default setup, would be great on the OPAC home page. For libraries having large collection, this will be a useful feature. Any way around would be highly appreciated. Sincerely, K. Mohankumar Trivandrum, India
Hi, On Mon, Jun 9, 2014 at 7:59 PM, Mohankumar K <mohankumar.05@gmail.com> wrote:
Koha, it retrieves mostly articles and other documents. Books are not listed at the beginning in the search results (i.e. in the first 20 results) which causes some inconvenience to users.
You are facing this while using the Advanced Search in OPAC with 'Item Type' filtering set to books? cheers -- Indranil Das Gupta Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards. For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org
Hi Indranil, I think they want pull-down menu 'Item type' selection similar to 'Library' selection on main page. I have already done with the patch only system-preference part is pending once done will send the patch to Koha community. Please see the attach screen-shot for more information. On Mon, Jun 9, 2014 at 11:04 PM, Indranil Das Gupta <indradg@gmail.com> wrote:
Hi,
On Mon, Jun 9, 2014 at 7:59 PM, Mohankumar K <mohankumar.05@gmail.com> wrote:
Koha, it retrieves mostly articles and other documents. Books are not listed at the beginning in the search results (i.e. in the first 20 results) which causes some inconvenience to users.
You are facing this while using the Advanced Search in OPAC with 'Item Type' filtering set to books?
cheers
-- Indranil Das Gupta
Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards.
For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Regards, Amit Gupta
Please see http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12394 On Tue, Jun 10, 2014 at 8:52 AM, Amit Gupta <amitddng135@gmail.com> wrote:
Hi Indranil,
I think they want pull-down menu 'Item type' selection similar to 'Library' selection on main page. I have already done with the patch only system-preference part is pending once done will send the patch to Koha community.
Please see the attach screen-shot for more information.
On Mon, Jun 9, 2014 at 11:04 PM, Indranil Das Gupta <indradg@gmail.com> wrote:
Hi,
On Mon, Jun 9, 2014 at 7:59 PM, Mohankumar K <mohankumar.05@gmail.com> wrote:
Koha, it retrieves mostly articles and other documents. Books are not listed at the beginning in the search results (i.e. in the first 20 results) which causes some inconvenience to users.
You are facing this while using the Advanced Search in OPAC with 'Item Type' filtering set to books?
cheers
-- Indranil Das Gupta
Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards.
For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Regards, Amit Gupta
-- Regards, Amit Gupta
Hi! We have the same query, I posted this two weeks ago: http://koha.1045719.n5.nabble.com/koha-item-types-dropdown-instead-of-librar... I was actually able to implement this in the Koha ILS project I am working, I just follow the lead of Fridolin Somers. I came up with this jquery: $("#select_library option[value='branch:LastLibraryInMastHeadPullDown']").after("<option value=\'mc-itype,phr:BK\'>Books</option>"); $("#select_library option[value='mc-itype,phr:BK']").attr("selected","selected"); $("#select_library option[value='mc-itype,phr:BK']").after("<option value=\'mc-itype,phr:RETRATO\'>Images (Retrato)</option>"); $("#select_library option[value='mc-itype,phr:RETRATO']"); $("#select_library option[value='mc-itype,phr:RETRATO']").after("<option value=\'mc-itype,phr:HIMIG\'>Himig (Songs)</option>"); $("#select_library option[value='mc-itype,phr:HIMIG']"); $("#select_library option[value='mc-itype,phr:HIMIG']").after("<option value=\'mc-itype,phr:HIMIGALBUMS\'>Himig (Albums) </option>"); $("#select_library option[value='mc-itype,phr:HIMIGALBUMS']"); $("#select_library option[value='mc-itype,phr:HIMIGALBUMS']").after("<option value=\'mc-itype,phr:MAPS-RARE\'>Maps - Rare </option>"); $("#select_library option[value='mc-itype,phr:MAPS-RARE']"); $("#select_library option[value='mc-itype,phr:MAPS-RARE']").after("<option value=\'mc-itype,phr:MAPS-US\'>Maps - US Army </option>"); $("#select_library option[value='mc-itype,phr:MAPS-US']"); $("#select_library option[value='mc-itype,phr:MAPS-US']").after("<option value=\'mc-itype,phr:AV\'>Audio-visuals</option>"); $("#select_library option[value='mc-itype,phr:AV']"); $("#select_library option[value='mc-itype,phr:AV']").after("<option value=\'mc-itype,phr:MANUSCRIPT\'>Manuscripts</option>"); $("#select_library option[value='mc-itype,phr:MANUSCRIPT']"); $("#select_library option[value='mc-itype,phr:MANUSCRIPT']").after("<option value=\'mc-itype,phr:MICROFICHE\'>Microfiche</option>"); $("#select_library option[value='mc-itype,phr:MICROFICHE']"); $("#select_library option[value='mc-itype,phr:MICROFICHE']").after("<option value=\'mc-itype,phr:PAMPHLET\'>Pamphlet</option>"); $("#select_library option[value='mc-itype,phr:PAMPHLET']"); $("#select_library option[value='mc-itype,phr:PAMPHLET']").after("<option value=\'mc-itype,phr:SER\'>Serials</option>"); $("#select_library option[value='mc-itype,phr:SER']"); $("#select_library option[value='mc-itype,phr:SER']").after("<option value=\'branch:FHL\'>All Item Types</option>"); $("#select_library option[value='branch:FHL']"); So what this does is: 1) the first two codes adds a dropdown with search for item type Books after the Last Library in the MastHead Search, 2) And then add further other item types, you can get the itemtypes in your Authorized values, 3) Last two codes are for all item types, and this one is actually using the value for the only Library in our Koha ILS project, which is FHL. This last code I feel, there could be a better jquery script, but it works for us since we only have one library. Hope this helps. Cheers! -- View this message in context: http://koha.1045719.n5.nabble.com/Case-for-selecting-Item-types-preference-i... Sent from the Koha-general mailing list archive at Nabble.com.
Hi Amit, On Tue, Jun 10, 2014 at 8:52 AM, Amit Gupta <amitddng135@gmail.com> wrote:
I think they want pull-down menu 'Item type' selection similar to 'Library' selection on main page.
My reading of the issue was that he was looking for something to override OPACdefaultSortField & OPACdefaultSortOrder sysprefs. Your proposed patch would do what I had asked :-) cheers -- Indranil Das Gupta Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards. For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org
participants (4)
-
Amit Gupta -
Indranil Das Gupta -
Mohankumar K -
schnydszch