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

(-)a/catalogue/detail.pl (-1 / +2 lines)
Lines 275-281 foreach my $item (@items) { Link Here
275
    $item->{'ccode'} = $collections->{$ccode} if ( defined( $ccode ) && defined($collections) && exists( $collections->{$ccode} ) );
275
    $item->{'ccode'} = $collections->{$ccode} if ( defined( $ccode ) && defined($collections) && exists( $collections->{$ccode} ) );
276
    my $copynumber = $item->{'copynumber'};
276
    my $copynumber = $item->{'copynumber'};
277
    $item->{'copynumber'} = $copynumbers->{$copynumber} if ( defined($copynumber) && defined($copynumbers) && exists( $copynumbers->{$copynumber} ) );
277
    $item->{'copynumber'} = $copynumbers->{$copynumber} if ( defined($copynumber) && defined($copynumbers) && exists( $copynumbers->{$copynumber} ) );
278
    foreach (qw(ccode enumchron copynumber stocknumber itemnotes itemnotes_nonpublic uri)) {
278
    foreach (qw(ccode enumchron copynumber stocknumber itemnotes itemnotes_nonpublic uri publisheddate)) { # Warning when removing GetItemsInfo - publisheddate (at least) is not part of the items table
279
        $itemfields{$_} = 1 if ( $item->{$_} );
279
        $itemfields{$_} = 1 if ( $item->{$_} );
280
    }
280
    }
281
281
Lines 383-388 $template->param( Link Here
383
    itemdata_uri        => $itemfields{uri},
383
    itemdata_uri        => $itemfields{uri},
384
    itemdata_copynumber => $itemfields{copynumber},
384
    itemdata_copynumber => $itemfields{copynumber},
385
    itemdata_stocknumber => $itemfields{stocknumber},
385
    itemdata_stocknumber => $itemfields{stocknumber},
386
    itemdata_publisheddate => $itemfields{publisheddate},
386
    volinfo                => $itemfields{enumchron},
387
    volinfo                => $itemfields{enumchron},
387
        itemdata_itemnotes  => $itemfields{itemnotes},
388
        itemdata_itemnotes  => $itemfields{itemnotes},
388
        itemdata_nonpublicnotes => $itemfields{itemnotes_nonpublic},
389
        itemdata_nonpublicnotes => $itemfields{itemnotes_nonpublic},
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-3 / +8 lines)
Lines 198-204 Link Here
198
                <th>Home library</th>
198
                <th>Home library</th>
199
                [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
199
                [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
200
                <th>Call number</th>
200
                <th>Call number</th>
201
                [% IF volinfo %]<th class="title-string">Serial enumeration / chronology</th>[% END %]
201
                [% IF volinfo %]
202
                    [% IF itemdate_publisheddate #If there is at least one published date, use it for sorting%]
203
                        <th class="title-string">Serial enumeration / chronology</th>
204
                    [% ELSE %]
205
                        <th>Serial enumeration / chronology</th>
206
                    [% END %]
207
                [% END %]
202
                <th>Status</th>
208
                <th>Status</th>
203
                <th class="title-string">Last seen</th>
209
                <th class="title-string">Last seen</th>
204
                <th class="title-string">Date accessioned</th>
210
                <th class="title-string">Date accessioned</th>
Lines 241-247 Link Here
241
                    <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
247
                    <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
242
                    [% IF ( volinfo ) %]
248
                    [% IF ( volinfo ) %]
243
                        <td class="enumchron">
249
                        <td class="enumchron">
244
                            <span title="[% item.publisheddate | html %]">
250
                            [% IF itemdate_publisheddate %]<span title="[% item.publisheddate | html %]">[% END %]
245
                            [% IF ( itemdata_enumchron ) %]
251
                            [% IF ( itemdata_enumchron ) %]
246
                                [% IF item.enumchron && item.serialseq %]
252
                                [% IF item.enumchron && item.serialseq %]
247
                                    <span class="enum">[% item.enumchron | html %]</span>
253
                                    <span class="enum">[% item.enumchron | html %]</span>
248
- 

Return to bug 13420