3 [% PROCESS 'authorities-search-results.inc' %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Cataloging authority plugin</title>
6 [% INCLUDE 'doc-head-close.inc' %]
9 <body id="auth_searchresultlist_auth" class="auth">
10 <div class="container-fluid">
12 <h1>Authority search results</h1>
13 [% INCLUDE 'auth-finder-search.inc' %]
14 [% IF ( total ) %]<div class="resultnumber">
15 [% IF ( displayprev ) %]
16 <a href="auth_finder.pl?startfrom=[% startfromprev %]&authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&[% searchdat.term %]=[% searchdat.val %][% END %]&op=do_search&type=intranet&index=[% index %]&tagid=[% tagid %]&orderby=[% orderby %]">
20 [% FOREACH number IN numbers %]
21 [% IF ( number.highlight ) %]
24 <a href="auth_finder.pl?startfrom=[% number.startfrom %]&authtypecode=[% authtypecode %][% FOREACH searchdat IN number.searchdata %]&[% searchdat.term %]=[% searchdat.val %][% END %]&op=do_search&type=intranet&index=[% index %]&tagid=[% tagid %]&orderby=[% orderby %]">
25 [% number.number %]</a>
28 [% IF ( displaynext ) %]
29 <a href="auth_finder.pl?startfrom=[% startfromnext %]&authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&[% searchdat.term %]=[% searchdat.val %][% END %]&op=do_search&type=intranet&index=[% index %]&tagid=[% tagid %]&orderby=[% orderby %]">
34 <p><b>Results [% from %] to [% to %] of [% total %]</b></p>
38 </div><p>No results found</p>[% END %]
40 [% IF ( result ) %]<div id="resultlist">
48 [% FOREACH resul IN result %]
50 <td>[% PROCESS authresult summary=resul.summary %]</td>
51 <td>[% resul.used %] times</td>
53 [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
54 [% FOREACH authorized IN resul.summary.authorized %]
55 <a href="javascript:doauth('[% resul.authid %]', '[% index %]', '[% loop.count %]')" title="[% authorized.heading | html %]">[% loop.count %]</a>
58 <a class="btn btn-xs btn-default" href="javascript:doauth('[% resul.authid %]', '[% index %]', '')"><i class="fa fa-plus"></i> Choose</a>
61 <td><a class="btn btn-xs btn-default" href="authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> Edit authority</a></td>
67 <div class="resultnumber">
68 [% IF ( displayprev ) %]
69 <a href="auth_finder.pl?startfrom=[% startfromprev %]&authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&[% searchdat.term %]=[% searchdat.val %][% END %]&op=do_search&type=intranetamp;&index=[% index %]&tagid=[% tagid %]&orderby=[% orderby %]">
73 [% FOREACH number IN numbers %]
74 [% IF ( number.highlight ) %]
77 <a href="auth_finder.pl?startfrom=[% number.startfrom %]&authtypecode=[% authtypecode %][% FOREACH searchdat IN number.searchdata %]&[% searchdat.term %]=[% searchdat.val %][% END %]&op=do_search&type=intranet&index=[% index %]&tagid=[% tagid %]&orderby=[% orderby %]">
78 [% number.number %]</a>
81 [% IF ( displaynext ) %]
82 <a href="auth_finder.pl?startfrom=[% startfromnext %]&authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&[% searchdat.term %]=[% searchdat.val %][% END %]&op=do_search&type=intranet&index=[% index %]&tagid=[% tagid %]&orderby=[% orderby %]">
88 [% MACRO jsinclude BLOCK %]
89 <script type="text/javascript">
90 var index = "[% index %]";
91 var authtypecode = "[% authtypecode %]";
93 [% Asset.js("js/auth-finder-search.js") %]
94 <script type="text/javascript">
96 function jumpfull(page){
97 window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');
100 function doauth(authid, index, repet){
101 [% IF source == 'auth' %]
102 var e = document.getElementById("relationship");
103 var relationship = e.options[e.selectedIndex].value;
105 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet + '&relationship=' + relationship);
107 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet);
113 [% INCLUDE 'intranet-bottom.inc' popup_window = 1 %]