[open-ils-commits] [GIT] Evergreen ILS branch rel_2_4 updated. 1c22152a9a7f76732f898ef0513114de0b526f2f
Evergreen Git
git at git.evergreen-ils.org
Fri May 24 12:34:51 EDT 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_4 has been updated
via 1c22152a9a7f76732f898ef0513114de0b526f2f (commit)
from 5cb40c890f15b2d151fdbac79a1ee9d5fcd491b0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1c22152a9a7f76732f898ef0513114de0b526f2f
Author: Dan Scott <dscott at laurentian.ca>
Date: Fri May 10 13:12:55 2013 -0400
TPAC: Death date missing from authors in record details
The trailing period prescribed by ISBD punctuation for x00 $d subfields
in certain circumstances confounds the regex that was expected the $d
subfield to match ^\s*\d{4}-\d{4}\s*$. As a result, death dates were
often being omitted from the record detail display. Relaxing the regex
to match against a trailing .* instead of \s* resolves the issue.
Signed-off-by: Dan Scott <dscott at laurentian.ca>
Signed-off-by: Pasi Kallinen <pasi.kallinen at pttk.fi>
Signed-off-by: Ben Shum <bshum at biblio.org>
diff --git a/Open-ILS/src/templates/opac/parts/record/authors.tt2 b/Open-ILS/src/templates/opac/parts/record/authors.tt2
index 7205e8f..d2adff0 100644
--- a/Open-ILS/src/templates/opac/parts/record/authors.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/authors.tt2
@@ -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;
-----------------------------------------------------------------------
Summary of changes:
.../src/templates/opac/parts/record/authors.tt2 | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list