[open-ils-commits] [GIT] Evergreen ILS branch rel_2_4 updated. c1c03659cc4fed0304426b384175b3a8984e8144

Evergreen Git git at git.evergreen-ils.org
Mon Aug 26 12:17:34 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  c1c03659cc4fed0304426b384175b3a8984e8144 (commit)
      from  5ddbb12455138993d5dd21aaac94b87877d3c08e (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 c1c03659cc4fed0304426b384175b3a8984e8144
Author: Dan Scott <dscott at laurentian.ca>
Date:   Sun Aug 25 00:39:46 2013 -0400

    Schema.org: improve MusicGroup vs. Person parsing
    
    Take a stricter approach to defining MusicGroups instead of Persons for
    the main authors of MusicAlbums. Music groups are generally catalogued
    as a 110 or 710 tag, and this avoids defining birthDates and deathDates
    for groups (which, however valid that might be in the real world, is not
    valid for schema.org).
    
    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/authors.tt2 b/Open-ILS/src/templates/opac/parts/record/authors.tt2
index d2adff0..005b48a 100644
--- a/Open-ILS/src/templates/opac/parts/record/authors.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/authors.tt2
@@ -67,7 +67,7 @@ BLOCK build_author_links;
         
         # schema.org changes
         IF type == 'author';
-            IF args.schema.itemtype && args.schema.itemtype.match('MusicAlbum');
+            IF tag.substr(1,2) == '10' && args.schema.itemtype && args.schema.itemtype.match('MusicAlbum');
                 iprop = ' itemtype="http://schema.org/MusicGroup" itemscope itemprop="byArtist"';
             ELSIF tag.substr(1,2) == '00';
                 iprop = ' itemtype="http://schema.org/Person" itemscope itemprop="author"';

-----------------------------------------------------------------------

Summary of changes:
 .../src/templates/opac/parts/record/authors.tt2    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list