Skip to content

Commit

Permalink
Merge pull request #118 from TAMULib/sprint8-production-ready
Browse files Browse the repository at this point in the history
Sprint8 production ready
  • Loading branch information
jmicah authored Mar 21, 2017
2 parents 3f2dd53 + 99351d6 commit 58751d6
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,25 +284,46 @@
</div>
</xsl:template>

<!-- TAMU CUstomization - Preferentially show DOIs over URIs if they are present -->
<xsl:template name="itemSummaryView-DIM-URI">
<xsl:if test="dim:field[@element='identifier' and @qualifier='uri' and descendant::text()]">
<div class="simple-item-view-uri item-page-field-wrapper table">
<h5><i18n:text>xmlui.dri2xhtml.METS-1.0.item-uri</i18n:text></h5>
<span>
<xsl:for-each select="dim:field[@element='identifier' and @qualifier='uri']">
<a>
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="dim:field[@element='identifier' and @qualifier='doi' and descendant::text()]">
<div class="simple-item-view-uri item-page-field-wrapper table">
<h5><i18n:text>xmlui.dri2xhtml.METS-1.0.item-doi</i18n:text></h5>
<span>
<xsl:for-each select="dim:field[@element='identifier' and @qualifier='doi']">
<a>
<xsl:attribute name="href">
<xsl:copy-of select="./node()"/>
</xsl:attribute>
<xsl:copy-of select="./node()"/>
</xsl:attribute>
<xsl:copy-of select="./node()"/>
</a>
<xsl:if test="count(following-sibling::dim:field[@element='identifier' and @qualifier='uri']) != 0">
<br/>
</xsl:if>
</xsl:for-each>
</span>
</div>
</xsl:if>
</a>
<xsl:if test="count(following-sibling::dim:field[@element='identifier' and @qualifier='doi']) != 0">
<br/>
</xsl:if>
</xsl:for-each>
</span>
</div>
</xsl:when>
<xsl:otherwise>
<div class="simple-item-view-uri item-page-field-wrapper table">
<h5><i18n:text>xmlui.dri2xhtml.METS-1.0.item-uri</i18n:text></h5>
<span>
<xsl:for-each select="dim:field[@element='identifier' and @qualifier='uri']">
<a>
<xsl:attribute name="href">
<xsl:copy-of select="./node()"/>
</xsl:attribute>
<xsl:copy-of select="./node()"/>
</a>
<xsl:if test="count(following-sibling::dim:field[@element='identifier' and @qualifier='uri']) != 0">
<br/>
</xsl:if>
</xsl:for-each>
</span>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<!-- TAMU CUstomization -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@
<!-- Mobile viewport optimized: h5bp.com/viewport -->
<meta name="viewport" content="width=device-width,initial-scale=1"/>

<!-- TAMU Customization - put in our Google Search Console Verification Keys -->
<meta name="google-site-verification" content="7EzVSdf-O3PoukOoJU-9YRjuOw9meAaZFOKQPZx2FYI" />
<meta name="google-site-verification" content="YWE3QshrKEMYA3yVgxybcCDuRWiBfCnFTf9vxGy0frg" />

<link rel="shortcut icon">
<xsl:attribute name="href">
<xsl:value-of select="$theme-path"/>
Expand Down
2 changes: 2 additions & 0 deletions dspace/modules/xmlui/src/main/webapp/i18n/messages.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2239,6 +2239,8 @@
<message key="xmlui.dri2xhtml.METS-1.0.item-abstract">Abstract</message>
<message key="xmlui.dri2xhtml.METS-1.0.item-description">Description</message>
<message key="xmlui.dri2xhtml.METS-1.0.item-uri">URI</message>
<!-- TAMU Customization -->
<message key="xmlui.dri2xhtml.METS-1.0.item-doi">DOI</message>
<message key="xmlui.dri2xhtml.METS-1.0.item-date">Date</message>
<message key="xmlui.dri2xhtml.METS-1.0.item-publisher">Publisher</message>
<message key="xmlui.dri2xhtml.METS-1.0.item-subject">Subject</message>
Expand Down

0 comments on commit 58751d6

Please sign in to comment.