4 [% PROCESS 'authorities-search-results.inc' %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Cataloging authority plugin</title>
7 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="auth_searchresultlist_auth" class="auth">
11 <div class="container-fluid">
13 <h1>Authority search results</h1>
14 [% INCLUDE 'auth-finder-search.inc' %]
15 [% IF ( total ) %]<div class="resultnumber">
16 [% IF ( displayprev ) %]
17 <a href="auth_finder.pl?startfrom=[% startfromprev | uri %]&authtypecode=[% authtypecode | uri %][% FOREACH searchdat IN searchdata %]&[% searchdat.term | uri %]=[% searchdat.val | uri %][% END %]&op=do_search&type=intranet&index=[% index | uri %]&tagid=[% tagid | uri %]&orderby=[% orderby | uri %]">
21 [% FOREACH number IN numbers %]
22 [% IF ( number.highlight ) %]
23 [% number.number | html %]
25 <a href="auth_finder.pl?startfrom=[% number.startfrom | uri %]&authtypecode=[% authtypecode | uri %][% FOREACH searchdat IN number.searchdata %]&[% searchdat.term | uri %]=[% searchdat.val | uri %][% END %]&op=do_search&type=intranet&index=[% index | uri %]&tagid=[% tagid | uri %]&orderby=[% orderby | uri %]">
26 [% number.number | html %]</a>
29 [% IF ( displaynext ) %]
30 <a href="auth_finder.pl?startfrom=[% startfromnext | uri %]&authtypecode=[% authtypecode | uri %][% FOREACH searchdat IN searchdata %]&[% searchdat.term | uri %]=[% searchdat.val | uri %][% END %]&op=do_search&type=intranet&index=[% index | uri %]&tagid=[% tagid | uri %]&orderby=[% orderby | uri %]">
35 <p><b>Results [% from | html %] to [% to | html %] of [% total | html %]</b></p>
39 </div><p>No results found</p>[% END %]
41 [% IF ( result ) %]<div id="resultlist">
49 [% FOREACH resul IN result %]
51 <td>[% PROCESS authresult summary=resul.summary %]</td>
52 <td>[% resul.used | html %] times</td>
54 [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
55 [% FOREACH authorized IN resul.summary.authorized %]
56 <a href="javascript:doauth('[% resul.authid | uri %]', '[% index | uri %]', '[% loop.count | uri %]')" title="[% authorized.heading | html %]">[% loop.count | html %]</a>
59 <a class="btn btn-xs btn-default" href="javascript:doauth('[% resul.authid | html %]', '[% index | html %]', '')"><i class="fa fa-plus"></i> Choose</a>
62 <td><a class="btn btn-xs btn-default" href="authorities.pl?authid=[% resul.authid | html %]"><i class="fa fa-pencil"></i> Edit authority</a></td>
68 <div class="resultnumber">
69 [% IF ( displayprev ) %]
70 <a href="auth_finder.pl?startfrom=[% startfromprev | uri %]&authtypecode=[% authtypecode | uri %][% FOREACH searchdat IN searchdata %]&[% searchdat.term | uri %]=[% searchdat.val | uri %][% END %]&op=do_search&type=intranetamp;&index=[% index | uri %]&tagid=[% tagid | uri %]&orderby=[% orderby | uri %]">
74 [% FOREACH number IN numbers %]
75 [% IF ( number.highlight ) %]
76 [% number.number | html %]
78 <a href="auth_finder.pl?startfrom=[% number.startfrom | uri %]&authtypecode=[% authtypecode | uri %][% FOREACH searchdat IN number.searchdata %]&[% searchdat.term | uri %]=[% searchdat.val | uri %][% END %]&op=do_search&type=intranet&index=[% index | uri %]&tagid=[% tagid | uri %]&orderby=[% orderby | uri %]">
79 [% number.number | html %]</a>
82 [% IF ( displaynext ) %]
83 <a href="auth_finder.pl?startfrom=[% startfromnext | uri %]&authtypecode=[% authtypecode | uri %][% FOREACH searchdat IN searchdata %]&[% searchdat.term | uri %]=[% searchdat.val | uri %][% END %]&op=do_search&type=intranet&index=[% index | uri %]&tagid=[% tagid | uri %]&orderby=[% orderby | uri %]">
89 [% MACRO jsinclude BLOCK %]
90 <script type="text/javascript">
91 var index = "[% index | html %]";
92 var authtypecode = "[% authtypecode | html %]";
94 [% Asset.js("js/auth-finder-search.js") | $raw %]
95 <script type="text/javascript">
97 function jumpfull(page){
98 window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');
101 function doauth(authid, index, repet){
102 [% IF source == 'auth' %]
103 var e = document.getElementById("relationship");
104 var relationship = e.options[e.selectedIndex].value;
106 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet + '&relationship=' + relationship);
108 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet);
114 [% INCLUDE 'intranet-bottom.inc' popup_window = 1 %]