Adding yuipath variable to help.pl, and doing some cleanup of help templates (standar...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / cataloging-toolbar.inc
1
2
3 <div id="toolbar">
4 <script type="text/javascript">
5         //<![CDATA[
6
7         // prepare DOM for YUI Toolbar
8
9          $(document).ready(function() {
10             $("#newmenuc").empty();
11             yuiToolbar();
12          });
13
14         // YUI Toolbar Functions
15
16         function yuiToolbar() {   
17         
18     <!-- TMPL_IF NAME="NOTMARC" -->
19             new YAHOO.widget.Button("newrecord");
20         <!-- TMPL_ELSE -->
21         
22                 var newmenu = [
23                         { text: _("Default Framework"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=" },
24                         <!-- TMPL_LOOP NAME="frameworkcodeloop" -->{ text: "<!-- TMPL_VAR name="frameworktext" -->", url: "/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=<!-- TMPL_VAR name="value" -->"},
25 <!-- /TMPL_LOOP -->
26                 ]
27
28             new YAHOO.widget.Button({
29                 type: "menu",
30                 label: _("New Record"),
31                 name: "newmenubutton",
32                 menu: newmenu,
33                 container: "newmenuc"
34             });  
35         }
36
37                         <!-- /TMPL_IF -->
38         //]]>
39         </script>
40         
41   <span id="newmenuc">
42     <!-- TMPL_IF NAME="NOTMARC" -->
43                 <a id="newrecord" href="/cgi-bin/koha/cataloging/addbiblio.pl">New Record</a>
44         <!-- TMPL_ELSE -->
45                 <form name="f" action="addbiblio.pl" method="post">
46                 <label for="frameworkcode">New Record with framework:</label>
47                         <select name="frameworkcode" id="frameworkcode">
48                                 <option value="">Default</option>
49                                 <!-- TMPL_LOOP NAME="frameworkcodeloop" -->
50                                         <option value="<!-- TMPL_VAR NAME="value" -->">
51                                                 <!-- TMPL_VAR NAME="frameworktext" -->
52                                         </option>
53                                 <!-- /TMPL_LOOP -->
54                         </select>
55                         <input type="submit" value="Add Record Without Search" />
56                 </form>
57   
58   </span>
59 </div>