Bug 8206: make authority search indexes consistent

This commit makes the search indexes used for search authorities in the
staff client and OPAC more consistent by using the Mainentry,
Match, and Any indexes for both, and adjusting the labels so that they
correctly describe what the indexes do.

Note that the Match index was chosen instead of the Match-heading index
because Match-heading has the additional attribute of being for phrase
searches and exact matches, whereas Match is used for keyword matching,
and is more applicable with GRS-1 indexed records (thanks to the
well-known limitations of GRS-1 and exact matching of headings).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
No problem detected in UNIMARC
This commit is contained in:
Jared Camins-Esakov 2012-07-15 09:30:58 -04:00 committed by Paul Poulain
parent 66cee2f590
commit 47126e10f9
2 changed files with 36 additions and 36 deletions

View file

@ -2,8 +2,8 @@
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1>
<!-- Begin Authorities Resident Search Box -->
<div id="header_search" class="residentsearch">
<div id="authority_search" class="residentsearch">
<p class="tip">Enter authority heading ($a):</p>
<div id="main_heading" class="residentsearch">
<p class="tip">Enter authorized heading:</p>
<form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
<input type="hidden" name="op" value="do_search" />
<input type="hidden" name="type" value="intranet" />
@ -17,36 +17,6 @@
[% END %]
[% END %]
</select>
<input type="hidden" name="marclist" value="mainmainentry" />
<select name="operator">
<option value="contains">contains</option>
<option value="start">starts with</option>
<option value="is">is exactly</option>
</select>
<input id="value_anywhere" type="text" name="value" value="[% value %]" />
<select name="orderby">
<option value="">None</option>
<option value="HeadingAsc" selected="selected">Heading A-Z</option>
<option value="HeadingDsc">Heading Z-A</option>
</select>
<input type="submit" class="submit" value="Submit" />
</form>
</div>
<div id="main_heading" class="residentsearch">
<p class="tip">Enter authority heading:</p>
<form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
<input type="hidden" name="op" value="do_search" />
<input type="hidden" name="type" value="intranet" />
<select name="authtypecode">
[% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
[% FOREACH authtypesloo IN authtypesloop %]
[% IF ( authtypesloo.selected ) %]
<option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
[% ELSE %]
<option value="[% authtypesloo.value %]">[% authtypesloo.authtypetext %]</option>
[% END %]
[% END %]
</select>
<input type="hidden" name="marclist" value="mainentry" />
<input type="hidden" name="and_or" value="and" />
<input type="hidden" name="excluding" value="" />
@ -64,6 +34,36 @@
<input type="submit" class="submit" value="Submit" />
</form>
</div>
<div id="matchheading_search" class="residentsearch">
<p class="tip">Enter any heading:</p>
<form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
<input type="hidden" name="op" value="do_search" />
<input type="hidden" name="type" value="intranet" />
<select name="authtypecode">
[% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
[% FOREACH authtypesloo IN authtypesloop %]
[% IF ( authtypesloo.selected ) %]
<option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
[% ELSE %]
<option value="[% authtypesloo.value %]">[% authtypesloo.authtypetext %]</option>
[% END %]
[% END %]
</select>
<input type="hidden" name="marclist" value="match" />
<select name="operator">
<option value="contains">contains</option>
<option value="start">starts with</option>
<option value="is">is exactly</option>
</select>
<input id="value_matchheading" type="text" name="value" value="[% value %]" />
<select name="orderby">
<option value="">None</option>
<option value="HeadingAsc" selected="selected">Heading A-Z</option>
<option value="HeadingDsc">Heading Z-A</option>
</select>
<input type="submit" class="submit" value="Submit" />
</form>
</div>
<div id="all_headings" class="residentsearch">
<p class="tip">Enter any authority field:</p>
<form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
@ -87,7 +87,7 @@
<option value="start">starts with</option>
<option value="is">is exactly</option>
</select>
<input id="value_mainmainentry" type="text" name="value" value="[% value %]" />
<input id="value_anywhere" type="text" name="value" value="[% value %]" />
<select name="orderby">
<option value="">None</option>
<option value="HeadingAsc" selected="selected">Heading A-Z</option>
@ -97,9 +97,9 @@
</form>
</div>
<ul>
<li><a href="#authority_search">Search authorities</a></li>
<li><a href="#main_heading">Search main heading</a></li>
<li><a href="#all_headings">Search all headings</a></li>
<li><a href="#matchheading_search">Search all headings</a></li>
<li><a href="#all_headings">Keyword search</a></li>
</ul>
</div><!-- /header_search -->
</div><!-- /gradient -->

View file

@ -30,8 +30,8 @@
<input type="text" name="value" id="value" value="[% value %]" />
<select name="marclist" id="marclist">
<option value="any" selected="selected">in keyword</option>
<option value="mainentry">in main entry</option>
<option value="match">in any heading</option>
<option value="mainentry">in main entry</option>
</select>
<input type="hidden" name="and_ora" value="and" />
<input type="hidden" name="excluding" value="" />