2 [% PROCESS 'authorities-search-results.inc' %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Cataloging authority plugin</title>
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="auth_searchresultlist_auth" class="auth">
9 <div class="container-fluid">
11 <h1>Authority search results</h1>
12 [% INCLUDE 'auth-finder-search.inc' %]
13 [% IF ( total ) %]<div class="resultnumber">
14 [% IF ( displayprev ) %]
15 <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 %]">
19 [% FOREACH number IN numbers %]
20 [% IF ( number.highlight ) %]
23 <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 %]">
24 [% number.number %]</a>
27 [% IF ( displaynext ) %]
28 <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 %]">
33 <p><b>Results [% from %] to [% to %] of [% total %]</b></p>
37 </div><p>No results found</p>[% END %]
39 [% IF ( result ) %]<div id="resultlist">
47 [% FOREACH resul IN result %]
49 <td>[% PROCESS authresult summary=resul.summary %]</td>
50 <td>[% resul.used %] times</td>
52 [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
53 [% FOREACH authorized IN resul.summary.authorized %]
54 <a href="javascript:doauth('[% resul.authid %]', '[% index %]', '[% loop.count %]')" title="[% authorized.heading | html %]">[% loop.count %]</a>
57 <a class="btn btn-xs btn-default" href="javascript:doauth('[% resul.authid %]', '[% index %]', '')"><i class="fa fa-plus"></i> Choose</a>
60 <td><a class="btn btn-xs btn-default" href="authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> Edit authority</a></td>
66 <div class="resultnumber">
67 [% IF ( displayprev ) %]
68 <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 %]">
72 [% FOREACH number IN numbers %]
73 [% IF ( number.highlight ) %]
76 <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 %]">
77 [% number.number %]</a>
80 [% IF ( displaynext ) %]
81 <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 %]">
87 [% MACRO jsinclude BLOCK %]
88 <script type="text/javascript">
89 var index = "[% index %]";
90 var authtypecode = "[% authtypecode %]";
92 <script type="text/javascript" src="[% interface %]/[% theme %]/js/auth-finder-search_[% KOHA_VERSION %].js"></script>
93 <script type="text/javascript">
95 function jumpfull(page){
96 window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');
99 function doauth(authid, index, repet){
100 [% IF source == 'auth' %]
101 var e = document.getElementById("relationship");
102 var relationship = e.options[e.selectedIndex].value;
104 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet + '&relationship=' + relationship);
106 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet);
112 [% INCLUDE 'intranet-bottom.inc' popup_window = 1 %]