[% PROCESS 'form-blocks.inc' %]
-<script type="text/javascript">
-//<![CDATA[
-
-$(document).ready(function(){
- $("#clear").on("click",function(e){
- e.preventDefault();
- finderjumpfull('blinddetail-biblio-search.pl?authid=0&index=[% index %]');
- });
- $("#createnew").on("click",function(e){
- e.preventDefault();
- finderjumpfull('authorities.pl?index=[% index %]&authtypecode=[% authtypecode %]');
- });
- // marclist
- $( "#value_any" ).autocomplete({
- source: function(request, response) {
- $.ajax({
- url: "/cgi-bin/koha/authorities/ysearch.pl",
- dataType: "json",
- data: {
- authtypecode : "[% authtypecode %]",
- term: request.term,
- op: "do_search",
- type: "intranet",
- and_or: "and",
- operator: "contains",
- orderby: "HeadingAsc",
- querytype: "marclist"
- },
- success: function(data) {
- response( $.map( data, function( item ) {
- return {
- label: item.summary,
- value: item.summary
- }
- }));
- }
- });
- },
- minLength: 3,
- });
- // mainentry
- $( "#value_main" ).autocomplete({
- source: function(request, response) {
- $.ajax({
- url: "/cgi-bin/koha/authorities/ysearch.pl",
- dataType: "json",
- data: {
- authtypecode : "[% authtypecode %]",
- term: request.term,
- op: "do_search",
- type: "intranet",
- and_or: "and",
- operator: "contains",
- orderby: "HeadingAsc",
- querytype: "mainentry"
- },
- success: function(data) {
- response( $.map( data, function( item ) {
- return {
- label: item.summary,
- value: item.summary
- }
- }));
- }
- });
- },
- minLength: 3,
- });
- // mainmainentry
- $( "#value_mainstr" ).autocomplete({
- source: function(request, response) {
- $.ajax({
- url: "/cgi-bin/koha/authorities/ysearch.pl",
- dataType: "json",
- data: {
- authtypecode : "[% authtypecode %]",
- term: request.term,
- op: "do_search",
- type: "intranet",
- and_or: "and",
- operator: "contains",
- orderby: "HeadingAsc",
- querytype: "mainmainentry"
- },
- success: function(data) {
- response( $.map( data, function( item ) {
- return {
- label: item.summary,
- value: item.summary
- }
- }));
- }
- });
- },
- minLength: 3,
- });
-});
-
-function finderjumpfull(page)
-{
- window.open(page,'','fullscreen,scrollbars');
-}
-
-//]]>
-</script>
<div id="toolbar" class="btn-toolbar">
- <div class="btn-group"><a href="#" id="clear" class="btn btn-small"><i class="icon-remove-sign"></i> Clear field</a></div>
- <div class="btn-group"><a href="#" id="createnew" class="btn btn-small"><i class="icon-plus"></i> Create new authority</a></div>
+ <div class="btn-group"><a href="#" id="clear" class="btn btn-default btn-sm"><i class="fa fa-trash"></i> Clear field</a></div>
+ <div class="btn-group"><a href="#" id="createnew" class="btn btn-default btn-sm"><i class="fa fa-plus"></i> Create new authority</a></div>
</div>
<form name="f" method="get" action="auth_finder.pl">
<input type="hidden" name="source" value="[% source %]" />
<input type="hidden" name="authtypecode" value="[% authtypecode %]" />
</li>
<li>
- <label for="mainmainentry">Main entry ($a only): </label>
+ <label for="mainmainentry">Search main heading ($a only): </label>
<input type="hidden" name="marclist" value="mainmainentry" />
<input type="hidden" name="and_or" value="and" />
<input type="hidden" name="excluding" value="" />
</li>
<li>
- <label for="mainentry">Main entry: </label>
+ <label for="mainentry">Search main heading: </label>
<input type="hidden" name="marclist" value="mainentry" />
<input type="hidden" name="and_or" value="and" />
<input type="hidden" name="excluding" value="" />
<input id="value_main" style="width:400px;" type="text" name="value_main" value="[% value_main |html %]" />
<div id="yvaluecontainermainentry"></div>
</li>
-
<li>
- <label for="marclistanywhere">Anywhere: </label>
- <input type="hidden" name="marclist" value="any" />
+ <label for="marclistheading">Search all headings: </label>
+ <input type="hidden" name="marclist" value="match" />
<input type="hidden" name="and_or" value="and" />
<input type="hidden" name="excluding" value="" />
- <select name="operator" id="marclistanywhere">
- [% IF ( operator_any == 'contains' ) %]
+ <select name="operator" id="marclistheading">
+ [% IF ( operator_match == 'contains' ) %]
<option value="contains" selected="selected">contains</option>
[% ELSE %]
<option value="contains">contains</option>
[% END %]
- [% IF ( operator_any == 'start' ) %]
+ [% IF ( operator_match == 'start' ) %]
<option value="start" selected="selected">starts with</option>
[% ELSE %]
<option value="start">starts with</option>
[% END %]
- [% IF ( operator_any == 'is' ) %]
+ [% IF ( operator_match == 'is' ) %]
<option value="is" selected="selected">is exactly</option>
[% ELSE %]
<option value="is">is exactly</option>
[% END %]
</select>
- <input id="value_any" style="width:400px;" type="text" name="value_any" value="[% value_any |html %]" />
- <div id="yvaluecontainermarclist"></div>
+ <input type="text" name="value_match" value="[% value_match |html %]" />
</li>
<li>
- <label for="marclistheading">Heading match: </label>
- <input type="hidden" name="marclist" value="match" />
+ <label for="marclistanywhere">Search entire record: </label>
+ <input type="hidden" name="marclist" value="all" />
<input type="hidden" name="and_or" value="and" />
<input type="hidden" name="excluding" value="" />
- <select name="operator" id="marclistheading">
- [% IF ( operator_match == 'contains' ) %]
+ <select name="operator" id="marclistanywhere">
+ [% IF ( operator_any == 'contains' ) %]
<option value="contains" selected="selected">contains</option>
[% ELSE %]
<option value="contains">contains</option>
[% END %]
- [% IF ( operator_match == 'start' ) %]
+ [% IF ( operator_any == 'start' ) %]
<option value="start" selected="selected">starts with</option>
[% ELSE %]
<option value="start">starts with</option>
[% END %]
- [% IF ( operator_match == 'is' ) %]
+ [% IF ( operator_any == 'is' ) %]
<option value="is" selected="selected">is exactly</option>
[% ELSE %]
<option value="is">is exactly</option>
[% END %]
</select>
- <input type="text" name="value_match" value="[% value_match |html %]" />
+ <input id="value_any" style="width:400px;" type="text" name="value_any" value="[% value_any |html %]" />
+ <div id="yvaluecontainermarclist"></div>
</li>
<li>
<label for="orderby">Sort by: </label>