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

(-)a/catalogue/moredetail.pl (-2 / +2 lines)
Lines 128-134 my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_l Link Here
128
128
129
$data->{'itemtypename'} = $itemtypes->{ $data->{'itemtype'} }->{'translated_description'}
129
$data->{'itemtypename'} = $itemtypes->{ $data->{'itemtype'} }->{'translated_description'}
130
  if $data->{itemtype} && exists $itemtypes->{ $data->{itemtype} };
130
  if $data->{itemtype} && exists $itemtypes->{ $data->{itemtype} };
131
$data->{'rentalcharge'} = sprintf( "%.2f", $data->{'rentalcharge'} || 0); # Price formatting should be done template-side
131
$data->{'rentalcharge'} = $data->{'rentalcharge'};
132
foreach ( keys %{$data} ) {
132
foreach ( keys %{$data} ) {
133
    $template->param( "$_" => defined $data->{$_} ? $data->{$_} : '' );
133
    $template->param( "$_" => defined $data->{$_} ? $data->{$_} : '' );
134
}
134
}
Lines 138-144 foreach my $item (@items){ Link Here
138
    $item->{object} = Koha::Items->find( $item->{itemnumber} );
138
    $item->{object} = Koha::Items->find( $item->{itemnumber} );
139
    $item->{'collection'}              = $ccodes->{ $item->{ccode} } if $ccodes && $item->{ccode} && exists $ccodes->{ $item->{ccode} };
139
    $item->{'collection'}              = $ccodes->{ $item->{ccode} } if $ccodes && $item->{ccode} && exists $ccodes->{ $item->{ccode} };
140
    $item->{'itype'}                   = $itemtypes->{ $item->{'itype'} }->{'translated_description'} if exists $itemtypes->{ $item->{'itype'} };
140
    $item->{'itype'}                   = $itemtypes->{ $item->{'itype'} }->{'translated_description'} if exists $itemtypes->{ $item->{'itype'} };
141
    $item->{'replacementprice'}        = sprintf( "%.2f", $item->{'replacementprice'} || 0 ); # Price formatting should be done template-side
141
    $item->{'replacementprice'}        = $item->{'replacementprice'};
142
    if ( defined $item->{'copynumber'} ) {
142
    if ( defined $item->{'copynumber'} ) {
143
        $item->{'displaycopy'} = 1;
143
        $item->{'displaycopy'} = 1;
144
        if ( defined $copynumbers->{ $item->{'copynumber'} } ) {
144
        if ( defined $copynumbers->{ $item->{'copynumber'} } ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-3 / +3 lines)
Lines 2-7 Link Here
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE Branches %]
4
[% USE Branches %]
5
[% USE Price %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Catalog &rsaquo; Item details for [% title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</title>
8
<title>Koha &rsaquo; Catalog &rsaquo; Item details for [% title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</title>
Lines 32-38 Link Here
32
        [% UNLESS ( item_level_itypes ) %]
33
        [% UNLESS ( item_level_itypes ) %]
33
        <li><span class="label">Item type:</span> [% itemtypename | html %]&nbsp;</li>
34
        <li><span class="label">Item type:</span> [% itemtypename | html %]&nbsp;</li>
34
        [% END %]
35
        [% END %]
35
        [% IF ( rentalcharge ) %]<li><span class="label">Rental charge:</span>[% rentalcharge | html %]&nbsp;</li>[% END %]
36
        [% IF ( rentalcharge ) %]<li><span class="label">Rental charge:</span>[% rentalcharge | $Price %]&nbsp;</li>[% END %]
36
        <li><span class="label">ISBN:</span> [% isbn | html %]&nbsp;</li>
37
        <li><span class="label">ISBN:</span> [% isbn | html %]&nbsp;</li>
37
        <li><span class="label">Publisher:</span>[% place | html %] [% publishercode | html %] [% publicationyear | html %]&nbsp;</li>
38
        <li><span class="label">Publisher:</span>[% place | html %] [% publishercode | html %] [% publicationyear | html %]&nbsp;</li>
38
        [% IF ( volumeddesc ) %]<li><span class="label">Volume:</span> [% volumeddesc | html %]</li>[% END %]
39
        [% IF ( volumeddesc ) %]<li><span class="label">Volume:</span> [% volumeddesc | html %]</li>[% END %]
Lines 62-68 Link Here
62
            [% IF ( ITEM_DAT.collection ) %]<li><span class="label">Collection:</span> [% ITEM_DAT.collection | html %]</li> [% END %]
63
            [% IF ( ITEM_DAT.collection ) %]<li><span class="label">Collection:</span> [% ITEM_DAT.collection | html %]</li> [% END %]
63
            <li><span class="label">Item callnumber:</span> [% ITEM_DAT.itemcallnumber | html %]&nbsp;</li>
64
            <li><span class="label">Item callnumber:</span> [% ITEM_DAT.itemcallnumber | html %]&nbsp;</li>
64
            [% IF ( ITEM_DAT.displaycopy ) %]<li><span class="label">Copy number:</span> [% ITEM_DAT.copyvol | html %]&nbsp;</li> [% END %]
65
            [% IF ( ITEM_DAT.displaycopy ) %]<li><span class="label">Copy number:</span> [% ITEM_DAT.copyvol | html %]&nbsp;</li> [% END %]
65
            [% IF ( ITEM_DAT.replacementprice ) %]<li><span class="label">Replacement price:</span> [% ITEM_DAT.replacementprice | html %]&nbsp;</li> [% END %]
66
            [% IF ( ITEM_DAT.replacementprice ) %]<li><span class="label">Replacement price:</span> [% ITEM_DAT.replacementprice | $Price %]&nbsp;</li> [% END %]
66
	    [% IF ITEM_DAT.materials %]<li><span class="label">Materials specified:</span> [% ITEM_DAT.materials | html %] </li> [% END %]
67
	    [% IF ITEM_DAT.materials %]<li><span class="label">Materials specified:</span> [% ITEM_DAT.materials | html %] </li> [% END %]
67
            </ol></div>
68
            </ol></div>
68
           <div class="listgroup"><h4>Statuses [% IF ( ITEM_DAT.status_advisory ) %](
69
           <div class="listgroup"><h4>Statuses [% IF ( ITEM_DAT.status_advisory ) %](
69
- 

Return to bug 22116