TPAC - repair summary statement display
authorBen Shum <bshum@biblio.org>
Fri, 27 Jul 2012 20:06:28 +0000 (16:06 -0400)
committerDan Scott <dscott@laurentian.ca>
Mon, 30 Jul 2012 15:25:20 +0000 (11:25 -0400)
Change variable from summary to summaries to properly associate values
for the summary statement display in Tpac.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/parts/misc_util.tt2

index d7e93d0..524a66b 100644 (file)
@@ -63,7 +63,7 @@
         FOR sub IN xml.findnodes('//*[@tag="520"]/*[@code="a"]');
             args.summaries.push(sub.textContent);
         END;
-        args.summary = (args.summary.size) ? args.summary.0 : '';
+        args.summary = (args.summaries.size) ? args.summaries.0 : '';
 
         args.editions = [];
         ed_hunt = xml.findnodes('//*[@tag="250"]/*[@code="a"]') ||