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

(-)a/catalogue/detail.pl (+19 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 = [ '<h1>test</h1>' ];
220
            for my $part ( @{$components} ) {
221
                    push @{$parts}, XSLTParse4Display( 
222
                        1, $part, "XSLTResultsDisplay", 1,
223
                        undef, $sysxml, $xslparts, $lang,
224
                    );
225
            }
226
            $template->param(
227
               ShowComponentParts => $parts
228
            );
229
        }
230
    }
231
}
213
232
214
# Get acquisition details
233
# Get acquisition details
215
if ( C4::Context->preference('AcquisitionDetails') ) {
234
if ( C4::Context->preference('AcquisitionDetails') ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +22 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 ( ShowComponentParts ) %]<li><a href="#components">Components ([% ( ShowComponentParts.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 ShowComponentParts.size %]
688
<div id="components">
689
    <div class="content_set">
690
        <h1>Components</h1>
691
        <table>
692
            [% FOR PART IN ShowComponentParts %]
693
            <tr>
694
                <td>
695
                    1
696
                </td>
697
                <td>
698
                    [% PART | $raw %]
699
                </td>
700
            </tr>
701
            [% END %]
702
        </table>
703
    </div>
704
</div>
705
706
[% END %]
707
686
[% IF ( subscriptionsnumber ) %]
708
[% IF ( subscriptionsnumber ) %]
687
<div id="subscriptions">
709
<div id="subscriptions">
688
<div id="catalogue_detail_subscriptions">
710
<div id="catalogue_detail_subscriptions">
689
- 

Return to bug 11175