886b197b2d
This patch - fixes callnum and sn - Removes unecessary syspref transmission to the template. As the template directly reads the syspref Test plan: 1. Set sysprefs IntranetCatalogSearchPulldown and IntranetNumbersPreferPhrase to true 2. Go to staff:/cgi-bin/koha/catalogue/search.pl 3. "search for" → "call number" and write anything that won't match a call number in the field 4. Then you should see «No results match your search for 'callnum,phr: [...]» 5. Go to the staff homepage 6. Click on "Search the catalog" 7. Do the same search as previouly 8. Then you should see «No results match your search for 'callnum,wrdl: [...]» This shows that IntranetNumbersPreferPhrase isn't honored 9. Apply this patch 10. Redo the same two searches and see that phr will now be always used. So IntranetNumbersPreferPhrase is honored Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
53 lines
2.8 KiB
HTML
53 lines
2.8 KiB
HTML
[% USE Koha %]
|
|
<select class="advsearch" name="idx">
|
|
<option value="kw">Keyword</option>
|
|
<option value="kw,phr"> Keyword as phrase</option>
|
|
<option value="au">Author</option>
|
|
<option value="au,phr"> Author as phrase</option>
|
|
<option value="cpn"> Corporate name</option>
|
|
<option value="cfn"> Conference name</option>
|
|
<option value="cpn,phr"> Corporate name as phrase</option>
|
|
<option value="cfn,phr"> Conference name as phrase</option>
|
|
<option value="pn"> Personal name</option>
|
|
<option value="pn,phr"> Personal name as phrase</option>
|
|
<option value="ti">Title</option>
|
|
<option value="ti,phr"> Title as phrase</option>
|
|
<option value="se"> Series title</option>
|
|
<option value="su">Subject</option>
|
|
<option value="su,phr"> Subject as phrase</option>
|
|
[% IF ( expanded_options ) %]
|
|
<option value="su-br"> Subject and broader terms</option>
|
|
<option value="su-na"> Subject and narrower terms</option>
|
|
<option value="su-rl"> Subject and related terms</option>
|
|
[% END %]
|
|
<option value="bc">Barcode</option>
|
|
<option value="location">Shelving location</option>
|
|
[% IF ( Koha.Preference('IntranetNumbersPreferPhrase') ) %]
|
|
<option value="sn,phr">Standard number</option>
|
|
[% ELSE %]
|
|
<option value="sn">Standard number</option>
|
|
[% END %]
|
|
<option value="nb"> ISBN</option>
|
|
<option value="ns"> ISSN</option>
|
|
[% IF ( Koha.Preference('IntranetNumbersPreferPhrase') ) %]
|
|
<option value="callnum,phr"> Call number</option>
|
|
[% ELSE %]
|
|
<option value="callnum"> Call number</option>
|
|
[% END %]
|
|
<option value="ln,rtrn">Language</option>
|
|
<option value="nt">Notes/Comments</option>
|
|
[% IF (marcflavour != 'UNIMARC' ) %]
|
|
<option value="curriculum">Curriculum</option>
|
|
[% END %]
|
|
<option value="pb">Publisher</option>
|
|
<option value="pl">Publisher location</option>
|
|
|
|
[%# Use non-normalized st-year instead of st-numeric, %]
|
|
[%# since pubdate can include 'u' to signify unknown %]
|
|
[%# dates. See "Legal Characters" at: %]
|
|
[%# http://www.loc.gov/marc/bibliographic/bd008a.html %]
|
|
[%# This search is also for date ranges due to the %]
|
|
[%# special Zebra r=r CCL mapping for 'yr' %]
|
|
<option value="yr,st-year">Publication date (yyyy-yyyy)</option>
|
|
<option value="acqdate,st-date-normalized">Acquisition date (yyyy-mm-dd)</option>
|
|
</select>
|