4 [% PROCESS 'authorities-search-results.inc' %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Cataloging authority plugin › Koha</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% Asset.css("css/addbiblio.css") | $raw %]
11 <body id="auth_searchresultlist_auth" class="auth">
12 <div class="container-fluid">
14 <h1>Authority search results</h1>
15 [% INCLUDE 'auth-finder-search.inc' %]
16 [% IF ( total ) %]<div class="resultnumber">
17 [% IF ( displayprev ) %]
18 <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 %]&source=[% source | uri %]">
22 [% FOREACH number IN numbers %]
23 [% IF ( number.highlight ) %]
24 [% number.number | html %]
26 <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 %]&source=[% source | uri %]">
27 [% number.number | html %]</a>
30 [% IF ( displaynext ) %]
31 <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 %]&source=[% source | uri %]">
36 <p><strong>Results [% from | html %] to [% to | html %] of [% total | html %]</strong></p>
40 </div><p>No results found</p>[% END %]
42 [% IF ( result ) %]<div id="resultlist">
51 [% FOREACH resul IN result %]
53 <td>[% PROCESS authresult summary=resul.summary authid=resul.authid %]</td>
54 <td>[% resul.summary.label | html %]</td>
55 <td>[% resul.used | html %] times</td>
57 [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
58 [% FOREACH authorized IN resul.summary.authorized %]
59 <a href="javascript:doauth('[% resul.authid | uri %]', '[% index | uri %]', '[% loop.count | uri %]')" title="[% authorized.heading | html %]">[% loop.count | html %]</a>
62 <a class="btn btn-xs btn-default" href="javascript:doauth('[% resul.authid | html %]', '[% index | html %]', '')"><i class="fa fa-plus"></i> Choose</a>
65 <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>
71 <div class="resultnumber">
72 [% IF ( displayprev ) %]
73 <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 %]&source=[% source | uri %]">
77 [% FOREACH number IN numbers %]
78 [% IF ( number.highlight ) %]
79 [% number.number | html %]
81 <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 %]&source=[% source | uri %]">
82 [% number.number | html %]</a>
85 [% IF ( displaynext ) %]
86 <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 %]&source=[% source | uri %]">
92 [% INCLUDE 'authority-detail-modal.inc' %]
94 [% MACRO jsinclude BLOCK %]
96 var index = "[% index | html %]";
97 var authtypecode = "[% authtypecode | html %]";
99 [% Asset.js("js/auth-finder-search.js") | $raw %]
100 [% Asset.js("js/authorities-detail-modal.js") | $raw %]
102 function jumpfull(page){
103 window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');
106 function doauth(authid, index, repet){
107 [% IF source == 'auth' %]
108 var e = document.getElementById("relationship");
109 var relationship = e.options[e.selectedIndex].value;
111 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet + '&relationship=' + relationship);
113 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet);
119 [% INCLUDE 'intranet-bottom.inc' popup_window = 1 %]