[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch master updated. d1cb0e79e74a2c49d297f1f177dd309090e91c14

Evergreen Git git at git.evergreen-ils.org
Thu Jun 5 20:32:03 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, master has been updated
       via  d1cb0e79e74a2c49d297f1f177dd309090e91c14 (commit)
      from  1a9e623ab0d0b841961afaa0a9810a24b8e98f19 (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 d1cb0e79e74a2c49d297f1f177dd309090e91c14
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