Replace trailing ' :' with ':' in 245$a
authorJeff Godin <jgodin@tadl.org>
Wed, 25 Jul 2012 18:35:42 +0000 (14:35 -0400)
committerJeff Godin <jgodin@tadl.org>
Wed, 25 Jul 2012 18:35:42 +0000 (14:35 -0400)
Replace a trailing ' :' with ':' in 245$ when generating titles for
display.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
templates_tadlskin/opac/parts/misc_util.tt2

index cbf990f..2a9a8ea 100644 (file)
@@ -38,7 +38,7 @@
         titresults_content = [];
             FOR sub IN titresults;
                 IF sub.getAttribute('code') == 'a';
-                    titresults_content.push(tc.title(sub.textContent));
+                    titresults_content.push(tc.title(sub.textContent.replace(' :$',':')));
                ELSIF sub.getAttribute('code') == 'b';
                     titresults_content.push(tc.title(sub.textContent));
                 ELSE;
@@ -54,7 +54,7 @@
         titsubs_content = [];
             FOR sub IN titsubs;
                 IF sub.getAttribute('code') == 'a';
-                    titsubs_content.push(tc.title(sub.textContent));
+                    titsubs_content.push(tc.title(sub.textContent.replace(' :$',':')));
                 ELSIF sub.getAttribute('code') == 'b';
                     titsubs_content.push(tc.title(sub.textContent));
                 ELSE;