From e20dfc3f0b091f54d35ca2eb0875b2caec1f184e Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Sun, 10 Apr 2011 13:51:39 -0400 Subject: [PATCH] fieldmapper tweaks suggested by miker --- Open-ILS/examples/fm_IDL.xml | 4 +++- Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm | 2 +- Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm | 2 +- Open-ILS/web/opac/skin/default/js/copy_details.js | 7 +++++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 94357aa001..170ccc7967 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, + @@ -4832,6 +4833,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 8098fb5702..cd3294e0d8 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','peer_records'], + acp => ['call_number','parts','peer_record_maps'], 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 f8a8931064..7c2d8ff293 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 peer_records / + qw/ location status stat_cat_entry_copy_maps notes age_protect parts peer_record_maps / ], ascecm => [qw/ stat_cat stat_cat_entry /], } 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 b14fdaa1e3..7c8c847e09 100644 --- a/Open-ILS/web/opac/skin/default/js/copy_details.js +++ b/Open-ILS/web/opac/skin/default/js/copy_details.js @@ -232,13 +232,16 @@ function cpdDrawCopy(r) { } /* show the other bibs link */ - if (copy.peer_records().length > 0) { + if (copy.peer_record_maps().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(); + link_args[PARAM_RLIST] = new Array(); + for (var i = 0; i < copy.peer_record_maps().length; i++) { + link_args[PARAM_RLIST].push( copy.peer_record_maps()[i].peer_record() ); + } l.setAttribute('href',buildOPACLink(link_args)); } if(isXUL()) { -- 2.11.0