Thanks Viktor! I'll try this. Cheers!





On Wednesday, May 21, 2014 3:52 AM, "viktor.sa...@regionhalland.se" 
<viktor.sa...@regionhalland.se> wrote:
 


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.sa...@regionhalland.se
BESÖKSADRESS: Södra vägen 9, 30180 Halmstad
www.regionhalland.se 

17 maj 2014 kl. 18:09 skrev schnydszch <eugen...@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.
>_______________________________________________
>Koha mailing list  http://koha-community.org
>Koha@lists.katipo.co.nz
>http://lists.katipo.co.nz/mailman/listinfo/koha
>
_______________________________________________
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha

Reply via email to