From: Jason Etheridge Date: Fri, 8 Apr 2011 08:47:05 +0000 (-0400) Subject: in opac->record summary->copy summary->copy details, add an "other bibs" link for... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ce3f624bf8377e4ed421534b199e8d53c0eda4fa;p=evergreen%2Fequinox.git in opac->record summary->copy summary->copy details, add an "other bibs" link for multi-home items. Add a peer_records virtual field to acp object to support this. --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 949f6fff37..94357aa001 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -1070,7 +1070,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - + @@ -4814,6 +4814,7 @@ SELECT usr, + @@ -4831,6 +4832,7 @@ SELECT usr, + diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm index 88af4f55d8..8098fb5702 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm @@ -973,7 +973,7 @@ sub copy_details { { flesh => 2, flesh_fields => { - acp => ['call_number','parts'], + acp => ['call_number','parts','peer_records'], acn => ['record','prefix','suffix','label_class'] } } diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm index d9af59ec9d..f8a8931064 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm @@ -494,7 +494,7 @@ sub fleshed_copy_retrieve2 { flesh => 2, flesh_fields => { acp => [ - qw/ location status stat_cat_entry_copy_maps notes age_protect parts / + qw/ location status stat_cat_entry_copy_maps notes age_protect parts peer_records / ], ascecm => [qw/ stat_cat stat_cat_entry /], } diff --git a/Open-ILS/web/opac/locale/en-US/opac.dtd b/Open-ILS/web/opac/locale/en-US/opac.dtd index c1ebf6bec9..9eb2ec6e63 100644 --- a/Open-ILS/web/opac/locale/en-US/opac.dtd +++ b/Open-ILS/web/opac/locale/en-US/opac.dtd @@ -500,6 +500,7 @@ Please see a librarian to renew your account."> + diff --git a/Open-ILS/web/opac/skin/default/js/copy_details.js b/Open-ILS/web/opac/skin/default/js/copy_details.js index 04e8e416f5..b14fdaa1e3 100644 --- a/Open-ILS/web/opac/skin/default/js/copy_details.js +++ b/Open-ILS/web/opac/skin/default/js/copy_details.js @@ -215,7 +215,7 @@ function cpdDrawCopy(r) { return; } - $n(row, 'barcode').appendChild(text(copy.barcode())); + var b = $n(row, 'barcode').appendChild(text(copy.barcode())); $n(row, 'location').appendChild(text(copy.location().name())); $n(row, 'status').appendChild(text(copy.status().name())); @@ -231,6 +231,16 @@ function cpdDrawCopy(r) { } } + /* show the other bibs link */ + if (copy.peer_records().length > 0) { + var l = $n(row, 'copy_multi_home'); + unHideMe(l); + var link_args = {}; + link_args.page = RRESULT; + link_args[PARAM_RTYPE] = RTYPE_LIST; + link_args[PARAM_RLIST] = copy.peer_records(); + l.setAttribute('href',buildOPACLink(link_args)); + } if(isXUL()) { /* show the hold link */ var l = $n(row, 'copy_hold_link'); diff --git a/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_cn_details.xml b/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_cn_details.xml index 45a5c85d5d..f937089394 100644 --- a/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_cn_details.xml +++ b/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_cn_details.xml @@ -32,6 +32,8 @@ href='javascript:void(0);'>&rdetail.cn.hold; &rdetail.cn.reserve; + &rdetail.cn.multi_home;