[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch rel_2_6 updated. 029ec0bb1703f55ad2885187fa4a2521f0f1c22a
Evergreen Git
git at git.evergreen-ils.org
Thu Jun 5 20:33:08 EDT 2014
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_6 has been updated
via 029ec0bb1703f55ad2885187fa4a2521f0f1c22a (commit)
from e3b4c1f770e91d6c60fc0a0a8c22bbf2dabd5836 (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 029ec0bb1703f55ad2885187fa4a2521f0f1c22a
Author: Dan Scott <dscott at laurentian.ca>
Date: Thu Jun 5 20:27:39 2014 -0400
LP#1303544 Trim junk from the ISBN in record summary
When asserting that we are publishing an ISBN, move the "(pbk.)"
and similar such matter outside of the schema.org <span property="isbn">
element.
See "The walking dead" in the sample dataset for an example.
Signed-off-by: Dan Scott <dscott at laurentian.ca>
Signed-off-by: Ben Shum <bshum at biblio.org>
diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2
index 4a58bec..fffd158 100644
--- a/Open-ILS/src/templates/opac/parts/record/summary.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2
@@ -154,10 +154,17 @@ IF num_uris > 0;
<h2 id='rdetail_record_details'>[% l("Record details") %]</h2>
<ul>
- [%- IF attrs.isbns.0; FOR isbn IN attrs.isbns %]
+ [%- IF attrs.isbns.0;
+ FOR isbn IN attrs.isbns;
+ isbn_extra = '';
+ IF (matches = isbn.match('^(.+?)(\s.+)$'));
+ isbn = matches.0;
+ isbn_extra = matches.1;
+ END;
+ %]
<li class='rdetail_isbns'>
<strong class='rdetail_label'>[% l('ISBN:'); %]</strong>
- <span class='rdetail_value' property='isbn'>[% isbn | html %]</span>
+ <span class='rdetail_value' property='isbn'>[% isbn | html %]</span>[% isbn_extra | html %]
</li>
[%- END %]
[%- END %]
-----------------------------------------------------------------------
Summary of changes:
.../src/templates/opac/parts/record/summary.tt2 | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list