4 [% PROCESS 'i18n.inc' %]
6 [% PROCESS 'authorities-search-results.inc' %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% FILTER collapse %]
9 [% t("Cataloging authority plugin") | html %] ›
10 [% t("Koha") | html %]
12 [% INCLUDE 'doc-head-close.inc' %]
13 [% Asset.css("css/addbiblio.css") | $raw %]
20 list-style-type: none;
25 <body id="auth_searchresultlist_auth" class="auth">
26 <div class="container-fluid">
28 <h1>Authority search results</h1>
29 [% INCLUDE 'auth-finder-search.inc' %]
30 [% IF ( total ) %]<div class="resultnumber">
31 [% IF ( displayprev ) %]
32 <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 %]">
36 [% FOREACH number IN numbers %]
37 [% IF ( number.highlight ) %]
38 [% number.number | html %]
40 <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 %]">
41 [% number.number | html %]</a>
44 [% IF ( displaynext ) %]
45 <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 %]">
50 <p><strong>Results [% from | html %] to [% to | html %] of [% total | html %]</strong></p>
55 <div class="dialog message">
56 <p>No results found</p>
60 [% IF ( result ) %]<div id="resultlist">
66 [% IF Koha.Preference('ShowHeadingUse') %]
67 <th class="heading_use">Heading use</th>
72 [% FOREACH resul IN result %]
76 [% resul.html | $raw %]
78 [% PROCESS authresult summary=resul.summary authid=resul.authid auth_preview=1 %]
81 <td>[% resul.summary.label | html %]</td>
83 [% IF resul.used > 0 %]
84 <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&idx=an,phr&q=[% resul.authid | uri %]" class="button">[% resul.used | html %] times</a>
89 [% IF Koha.Preference('ShowHeadingUse') %]
90 <td class="heading_use"><ul class="usefor">
91 <li>[% IF resul.main %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Main/Added Entry</li>
92 <li>[% IF resul.subject %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Subject</li>
93 <li>[% IF resul.series %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Series Title</li>
97 [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
98 [% FOREACH authorized IN resul.summary.authorized %]
99 <a href="javascript:doauth('[% resul.authid | uri %]', '[% index | uri %]', '[% loop.count | uri %]')" title="[% authorized.heading | html %]">[% loop.count | html %]</a>
102 <a class="btn btn-xs btn-default" href="javascript:doauth('[% resul.authid | html %]', '[% index | html %]', '')"><i class="fa fa-plus"></i> Choose</a>
105 <td><a class="btn btn-xs btn-default" href="authorities.pl?authid=[% resul.authid | html %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit authority</a></td>
111 <div class="resultnumber">
112 [% IF ( displayprev ) %]
113 <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 %]">
117 [% FOREACH number IN numbers %]
118 [% IF ( number.highlight ) %]
119 [% number.number | html %]
121 <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 %]">
122 [% number.number | html %]</a>
125 [% IF ( displaynext ) %]
126 <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 %]">
132 [% INCLUDE 'authority-detail-modal.inc' %]
134 [% MACRO jsinclude BLOCK %]
136 var index = "[% index | html %]";
137 var authtypecode = "[% authtypecode | html %]";
139 [% Asset.js("js/auth-finder-search.js") | $raw %]
140 [% Asset.js("js/authorities-detail-modal.js") | $raw %]
142 function jumpfull(page){
143 window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');
146 function doauth(authid, index, repet){
147 [% IF source == 'auth' %]
148 var e = document.getElementById("relationship");
149 var relationship = e.options[e.selectedIndex].value;
151 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet + '&relationship=' + relationship);
153 jumpfull('blinddetail-biblio-search.pl?authid=' + authid + '&index=' + index + '&repet=' + repet);
159 [% INCLUDE 'intranet-bottom.inc' popup_window = 1 %]