TPAC: Death date missing from authors in record details
[working/Evergreen.git] / Open-ILS / src / templates / opac / parts / record / authors.tt2
index 7205e8f..d2adff0 100644 (file)
@@ -55,8 +55,8 @@ BLOCK build_author_links;
                 IF subfield.textContent.match('^\s*\d{4}');
                     birthdate = subfield.textContent.replace('^\s*(\d{4}).*$', '$1');
                 END;
-                IF subfield.textContent.match('-\d{4}\s*$');
-                    deathdate = subfield.textContent.replace('^\s*.{4}\-(\d{4})\s*$', '$1');
+                IF subfield.textContent.match('-\d{4}.*$');
+                    deathdate = subfield.textContent.replace('^\s*.{4}\-(\d{4}).*$', '$1');
                 END;
             ELSE;
                 term = term _ ' ' _ sf;