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

(-)a/catalogue/detail.pl (-1 / +2 lines)
Lines 306-312 foreach my $item (@items) { Link Here
306
    $item->{'ccode'} = $collections->{$ccode} if ( defined( $ccode ) && defined($collections) && exists( $collections->{$ccode} ) );
306
    $item->{'ccode'} = $collections->{$ccode} if ( defined( $ccode ) && defined($collections) && exists( $collections->{$ccode} ) );
307
    my $copynumber = $item->{'copynumber'};
307
    my $copynumber = $item->{'copynumber'};
308
    $item->{'copynumber'} = $copynumbers->{$copynumber} if ( defined($copynumber) && defined($copynumbers) && exists( $copynumbers->{$copynumber} ) );
308
    $item->{'copynumber'} = $copynumbers->{$copynumber} if ( defined($copynumber) && defined($copynumbers) && exists( $copynumbers->{$copynumber} ) );
309
    foreach (qw(ccode enumchron copynumber stocknumber itemnotes itemnotes_nonpublic uri)) {
309
    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
310
        $itemfields{$_} = 1 if ( $item->{$_} );
310
        $itemfields{$_} = 1 if ( $item->{$_} );
311
    }
311
    }
312
312
Lines 408-413 $template->param( Link Here
408
    itemdata_uri        => $itemfields{uri},
408
    itemdata_uri        => $itemfields{uri},
409
    itemdata_copynumber => $itemfields{copynumber},
409
    itemdata_copynumber => $itemfields{copynumber},
410
    itemdata_stocknumber => $itemfields{stocknumber},
410
    itemdata_stocknumber => $itemfields{stocknumber},
411
    itemdata_publisheddate => $itemfields{publisheddate},
411
    volinfo                => $itemfields{enumchron},
412
    volinfo                => $itemfields{enumchron},
412
        itemdata_itemnotes  => $itemfields{itemnotes},
413
        itemdata_itemnotes  => $itemfields{itemnotes},
413
        itemdata_nonpublicnotes => $itemfields{itemnotes_nonpublic},
414
        itemdata_nonpublicnotes => $itemfields{itemnotes_nonpublic},
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-3 / +8 lines)
Lines 229-235 Link Here
229
                <th>Home library</th>
229
                <th>Home library</th>
230
                [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
230
                [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
231
                <th>Call number</th>
231
                <th>Call number</th>
232
                [% IF volinfo %]<th class="title-string">Serial enumeration / chronology</th>[% END %]
232
                [% IF volinfo %]
233
                    [% IF itemdate_publisheddate #If there is at least one published date, use it for sorting%]
234
                        <th class="title-string">Serial enumeration / chronology</th>
235
                    [% ELSE %]
236
                        <th>Serial enumeration / chronology</th>
237
                    [% END %]
238
                [% END %]
233
                <th>Status</th>
239
                <th>Status</th>
234
                <th class="title-string">Last seen</th>
240
                <th class="title-string">Last seen</th>
235
                <th class="title-string">Date accessioned</th>
241
                <th class="title-string">Date accessioned</th>
Lines 286-292 Note that permanent location is a code, and location may be an authval. Link Here
286
                    <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
292
                    <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
287
                    [% IF ( volinfo ) %]
293
                    [% IF ( volinfo ) %]
288
                        <td class="enumchron">
294
                        <td class="enumchron">
289
                            <span title="[% item.publisheddate | html %]">
295
                            [% IF itemdate_publisheddate %]<span title="[% item.publisheddate | html %]">[% END %]
290
                            [% IF ( itemdata_enumchron ) %]
296
                            [% IF ( itemdata_enumchron ) %]
291
                                [% IF item.enumchron && item.serialseq %]
297
                                [% IF item.enumchron && item.serialseq %]
292
                                    <span class="enum">[% item.enumchron | html %]</span>
298
                                    <span class="enum">[% item.enumchron | html %]</span>
293
- 

Return to bug 13420