Bug 16816: Do not copy parameters used when duplicating a report
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / virtualshelves-toolbar.inc
1 <script type="text/javascript">
2 //<![CDATA[
3
4 [% IF op == 'view' %]
5
6     function sendList(){
7         open(CGIBIN+'virtualshelves/sendshelf.pl?shelfid=[% shelf.shelfnumber %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100');
8      }
9
10      $(document).ready(function() {
11         $("#sendlist").click(function(){
12             sendList();
13             return false;
14         });
15         $("#deleteshelf").click(function(e){
16             if(confirm(_("Are you sure you want to delete this list?"))){
17                 return true;
18             } else {
19                 e.preventDefault();
20             }
21         });
22      });
23
24 [% END %]
25
26 //]]>
27 </script>
28
29 <div id="toolbar" class="btn-toolbar">
30     <div class="btn-group"><a id="newshelf" class="btn btn-small" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=add_form&amp;referer=[% op %]"><i class="fa fa-plus"></i> New list</a></div>
31
32     [% IF shelf AND op == 'view' %]
33         [% IF can_manage_shelf %]
34         <div class="btn-group">
35             <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="fa fa-pencil"></i> Edit <span class="caret"></span></button>
36             <ul class="dropdown-menu">
37                 <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=edit_form&amp;shelfnumber=[% shelf.shelfnumber %]&amp;referer=[% op %]">Edit list</a></li>
38                 <li><a id="deleteshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=delete&amp;shelfnumber=[% shelf.shelfnumber %]">Delete list</a></li>
39             </ul>
40         </div>
41         [% END %]
42
43         <div class="btn-group">
44             <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="fa fa-download"></i> Download list <span class="caret"></span></button>
45                 <ul class="dropdown-menu">
46                     <li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=iso2709&amp;shelfid=[% shelf.shelfnumber %]">iso2709</a></li>
47                     <li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=ris&amp;shelfid=[% shelf.shelfnumber %]">RIS</a></li>
48                     <li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=bibtex&amp;shelfid=[% shelf.shelfnumber %]">BibTex</a></li>
49                     [% FOREACH csv_profile IN csv_profiles %]
50                         <li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=[% csv_profile.export_format_id %]&amp;shelfid=[% shelf.shelfnumber %]">CSV - [% csv_profile.profile %]</a></li>
51                     [% END %]
52                 </ul>
53         </div>
54         <div class="btn-group"><a class="btn btn-small" href="#" id="sendlist"><i class="fa fa-envelope"></i> Send list</a></div>
55         <div class="btn-group"><a class="btn btn-small" id="printlist" target="_blank" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber %]&amp;print=1"><i class="fa fa-print"></i> Print list</a></div>
56     [% END %]
57 </div>