2 <script type="text/javascript">
5 // prepare DOM for YUI Toolbar
7 $(document).ready(function() {
8 $("#newmenuc").empty();
12 // YUI Toolbar Functions
14 function yuiToolbar() {
17 <!-- TMPL_LOOP name="authtypesloop" -->{ text: "New <!-- TMPL_VAR name="authtypetext" -->", url: "/cgi-bin/koha/authorities/authorities.pl?authtypecode=<!-- TMPL_VAR name="value" -->"},
21 new YAHOO.widget.Button({
23 label: "New Authority",
24 name: "newmenubutton",
33 <span id="newmenuc"><form name="f2" method="post" action="authorities.pl">
34 <label for="add_authtypecode">New: </label>
35 <select id="add_authtypecode" name="authtypecode">
36 <!-- TMPL_LOOP name="authtypesloop" -->
37 <!-- TMPL_IF name="selected" -->
38 <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="authtypetext" --></option>
40 <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="authtypetext" --></option>
44 <input type="submit" value="Add" class="button" />