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

(-)a/catalogue/detail.pl (+20 lines)
Lines 210-215 foreach my $subscription (@subscriptions) { Link Here
210
    push @subs, \%cell;
210
    push @subs, \%cell;
211
}
211
}
212
212
213
# Get component parts details
214
my $showcomp = C4::Context->preference('ShowComponentRecords');
215
if ( $showcomp eq 'both' || $showcomp eq 'staff' ) {
216
    if ( my $components = $biblio->get_marc_analytics(300) ) {
217
        my $xslparts = C4::Context->preference('XSLTResultsDisplay') || "default";
218
        if ( $xslparts ) {
219
            my $parts;
220
            for my $part ( @{$components} ) {
221
                $part = MARC::Record->new_from_xml( $part, 'UTF-8' );
222
223
                push @{$parts},
224
                  XSLTParse4Display( 1, $part, "XSLTResultsDisplay", 1,
225
                    undef, $sysxml, $xslparts, $lang, );
226
            }
227
            $template->param(
228
               ComponentParts => $parts
229
            );
230
        }
231
    }
232
}
213
233
214
# Get acquisition details
234
# Get acquisition details
215
if ( C4::Context->preference('AcquisitionDetails') ) {
235
if ( C4::Context->preference('AcquisitionDetails') ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +18 lines)
Lines 278-283 Link Here
278
        </li>
278
        </li>
279
    [% END %]
279
    [% END %]
280
[% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
280
[% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
281
[% IF ( ComponentParts ) %]<li><a href="#components">Components ([% ( ComponentParts.size || 1 ) %])</a></li>[% END %]
281
[% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
282
[% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
282
[% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
283
[% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
283
[% IF suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %]
284
[% IF suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %]
Lines 683-688 Note that permanent location is a code, and location may be an authval. Link Here
683
684
684
[% END %]
685
[% END %]
685
686
687
[% IF ComponentParts.size %]
688
<div id="components">
689
    <div class="content_set">
690
        <table>
691
            [% FOR PART IN ComponentParts %]
692
            <tr>
693
                <td>
694
                    [% PART | $raw %]
695
                </td>
696
            </tr>
697
            [% END %]
698
        </table>
699
    </div>
700
</div>
701
702
[% END %]
703
686
[% IF ( subscriptionsnumber ) %]
704
[% IF ( subscriptionsnumber ) %]
687
<div id="subscriptions">
705
<div id="subscriptions">
688
<div id="catalogue_detail_subscriptions">
706
<div id="catalogue_detail_subscriptions">
689
- 

Return to bug 11175