add workstation library shortname as an option for common.initials.format
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 22 Dec 2009 15:32:51 +0000 (15:32 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 22 Dec 2009 15:32:51 +0000 (15:32 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15221 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/copy_notes.xul
Open-ILS/xul/staff_client/server/locale/en-US/common.properties
Open-ILS/xul/staff_client/server/patron/edit_standing_penalty.js
Open-ILS/xul/staff_client/server/patron/info_notes.xul
Open-ILS/xul/staff_client/server/patron/new_standing_penalty.js

index a3dd7b2..855dcd1 100644 (file)
                     note.title( fancy_prompt_data.title );
                     if (fancy_prompt_data.initials) {
                         fancy_prompt_data.note = fancy_prompt_data.note 
-                            + $("commonStrings").getFormattedString('staff.initials.format',[fancy_prompt_data.initials,util.date.formatted_date(new Date(),'%F')]);
+                            + $("commonStrings").getFormattedString('staff.initials.format',[fancy_prompt_data.initials,util.date.formatted_date(new Date(),'%F'), ses('ws_ou_shortname')]);
                     }
                     note.value( fancy_prompt_data.note );
                     note.pub( get_bool( fancy_prompt_data.pub ) ? get_db_true() : get_db_false() );
index 03b1174..968d52c 100644 (file)
@@ -28,7 +28,7 @@ openils.global_util.content_window_jsobject.error=Error with get_contentWindow(%
 openils.global_util.content_window.error=Error with get_contentWindow(%1$s): %2$s
 openils.global_util.font_size.error=Error adjusting the font size: %1$s
 # Appended to notes with certain settings enabled.  First position is staff initials, and second position is a date for when the initials were added.
-staff.initials.format= [ %1$s %2$s ]
+staff.initials.format= [ %1$s %2$s @ %3$s ]
 staff.acp_label_barcode=Barcode
 staff.acp_label_call_number=Call Number
 staff.acp_label_circ_as_type=Circulate As Type
index 5a4fff0..4d22dae 100644 (file)
@@ -94,7 +94,7 @@ function edit_penalty_init() {
                         initials_tb.focus(); return;
                     } else {
                         JSAN.use('util.date');
-                        note = note + commonStrings.getFormattedString('staff.initials.format',[initials_tb.value,util.date.formatted_date(new Date(),'%F')]);
+                        note = note + commonStrings.getFormattedString('staff.initials.format',[initials_tb.value,util.date.formatted_date(new Date(),'%F'), ses('ws_ou_shortname')]);
                     }
                 }
                 update_modal_xulG(
index f856cba..988b18f 100644 (file)
                     note.title( fancy_prompt_data.title );
                     if (fancy_prompt_data.initials) {
                         fancy_prompt_data.note = fancy_prompt_data.note 
-                            + $("commonStrings").getFormattedString('staff.initials.format',[fancy_prompt_data.initials,util.date.formatted_date(new Date(),'%F')]);
+                            + $("commonStrings").getFormattedString('staff.initials.format',[fancy_prompt_data.initials,util.date.formatted_date(new Date(),'%F'), ses('ws_ou_shortname')]);
                     }
                     note.value( fancy_prompt_data.note );
                     note.pub( get_bool( fancy_prompt_data.pub ) ? get_db_true() : get_db_false() );
index c1ac8aa..a49cac7 100644 (file)
@@ -76,7 +76,7 @@ function new_penalty_init() {
                         initials_tb.focus(); return;
                     } else {
                         JSAN.use('util.date');
-                        note = note + commonStrings.getFormattedString('staff.initials.format',[initials_tb.value,util.date.formatted_date(new Date(),'%F')]);
+                        note = note + commonStrings.getFormattedString('staff.initials.format',[initials_tb.value,util.date.formatted_date(new Date(),'%F'), ses('ws_ou_shortname')]);
                     }
                 }
                 update_modal_xulG(