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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc (-5 / +6 lines)
Lines 494-504 Link Here
494
494
495
                    if ( row.lost_status ) {
495
                    if ( row.lost_status ) {
496
                        let lost_lib = av_lost.get(row.lost_status.toString()) || _("Unavailable (lost or missing");
496
                        let lost_lib = av_lost.get(row.lost_status.toString()) || _("Unavailable (lost or missing");
497
                        const hasReturnClaims = row.return_claims && row.return_claims.filter(rc => !rc.resolution).length > 0 ? true : false
498
                        nodes += '<span class="lost">%s</span>'.format(escape_str(lost_lib));
497
                        nodes += '<span class="lost">%s</span>'.format(escape_str(lost_lib));
499
                        if(hasReturnClaims) {
498
                        [% IF Koha.Preference('ClaimReturnedLostValue') %]
500
                            nodes += '<span class="claimed_returned">' + _("(Claimed returned)") + '</span>';
499
                            const hasReturnClaims = row.return_claims.filter(rc => !rc.resolution).length > 0 ? true : false
501
                        }
500
                            if(hasReturnClaims) {
501
                                nodes += '<span class="claimed_returned">' + _("(Claimed returned)") + '</span>';
502
                            }
503
                        [% END %]
502
                    }
504
                    }
503
505
504
                    if ( row.withdrawn ) {
506
                    if ( row.withdrawn ) {
505
- 

Return to bug 38248