From 1184851a7cd793a242a6f94851735117d6153c29 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Sun, 1 May 2011 22:06:50 -0400 Subject: [PATCH] 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 --- .../web/templates/default/opac/parts/misc_util.tt2 | 8 ++++---- .../web/templates/default/opac/parts/result/table.tt2 | 18 ++++++++---------- 2 files changed, 12 insertions(+), 14 deletions(-) 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 %] - - - - +   -- 2.11.0