Koha/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc
Mathieu Saby e0cd4f898f Bug 8916: Hide Curriculum index in advanced search if marcflavor = unimarc
This patch hides curriculum option value in koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc and koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt if marcflavor = UNIMARC

To test
- set marcflavour to UNIMARC, this option should be hidden in the index list in opac and staff interface advanced search
- set marcflavour to MARC21, this option should be visible, as before

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
2012-10-22 17:23:29 +02:00

36 lines
2 KiB
HTML

<select class="advsearch" name="idx">
<option value="kw">Keyword</option>
<option value="au">Author</option>
<option value="au,phr">&nbsp;&nbsp;&nbsp;&nbsp; Author as phrase</option>
<option value="cpn">&nbsp;&nbsp;&nbsp;&nbsp; Corporate name</option>
<option value="cfn">&nbsp;&nbsp;&nbsp;&nbsp; Conference name</option>
<option value="cpn,phr">&nbsp;&nbsp;&nbsp;&nbsp; Corporate name as phrase</option>
<option value="cfn,phr">&nbsp;&nbsp;&nbsp;&nbsp; Conference name as phrase</option>
<option value="pn">&nbsp;&nbsp;&nbsp;&nbsp; Personal name</option>
<option value="pn,phr">&nbsp;&nbsp;&nbsp;&nbsp; Personal name as phrase</option>
<option value="ti">Title</option>
<option value="ti,phr">&nbsp;&nbsp;&nbsp;&nbsp; Title as phrase</option>
<option value="se">&nbsp;&nbsp;&nbsp;&nbsp; Series title</option>
<option value="su">Subject</option>
<option value="su,phr">&nbsp;&nbsp;&nbsp;&nbsp; Subject as phrase</option>
[% IF ( expanded_options ) %]
<option value="su-br">&nbsp;&nbsp;&nbsp;&nbsp; Subject and broader terms</option>
<option value="su-na">&nbsp;&nbsp;&nbsp;&nbsp; Subject and narrower terms</option>
<option value="su-rl">&nbsp;&nbsp;&nbsp;&nbsp; Subject and related terms</option>
[% END %]
<option value="bc">Barcode</option>
<option value="location">Shelving location</option>
<option value="sn">Standard number</option>
<option value="nb">&nbsp;&nbsp;&nbsp;&nbsp; ISBN</option>
<option value="ns">&nbsp;&nbsp;&nbsp;&nbsp; ISSN</option>
<option value="callnum">&nbsp;&nbsp;&nbsp;&nbsp; Call number</option>
<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>
<option value="yr">Publication date (yyyy)</option>
<option value="acqdate">Acquisition date (yyyy-mm-dd)</option>
</select>