From: Dan Scott Date: Mon, 15 Jul 2013 20:13:14 +0000 (-0400) Subject: Extend schema.org attributes for bibliographic focus X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cfff841d970c852914877f5797031d0fe8efefd8;p=working%2FEvergreen.git Extend schema.org attributes for bibliographic focus For example, instead of Offer.seller and Offer.sku, use Offer.seller/library and Offer.sku/callNumber, per the schema.org extension mechanism documented at http://schema.org/docs/extension.html Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 b/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 index e2a865af3e..fb78392712 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 @@ -19,7 +19,7 @@ %]
  • - + [% l('[quant,_1,copy,copies] at [_2].', ou_avail, ou_name) | html %] [%- this_depth = ctx.get_aou(ou_id).ou_type.depth; IF ou_avail > 0 && this_depth != ctx.copy_depth %] diff --git a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 index 1b4c58828d..c339e65714 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -57,10 +57,10 @@ END; [%- bib_lib_name = ctx.get_aou(bib.target_copy.circ_lib).name | html; l("[_1] (foreign item)", bib_lib_name); -%] -
    • + @@ -93,7 +93,7 @@ END; # FOREACH bib [%- IF serial_holdings %] [%- copy_info.holding_label | html; -%] - [%- ELSE %] + [%- ELSE %] [%- org_name = ctx.get_aou(copy_info.circ_lib).name; lib_url = ctx.get_org_setting(copy_info.circ_lib, 'lib.info_url'); @@ -102,20 +102,20 @@ END; # FOREACH bib IF lib_url; ''; END; -%] [% END %] - [% callnum | html %] [% IF ctx.get_org_setting(CGI.param('loc') OR ctx.aou_tree.id, 'sms.enable') == 1 %](Text)[% END %] + [% callnum | html %] [% IF ctx.get_org_setting(CGI.param('loc') OR ctx.aou_tree.id, 'sms.enable') == 1 %](Text)[% END %] [%- IF has_parts == 'true' %] [% copy_info.part_label | html %] [%- END %] - + [%- IF ctx.is_staff -%] [% copy_info.barcode | html %] [%- ELSE -%][% copy_info.barcode | html %] [%- END -%] [%- IF attrs.gtin13; - ''; + ''; END; -%] - [% copy_info.copy_location | html %] + [% copy_info.copy_location | html %] [%- IF ctx.is_staff %] [% copy_info.age_protect ? @@ -212,7 +212,12 @@ END; # FOREACH bib attrs = {marc_xml => bib}; PROCESS get_marc_attrs args=attrs %] [%- IF attrs.bibid != ctx.bre_id; %] -
    • [% attrs.title | html %] / [% attrs.author | html %]
    • +
    • + +
    • [%- END; # IF attrs.bibid %] [%- END; # FOREACH bib in copy_info.peer_bib_marc '
    ';