Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
frontend:bookpagetabs [2013/06/18 10:35]
giancarlo
frontend:bookpagetabs [2013/07/31 14:53]
giancarlo
Line 92: Line 92:
 <WRAP prewrap center> <WRAP prewrap center>
 <code xml tocnr_book_view.xsl> <code xml tocnr_book_view.xsl>
-<?xml version="1.0" encoding="UTF-8"?>+<?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
   <xsl:variable name="OBJECTSPAGE">   <xsl:variable name="OBJECTSPAGE">
Line 114: Line 114:
         <td valign="top">         <td valign="top">
           <img>           <img>
-            <xsl:attribute name="src"><xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/<xsl:copy-of select="$PID"/>/TN</xsl:attribute>+            <xsl:attribute name="src"><xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/<xsl:copy-of select="$PID"/>/TN 
 +                                </xsl:attribute>
           </img>           </img>
         </td>         </td>
Line 131: Line 132:
                   <xsl:variable name="DATA" select="text()"/>                   <xsl:variable name="DATA" select="text()"/>
                   <xsl:if test="$DATA != ' '">                   <xsl:if test="$DATA != ' '">
 +                  <xsl:if test="$FIELD != 'source'">
                     <tr>                     <tr>
                       <td valign="top">                       <td valign="top">
Line 140: Line 142:
                         <xsl:value-of select="text()"/>                         <xsl:value-of select="text()"/>
                         <xsl:for-each select="*">                         <xsl:for-each select="*">
-                          <div><xsl:value-of select="substring-after(name(),':')"/> =  <xsl:value-of select="text()"/></div>+                          <div><xsl:value-of select="substring-after(name(),':')"/> =  <xsl:value-of select="text()"/> 
 +                </div>
                         </xsl:for-each>                         </xsl:for-each>
                       </td>                       </td>
                     </tr>                     </tr>
                   </xsl:if>                   </xsl:if>
 +                  </xsl:if>                  
                 </xsl:for-each>                 </xsl:for-each>
               </tbody>               </tbody>
Line 201: Line 205:
                   </td>                   </td>
                 </tr>                 </tr>
 +              </xsl:if>
 +              <xsl:if test="$MODELLO = 'info:fedora/islandora:bookCModel'">
 +                <xsl:for-each select="/*/*">
 +                  <xsl:variable name="FIELD1" select="substring-after(name(),':')"/>
 +                  <xsl:variable name="DATA1" select="text()"/>
 +                  <xsl:if test="$FIELD1 = 'source'">
 +                    <xsl:if test="$DATA1 != ' '">
 +                      <tr>
 +                        <td colspan="3">
 +                          <h3/>
 +                        </td>
 +                      </tr>
 +                      <tr>
 +                        <td colspan="3">
 +                          <h3>External link</h3>
 +                        </td>
 +                      </tr>
 +                      <tr>
 +                        <td>
 +                          <strong>Catalogue</strong>
 +                        </td>
 +                        <td><a href="{$DATA1}" target="_blank"/>Piedmont libraries</td>
 +                      </tr>
 +                    </xsl:if>
 +                  </xsl:if>
 +                </xsl:for-each>
               </xsl:if>               </xsl:if>
             </table>             </table>
 
 
frontend/bookpagetabs.txt · Last modified: 2013/09/27 10:05 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki