Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

PT-27657565 -- Adds capability to limit advanced search to book forma…

…t and adult audience.
  • Loading branch information...
commit 1cec47530d3f389a929e930e250efb8066e100e7 1 parent 6c48f47
@rfy rfy authored
View
2  etc/zebradb/ccl.properties
@@ -219,7 +219,7 @@ callnum Local-classification
# bibliographic level such as
# monograph, serial or collection
# of the record.
-#Bib-level 1=1021
+Bib-level 1=1021
#
#Code-geographic-area 55 A code that indicates the 043
# geographic area(s) that appear
View
2  koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl
@@ -228,6 +228,7 @@ function expand_sortby(){
<legend>Subtypes:</legend>
<select name="limit" class="subtype">
<option value="" selected="selected" class="menuheader">Any audience</option>
+ <option value="(allrecords,AlwaysMatches='' not (aud:a or aud:b or aud:c or aud:j) )">Adult</option>
<option value="(aud:a or aud:b or aud:c or aud:j)">Children</option>
<option value="aud:a">Preschool</option>
<option value="aud:b">Primary</option>
@@ -247,6 +248,7 @@ function expand_sortby(){
<select name="limit" class="subtype">
<option value="" selected="selected" class="menuheader">Any Format</option>
+ <option value="(rtype:a and Bib-level=m)">Books</option>
<option value="ff8-23:d">Large print books</option>
<option value="ff8-23:f">Braille books</option>
<option value="g-format:6">Graphic novels</option>
View
2  koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl
@@ -233,6 +233,7 @@ function expand_sortby(){
<legend>Subtypes</legend>
<select name="limit" class="subtype">
<option value="" selected="selected" class="menuheader">Any audience</option>
+ <option value="(allrecords,AlwaysMatches='' not (aud:a or aud:b or aud:c or aud:j) )">Adult</option>
<option value="(aud:a or aud:b or aud:c or aud:j)">Children</option>
<option value="aud:a">Preschool</option>
<option value="aud:b">Primary</option>
@@ -252,6 +253,7 @@ function expand_sortby(){
<select name="limit" class="subtype">
<option value="" selected="selected" class="menuheader">Any Format</option>
+ <option value="(rtype:a and Bib-level=m)">Books</option>
<option value="ff8-23:d">Large print books</option>
<option value="ff8-23:f">Braille books</option>
<option value="g-format:6">Graphic novels</option>
Please sign in to comment.
Something went wrong with that request. Please try again.