Display 245$b as Title Case also
authorJeff Godin <jgodin@tadl.org>
Wed, 25 Jul 2012 14:33:30 +0000 (10:33 -0400)
committerJeff Godin <jgodin@tadl.org>
Wed, 25 Jul 2012 14:33:30 +0000 (10:33 -0400)
Possibly an experiment: display 245$ as Title Case.

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

index 2cb3df4..cbf990f 100644 (file)
@@ -39,6 +39,8 @@
             FOR sub IN titresults;
                 IF sub.getAttribute('code') == 'a';
                     titresults_content.push(tc.title(sub.textContent));
+               ELSIF sub.getAttribute('code') == 'b';
+                    titresults_content.push(tc.title(sub.textContent));
                 ELSE;
                     titresults_content.push(sub.textContent);
                END;
@@ -53,6 +55,8 @@
             FOR sub IN titsubs;
                 IF sub.getAttribute('code') == 'a';
                     titsubs_content.push(tc.title(sub.textContent));
+                ELSIF sub.getAttribute('code') == 'b';
+                    titsubs_content.push(tc.title(sub.textContent));
                 ELSE;
                     titsubs_content.push(sub.textContent);
                 END;