-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MIR-1409 Added stylesheet response-mir-hit-oa.xsl to enable applicati…
…on modules overwriting of (open) access icon
- Loading branch information
Showing
2 changed files
with
33 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xsl:stylesheet version="1.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:i18n="xalan://org.mycore.services.i18n.MCRTranslation" | ||
exclude-result-prefixes="i18n xsl"> | ||
|
||
<xsl:template name="hit-oa"> | ||
<div class="hit_oa" data-toggle="tooltip"> | ||
<xsl:variable name="isOpenAccess" select="bool[@name='worldReadableComplete']='true'"/> | ||
|
||
<xsl:choose> | ||
<xsl:when test="$isOpenAccess"> | ||
<xsl:attribute name="title"> | ||
<xsl:value-of select="i18n:translate('mir.response.openAccess.true')"/> | ||
</xsl:attribute> | ||
<span class="badge badge-success"> | ||
<i class="fas fa-unlock-alt" aria-hidden="true"/> | ||
</span> | ||
</xsl:when> | ||
<xsl:otherwise> | ||
<xsl:attribute name="title"> | ||
<xsl:value-of select="i18n:translate('mir.response.openAccess.false')"/> | ||
</xsl:attribute> | ||
<span class="badge badge-warning"> | ||
<i class="fas fa-lock" aria-hidden="true"/> | ||
</span> | ||
</xsl:otherwise> | ||
</xsl:choose> | ||
</div> | ||
</xsl:template> | ||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters