Skip to content

Commit

Permalink
UBO-352 FSU040THUL-1064 Made whole badge indicating duplicates clicka…
Browse files Browse the repository at this point in the history
…ble, support English in badge (#413)
  • Loading branch information
Possommi authored Aug 19, 2024
1 parent 45ae3a3 commit 889d365
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,11 @@ ubo.article_number.placeholder = Alternative zur Seitenzahl, z.
ubo.articlenumber = Artikel
ubo.authorlink.local.text = Lokal
ubo.authorlink.local.title = Lokale ID
ubo.badge.duplicate.start = Es gibt eventuell
ubo.badge.duplicate.singular = eine Dublette
ubo.badge.duplicate.plural = {0} Dubletten


ubo.category = Kategorie
ubo.comment = Anmerkungen, Kommentare
ubo.conference = Konferenz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,9 @@ ubo.article_number.placeholder = number of online ar
ubo.articlenumber = Article
ubo.authorlink.local.text = Local
ubo.authorlink.local.title = Local ID
ubo.badge.duplicate.start = There may be
ubo.badge.duplicate.singular = one duplicate
ubo.badge.duplicate.plural = {0} duplicates
ubo.category = Category
ubo.comment = Notes, comments
ubo.conference = Conference
Expand Down
25 changes: 12 additions & 13 deletions ubo-common/src/main/resources/xsl/mycoreobject.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,8 @@

<xsl:if test="$numlinks &gt; 0">
<span class="badge badge-alternative mr-1">
<xsl:value-of select="i18n:translate('ubo.relatedItem.link')"/>
<xsl:text>: </xsl:text>
<a href="solr/select?q=link:{/mycoreobject/@ID}&amp;sort=year+desc">
<xsl:value-of select="$numlinks" />
<xsl:text> </xsl:text>
<xsl:value-of select="i18n:translate('ubo.relatedItem.host.contains.publications')"/>
<xsl:value-of select="concat(i18n:translate('ubo.relatedItem.link'),': ', $numlinks, ' ', i18n:translate('ubo.relatedItem.host.contains.publications'))"/>
</a>
</span>
</xsl:if>
Expand Down Expand Up @@ -285,16 +281,19 @@

<xsl:if test="$numDuplicates &gt; 0">
<span class="badge badge-alternative ml-1 mr-1">
<xsl:text>Es gibt eventuell </xsl:text>
<a href="{$ServletsBaseURL}DozBibEntryServlet?id={/mycoreobject/@ID}&amp;XSL.Style=structure">
<xsl:choose>
<xsl:when test="$numDuplicates = 1">eine Dublette</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat($numDuplicates,' Dubletten')" />
</xsl:otherwise>
</xsl:choose>
<xsl:variable name="extro">
<xsl:choose>
<xsl:when test="$numDuplicates = 1">
<xsl:value-of select="i18n:translate('ubo.badge.duplicate.singular')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="i18n:translate('ubo.badge.duplicate.plural', $numDuplicates)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="concat(i18n:translate('ubo.badge.duplicate.start'), ' ', $extro, '.')"/>
</a>
<xsl:text>.</xsl:text>
</span>
</xsl:if>

Expand Down

0 comments on commit 889d365

Please sign in to comment.