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

(-)a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css (+5 lines)
Lines 1851-1856 span.permissiondesc { Link Here
1851
.results_summary a {
1851
.results_summary a {
1852
  font-weight: normal;
1852
  font-weight: normal;
1853
}
1853
}
1854
.componentPartRecordsContainer {
1855
    float: right;
1856
    overflow-y: auto;
1857
    overflow-x: hidden;
1858
}
1854
1859
1855
ul.budget_hierarchy {
1860
ul.budget_hierarchy {
1856
    margin-left: 0px;
1861
    margin-left: 0px;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (+12 lines)
Lines 172-177 function verify_images() { Link Here
172
<script type="text/javascript" src="[% interface %]/js/browser.js"></script>
172
<script type="text/javascript" src="[% interface %]/js/browser.js"></script>
173
<script type="text/javascript">
173
<script type="text/javascript">
174
//<![CDATA[
174
//<![CDATA[
175
176
    //Setting the height of the component part record container to prevent overflow
177
    $(document).ready(function() {
178
        var containerHeight = $("#catalogue_detail_biblio").height();
179
        $(".componentPartRecordsContainer").height( containerHeight );
180
    });
181
    $(window).resize(function() {
182
        var containerHeight = $("#catalogue_detail_biblio").height();
183
        $(".componentPartRecordsContainer").height( containerHeight );
184
    });
185
186
175
    var browser = KOHA.browser('[% searchid %]', parseInt('[% biblionumber %]', 10));
187
    var browser = KOHA.browser('[% searchid %]', parseInt('[% biblionumber %]', 10));
176
    browser.show();
188
    browser.show();
177
189
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (+27 lines)
Lines 100-105 Link Here
100
            </h1>
100
            </h1>
101
        </xsl:if>
101
        </xsl:if>
102
102
103
104
        <!--Component part records: Displaying title and author of component part records if available. These are floated to right by css. -->
105
        <xsl:if test="marc:componentPartRecords/marc:componentPart">
106
                 <span class="componentPartRecordsContainer results_summary">
107
                       <h5>Component part records:</h5>
108
                       <xsl:for-each select="marc:componentPartRecords/marc:componentPart">
109
                         <span class="componentPartRecord">
110
                               <xsl:if test="marc:title">
111
                                 <span class="componentPartRecordTitle">
112
                                       <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="marc:biblionumber" /></xsl:attribute>
113
                                         <xsl:value-of select="marc:title" />
114
                                       </a>
115
                                 </span>
116
                               </xsl:if>
117
                               <xsl:if test="marc:author">
118
                                 -
119
                                 <span class="componentPartRecordAuthor">
120
                                       <xsl:value-of select="marc:author" />
121
                                 </span>
122
                               </xsl:if>
123
                         </span>
124
                         <br />
125
                       </xsl:for-each>
126
                 </span>
127
               </xsl:if>
128
129
103
        <xsl:if test="marc:datafield[@tag=245]">
130
        <xsl:if test="marc:datafield[@tag=245]">
104
        <h1>
131
        <h1>
105
            <xsl:for-each select="marc:datafield[@tag=245]">
132
            <xsl:for-each select="marc:datafield[@tag=245]">
(-)a/koha-tmpl/opac-tmpl/prog/en/css/opac.css (+6 lines)
Lines 1132-1137 table#marc div.results_summary ul li { Link Here
1132
	display : inline;
1132
	display : inline;
1133
}
1133
}
1134
1134
1135
.componentPartRecordsContainer {
1136
    float: right;
1137
    overflow-y: auto;
1138
    overflow-x: hidden;
1139
}
1140
1135
#basketcount {
1141
#basketcount {
1136
	display : inline;
1142
	display : inline;
1137
}
1143
}
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (+12 lines)
Lines 38-43 Link Here
38
<script type="text/javascript">
38
<script type="text/javascript">
39
//<![CDATA[
39
//<![CDATA[
40
40
41
    //Setting the height of the component part record container to prevent overflow
