2 <script type="text/javascript">
5 // prepare DOM for YUI Toolbar
7 $(document).ready(function() {
8 $("#editlistc").empty();
9 $("#deletelistc").remove();
10 $("#sendlistc").empty();
11 $("#downloadlistc").empty();
12 $("#printlistc").empty();
13 $("#sendlistc").before("<li id=\"downloadmenuc\"><\/li>");
17 <!-- TMPL_IF NAME="viewshelf" --> function sendList(){
18 open(CGIBIN+'virtualshelves/sendshelf.pl?shelfid=<!-- TMPL_VAR NAME="shelfnumber" -->','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100');
21 function downloadList(){
22 open(CGIBIN+'virtualshelves/downloadshelf.pl?shelfid=<!-- TMPL_VAR NAME="shelfnumber" -->','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100');
25 // YUI Toolbar Functions
27 function yuiToolbar() {
28 newshelfButton = new YAHOO.widget.Button("newshelf");
29 <!-- TMPL_IF NAME="viewshelf" --><!-- TMPL_IF name="manageshelf" -->editshelfButton = new YAHOO.widget.Button("editshelf");
32 { text: _("Edit list"), url: "/cgi-bin/koha/virtualshelves/shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->&op=modif" },
33 { text: _("Delete list"), onclick: {fn:function(){confirmDelete(_("Are you sure you want to delete this list?"))}}}
37 { text: _("iso2709"), url: "/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=iso2709&shelfid=<!-- TMPL_VAR NAME="shelfnumber" -->" },
38 { text: _("RIS"), url: "/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=ris&shelfid=<!-- TMPL_VAR NAME="shelfnumber" -->" },
39 { text: _("BibTex"), url: "/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=bibtex&shelfid=<!-- TMPL_VAR NAME="shelfnumber" -->" },
40 <!-- TMPL_LOOP NAME="csv_profiles" -->
41 { text: _("CSV - <!-- TMPL_VAR NAME="profile" -->"), url: "/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=<!-- TMPL_VAR NAME="export_format_id" -->&shelfid=<!-- TMPL_VAR NAME="shelfnumber" -->" },
45 new YAHOO.widget.Button({
47 label: _("Download list"),
48 name: "downloadmenubutton",
50 container: "downloadmenuc"
53 new YAHOO.widget.Button({
56 name: "editmenubutton",
58 container: "editlistc"
62 downloadlistButton = new YAHOO.widget.Button({
65 label: _("Download list"),
66 container: "downloadlistc",
67 onclick: {fn:downloadList}
69 sendlistButton = new YAHOO.widget.Button({
72 label: _("Send list"),
73 container: "sendlistc",
74 onclick: {fn:sendList}
76 printlistButton = new YAHOO.widget.Button({
79 label: _("Print list"),
80 container: "printlistc",
81 onclick: {fn:function(){print();}}
89 <li><a id="newshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1">New list</a></li>
90 <!-- TMPL_IF NAME="viewshelf" --><!-- TMPL_IF name="manageshelf" -->
91 <li id="editlistc"><a id="editshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->&op=modif">Edit list</a></li>
92 <li id="deletelistc"><!-- TMPL_IF NAME="showprivateshelves" --><a id="deleteshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves&shelves=1&DEL-<!-- TMPL_VAR NAME="shelfnumber" -->=1">Delete list</a><!-- TMPL_ELSE --><a id="deleteshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1&DEL-<!-- TMPL_VAR NAME="shelfnumber" -->=1">Delete list</a><!-- /TMPL_IF --></li>
94 <li id="sendlistc"><a href="#" id="sendlist">Send list</a></li>
95 <li id="printlistc"><a id="printbiblio" href="#">Print list</a></li>