Commit 7375d30 1 parent ad8237e commit 7375d30 Copy full SHA for 7375d30
File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 480
480
</xsl : template >
481
481
482
482
<xsl : template name =" json-ld-dateModified" >
483
+ <xsl : param name =" node" select =" ." />
483
484
<xsl : variable name =" candidate-date" >
484
485
<xsl : choose >
485
486
<xsl : when test =" function-available('date:date-time') or
549
550
</xsl : if >
550
551
</xsl : template >
551
552
552
- <!-- -->
553
+ <!-- The following templates access the Docserv config -->
553
554
<xsl : template name =" json-ld-version" >
554
555
<xsl : param name =" node" select =" ." />
555
556
<xsl : variable name =" productnumber" select =" ($node/d:info/d:productnumber)" />
569
570
</xsl : call-template >
570
571
</xsl : variable >
571
572
<xsl : variable name =" product" >
573
+ <xsl : for-each select =" $stitchxml" >
574
+ <xsl : value-of select =" key('dcfiles', $dcfile)/ancestor::product/name" />
575
+ </xsl : for-each >
576
+ </xsl : variable >
577
+ <xsl : variable name =" acronym" >
572
578
<xsl : for-each select =" $stitchxml" >
573
579
<xsl : value-of select =" key('dcfiles', $dcfile)/ancestor::product/acronym" />
574
580
</xsl : for-each >
575
581
</xsl : variable >
576
582
577
583
<xsl : if test =" $product != ''" >
578
- "name": "<xsl : value-of select =" $product" />",
584
+ "isPartOf": {
585
+ "@type": "CreativeWorkSeries",
586
+ "name": "<xsl : value-of select =" $product" />"<xsl : if test =" $acronym != ''" >
587
+ <xsl : text >, </xsl : text >
588
+ <xsl : text > "alternateName": "</xsl : text >
589
+ <xsl : value-of select =" $acronym" />
590
+ <xsl : text >"</xsl : text >
591
+ </xsl : if >
592
+ },
579
593
</xsl : if >
580
594
</xsl : template >
581
595
You can’t perform that action at this time.
0 commit comments