42
    $(document).ready(function() {
43
        var containerHeight = $("#catalogue_detail_biblio").height();
44
        $(".componentPartRecordsContainer").height( containerHeight );
45
    });
46
    $(window).resize(function() {
47
        var containerHeight = $("#catalogue_detail_biblio").height();
48
        $(".componentPartRecordsContainer").height( containerHeight );
49
    });
50
41
    [% IF ( OpacBrowseResults && busc ) %]
51
    [% IF ( OpacBrowseResults && busc ) %]
42
        var arrPagination = new Array();
52
        var arrPagination = new Array();
43
        var pag_index_ini = [% indexPag %];
53
        var pag_index_ini = [% indexPag %];
Lines 533-538 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
533
    <div class="yui-b"><div id="opac-detail-yui-ge" class="yui-ge">
543
    <div class="yui-b"><div id="opac-detail-yui-ge" class="yui-ge">
534
    <div class="yui-u first">
544
    <div class="yui-u first">
535
    <div id="userdetail" class="container">
545
    <div id="userdetail" class="container">
546
    <div class="yui-g" style="float: none">[%# This prevents overflow from the component part records list from breaking the detail view. %]
536
    <div id="catalogue_detail_biblio">
547
    <div id="catalogue_detail_biblio">
537
548
538
    <div id="bookcover">
549
    <div id="bookcover">
Lines 939-944 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
939
950
940
</div>
951
</div>
941
952
953
</div>[%# End of div class="yui-g" %]
942
<div id="bibliodescriptions" class="toptabs">
954
<div id="bibliodescriptions" class="toptabs">
943
955
944
<ul>   
956
<ul>   
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl (-2 / +28 lines)
Lines 120-125 Link Here
120
            </h1>
120
            </h1>
121
        </xsl:if>
121
        </xsl:if>
122
122
123
		<!--Component part records: Displaying title and author of component part records if available. These are floated to right by css. -->
124
		<xsl:if test="marc:componentPartRecords/marc:componentPart">
125
		 <span class="componentPartRecordsContainer results_summary">
126
			   <h5>Component part records:</h5>
127
			   <xsl:for-each select="marc:componentPartRecords/marc:componentPart">
128
				 <span class="componentPartRecord">
129
					   <xsl:if test="marc:title">
130
						 <span class="componentPartRecordTitle">
131
							   <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="marc:biblionumber" /></xsl:attribute>
132
								 <xsl:value-of select="marc:title" />
133
							   </a>
134
						 </span>
135
					   </xsl:if>
136
					   <xsl:if test="marc:author">
137
						 -
138
						 <span class="componentPartRecordAuthor">
139
							   <xsl:value-of select="marc:author" />
140
						 </span>
141
					   </xsl:if>
142
				 </span>
143
				 <br />
144
			   </xsl:for-each>
145
		 </span>
146
		</xsl:if>
147
148
123
        <xsl:if test="marc:datafield[@tag=245]">
149
        <xsl:if test="marc:datafield[@tag=245]">
124
        <h1 class="title" property="name">
150
        <h1 class="title" property="name">
125
            <xsl:for-each select="marc:datafield[@tag=245]">
151
            <xsl:for-each select="marc:datafield[@tag=245]">
Lines 146-151 Link Here
146
        </h1>
172
        </h1>
147
        </xsl:if>
173
        </xsl:if>
148
174
175
149
        <!-- Author Statement: Alternate Graphic Representation (MARC 880) -->
176
        <!-- Author Statement: Alternate Graphic Representation (MARC 880) -->
150
        <xsl:if test="$display880">
177
        <xsl:if test="$display880">
151
            <h5 class="author">
178
            <h5 class="author">
Lines 982-988 Link Here
982
        </xsl:if>
1009
        </xsl:if>
983
1010
984
    </xsl:element>
1011
    </xsl:element>
985
    </xsl:template>
1012
    </xsl:template><!-- End of  marc:record -->
986
1013
987
    <xsl:template name="showAuthor">
1014
    <xsl:template name="showAuthor">
988
        <xsl:param name="authorfield" />
1015
        <xsl:param name="authorfield" />
989
- 

Return to bug 11175