Bug 12150 - Use more javascript string formatting in intranet for translated strings.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / authorities-toolbar.inc
1 <script type="text/javascript">
2 //<![CDATA[
3     $(document).ready(function() {
4         $("#delAuth").click(function(){
5             confirm_deletion();
6             return false;
7         });
8
9         $("#z3950submit").click(function(){
10             window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl","z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
11             return false;
12         });
13
14     });
15
16 //]]>
17 </script>
18
19 [% IF ( authid || CAN_user_editauthorities) %]
20
21 <div id="toolbar" class="btn-toolbar">
22
23 [% IF ( authid ) %]
24     [% IF ( CAN_user_editauthorities ) %]
25         <div class="btn-group"><a class="btn btn-small" id="editAuth" href="authorities.pl?authid=[% authid %]"><i class="icon-pencil"></i> Edit</a></div>
26         <div class="btn-group"><a class="btn btn-small" id="dupAuth" href="authorities.pl?authid=[% authid %]&amp;op=duplicate"><i class="icon-copy"></i> Duplicate</a></div>
27         [% UNLESS ( count ) %]
28             <div class="btn-group"><a href="#" class="btn btn-small" id="delAuth"><i class="icon-remove"></i> Delete</a></div>
29         [% END %]
30     [% END %]
31
32     <div class="btn-group">
33         <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-download-alt"></i> Save
34         <span class="caret"></span>
35         </a>
36         <ul class="dropdown-menu">
37             <li><a href="/cgi-bin/koha/authorities/export.pl?format=mads&amp;op=export&amp;authid=[% authid %]">MADS (XML)</a></li>
38             <li><a href="/cgi-bin/koha/authorities/export.pl?format=marcxml&amp;op=export&amp;authid=[% authid %]">MARCXML</a></li>
39             <li><a href="/cgi-bin/koha/authorities/export.pl?format=marc8&amp;op=export&amp;authid=[% authid %]">MARC (non-Unicode/MARC-8)</a></li>
40             <li><a href="/cgi-bin/koha/authorities/export.pl?format=utf8&amp;op=export&amp;authid=[% authid %]">MARC (Unicode/UTF-8)</a></li>
41         </ul>
42     </div>
43 [% END %]
44
45 [% IF ( CAN_user_editauthorities ) %]
46     <div class="btn-group">
47         <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-plus"></i> New authority
48         <span class="caret"></span>
49         </a>
50         <ul class="dropdown-menu">
51             [% FOREACH authtypesloo IN authtypesloop %]
52             <li><a href="/cgi-bin/koha/authorities/authorities.pl?authtypecode=[% authtypesloo.value %]">[% authtypesloo.authtypetext %]</a></li>
53             [% END %]
54         </ul>
55     </div>
56     <div class="btn-group">
57         <a class="btn btn-small" id="z3950submit" href="#"><i class="icon-search"></i> New from Z39.50</a>
58     </div>
59 [% END %]
60 </div>
61
62 [% END %]