Lines 1-9
Link Here
|
1 |
[% USE raw %] |
1 |
[% USE raw %] |
|
|
2 |
[% USE Asset %] |
2 |
[% SET footerjs = 1 %] |
3 |
[% SET footerjs = 1 %] |
3 |
[% PROCESS 'authorities-search-results.inc' %] |
4 |
[% PROCESS 'authorities-search-results.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
<title>Authority search results › Authorities › Koha</title> |
6 |
<title>Authority search results › Authorities › Koha</title> |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
|
|
8 |
[% Asset.css("css/addbiblio.css") | $raw %] |
7 |
</head> |
9 |
</head> |
8 |
|
10 |
|
9 |
<body id="auth_searchresultlist" class="auth"> |
11 |
<body id="auth_searchresultlist" class="auth"> |
Lines 78-83
Link Here
|
78 |
<li><a onclick='return confirm_deletion("[% resul.authid | html %]")'><i class="fa fa-trash"></i> Delete</a></li> |
80 |
<li><a onclick='return confirm_deletion("[% resul.authid | html %]")'><i class="fa fa-trash"></i> Delete</a></li> |
79 |
[% END %] |
81 |
[% END %] |
80 |
</ul> |
82 |
</ul> |
|
|
83 |
<span class="authorizedheading"> |
84 |
<a data-authid="[% resul.authid | html %]" href="/cgi-bin/koha/authorities/detail.pl?authid=[% resul.authid | uri %]" class="btn btn-default btn-xs"><i class="fa fa-eye"></i> MARC preview</a> |
85 |
</span> |
81 |
</div> |
86 |
</div> |
82 |
</td> |
87 |
</td> |
83 |
[% END %] |
88 |
[% END %] |
Lines 86-91
Link Here
|
86 |
</table> |
91 |
</table> |
87 |
</div> |
92 |
</div> |
88 |
|
93 |
|
|
|
94 |
[% INCLUDE 'authority-detail-modal.inc' %] |
95 |
|
89 |
<div class="pages">[% pagination_bar | $raw %]</div> |
96 |
<div class="pages">[% pagination_bar | $raw %]</div> |
90 |
|
97 |
|
91 |
[% ELSE %] |
98 |
[% ELSE %] |
Lines 96-101
Link Here
|
96 |
|
103 |
|
97 |
[% MACRO jsinclude BLOCK %] |
104 |
[% MACRO jsinclude BLOCK %] |
98 |
[% INCLUDE 'authorities_js.inc' %] |
105 |
[% INCLUDE 'authorities_js.inc' %] |
|
|
106 |
<script> |
107 |
$(document).ready(function(){ |
108 |
$(".authorizedheading a").on("click", function(e){ |
109 |
e.preventDefault(); |
110 |
var authid = $(this).data("authid"); |
111 |
|
112 |
$.get("/cgi-bin/koha/authorities/detail.pl", { authid : authid }, function( data ){ |
113 |
var auth_detail = $(data).find("#authoritiestabs"); |
114 |
auth_detail.find("ul").remove(); |
115 |
$("#authorityDetail .modal-title").html(_("Authority") + " " + authid ); |
116 |
$("#authorityDetail .modal-body").html( auth_detail ); |
117 |
}); |
118 |
|
119 |
$("#authorityDetail").modal("show"); |
120 |
}); |
121 |
$("#authorityDetail").on("hidden.bs.modal", function(){ |
122 |
$("#authorityDetail .modal-body, #authorityDetail .modal-title").html(""); |
123 |
$("#authorityDetail .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /></div>"); |
124 |
}); |
125 |
}); |
126 |
</script> |
99 |
[% END %] |
127 |
[% END %] |
100 |
|
128 |
|
101 |
[% INCLUDE 'intranet-bottom.inc' %] |
129 |
[% INCLUDE 'intranet-bottom.inc' %] |
102 |
- |
|
|