From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4> Date: Thu, 9 Sep 2010 20:35:44 +0000 (+0000) Subject: Styling tweaks to brief bib summary bar. More tooltips, and expose record id and... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e71d7c77e1db37ec2c04c1ac0677a99b06828545;p=evergreen%2Ftadl.git Styling tweaks to brief bib summary bar. More tooltips, and expose record id and bib call number (from the first available defined in the appropriate asset.call_number_class entry) git-svn-id: svn://svn.open-ils.org/ILS/trunk@17549 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index d98840dda4..b30d250fed 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -2316,11 +2316,17 @@ <!ENTITY staff.cat.bib_brief.author.accesskey ""> <!ENTITY staff.cat.bib_brief.edition.label "Edition:"> <!ENTITY staff.cat.bib_brief.edition.accesskey ""> -<!ENTITY staff.cat.bib_brief.pub_date.label "Publication Date:"> +<!ENTITY staff.cat.bib_brief.pub_date.label "Pub Date:"> <!ENTITY staff.cat.bib_brief.pub_date.accesskey ""> +<!ENTITY staff.cat.bib_brief.call_number.label "Bib Call #:"> +<!ENTITY staff.cat.bib_brief.call_number.accesskey ""> <!-- "TCN" is an abbreviation for "title control number" --> <!ENTITY staff.cat.bib_brief.title_control_number.label "TCN:"> <!ENTITY staff.cat.bib_brief.title_control_number.accesskey ""> +<!ENTITY staff.cat.bib_brief.biblio_record_entry_id.label "Record ID:"> +<!ENTITY staff.cat.bib_brief.biblio_record_entry_id.accesskey ""> +<!ENTITY staff.cat.bib_brief.biblio_record_entry_owner.label "Record Owner:"> +<!ENTITY staff.cat.bib_brief.biblio_record_entry_owner.accesskey ""> <!ENTITY staff.cat.bib_brief.created_by.label "Created By:"> <!ENTITY staff.cat.bib_brief.created_by.accesskey ""> <!ENTITY staff.cat.bib_brief.last_edited_by.label "Last Edited By:"> @@ -3321,7 +3327,8 @@ <!ENTITY staff.circ.alternate_copy_summary.Alert.label "Alert"> <!ENTITY staff.circ.alternate_copy_summary.Alternate_View.label "Alternate View"> <!ENTITY staff.circ.alternate_copy_summary.Barcode.label "Barcode"> -<!ENTITY staff.circ.alternate_copy_summary.Call_Number.label "Call Number"> +<!ENTITY staff.circ.alternate_copy_summary.Call_Number.label "Item Call #"> +<!ENTITY staff.circ.alternate_copy_summary.Call_Number.accesskey ""> <!ENTITY staff.circ.alternate_copy_summary.Cataloging_Info.label "Cataloging Info"> <!ENTITY staff.circ.alternate_copy_summary.Cataloging_Info.accesskey "I"> <!ENTITY staff.circ.alternate_copy_summary.Checkin_Scan_Time.label "Checkin Scan Time"> diff --git a/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js b/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js index d1fc5b221d..7a547325ed 100644 --- a/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js +++ b/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js @@ -71,7 +71,8 @@ function bib_brief_overlay(params) { //dump('value = ' + value + '\n'); var n = set(c.id, value ? value : ''); if (c.id == 'tcn_source') set_tooltip('tcn',value); - if (c.id == 'doc_id') set_tooltip('title',value); + if (c.id == 'title') set_tooltip('title',value); + if (c.id == 'author') set_tooltip('author',value); //dump('set text on ' + n + ' elements\n'); } else { //dump('render is not a function\n'); @@ -81,6 +82,30 @@ function bib_brief_overlay(params) { } } + // Let's fetch a bib call number + JSAN.use('OpenILS.data'); + var data = new OpenILS.data(); + var label_class = data.hash.aous['cat.default_classification_scheme']; + if (!label_class) { + label_class = { "value": 1 }; + } + var cn_blob_array = net.simple_request('BLOB_MARC_CALLNUMBERS_RETRIEVE',[params.mvr_id, label_class.value]); + if (! cn_blob_array) { cn_blob_array = []; } + var tooltip_text = ''; + for (var i = 0; i < cn_blob_array.length; i++) { + var cn_blob_obj = cn_blob_array[i]; + for (var j in cn_blob_obj) { + tooltip_text += j + ' : ' + cn_blob_obj[j] + '\n'; + } + } + if (tooltip_text) { + var cn_blob_obj = cn_blob_array[0]; + for (var j in cn_blob_obj) { + set('bib_call_number',cn_blob_obj[j]); + } + set_tooltip('bib_call_number',tooltip_text); + } + } catch(E) { alert(location.href + '\nError in bib_brief_overlay(' + js2JSON(params) + '): ' + E); return; diff --git a/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.xul b/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.xul index b8c9d33a73..93b654d67e 100644 --- a/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.xul +++ b/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.xul @@ -10,7 +10,7 @@ <grid id="bib_brief_grid" flex="0"> <columns> <column /> - <column flex="1" /> + <column /> <column /> <column /> <column /> @@ -20,24 +20,34 @@ </columns> <rows id="bib_brief_grid_rows"> <row id="bib_brief_grid_row1" position="1"> - <label value="&staff.cat.bib_brief.title.label;" accesskey="&staff.cat.bib_brief.title.accesskey;" control="title"/> - <textbox id="title" name="title" readonly="true" context="clipboard"/> - <label value="&staff.cat.bib_brief.edition.label;" accesskey="&staff.cat.bib_brief.edition.accesskey;" control="edition"/> - <textbox id="edition" name="edition" readonly="true" context="clipboard"/> - <label value="&staff.cat.bib_brief.created_by.label;" accesskey="&staff.cat.bib_brief.created_by.accesskey;" control="creator"/> - <textbox id="creator" name="creator" readonly="true" context="clipboard"/> - <label value="&staff.cat.bib_brief.last_edited_by.label;" accesskey="&staff.cat.bib_brief.last_edited_by.accesskey;" control="editor"/> - <textbox id="editor" name="editor" readonly="true" context="clipboard"/> + <label value="&staff.cat.bib_brief.title.label;" accesskey="&staff.cat.bib_brief.title.accesskey;" control="title" class="emphasis"/> + <textbox id="title" name="title" readonly="true" context="clipboard" class="plain" onfocus="this.select()"/> + <label value="&staff.cat.bib_brief.edition.label;" accesskey="&staff.cat.bib_brief.edition.accesskey;" control="edition" class="emphasis"/> + <textbox id="edition" name="edition" readonly="true" context="clipboard" class="plain" onfocus="this.select()"/> + <label value="&staff.cat.bib_brief.title_control_number.label;" accesskey="&staff.cat.bib_brief.title_control_number.accesskey;" control="tcn" class="emphasis"/> + <textbox id="tcn" name="tcn" readonly="true" context="clipboard" class="plain" onfocus="this.select()"/> + <label value="&staff.cat.bib_brief.created_by.label;" accesskey="&staff.cat.bib_brief.created_by.accesskey;" control="creator" class="emphasis"/> + <textbox id="creator" name="creator" readonly="true" context="clipboard" class="plain" onfocus="this.select()"/> </row> <row position="2"> - <label value="&staff.cat.bib_brief.author.label;" accesskey="&staff.cat.bib_brief.author.accesskey;" control="author"/> - <textbox id="author" name="author" readonly="true" context="clipboard"/> - <label value="&staff.cat.bib_brief.pub_date.label;" accesskey="&staff.cat.bib_brief.pub_date.accesskey;" control="pubdate"/> - <textbox id="pubdate" name="pubdate" readonly="true" context="clipboard"/> - <label value="&staff.cat.bib_brief.title_control_number.label;" accesskey="&staff.cat.bib_brief.title_control_number.accesskey;" control="tcn"/> - <textbox id="tcn" name="tcn" readonly="true" context="clipboard"/> - <label value="&staff.cat.bib_brief.last_edited_on.label;" accesskey="&staff.cat.bib_brief.last_edited_on.accesskey;" control="edit_date"/> - <textbox id="edit_date" name="edit_date" readonly="true" context="clipboard"/> + <label value="&staff.cat.bib_brief.author.label;" accesskey="&staff.cat.bib_brief.author.accesskey;" control="author" class="emphasis"/> + <textbox id="author" name="author" readonly="true" context="clipboard" class="plain" onfocus="this.select()"/> + <label value="&staff.cat.bib_brief.pub_date.label;" accesskey="&staff.cat.bib_brief.pub_date.accesskey;" control="pubdate" class="emphasis"/> + <textbox id="pubdate" name="pubdate" readonly="true" context="clipboard" class="plain" onfocus="this.select()"/> + <label value="&staff.cat.bib_brief.biblio_record_entry_id.label;" accesskey="&staff.cat.bib_brief.biblio_record_entry_id.accesskey;" control="mvr_doc_id" class="emphasis"/> + <textbox id="mvr_doc_id" name="mvr_doc_id" readonly="true" context="clipboard" class="plain" onfocus="this.select()"/> + <label value="&staff.cat.bib_brief.last_edited_by.label;" accesskey="&staff.cat.bib_brief.last_edited_by.accesskey;" control="editor" class="emphasis"/> + <textbox id="editor" name="editor" readonly="true" context="clipboard" class="plain" onfocus="this.select()"/> + </row> + <row id="bib_brief_grid_row3" position="3"> + <label id="bib_call_number_label" value="&staff.cat.bib_brief.call_number.label;" accesskey="&staff.cat.bib_brief.call_number.accesskey;" control="bib_call_number" class="emphasis"/> + <textbox id="bib_call_number" name="bib_call_number" readonly="true" context="clipboard" class="plain" onfocus="this.select()"/> + <hbox id="placeholder1"/> + <hbox id="placeholder2"/> + <label value="&staff.cat.bib_brief.biblio_record_entry_owner.label;" accesskey="&staff.cat.bib_brief.biblio_record_entry_owner.accesskey;" control="owner" class="emphasis"/> + <textbox id="owner" name="owner" readonly="true" context="clipboard" class="plain" onfocus="this.select()"/> + <label value="&staff.cat.bib_brief.last_edited_on.label;" accesskey="&staff.cat.bib_brief.last_edited_on.accesskey;" control="edit_date" class="emphasis"/> + <textbox id="edit_date" name="edit_date" readonly="true" context="clipboard" class="plain" onfocus="this.select()"/> </row> </rows> </grid> diff --git a/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.xul b/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.xul index f85b53c101..b80ce3cf3f 100644 --- a/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.xul +++ b/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.xul @@ -42,9 +42,15 @@ <!-- Most of this gets filled in by bib_brief_overlay.xul --> <grid id="bib_brief_grid"> <rows id="bib_brief_grid_rows"> - <row> - <label value="&staff.circ.alternate_copy_summary.Call_Number.label;" accesskey="&staff.circ.alternate_copy_summary.call_number.accesskey;" control="call_number"/> - <textbox name="call_number" readonly="true" context="clipboard"/> + <row id="bib_brief_grid_row3"> + <label id="bib_call_number_label"/> + <textbox id="bib_call_number"/> + <hbox id="placeholder1" flex="1"> + <label value="&staff.circ.alternate_copy_summary.Call_Number.label;" accesskey="&staff.circ.alternate_copy_summary.Call_Number.accesskey;" control="call_number" class="emphasis"/> + </hbox> + <hbox id="placeholder2" flex="1"> + <textbox name="call_number" readonly="true" context="clipboard" class="plain"/> + </hbox> </row> </rows> </grid> diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 03a2b136c2..1f378599f9 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -1237,6 +1237,16 @@ circ.util.columns = function(modify,params) { { 'persist' : 'hidden width ordinal', 'fm_class' : 'bre', + 'id' : 'owner', + 'label' : document.getElementById('circStrings').getString('staff.circ.utils.owner'), + 'flex' : 1, + 'primary' : false, + 'hidden' : true, + 'editable' : false, 'render' : function(my) { return my.bre ? (typeof my.bre.owner() == 'object' ? my.bre.owner().shortname() : data.hash.aou[my.bre.owner()].shortname() ) : ''; } + }, + { + 'persist' : 'hidden width ordinal', + 'fm_class' : 'bre', 'id' : 'creator', 'label' : document.getElementById('circStrings').getString('staff.circ.utils.creator'), 'flex' : 1, 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 e350141b25..005e06258a 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 @@ -276,6 +276,7 @@ staff.circ.utils.isbn=ISBN staff.circ.utils.pubdate=Publication Date staff.circ.utils.publisher=Publisher staff.circ.utils.creator=Created By +staff.circ.utils.owner=Owned By staff.circ.utils.editor=Edited By # TCN is an acronym for Title Control Number staff.circ.utils.tcn=TCN diff --git a/Open-ILS/xul/staff_client/server/skin/global.css b/Open-ILS/xul/staff_client/server/skin/global.css index 88361debf7..48a2f9e54f 100644 --- a/Open-ILS/xul/staff_client/server/skin/global.css +++ b/Open-ILS/xul/staff_client/server/skin/global.css @@ -100,6 +100,7 @@ iframe { background: #CDCED3 url("chrome://browser/skin/icons/box-background.png .header { font-weight: bold; } .header1 { font-weight: bold; font-size: large; } +.emphasis { font-weight: bold; } .tan { background-color: #D2B48C; } .sandy_brown { background-color: #F4A460; }