Jonathan Druart
a4c3455b8c
The author of Bug 15381 (me!) has mismatch the objects he was manipulating and forgotten to update a template. for the opac-aythorities-home, the variable is named authority_types, not authtypesloop. In opac-authoritiesdetail.pl, the $record is a MARC::Record and there is no authtypecode method. We need to retrieve the authtypecode using the new Koha::Authorities module. Test plan: Search for authorities at the OPAC and click on the detail link to go to the detail page. Without this patch, you will get errors. With this patch, the errors should have gone and everything should work as before bug 15381. Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> Works as described. Pull down for choosing the auth_type displayed again Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
90 lines
5.1 KiB
Text
90 lines
5.1 KiB
Text
[% USE Koha %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Authority search</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% BLOCK cssinclude %][% END %]
|
|
</head>
|
|
[% INCLUDE 'bodytag.inc' bodyid='opac-authorities' bodyclass='scrollto' %]
|
|
[% INCLUDE 'masthead.inc' %]
|
|
|
|
<div class="main">
|
|
<ul class="breadcrumb">
|
|
<li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
|
|
<li><a href="#">Authority search</a></li>
|
|
</ul>
|
|
|
|
<div class="container-fluid">
|
|
<div class="row-fluid">
|
|
[% IF ( OpacNav || OpacNavBottom ) %]
|
|
<div class="span2">
|
|
<div id="navigation">
|
|
[% INCLUDE 'navigation.inc' %]
|
|
</div>
|
|
</div>
|
|
<div class="span10">
|
|
[% ELSE %]
|
|
<div class="span12">
|
|
[% END %]
|
|
<div id="userauthhome" class="maincontent">
|
|
<form name="f" action="/cgi-bin/koha/opac-authorities-home.pl" method="get">
|
|
<input type="hidden" name="op" value="do_search" />
|
|
<input type="hidden" name="type" value="opac" />
|
|
<fieldset class="rows">
|
|
<legend>Authority search</legend>
|
|
<ol>
|
|
<li>
|
|
<label for="authtypecode">Authority type: </label>
|
|
<select name="authtypecode" id="authtypecode">
|
|
[% FOREACH authority_type IN authority_types %]
|
|
[% IF authority_type.authtypecode == authtypecode %]
|
|
<option value="[% authority_type.authtypecode%]" selected="selected">[% authority_type.authtypetext %]</option>
|
|
[% ELSE %]
|
|
<option value="[% authority_type.authtypecode%]">[% authority_type.authtypetext %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
<li>
|
|
<label for="anywhere">Search options:</label>
|
|
<select name="operator" id="anywhere">
|
|
<option value="contains">contains</option>
|
|
<option value="start">starts with</option>
|
|
<option value="is">is exactly</option>
|
|
</select>
|
|
</li>
|
|
<li>
|
|
<label for="value">Term(s):</label>
|
|
<input type="text" name="value" id="value" value="[% value %]" />
|
|
</li>
|
|
<li>
|
|
<label for="marclist">Where:</label>
|
|
<select name="marclist" id="marclist">
|
|
<option value="any" selected="selected">in the complete record</option>
|
|
<option value="match">in any heading</option>
|
|
<option value="mainentry">in main entry</option>
|
|
</select>
|
|
</li>
|
|
<li>
|
|
<input type="hidden" name="and_or" value="and" />
|
|
<input type="hidden" name="excluding" value="" />
|
|
<label for="orderby">Order by: </label>
|
|
<select name="orderby" id="orderby">
|
|
<option value="">None</option>
|
|
<option value="HeadingAsc" selected="selected">Heading ascendant</option>
|
|
<option value="HeadingDsc">Heading descendant</option>
|
|
</select>
|
|
</li>
|
|
</ol>
|
|
</fieldset>
|
|
<fieldset class="action">
|
|
<input type="submit" value="Submit" class="btn" />
|
|
</fieldset>
|
|
</form>
|
|
</div> <!-- / #userauthhome -->
|
|
</div> <!-- / .span10/12 -->
|
|
</div> <!-- / .row-fluid -->
|
|
</div> <!-- / .container-fluid -->
|
|
</div> <!-- / .main -->
|
|
|
|
[% INCLUDE 'opac-bottom.inc' %]
|
|
[% BLOCK jsinclude %][% END %]
|