From: Dan Scott Date: Mon, 2 May 2011 02:06:50 +0000 (-0400) Subject: Pull call number from XML holdings, not MARC record X-Git-Tag: sprint4-merge-nov22~5128^2~72^2~71 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1184851a7cd793a242a6f94851735117d6153c29;p=working%2FEvergreen.git Pull call number from XML holdings, not MARC record KCLS uses call numbers in the MARC record, but most other sites use the call numbers from asset.call_number. For now, just display the first returned call number; eventually the display will probably need to be adjusted to handle call number / shelving location / library / status like the current AjaxPAC does. Also note that ##URI## call numbers should be filtered out but are not yet. Signed-off-by: Dan Scott --- diff --git a/Open-ILS/web/templates/default/opac/parts/misc_util.tt2 b/Open-ILS/web/templates/default/opac/parts/misc_util.tt2 index 3e6b175f1d..0e7cd2c492 100644 --- a/Open-ILS/web/templates/default/opac/parts/misc_util.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/misc_util.tt2 @@ -26,11 +26,11 @@ # clean up the ISBN args.isbn_clean = args.isbn.replace('\ .*', ''); - args.holdsing = []; + args.holdings = []; FOR holding IN xml.findnodes('//*[local-name()="volumes"]/*[local-name()="volume"]'); - args.holdings.push({ - # TODO - }); + args.holdings.push( + holding.getAttribute('label') + ); END; # Extract the copy count summary diff --git a/Open-ILS/web/templates/default/opac/parts/result/table.tt2 b/Open-ILS/web/templates/default/opac/parts/result/table.tt2 index 3ce5ffa4fd..8110fcf300 100644 --- a/Open-ILS/web/templates/default/opac/parts/result/table.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/result/table.tt2 @@ -104,31 +104,32 @@ - +
- Call number:[% args.marc_cn %][%# XXX KCLS %] + + [% l('Call number:') %] [% args.holdings.0 %]
- Publisher: + [% l('Publisher:') %] [% attrs.publisher; %]
- ISBN: + [% l('ISBN:') %] [% attrs.isbn %]
- Edition: + [% l('Edition:') %] [% attrs.edition %]
- Phys. Desc.: + [% l('Phys. Desc.:') %] [% args.phys_desc %] @@ -161,11 +162,8 @@ [% attrs.format_label %] [% END %] - - - - +