Skip to content

Commit

Permalink
update TSVs with Authors with Affiliations column, adjust dhq2html.xs…
Browse files Browse the repository at this point in the history
…l indexing of TSVs accordingly
  • Loading branch information
joelsjlee committed Jun 20, 2024
1 parent 5c6bc6f commit 2d23b88
Show file tree
Hide file tree
Showing 4 changed files with 2,220 additions and 2,220 deletions.
12 changes: 6 additions & 6 deletions common/xslt/dhq2html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@
<!-- Select the chosen matching row -->
<xsl:variable name="inner_tabs" select="tokenize($identifiedRow[1], '\t')" />
<!-- Editing the url to get the relative url path. index 16 is the url-->
<xsl:variable name="path" select="substring-after($inner_tabs[16], 'org')" />
<!-- Now we pull from the tabs of the selected row. 5 is the name of the article -->
<xsl:variable name="path" select="substring-after($inner_tabs[17], 'org')" />
<!-- Now we pull from the tabs of the selected row. 6 is the name of the article -->
<!-- Setting up the url and its <a> tag-->
<a href="{$path}"><xsl:value-of select="$inner_tabs[5]"/></a>,&#160;
<!-- selecting and inputting the year [2], author(s) [3], and university [4] -->
<a href="{$path}"><xsl:value-of select="$inner_tabs[6]"/></a>,
<!-- selecting and inputting the year [2], and author(s) and their affiliation [5] -->
<xsl:value-of select="$inner_tabs[2]"/>,
<xsl:value-of select="$inner_tabs[3]"/>, <xsl:value-of select="$inner_tabs[4] "/>
<xsl:value-of select="$inner_tabs[5]"/>
</xsl:function>


Expand All @@ -266,7 +266,7 @@
<xsl:param name="all-rows"/>
<!-- The recommendations for this article start at column 6 of the TSV and end at column 10. -->
<ol>
<xsl:for-each select="6 to 10">
<xsl:for-each select="7 to 11">
<li>
<!-- create variable to pass as parameter. This is the index of a recommended article ID -->
<xsl:variable name="input_num" select="." />
Expand Down
Loading

0 comments on commit 2d23b88

Please sign in to comment.