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' %]
6 <style type="text/css">
7 #custom-doc { width:51.46em;*width:50.17em;min-width:675px; margin:auto; text-align:left; }
11 <body id="auth_searchresultlist_auth" class="auth">
12 <div id="custom-doc" class="yui-t7">
16 <div class="yui-b"><div class="yui-g">
18 <h1>Authority search results</h1>
19 [% INCLUDE 'auth-finder-search.inc' %]
20 [% IF ( total ) %]<div id="resultnumber">
21 [% IF ( displayprev ) %]
22 <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 %]">
26 [% FOREACH number IN numbers %]
27 [% IF ( number.highlight ) %]
30 <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 %]">
31 [% number.number %]</a>
34 [% IF ( displaynext ) %]
35 <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 %]">
40 <p><b>Results [% from %] to [% to %] of [% total %]</b></p>
44 </div><p>No results found</p>[% END %]
46 [% IF ( result ) %]<div id="resultlist">
54 [% FOREACH resul IN result %]
56 <td>[% PROCESS authresult summary=resul.summary %]</td>
57 <td>[% resul.used %] times</td>
59 [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
60 [% FOREACH authorized IN resul.summary.authorized %]
61 <a href="javascript:doauth('[% resul.authid %]', '[% index %]', '[% loop.count %]')" title="[% authorized.heading | html %]">[% loop.count %]</a>
64 <a class="btn btn-xs btn-default" href="javascript:doauth('[% resul.authid %]', '[% index %]', '')"><i class="fa fa-plus"></i> Choose</a>
67 <td><a class="btn btn-xs btn-default" href="authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> Edit authority</a></td>
73 <div id="resultnumber">
74 [% IF ( displayprev ) %]
75 <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 %]">
79 [% FOREACH number IN numbers %]
80 [% IF ( number.highlight ) %]
83 <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 %]">
84 [% number.number %]</a>
87 [% IF ( displaynext ) %]
88 <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 %]">
98 [% MACRO jsinclude BLOCK %]
99 <script type="text/javascript">
100 var index = "[% index %]";
101 var authtypecode = "[% authtypecode %]";
103 <script type="text/javascript" src="[% interface %]/[% theme %]/js/auth-finder-search_[% KOHA_VERSION %].js"></script>
104 <script type="text/javascript">
106 function jumpfull(page){
107 window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');
110 function doauth(authid, index, repet){
111 [% IF source == 'auth' %]
112 var e = document.getElementById("relationship");
113 var relationship = e.options[e.selectedIndex].value;
115 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet + '&relationship=' + relationship);
117 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet);
123 [% INCLUDE 'intranet-bottom.inc' popup_window = 1 %]