e208386aae
When creating a new subscription, you can click on "Search for Bilbio" to search into catalog. A popup opens with a text field for search terms and a combo-box to limit search. This combo-box uses the syspref AdvancedSearchTypes to know what list of values display. The bug is that the code acts as if AdvancedSearchTypes has always one value, but since Bug 7031, this syspref can have several values (item types, collection codes and locations). This patch removes the use of AdvancedSearchTypes syspref and defines search form with 2 limits: item types and collection codes (from authorised values CCODE). One or both of this information can be on biblio. [RM note: this isn't a true statement for the default configuration used by MARC21 libraries.] Searching by location seems to be useless because this information is always on item. If CCODE authorised value does not exist or is empty, the collection code filter is not displayed. Test plan : - Check CCODE authorised value exists with some values - Choose a biblio indexed with both itemtype and ccode indexes - Go to Serials module and click on "New subscription" - In form, click on "Search for Biblio" => The popup "serials/subscription-bib-search.pl" appears with two limits - Enter a word of biblio title, select its item type and select its collection code - Click on "Search" => You get the biblio Signed-off-by: David Noe <drnoe@bywatersolutions.com> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> While I am not sure how useful the collection code is for most libraries, where this is an item level value, this fixes a broken feature and works as described. Passes all tests and QA script. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
56 lines
1.8 KiB
Text
56 lines
1.8 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Serials › Catalog search</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
<body id="ser_subscription-bib-search" class="ser">
|
|
|
|
<div id="doc" class="yui-t7">
|
|
<div id="bd">
|
|
|
|
<h1>Catalog search</h1>
|
|
[% IF ( no_query ) %]
|
|
<div class="warning">You must enter a term to search on </div>
|
|
[% END %]
|
|
<form name="f" action="/cgi-bin/koha/serials/subscription-bib-search.pl" method="get">
|
|
<input type="hidden" name="op" value="do_search" />
|
|
<input type="hidden" name="type" value="intranet" />
|
|
<fieldset class="brief">
|
|
<ol>
|
|
<li>
|
|
<label for="q">Keyword: </label>
|
|
<input type="text" id="q" name="q" />
|
|
</li>
|
|
<li>
|
|
<label for="itemtypelimit">Limit item type to: </label>
|
|
<select name="itemtypelimit" id="itemtypelimit">
|
|
<option value="">All</option>
|
|
[%- FOREACH itemtypeloo IN itemtypeloop %]
|
|
<option value="[% itemtypeloo.code %]">
|
|
[% itemtypeloo.description |html %]
|
|
</option>
|
|
[%- END %]
|
|
</select>
|
|
</li>
|
|
[%- IF ccodeloop %]
|
|
<li>
|
|
<label for="ccodelimit">Limit collection code to: </label>
|
|
<select name="ccodelimit" id="ccodelimit">
|
|
<option value="">All</option>
|
|
[%- FOREACH ccodeloo IN ccodeloop %]
|
|
<option value="[% ccodeloo.code %]">
|
|
[% ccodeloo.description |html %]
|
|
</option>
|
|
[%- END %]
|
|
</select>
|
|
</li>
|
|
[%- END %]
|
|
</ol>
|
|
</fieldset>
|
|
<fieldset class="action">
|
|
<input type="submit" value="Search" />
|
|
</fieldset>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|