New Book Lists: Additional tweaks for author and image display
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 5 Jan 2017 20:42:50 +0000 (15:42 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 9 Jan 2017 11:35:08 +0000 (06:35 -0500)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/xsl/ATOM2XHTML.xsl
Open-ILS/xsl/MARC21slim2ATOM.xsl

index 9d011e3..e7a2a1d 100644 (file)
@@ -72,7 +72,7 @@ To-do list:
        <xsl:variable name="t-untitleditem">(untitled)</xsl:variable> <!-- text of untitled items when the title needs to be shown) -->
        <xsl:variable name="t-entrylink">view full entry</xsl:variable> <!-- text of the link to the full entry (used with <content src="" /> in atom) -->
        <xsl:variable name="t-authors">By</xsl:variable> <!-- label before one or more author/contributors (eg the 'by' in 'by Joe'); leave blank to not show authors -->
-       <xsl:variable name="t-categories">Subjects:</xsl:variable> <!-- label before one or more categories; leave blank to not show categories -->
+       <xsl:variable name="t-categories"></xsl:variable> <!-- label before one or more categories; leave blank to not show categories -->
        <xsl:variable name="t-source"></xsl:variable> <!-- label of source (e.g. 'from' or 'via' in English); leave blank to not show sources -->
        <xsl:variable name="t-comments"></xsl:variable> <!-- leave blank to not show link to comments -->
        <xsl:variable name="t-download"></xsl:variable> <!-- leave this or t-enclosure blank to not show link to enclosures -->
index a15155f..925e603 100644 (file)
@@ -39,9 +39,8 @@
                                        </xsl:call-template>
                                </title>
                        </xsl:for-each>
-
        
-                       <xsl:for-each select="marc:datafield[@tag=100]">
+                       <xsl:for-each select="marc:datafield[@tag=100]/marc:subfield[@code='a']">
                                <author>
                                        <name>
                                                <xsl:value-of select="."/>
@@ -49,6 +48,7 @@
                                </author>
                        </xsl:for-each>
 
+            <!-- PINES: Hide other author forms at this time 
                        <xsl:for-each select="marc:datafield[@tag=110]|marc:datafield[@tag=111]|marc:datafield[@tag=700]|marc:datafield[@tag=710]|marc:datafield[@tag=711]|marc:datafield[@tag=720]">
                                <author>
                                        <name>
@@ -56,7 +56,8 @@
                                        </name>
                                </author>
                        </xsl:for-each>
-
+            -->
+            
                        <xsl:for-each select="marc:datafield[@tag=655]">
                                <category>
                                        <xsl:attribute name="term">
                                </category>
                        </xsl:for-each>
 
+            <!-- PINES: this seems to be conflicting
                        <xsl:for-each select="marc:datafield[@tag=856]">
                                <dc:identifier>
                                        <xsl:value-of select="marc:subfield[@code='u']"/>
                                </dc:identifier>
                        </xsl:for-each>
-                       
+                       -->
+            
             <!-- PINES: Use TCN instead of ISBN for image links
                        <xsl:for-each select="marc:datafield[@tag=020]">
                                <dc:identifier>