From c3cfcf3c2943a3a9c5cf417d72cd6dbcb72809be Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Tue, 20 Aug 2013 12:45:44 -0400 Subject: [PATCH] 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 --- .../src/templates/opac/parts/record/copy_table.tt2 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 ''; -- 2.43.2