From a978899f2ade2054eceaac68e6878ed83ddfa0f7 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 17 Dec 2009 18:41:26 +0000 Subject: [PATCH] bill Full Details and Show Last Few Circs uses the old item details pane. This cleans up that pane a bit (list actions and sticky view) and gives it a Show in OPAC button. git-svn-id: svn://svn.open-ils.org/ILS/trunk@15186 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/locale/en-US/lang.dtd | 6 ++--- .../staff_client/chrome/content/main/constants.js | 1 + .../xul/staff_client/server/cat/copy_summary.xul | 28 +++++++++++++--------- Open-ILS/xul/staff_client/server/cat/util.js | 9 +++++-- .../xul/staff_client/server/circ/circ_summary.xul | 2 +- .../xul/staff_client/server/circ/copy_details.xul | 2 +- Open-ILS/xul/staff_client/server/circ/util.js | 4 ++-- Open-ILS/xul/staff_client/server/patron/bill2.js | 2 ++ .../xul/staff_client/server/patron/bill_details.js | 2 +- Open-ILS/xul/staff_client/server/patron/bills.js | 2 ++ Open-ILS/xul/staff_client/server/patron/display.js | 1 + 11 files changed, 38 insertions(+), 21 deletions(-) diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 4a53bb807b..4912923d93 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -2310,9 +2310,9 @@ - - - + + + diff --git a/Open-ILS/xul/staff_client/chrome/content/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/main/constants.js index afa8b6275c..010b325691 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -179,6 +179,7 @@ const api = { 'FM_BOOKING_CREATE_BRT_AND_BRSRC' : { 'app' : 'open-ils.booking', 'method' : 'open-ils.booking.create_brt_and_brsrc_from_copies' }, 'FM_BRE_RETRIEVE_VIA_ID' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.metadata.retrieve', 'secure' : false }, 'FM_BRE_RETRIEVE_VIA_ID.authoritative' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.metadata.retrieve.authoritative', 'secure' : false }, + 'FM_BRE_ID_VIA_BARCODE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.bib_id.by_barcode', 'secure' : false }, 'FM_BRE_ID_SEARCH_VIA_BARCODE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.find_by_barcode', 'secure' : false }, 'FM_BRE_ID_SEARCH_VIA_MULTICLASS_QUERY' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.multiclass.query.staff' }, 'FM_BRE_ID_SEARCH_VIA_TCN' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.tcn', 'secure' : false }, diff --git a/Open-ILS/xul/staff_client/server/cat/copy_summary.xul b/Open-ILS/xul/staff_client/server/cat/copy_summary.xul index 78c57e221b..4810959360 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_summary.xul +++ b/Open-ILS/xul/staff_client/server/cat/copy_summary.xul @@ -21,7 +21,7 @@ @@ -85,7 +85,9 @@ 'map_row_to_columns' : circ.util.std_map_row_to_columns(), } ); - + $('list_actions').appendChild( g.list.render_list_actions() ); + g.list.set_list_actions(); + function acp_callback(req) { try { var copy = req.getResultObject(); @@ -121,6 +123,10 @@ $w('copy_summary_callnumber',cn.label()); } g.list.append({'row':{'my':{'acp':copy,'acn':cn}}}); + g.barcode = copy.barcode(); g.doc_id = cn.record(); + if (g.doc_id > -1) { + $('show_in_opac').hidden = false; + } } catch(E) { g.error.standard_unexpected_error_alert('retrieving volume',E); } @@ -156,7 +162,9 @@ } }); - toggle_deck(); toggle_deck(); /* quick hack */ + if ( $('alternate_view').checked ) { + toggle_deck(); + } } catch(E) { try { g.error.standard_unexpected_error_alert('copy_summary.xul',E); } catch(F) { alert(E + '\n' + F); } @@ -167,12 +175,8 @@ try { if ($('item_deck').selectedIndex == 0) { $('item_deck').selectedIndex = 1; /* change to grid */ - $('save_columns').hidden = true; - $('sel_clip').hidden = true; } else { $('item_deck').selectedIndex = 0; /* change to tree */ - $('save_columns').hidden = false; - $('sel_clip').hidden = false; } } catch(E) { } @@ -233,10 +237,12 @@ -