format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
type: 'text'
});
-function holdSelections() {
- var checkedBoxes = $(":checkbox:checked");
- if ($(checkedBoxes).size() == 0) {
- alert(MSG_NO_RECORD_SELECTED);
- } else {
- var bibs = "";
- $(checkedBoxes).each(function(){
- var name = $(this).attr("name");
- bib = name.substr(4);
- bibs += bib + "/";
- });
- document.location = "/cgi-bin/koha/opac-reserve.pl?biblionumbers="+bibs;
- }
-}
-
$(function() {
$("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear All")+"</a>");
$(".checkboxed").unCheckCheckboxes();
return false;
});
-});
-$(document).ready(function(){
- <!-- TMPL_IF NAME="TagsEnabled" -->
- $("#tagsel_tag").text("Tag");
- $("#tagsel_button").click(function(){
- tagAdded();
- return false;
- });
- <!-- /TMPL_IF -->
});
+
//]]>
</script>
</head>
<input type="submit" class="deleteshelf" value="Delete List" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));"/>
</form>
<!-- /TMPL_IF -->
- <a href="#" class="send tag_hides" onclick="open(CGIBIN+'opac-sendshelf.pl?shelfid=<!-- TMPL_VAR NAME="shelfnumber" -->','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100')">Send List</a>
- <!-- TMPL_IF NAME="RequestOnOpac" -->
- <a href="#" class="hold tag_hides" onclick="holdSelections();return false;"></a>
- <!-- /TMPL_IF -->
- <!-- /div -->
- <a id="tagsel_tag" href="#" onclick="tagSelected(); return false;"></a>
- <span id="tagsel_form" style="display:none">
- <label for="tagsel_new" style="display:inline">New Tag:</label>
- <input name="tagsel_new" id="tagsel_new" maxlength="100" style="display:inline"/>
- <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="tagsel_button"
- type="submit" value="Add" style="display:inline" />
- <a href="#" id="tagsel_cancel" onclick="tagCanceled(); return false;" style="display:inline">Cancel</a>
- </span>
</div>
<!-- TMPL_IF NAME="manageshelf" -->
<form action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform" class="checkboxed">