Changeset 872
- Timestamp:
- 08/02/07 15:50:43 (1 year ago)
- Files:
-
- BibIt/trunk/ProcModsCollection.xsl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
BibIt/trunk/ProcModsCollection.xsl
r871 r872 66 66 <xsl:apply-templates select="mods:modsCollection"/> 67 67 </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> 68 74 </body> 69 75 </html> … … 173 179 <xsl:variable name="rightsrelurl"><xsl:for-each select="tokenize($htmlout, '/')">../</xsl:for-each><xsl:if test="$outchunk != '' and $outchunk != 'no'">../</xsl:if></xsl:variable> 174 180 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> 180 183 181 184 </div> … … 448 451 <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: 449 452 <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> 452 455 <xsl:value-of select="$parenttitle"/></xsl:element> 453 456 </xsl:when> 454 457 <xsl:when test="$parentgenre = 'journal'">appears in journal issue: 455 458 <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> 458 461 <xsl:value-of select="$parenttitle"/></xsl:element> 459 462 <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> … … 463 466 <xsl:when test="$parentgenre='series'">series: 464 467 <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> 466 469 <xsl:attribute name="title"><xsl:value-of select="$parent/mods:titleInfo[@type='uniform']/mods:title"/></xsl:attribute> 467 470 <xsl:value-of select="$parenttitle"/></xsl:element> … … 471 474 <xsl:when test="$parentgenre='collection'">appears in the collection: 472 475 <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> 474 477 <xsl:attribute name="title"><xsl:value-of select="$parent/mods:titleInfo[@type='uniform']/mods:title"/></xsl:attribute> 475 478 <xsl:value-of select="$parenttitle"/></xsl:element> … … 477 480 <xsl:apply-templates select="mods:part/mods:extent[@unit='pages']"/> 478 481 </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> 480 483 </xsl:choose> 481 484 </li>
