-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathrelatedItem-subselect.xsl
More file actions
37 lines (33 loc) · 1.43 KB
/
relatedItem-subselect.xsl
File metadata and controls
37 lines (33 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:encoder="xalan://java.net.URLEncoder"
xmlns:xalan="http://xml.apache.org/xalan"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="encoder xalan xsl">
<xsl:include href="resource:xsl/coreFunctions.xsl" />
<xsl:include href="resource:xsl/copynodes.xsl" />
<xsl:param name="RequestURL" />
<!-- ========== XED Subselect detection ========== -->
<xsl:variable name="xedSession">
<xsl:call-template name="UrlGetParam">
<xsl:with-param name="url" select="$RequestURL" />
<xsl:with-param name="par" select="'_xed_subselect_session'" />
</xsl:call-template>
</xsl:variable>
<xsl:template match="li[a/@class='hit_option hit_edit']">
<xsl:variable name="objectID" select="substring-after(a/@href, 'id=')" />
<xsl:copy>
<xsl:apply-templates select='@*|node()' />
</xsl:copy>
<li>
<a title="" class="hit_option hit_to_basket dropdown-item">
<xsl:attribute name="href">
<xsl:value-of select="concat($ServletsBaseURL,'XEditor?_xed_submit_return= ')" />
<xsl:value-of select="concat('&_xed_session=',encoder:encode($xedSession,'UTF-8'))" />
<xsl:value-of select="concat('&@xlink:href=',encoder:encode($objectID,'UTF-8'))" />
</xsl:attribute>
<span class="fas fa-share-alt"/>übernehmen
</a>
</li>
</xsl:template>
</xsl:stylesheet>