koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/koha-tmpl/opac-tmpl/prog/en/includes baske... [rel_3_0]


From: Antoine Farnault
Subject: [Koha-cvs] koha/koha-tmpl/opac-tmpl/prog/en/includes baske... [rel_3_0]
Date: Mon, 15 Jan 2007 17:11:03 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_3_0
Changes by:     Antoine Farnault <toins>        07/01/15 17:11:03

Modified files:
        koha-tmpl/opac-tmpl/prog/en/includes: basket.js 

Log message:
        new function addSelToShelf to add multiple biblios to one shelf from 
the basket.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/opac-tmpl/prog/en/includes/basket.js?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.3&r2=1.1.2.4

Patches:
Index: basket.js
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/opac-tmpl/prog/en/includes/basket.js,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -b -r1.1.2.3 -r1.1.2.4
--- basket.js   9 Jan 2007 08:51:39 -0000       1.1.2.3
+++ basket.js   15 Jan 2007 17:11:03 -0000      1.1.2.4
@@ -86,7 +86,7 @@
     }
 }
 
-function addRecord(val, selection) {
+function addRecord(val, selection,NoMsgAlert) {
     var nameCookie = "bib_list";
     var valCookie = readCookie(nameCookie);
     var write = 0;
@@ -110,8 +110,10 @@
             if (selection) {
                 return 0;
             }
+            if (! NoMsgAlert ) {
             alert(MSG_RECORD_IN_BASKET);
         }
+        }
         else {
             valCookie += val + '/';
             write = 1;
@@ -124,8 +126,10 @@
         if (selection) { // when adding a selection of records
             return 1;
         }
+        if (! NoMsgAlert ) {
         alert(MSG_RECORD_ADDED);
     }
+    }
 }
 
 
@@ -144,6 +148,10 @@
     }
 }
 
+function addSelToShelf() {
+    var items = document.getElementById('records').value;
+    document.location = 
"/cgi-bin/koha/opac-addbookbybiblionumber.pl?biblionumber="+items;
+}
 
 function addSelRecords(valSel) { // function for adding a selection of biblios 
to the basket
                                                 // from the results list
@@ -192,7 +200,6 @@
     document.myform.records.value = str;
 }
 
-
 function delSelRecords() {
     var recordsSel = 0;
     var end = 0;
@@ -246,7 +253,6 @@
     }
 }
 
-
 function delRecord (n, s) {
     var re = /\d/;
     var aux = s;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]