Changeset 872

Show
Ignore:
Timestamp:
08/02/07 15:50:43 (1 year ago)
Author:
thomase
Message:

Update licensing info.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • BibIt/trunk/ProcModsCollection.xsl

    r871 r872  
    6666                        <xsl:apply-templates select="mods:modsCollection"/> 
    6767                    </ul> 
     68                    <div id="license"> 
     69                        <xsl:variable name="rightsrelurl"><xsl:for-each select="tokenize($htmlout, '/')">../</xsl:for-each><xsl:if test="$outchunk != '' and $outchunk != 'no'">../</xsl:if></xsl:variable> 
     70 
     71                        <xsl:variable name="docpath">file://<xsl:value-of select="$outpath"/>rights.html</xsl:variable> 
     72<xsl:for-each select="doc($docpath)"><xsl:copy-of select="./descendant::html:body/html:p"/></xsl:for-each>             
     73                    </div> 
    6874                </body> 
    6975            </html> 
     
    173179                        <xsl:variable name="rightsrelurl"><xsl:for-each select="tokenize($htmlout, '/')">../</xsl:for-each><xsl:if test="$outchunk != '' and $outchunk != 'no'">../</xsl:if></xsl:variable> 
    174180 
    175                         <p>We encourage you, in accordance with standard scholarly practice, to cite the source of this data if you copy and  
    176                         redistribute it en masse. Use of individual citations in articles, papers and books need not be cited, but you should  
    177                         check them yourself for accuracy. <a href="rights.html">This  
    178                             data is in  
    179                         the public domain</a>.</p> 
     181                        <xsl:variable name="docpath">file://<xsl:value-of select="$outpath"/>rights.html</xsl:variable> 
     182<xsl:for-each select="doc($docpath)"><xsl:copy-of select="./descendant::html:body/html:p"/></xsl:for-each>             
    180183                         
    181184                    </div> 
     
    448451                <xsl:when test="$childgenre='volume' and mods:part/mods:detail[@type='volume']">this work is volume <xsl:value-of select="mods:part/mods:detail[@type='volume']"/> of:  
    449452                    <xsl:element name="a"> 
    450                         <xsl:attribute name="href"><xsl:value-of select="$parentnewid"/>.html</xsl:attribute> 
    451                         <xsl:attribute name="title"><xsl:value-of select="$parent/mods:titleInfo[@type='uniform']/mods:title"/></xsl:attribute> 
     453                        <xsl:attribute name="href"><xsl:value-of select="$baseurl"/><xsl:value-of select="$parentnewid"/>.html</xsl:attribute> 
     454                        <xsl:attribute name="title"><xsl:value-of select="$parent/mods:titleInfo[@type='uniform'][1]/mods:title"/></xsl:attribute> 
    452455                        <xsl:value-of select="$parenttitle"/></xsl:element> 
    453456                </xsl:when> 
    454457                <xsl:when test="$parentgenre = 'journal'">appears in journal issue:  
    455458                    <xsl:element name="a"> 
    456                         <xsl:attribute name="href"><xsl:value-of select="$parentouturl"/><xsl:value-of select="$htmlout"/><xsl:value-of select="$parentnewid"/>.html</xsl:attribute> 
    457                         <xsl:attribute name="title"><xsl:value-of select="$parent/mods:titleInfo[@type='uniform']/mods:title"/></xsl:attribute> 
     459                        <xsl:attribute name="href"><xsl:value-of select="$baseurl"/><xsl:value-of select="$parentnewid"/>.html</xsl:attribute> 
     460                        <xsl:attribute name="title"><xsl:value-of select="$parent/mods:titleInfo[@type='uniform'][1]/mods:title"/></xsl:attribute> 
    458461                        <xsl:value-of select="$parenttitle"/></xsl:element> 
    459462                    <xsl:text> </xsl:text><xsl:if test="mods:part/mods:detail[@type='volume']"><xsl:value-of select="mods:part/mods:detail[@type='volume']"/></xsl:if> 
     
    463466                <xsl:when test="$parentgenre='series'">series: 
    464467                    <xsl:element name="a"> 
    465                         <xsl:attribute name="href"><xsl:value-of select="$parentouturl"/><xsl:value-of select="$htmlout"/><xsl:value-of select="$parentnewid"/>.html</xsl:attribute> 
     468                        <xsl:attribute name="href"><xsl:value-of select="$baseurl"/><xsl:value-of select="$parentnewid"/>.html</xsl:attribute> 
    466469                        <xsl:attribute name="title"><xsl:value-of select="$parent/mods:titleInfo[@type='uniform']/mods:title"/></xsl:attribute> 
    467470                        <xsl:value-of select="$parenttitle"/></xsl:element> 
     
    471474                <xsl:when test="$parentgenre='collection'">appears in the collection: 
    472475                    <xsl:element name="a"> 
    473                         <xsl:attribute name="href"><xsl:value-of select="$parentouturl"/><xsl:value-of select="$htmlout"/><xsl:value-of select="$parentnewid"/>.html</xsl:attribute> 
     476                        <xsl:attribute name="href"><xsl:value-of select="$baseurl"/><xsl:value-of select="$parentnewid"/>.html</xsl:attribute> 
    474477                        <xsl:attribute name="title"><xsl:value-of select="$parent/mods:titleInfo[@type='uniform']/mods:title"/></xsl:attribute> 
    475478                        <xsl:value-of select="$parenttitle"/></xsl:element> 
     
    477480                    <xsl:apply-templates select="mods:part/mods:extent[@unit='pages']"/> 
    478481                </xsl:when> 
    479                 <xsl:otherwise>parent is something else</xsl:otherwise> 
     482                <xsl:otherwise><xsl:comment>skipping parent with id = <xsl:value-of select="$parentnewid"/> because its genre (<xsl:value-of select="$parentgenre"/>) is not recognized</xsl:comment></xsl:otherwise> 
    480483            </xsl:choose> 
    481484        </li>