From: Dan Scott Date: Tue, 20 Aug 2013 16:45:44 +0000 (-0400) Subject: Map the bound-with relationship in schema.org X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c3cfcf3c2943a3a9c5cf417d72cd6dbcb72809be;p=evergreen%2Fpines.git Map the bound-with relationship in schema.org We don't know what type the target record is, so fall back to Product and just point at it. At least this way schema.org processors will know that the target bib is related to the current bib. Signed-off-by: Dan Scott Signed-off-by: Ben Shum --- 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 57d1d41799..b275c9fffd 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -203,8 +203,14 @@ END; # FOREACH bib FOREACH bib IN copy_info.peer_bib_marc; attrs = {marc_xml => bib}; PROCESS get_marc_attrs args=attrs %] -[%- IF attrs.bibid != ctx.bre_id; %] -
  • [% attrs.title | html %] / [% attrs.author | html %]
  • +[%- IF attrs.bibid != ctx.bre_id; -%] +
  • + [%- # Map the bound-with relationship -%] + + [% attrs.title | html %] + / [% attrs.author | html %] + +
  • [%- END; # IF attrs.bibid %] [%- END; # FOREACH bib in copy_info.peer_bib_marc '';