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

(-)a/cataloguing/additem.pl (-1 / +1 lines)
Lines 872-878 for my $row ( @big_array ) { Link Here
872
        {
872
        {
873
            my ( undef, $subfield ) = GetMarcFromKohaField($kohafield);
873
            my ( undef, $subfield ) = GetMarcFromKohaField($kohafield);
874
            next unless $key eq $subfield;
874
            next unless $key eq $subfield;
875
            $item_field->{field} = output_pref( { str => $row->{$key}, dateonly => 1 } );
875
            $item_field->{datatype} = 'date';
876
        }
876
        }
877
877
878
        push @item_fields, $item_field;
878
        push @item_fields, $item_field;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-3 / +12 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE KohaDates %]
4
[% USE ColumnsSettings %]
5
[% USE ColumnsSettings %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Cataloging &rsaquo; [% title | html %] [% IF ( author ) %] by [% author | html %][% END %] (Record #[% biblionumber | html %]) &rsaquo; Items</title>
7
<title>Koha &rsaquo; Cataloging &rsaquo; [% title | html %] [% IF ( author ) %] by [% author | html %][% END %] (Record #[% biblionumber | html %]) &rsaquo; Items</title>
Lines 45-50 Link Here
45
46
46
<div id="cataloguing_additem_itemlist">
47
<div id="cataloguing_additem_itemlist">
47
    [% IF ( item_loop ) %]
48
    [% IF ( item_loop ) %]
49
        [% SET date_fields = [ 'dateaccessioned', 'onloan', 'datelastseen', 'datelastborrowed', 'replacementpricedate' ] %]
48
        <div>
50
        <div>
49
        <table id="itemst">
51
        <table id="itemst">
50
          <thead>
52
          <thead>
Lines 52-58 Link Here
52
                <th>&nbsp;</th>
54
                <th>&nbsp;</th>
53
                [% FOREACH item_header IN item_header_loop %]
55
                [% FOREACH item_header IN item_header_loop %]
54
                    [% IF item_header.column_name %]
56
                    [% IF item_header.column_name %]
55
                        <th data-colname="[% item_header.column_name | html %]">
57
                        [% IF date_fields.grep(item_header.column_name).size %]
58
                            <th class="title-string" data-colname="[% item_header.column_name | html %]">
59
                        [% ELSE %]
60
                            <th data-colname="[% item_header.column_name | html %]">
61
                        [% END %]
56
                    [% ELSE %]
62
                    [% ELSE %]
57
                        <th>
63
                        <th>
58
                    [% END %]
64
                    [% END %]
Lines 106-112 Link Here
106
                      </td>
112
                      </td>
107
                    [% END %]
113
                    [% END %]
108
                [% FOREACH item_valu IN item_loo.item_value %]
114
                [% FOREACH item_valu IN item_loo.item_value %]
109
                    <td>[% item_valu.field | html %]</td>
115
                    [% IF item_valu.datatype == 'date' %]
116
                        <td><span title="[% item_valu.field | html %]">[% item_valu.field | $KohaDates %]</span></td>
117
                    [% ELSE %]
118
                        <td>[% item_valu.field | html %]</td>
119
                    [% END %]
110
                [% END %]
120
                [% END %]
111
                </tr>
121
                </tr>
112
                [% END %]
122
                [% END %]
113
- 

Return to bug 25553