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

(-)a/catalogue/detail.pl (+4 lines)
Lines 211-216 $mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw, kohafield => Link Here
211
if ( $mss->count ) {
211
if ( $mss->count ) {
212
    $template->param( itemdamagedloop => GetAuthorisedValues( $mss->next->authorised_value ) );
212
    $template->param( itemdamagedloop => GetAuthorisedValues( $mss->next->authorised_value ) );
213
}
213
}
214
$mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw, kohafield => 'items.withdrawn', authorised_value => { not => undef } });
215
if ( $mss->count ) {
216
    $template->param( itemwithdrawnloop => GetAuthorisedValues( $mss->next->authorised_value) );
217
}
214
218
215
$mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw, kohafield => 'items.materials', authorised_value => { not => undef } });
219
$mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw, kohafield => 'items.materials', authorised_value => { not => undef } });
216
my %materials_map;
220
my %materials_map;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +9 lines)
Lines 406-412 Link Here
406
                        [% END %]
406
                        [% END %]
407
407
408
                        [% IF ( item.withdrawn ) %]
408
                        [% IF ( item.withdrawn ) %]
409
                            <span class="wdn">Withdrawn</span>
409
                            [% IF itemwithdrawnloop %]
410
                                [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
411
                                    [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
412
                                        <span class="wdn">[% itemwithdrawnloo.lib %]</span>
413
                                    [% END %]
414
                                [% END %]
415
                            [% ELSE %]
416
                                <span class="wdn">Withdrawn</span>
417
                            [% END %]
410
                        [% END %]
418
                        [% END %]
411
419
412
                        [% IF ( item.damaged ) %]
420
                        [% IF ( item.damaged ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc (-2 / +6 lines)
Lines 53-59 Link Here
53
53
54
[% IF ( item.withdrawn ) %]
54
[% IF ( item.withdrawn ) %]
55
    [% SET itemavailable = 0 %]
55
    [% SET itemavailable = 0 %]
56
    <span class="item-status withdrawn">Item withdrawn</span>
56
    [% av_lib_include = AuthorisedValues.GetByCode( 'WITHDRAWN', item.withdrawn, 1 ) %]
57
    [% IF av_lib_include %]
58
        <span class="item-status withdrawn">[% av_lib_include %]</span>
59
    [% ELSE %]
60
        <span class="item-status withdrawn">Item withdrawn</span>
61
    [% END %]
57
[% END %]
62
[% END %]
58
63
59
64
60
- 

Return to bug 20341