Skip to content

Commit bebd545

Browse files
committed
Fixed links to the admin app
1 parent c85fffe commit bebd545

File tree

2 files changed

+6
-8
lines changed
  • src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2

2 files changed

+6
-8
lines changed

src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/imports/lapp.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ exclude-result-prefixes="#all">
2323

2424
<!-- show "Actions" dropdown with Install/Uninstall options for packages -->
2525
<xsl:template match="*[rdf:type/@rdf:resource = '&lapp;Package']" mode="bs2:Actions">
26-
<xsl:variable name="admin-origin" select="(key('resources', $lapp:Application//*[lapp:origin/@rdf:resource = $lapp:origin]/lapp:adminApplication/(@rdf:resource, @rdf:nodeID), $lapp:Application)/lapp:origin/@rdf:resource, $ldt:base)[1]" as="xs:anyURI"/>
26+
<xsl:variable name="admin-origin" select="xs:anyURI(replace(string($lapp:origin), '^(https?://)', '$1admin.'))" as="xs:anyURI"/>
2727

2828
<div class="btn-group pull-right">
2929
<button type="button" class="btn dropdown-toggle">

src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/layout.xsl

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,13 +1254,11 @@ exclude-result-prefixes="#all">
12541254
</button>
12551255
</li>
12561256
<li>
1257-
<xsl:for-each select="$lapp:Application">
1258-
<a href="{key('resources', //*[lapp:origin/@rdf:resource = $lapp:origin]/lapp:adminApplication/(@rdf:resource, @rdf:nodeID))/lapp:origin/@rdf:resource}" target="_blank">
1259-
<xsl:value-of>
1260-
<xsl:apply-templates select="key('resources', 'administration', document('translations.rdf'))" mode="ac:label"/>
1261-
</xsl:value-of>
1262-
</a>
1263-
</xsl:for-each>
1257+
<a href="{replace(string($lapp:origin), '^(https?://)', '$1admin.')}" target="_blank">
1258+
<xsl:value-of>
1259+
<xsl:apply-templates select="key('resources', 'administration', document('translations.rdf'))" mode="ac:label"/>
1260+
</xsl:value-of>
1261+
</a>
12641262
</li>
12651263
<li>
12661264
<a href="{resolve-uri('ns', $ldt:base)}">

0 commit comments

Comments
 (0)