View | Details | Raw Unified | Return to bug 8948
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-1 / +63 lines)
Lines 1089-1094 Link Here
1089
            </span>
1089
            </span>
1090
        </xsl:if>
1090
        </xsl:if>
1091
1091
1092
        <!--  787 Other Relationship Entry  -->
1093
        <xsl:if test="marc:datafield[@tag=787]">
1094
        <span class="results_summary other_relationship_entry"><span class="label">Other related works: </span>
1095
        <xsl:for-each select="marc:datafield[@tag=580]">
1096
            <span class="linking_complexity_note">
1097
                <xsl:call-template name="subfieldSelect">
1098
                    <xsl:with-param name="codes">a</xsl:with-param>
1099
                </xsl:call-template>
1100
                <xsl:text> </xsl:text>
1101
            </span>
1102
        </xsl:for-each>
1103
        <xsl:for-each select="marc:datafield[@tag=787]">
1104
            <span class="other_relationship_entry">
1105
                <xsl:variable name="f787">
1106
                    <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
1107
                    <xsl:with-param name="codes">a_t</xsl:with-param>
1108
                    </xsl:call-template></xsl:with-param></xsl:call-template>
1109
                </xsl:variable>
1110
                <xsl:if test="marc:subfield[@code='i']">
1111
                    <xsl:call-template name="subfieldSelect">
1112
                        <xsl:with-param name="codes">i</xsl:with-param>
1113
                    </xsl:call-template>
1114
                    <xsl:text>: </xsl:text>
1115
                </xsl:if>
1116
                <xsl:choose>
1117
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1118
                    <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1119
                        <xsl:value-of select="$f787"/>
1120
                    </a>
1121
                </xsl:when>
1122
                <xsl:otherwise>
1123
                    <xsl:variable name="relation_query">
1124
                        <xsl:text>ti,phr:(</xsl:text>
1125
                        <xsl:call-template name="quote_search_term">
1126
                            <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1127
                        </xsl:call-template>
1128
                        <xsl:text>)</xsl:text>
1129
                        <xsl:if test="marc:subfield[@code='a']">
1130
                            <xsl:text> AND au:(</xsl:text>
1131
                            <xsl:call-template name="quote_search_term">
1132
                                <xsl:with-param name="term">
1133
                                    <xsl:value-of select="marc:subfield[@code='a']"/>
1134
                                </xsl:with-param>
1135
                            </xsl:call-template>
1136
                            <xsl:text>)</xsl:text>
1137
                        </xsl:if>
1138
                    </xsl:variable>
1139
                    <a>
1140
                    <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" />
1141
                    </xsl:attribute>
1142
                        <xsl:value-of select="$f787"/>
1143
                    </a>
1144
                </xsl:otherwise>
1145
                </xsl:choose>
1146
                <xsl:choose>
1147
                    <xsl:when test="position()=last()"></xsl:when>
1148
                    <xsl:otherwise><span class="separator"><xsl:text>; </xsl:text></span></xsl:otherwise>
1149
                </xsl:choose>
1150
            </span>
1151
        </xsl:for-each>
1152
        </span>
1153
        </xsl:if>
1154
1092
        <!-- 530 -->
1155
        <!-- 530 -->
1093
        <xsl:if test="marc:datafield[@tag=530]">
1156
        <xsl:if test="marc:datafield[@tag=530]">
1094
        <xsl:for-each select="marc:datafield[@tag=530]">
1157
        <xsl:for-each select="marc:datafield[@tag=530]">
1095
- 

Return to bug 8948