From: Bill Erickson Date: Wed, 29 Oct 2014 21:10:01 +0000 (-0400) Subject: KMAIN-954 Make barcode on precat checkout alert more pronounced X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cccf3af30eeaf57cc573e3f44dde2cb9bf70a9b1;p=working%2FEvergreen.git KMAIN-954 Make barcode on precat checkout alert more pronounced Cross-port: b423b64 --- diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index d1c3f2b7f8..106d38fe48 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -2691,6 +2691,7 @@ + diff --git a/Open-ILS/xul/staff_client/chrome/content/util/error.js b/Open-ILS/xul/staff_client/chrome/content/util/error.js index 4523e2d82c..6b2a6690f4 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/error.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/error.js @@ -347,9 +347,13 @@ util.error.prototype = { dump('yns_alert:\n\ts = ' + s + '\n\ttitle = ' + title + '\n\tb1 = ' + b1 + '\n\tb2 = ' + b2 + '\n\tb3 = ' + b3 + '\n\tc = ' + c + '\n'); - //FIXME - is that good enough of an escape job? - s = s.replace(/&/g, '&').replace(//g, '>'); - + // Check to see if we are in pre-cat checkout so we don't strip out html code + var barcode_number = s.match(/\d+/); + var test_string = document.getElementById('circStrings').getFormattedString('staff.circ.checkout.not_cataloged.confirm', barcode_number); + if(s !== test_string) { + //FIXME - is that good enough of an escape job? + s = s.replace(/&/g, '&').replace(//g, '>'); + } var xml = '' + ''; diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index 626ae4b031..cee2eee4ce 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -772,7 +772,7 @@ circ.checkout.prototype = { '/xul/server/skin/media/images/book_question.png' ) ) { - obj.data.dummy_title = ''; obj.data.dummy_author = ''; obj.data.stash('dummy_title','dummy_author'); + obj.data.dummy_title = ''; obj.data.dummy_author = ''; obj.data.dummy_barcode = params.barcode; obj.data.stash('dummy_title','dummy_author', 'dummy_barcode'); JSAN.use('util.window'); var win = new util.window(); win.open(urls.XUL_PRE_CAT, 'dummy_fields', 'chrome,resizable,modal'); obj.data.stash_retrieve(); diff --git a/Open-ILS/xul/staff_client/server/circ/pre_cat_fields.xul b/Open-ILS/xul/staff_client/server/circ/pre_cat_fields.xul index 046f2b2141..eaed15d0a3 100644 --- a/Open-ILS/xul/staff_client/server/circ/pre_cat_fields.xul +++ b/Open-ILS/xul/staff_client/server/circ/pre_cat_fields.xul @@ -72,6 +72,7 @@ x.setAttribute('value', g.data.precat_circ_modifier); x.value = g.data.precat_circ_modifier; } + document.getElementById('dummy_barcode').value = g.data.dummy_barcode; document.getElementById('dummy_title').focus(); } @@ -111,6 +112,10 @@ + + diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties index 529fbbc497..338dc6b08e 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties @@ -52,7 +52,7 @@ staff.circ.checkout.override.item_deposit_required.warning=A billing for an Item staff.circ.checkout.override.item_rental_fee_required.warning=A billing for an Item Rental Fee will be added to the patron's account if this action is overrided. staff.circ.checkout.override.will_auto=If overridden now, subsequent checkouts during this patron's session will auto-override this event. staff.circ.checkout.error_retrieving_copy_status=Could not retrieve the name of the current status for the copy -staff.circ.checkout.not_cataloged.confirm=Barcode %1$s was either mis-scanned or is a non-cataloged item. Checkout as a pre-cataloged item? +staff.circ.checkout.not_cataloged.confirm=Barcode %1$s was either mis-scanned or is a non-cataloged item. Checkout as a pre-cataloged item? staff.circ.pre_cataloged=Pre-cataloged staff.circ.non_cataloged=Non-cataloged staff.circ.checkout.cancelled=Checkout cancelled diff --git a/Open-ILS/xul/staff_client/server/skin/global.css b/Open-ILS/xul/staff_client/server/skin/global.css index 87c0c9e70a..9772a752cc 100644 --- a/Open-ILS/xul/staff_client/server/skin/global.css +++ b/Open-ILS/xul/staff_client/server/skin/global.css @@ -157,3 +157,9 @@ listitem { border-bottom: solid thin black; } .oils_event { color: red; } +.barcode_highlight { + color: red; + font-weight: bold; + font-size: large; +) +