LP#1703678 Show foreign copies even if only one
authorDan Wells <dbw2@calvin.edu>
Tue, 31 May 2016 19:51:47 +0000 (15:51 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 22 Aug 2017 14:48:05 +0000 (10:48 -0400)
If a record has no copies of its own, but it does have a foreign copy
on a peer bib, show that copy info (and the link to the other record).

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/opac/parts/record/copy_table.tt2

index 6be5346..874c10e 100644 (file)
@@ -26,7 +26,7 @@ FOREACH copy_info IN copies;
 END;
 -%]
 [%-
-IF has_copies
+IF has_copies or ctx.foreign_copies;
   depth = CGI.param('copy_depth').defined ? CGI.param('copy_depth') : CGI.param('depth').defined ? CGI.param('depth') : ctx.copy_summary.last.depth;
   total_copies = ctx.copy_summary.$depth.count;
 %]