Embedding search form with branch limit
Hi all Hoping someone may be able to help me with this - I've searched online but cant find a solution. I am embedding a search box in the website of of one of our member libraries using the code below, however I want to limit the search to that 1 member library's materials. What else to i need to add to ensure it just returns results from the 1 member library rather than all our libraries? <form name="searchform" method="get" action="http://159.65.65.143/cgi-bin/koha/opac-search.pl" id="searchform"> <input id="transl1" name="q" type="text"><p> <select name="idx" id="masthead_search"> <option value="kw">Keyword</option> <option value="ti">Title</option> <option value="au">Author</option> <option value="su">Subject</option> <option value="nb">ISBN</option> <option value="se">Series</option> <option value="callnum">Call Number</option> </select> <input value="Search" id="searchsubmit" type="submit"> </p></form> Thanks in advance. Karen
What else to i need to add to ensure it just returns results from the 1 member library rather than all our libraries?
Enabling the OpacAddMastheadLibraryPulldown preference and inspecting that form field shows that the options look like this: <select name="branch_group_limit" id="select_library"> <option value="branch:XXX">Libraryname</option> </select> ...where XXX is the branchcode. If you always want to limit to that library you should be able to add a hidden input with that value: <input type="hidden" name="branch_group" value="branch:XXX" /> -- Owen -- Web Developer Athens County Public Libraries https://www.myacpl.org
participants (2)
-
Karen Myers -
Owen Leonard