added first draft bookbag warning on first new bb
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 9 Mar 2006 22:43:45 +0000 (22:43 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 9 Mar 2006 22:43:45 +0000 (22:43 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3312 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/myopac.js
Open-ILS/web/opac/skin/default/xml/myopac/myopac_bookbags.xml

index e230088..4065611 100644 (file)
@@ -773,6 +773,13 @@ function myOPACShowBBItem(r) {
 function myOPACCreateBookbag() {
        var name = $('myopac_bookbag_new_name').value;  
        if(!name) return;
+
+       var exists = false;
+       for( var c in fleshedContainers ) { exists = true; break; }
+
+       /* let them know what they are getting into... */
+       if(!exists) if(!confirm($('bb_create_warning').innerHTML)) return;
+
        var result = containerCreate( name, $('bb_public_yes').checked );
        var code = checkILSEvent(result);
        if(code) { alertILSEvent(code); return; }
index fa45e66..c826d2f 100644 (file)
                Are you sure you wish to hide this bookbag?
        </span>
 
-       <span id='myopac_bb_update_success'>
+       <span id='myopac_bb_update_success' class='hide_me'>
                The Bookbag was successfully updated.
        </span>
 
+       <span id='bb_create_warning' class='hide_me'>
+               Warning: Adding items to a bookbag creates a link between you and the
+               items in the database.  The contents of the bookbag are NOT publicly 
+               viewable unless the bookbag is shared. However, if you prefer not to
+               have any link between your patron record and a particular item or items,
+               we suggest that you do not place said items in a bookbag or that you 
+               avoid using bookbags all together.  Thank you.
+       </span>
+
 </div>