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

(-)a/koha-tmpl/opac-tmpl/bootstrap/css/opac.css (+7 lines)
Lines 108-113 td { Link Here
108
#booleansearch label {
108
#booleansearch label {
109
  display: inline;
109
  display: inline;
110
}
110
}
111
112
.componentPartRecordsContainer {
113
    float: right;
114
    overflow-y: auto;
115
    overflow-x: hidden;
116
}
117
111
#basketcount {
118
#basketcount {
112
  display: inline;
119
  display: inline;
113
  margin: 0;
120
  margin: 0;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (+4 lines)
Lines 1667-1672 Link Here
1667
//]]>
1667
//]]>
1668
</script>
1668
</script>
1669
1669
1670
[% IF ( Koha.Preference( 'AddComponentPartRecordsToDetailedViews' ) == 1 ) %]
1671
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/componentPart.js"></script>
1672
[% END %]
1673
1670
[% IF OPACPopupAuthorsSearch %]
1674
[% IF OPACPopupAuthorsSearch %]
1671
    <script type="text/javascript">
1675
    <script type="text/javascript">
1672
    //<![CDATA[
1676
    //<![CDATA[
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (+27 lines)
Lines 92-97 Link Here
92
            </xsl:choose>
92
            </xsl:choose>
93
        </xsl:variable>
93
        </xsl:variable>
94
94
95
96
        <!--Component part records: Displaying title and author of component part records if available. These are floated to right by css. -->
97
        <xsl:if test="marc:componentPartRecords/marc:componentPart">
98
            <span class="componentPartRecordsContainer results_summary">
99
                <h5>Component part records:</h5>
100
                <xsl:for-each select="marc:componentPartRecords/marc:componentPart">
101
                    <span class="componentPartRecord">
102
                        <xsl:if test="marc:title">
103
                            <span class="componentPartRecordTitle">
104
                                <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="marc:biblionumber" /></xsl:attribute>
105
                                    <xsl:value-of select="marc:title" />
106
                                </a>
107
                            </span>
108
                        </xsl:if>
109
                        <xsl:if test="marc:author">
110
                            -
111
                            <span class="componentPartRecordAuthor">
112
                                <xsl:value-of select="marc:author" />
113
                            </span>
114
                        </xsl:if>
115
                    </span>
116
                    <br />
117
                </xsl:for-each>
118
            </span>
119
        </xsl:if>
120
95
        <!-- Schema.org type -->
121
        <!-- Schema.org type -->
96
        <xsl:variable name="schemaOrgType">
122
        <xsl:variable name="schemaOrgType">
97
            <xsl:choose>
123
            <xsl:choose>
Lines 109-114 Link Here
109
            <xsl:attribute name="typeof"><xsl:value-of select='$schemaOrgType' /> Product</xsl:attribute>
135
            <xsl:attribute name="typeof"><xsl:value-of select='$schemaOrgType' /> Product</xsl:attribute>
110
            <xsl:attribute name="resource">#record</xsl:attribute>
136
            <xsl:attribute name="resource">#record</xsl:attribute>
111
137
138
112
        <!-- Title Statement -->
139
        <!-- Title Statement -->
113
        <!-- Alternate Graphic Representation (MARC 880) -->
140
        <!-- Alternate Graphic Representation (MARC 880) -->
114
        <xsl:if test="$display880">
141
        <xsl:if test="$display880">
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/componentPart.js (-1 / +9 lines)
Line 0 Link Here
0
- 
1
//Setting the height of the component part record container to prevent overflow
2
$(document).ready(function() {
3
    var containerHeight = $("#catalogue_detail_biblio").height();
4
    $(".componentPartRecordsContainer").height( containerHeight );
5
});
6
$(window).resize(function() {
7
    var containerHeight = $("#catalogue_detail_biblio").height();
8
    $(".componentPartRecordsContainer").height( containerHeight );
9
});

Return to bug 11175