X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fvirtualshelves%2Fshelves.tmpl;h=3f7b387682bbe4caa23847dab2926bab3e47352d;hb=a9c90b6dfb4e5648d9155294e0c911b2de9ecf43;hp=8b0a7d3055c36ec341167275bf479725b7723a74;hpb=5a93f0b806ae9cb151e665e48fd04cb129be4fe7;p=koha_fer diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl index 8b0a7d3055..3f7b387682 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl @@ -9,8 +9,8 @@ var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); $(document).ready(function(){ $("#addbarcode").focus(); - $("span.clearall").html("Clear All<\/a>"); - $("span.checkall").html("Select All<\/a>"); + $("span.clearall").html(""+_('Clear All')+"<\/a>"); + $("span.checkall").html(""+_('Select All')+"<\/a>"); $("#CheckAll").click(function(){ $(".checkboxed").checkCheckboxes(); return false; @@ -24,11 +24,26 @@ $(document).ready(function(){ function confirmDelete(message){ if (window.confirm(message)) { - location.href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves&shelves=1&DEL-=1"; + location.href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves&shelves=1&DEL-=1"; } else { return false; } } + + /** + * This function checks if the adequate number of records are checked for merging + */ + function MergeItems() { + var checkboxes = $("input:checkbox:checked"); + var nbCheckbox = checkboxes.length; + if (nbCheckbox != 2) { + alert(_('Two records must be selected for merging.')); + } else { + location.href='/cgi-bin/koha/cataloguing/merge.pl?biblionumber=' + checkboxes[0].value + '&biblionumber=' + checkboxes[1].value; + } + return false; + } + /** * This function checks all checkboxes if all are empty, * or unchecks all if any already checked. @@ -73,6 +88,26 @@ function placeHold () { $("#hold_form").submit(); return false; } + /** + * This function checks to make sure a list title is assigned + */ + function Check(f) { + var _alertString=""; + var alertString2; + + if(f.addshelf.value.length ==0){ + _alertString += _("- You must enter a List Name") + "\n"; + } + + if (_alertString.length==0) { + document.Aform.submit(); + } else { + alertString2 = _("Form not submitted because of the following problem(s)"); + alertString2 += "\n------------------------------------------------------------------------------------\n\n"; + alertString2 += _alertString; + alert(alertString2); + } + } //]]> @@ -120,17 +155,17 @@ function placeHold () {
-
+ " />
Contents of + -

- - -

+

| +

+ @@ -161,14 +196,8 @@ function placeHold () { " alt="" title="" /> @@ -179,14 +208,15 @@ function placeHold () { -
- - "> - - "> - - "> - - + +
-
-
+
- - + + +
+
+
@@ -226,10 +256,10 @@ function placeHold () { Create a new List
    -
  1. +
  2. Owner: " />
  3. - @@ -276,7 +306,7 @@ function placeHold () { -
    Cancel
    +
    Cancel
    @@ -324,6 +354,9 @@ function placeHold () { +
    + " /> +
    " /> @@ -346,10 +379,10 @@ function placeHold () { + - No Private Lists. +

    No Private Lists.

    -
    @@ -401,7 +434,7 @@ function placeHold () { - +