From f54e680100d2496d506ecbce35468f6d51076bef Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 2 Apr 2010 20:21:21 +0000 Subject: [PATCH] flesh the copy location and set a tooltip for its flags git-svn-id: svn://svn.open-ils.org/ILS/trunk@16113 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/server/circ/alternate_copy_summary.js | 13 ++++++++++++- .../xul/staff_client/server/locale/en-US/circ.properties | 2 ++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js b/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js index 4b7ed3b403..d025a62efb 100644 --- a/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js +++ b/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js @@ -146,6 +146,7 @@ function load_item() { set("copy_id", ''); set("loan_duration", ''); set("location", ''); + set_tooltip("location", ''); set("renewal_type", ''); set("opac_visible", ''); set("price", ''); @@ -186,7 +187,17 @@ function load_item() { set("holdable", details.copy.holdable()); set("copy_id", details.copy.id()); set("loan_duration", details.copy.loan_duration()); - set("location", details.copy.location()); + var copy_location = typeof details.copy.location() == 'object' ? details.copy.location() : data.lookup('acpl',details.copy.location()); + set("location", copy_location.name()); + set_tooltip("location", document.getElementById('circStrings').getFormattedString( + 'staff.circ.copy_details.location_tooltip', + [ + get_localized_bool( copy_location.circulate() ), + get_localized_bool( copy_location.holdable() ), + get_localized_bool( copy_location.hold_verify() ), + get_localized_bool( copy_location.opac_visible() ) + ] + )); set("opac_visible", details.copy.opac_visible()); set("price", details.copy.price()); set("ref", details.copy.ref()); 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 ff38720e29..eb7094304d 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 @@ -100,6 +100,8 @@ staff.circ.copy_details.recurring_fine_rule_tooltip_format=%3$s/%4$s/%5$s - %6$s staff.circ.copy_details.max_fine_rule_format=%1$s # From Config::rules::max_fine, 1 - Name, 2 - ID, 3 - Amount, 4 - Is Percent staff.circ.copy_details.max_fine_rule_tooltip_format=%3$s Is Percent? %4$s +# From asset::copy_location: 1 - Can Circulate? 2 - Is Holdable? 3 - Hold Capture Requires Verification? 4 - Is OPAC Visible? +staff.circ.copy_details.location_tooltip=Circulate? %1$s Holdable? %2$s Hold Verify? %3$s OPAC Visible? %4$s staff.circ.copy_status.tab_name=Item Status staff.circ.copy_status.action.complete=Action complete. staff.circ.copy_status.sel_checkin.error=Checkin did not likely happen. -- 2.11.0