[Koha] koha item types dropdown instead of library dropdown
Viktor.Sarge at regionhalland.se
Viktor.Sarge at regionhalland.se
Wed May 21 22:52:44 NZST 2014
It would be quite possible. The following code that Fridolin Somers posted on march 19 could serve as an inspiration.
$(document).ready(function() {
$("select#masthead_search").append("<option value=\"yr\">Publication year</option>");
})
What it does is that you paste it into the system preference ”opacuserjs” and it adds a field ”Publication year” to the drop down menu. Koha doesn’t care that this field was custom made as long as it adheres to standard querys that could just as well have come from advanced search. What you need to do is to compile a list of all the codes for the item types you have (look in admin or get it from the html of advanced search that has the item types). Then create a little jquery snippet that inserts a drop down with these options at the appropriate place. You could probably have someone help you with that last part as long as you have a list of the values that should go into the drop down.
Kind regards/Viktor
Viktor Sarge
Utvecklingsledare
Regionbibliotek Halland
Regionkontoret
TFN: 035-17 98 73 MOBIL:
E-POST: Viktor.Sarge at regionhalland.se<mailto:Viktor.Sarge at regionhalland.se>
BESÖKSADRESS: Södra vägen 9, 30180 Halmstad
www.regionhalland.se<http://www.regionhalland.se/>
17 maj 2014 kl. 18:09 skrev schnydszch <eugenegf at yahoo.com<mailto:eugenegf at yahoo.com>>:
I forgot that the library pulldown for libraries can be hidden through global
system preference OpacAddMastheadLibraryPulldown. However, the project I'm
working with would like to add a dropdown for item types, will that be
possible? Thanks in advance and cheers!
--
View this message in context: http://koha.1045719.n5.nabble.com/koha-item-types-dropdown-instead-of-library-dropdown-tp5798062p5798247.html
Sent from the Koha-general mailing list archive at Nabble.com<http://Nabble.com>.
_______________________________________________
Koha mailing list http://koha-community.org
Koha at lists.katipo.co.nz<mailto:Koha at lists.katipo.co.nz>
http://lists.katipo.co.nz/mailman/listinfo/koha
More information about the Koha
mailing list