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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-49 / +63 lines)
Lines 88-94 Link Here
88
                    </xsl:choose>
88
                    </xsl:choose>
89
                </xsl:when>
89
                </xsl:when>
90
                <xsl:when test="$leader6='t'">Text</xsl:when>
90
                <xsl:when test="$leader6='t'">Text</xsl:when>
91
				<xsl:when test="$leader6='o'">Kit</xsl:when>
91
            <xsl:when test="$leader6='o'">Kit</xsl:when>
92
                <xsl:when test="$leader6='p'">Mixed materials</xsl:when>
92
                <xsl:when test="$leader6='p'">Mixed materials</xsl:when>
93
                <xsl:when test="$leader6='m'">Computer file</xsl:when>
93
                <xsl:when test="$leader6='m'">Computer file</xsl:when>
94
                <xsl:when test="$leader6='e' or $leader6='f'">Map</xsl:when>
94
                <xsl:when test="$leader6='e' or $leader6='f'">Map</xsl:when>
Lines 1093-1148 Link Here
1093
1093
1094
        <!--  787 Other Relationship Entry  -->
1094
        <!--  787 Other Relationship Entry  -->
1095
        <xsl:if test="marc:datafield[@tag=787]">
1095
        <xsl:if test="marc:datafield[@tag=787]">
1096
        <span class="results_summary other_relationship_entry"><span class="label">Other related works: </span>
1096
            <xsl:for-each select="marc:datafield[@tag=787]">
1097
        <xsl:for-each select="marc:datafield[@tag=787]">
1097
                <xsl:if test="@ind1 != 1">
1098
            <span class="other_relationship_entry">
1098
                    <span class="results_summary other_relationship_entry">
1099
                <xsl:if test="marc:subfield[@code='i']">
1099
                    <span class="other_relationship_entry">
1100
                    <xsl:call-template name="subfieldSelect">
1100
                        <xsl:choose>
1101
                        <xsl:with-param name="codes">i</xsl:with-param>
1101
                        <xsl:when test="@ind2=8 and marc:subfield[@code='i']">
1102
                    </xsl:call-template>
1102
                            <xsl:call-template name="subfieldSelect">
1103
                    <xsl:text> </xsl:text>
1103
                                <xsl:with-param name="codes">i</xsl:with-param>
1104
                </xsl:if>
1105
                <xsl:choose>
1106
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1107
                    <a>
1108
                        <xsl:attribute name="href">/cgi-bin/koha/opac-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>
1109
                        <xsl:call-template name="subfieldSelect">
1110
                            <xsl:with-param name="codes">a_t</xsl:with-param>
1111
                        </xsl:call-template>
1112
                    </a>
1113
                </xsl:when>
1114
                <xsl:otherwise>
1115
                    <xsl:variable name="relation_query">
1116
                        <xsl:text>ti,phr:(</xsl:text>
1117
                        <xsl:call-template name="quote_search_term">
1118
                            <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1119
                        </xsl:call-template>
1120
                        <xsl:text>)</xsl:text>
1121
                        <xsl:if test="marc:subfield[@code='a']">
1122
                            <xsl:text> AND au:(</xsl:text>
1123
                            <xsl:call-template name="quote_search_term">
1124
                                <xsl:with-param name="term">
1125
                                    <xsl:value-of select="marc:subfield[@code='a']"/>
1126
                                </xsl:with-param>
1127
                            </xsl:call-template>
1104
                            </xsl:call-template>
1128
                            <xsl:text>)</xsl:text>
1105
                            <xsl:text>: </xsl:text>
1106
                        </xsl:when>
1107
                        <xsl:otherwise>
1108
                            <span class="label">Other related works: </span>
1109
                        </xsl:otherwise>
1110
                        </xsl:choose>
1111
1112
                        <xsl:if test="@ind2 != 8 and marc:subfield[@code='i']">
1113
                            <xsl:call-template name="subfieldSelect">
1114
                                <xsl:with-param name="codes">i</xsl:with-param>
1115
                            </xsl:call-template>
1116
                            <xsl:text>: </xsl:text>
1129
                        </xsl:if>
1117
                        </xsl:if>
1130
                    </xsl:variable>
1118
1131
                    <a>
1119
                        <xsl:choose>
1132
                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1120
                        <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1133
                    <xsl:call-template name="subfieldSelect">
1121
                            <a>
1134
                        <xsl:with-param name="codes">a_t</xsl:with-param>
1122
                                <xsl:attribute name="href">/cgi-bin/koha/opac-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>
1135
                    </xsl:call-template>
1123
                                <xsl:call-template name="subfieldSelect">
1136
                    </a>
1124
                                    <xsl:with-param name="codes">a_t</xsl:with-param>
1137
                </xsl:otherwise>
1125
                                </xsl:call-template>
1138
                </xsl:choose>
1126
                            </a>
1139
                <xsl:choose>
1127
                        </xsl:when>
1140
                    <xsl:when test="position()=last()"></xsl:when>
1128
                        <xsl:otherwise>
1141
                    <xsl:otherwise><span class="separator"><xsl:text>; </xsl:text></span></xsl:otherwise>
1129
                            <xsl:variable name="relation_query">
1142
                </xsl:choose>
1130
                                <xsl:text>ti,phr:(</xsl:text>
1143
            </span>
1131
                                <xsl:call-template name="quote_search_term">
1132
                                    <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1133
                                </xsl:call-template>
1134
                                <xsl:text>)</xsl:text>
1135
                                <xsl:if test="marc:subfield[@code='a']">
1136
                                    <xsl:text> AND au:(</xsl:text>
1137
                                    <xsl:call-template name="quote_search_term">
1138
                                        <xsl:with-param name="term">
1139
                                            <xsl:value-of select="marc:subfield[@code='a']"/>
1140
                                        </xsl:with-param>
1141
                                    </xsl:call-template>
1142
                                    <xsl:text>)</xsl:text>
1143
                                </xsl:if>
1144
                            </xsl:variable>
1145
                            <a>
1146
                            <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1147
                            <xsl:call-template name="subfieldSelect">
1148
                                <xsl:with-param name="codes">a_t</xsl:with-param>
1149
                            </xsl:call-template>
1150
                            </a>
1151
                        </xsl:otherwise>
1152
                        </xsl:choose>
1153
                        <xsl:choose>
1154
                            <xsl:when test="position()=last()"></xsl:when>
1155
                            <xsl:otherwise><span class="separator"><xsl:text>; </xsl:text></span></xsl:otherwise>
1156
                        </xsl:choose>
1157
                    </span>
1158
                </span>
1159
            </xsl:if>
1144
        </xsl:for-each>
1160
        </xsl:for-each>
1145
        </span>
1146
        </xsl:if>
1161
        </xsl:if>
1147
1162
1148
        <!-- 530 -->
1163
        <!-- 530 -->
1149
- 

Return to bug 39428