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 (-2 / +1 lines)
Lines 494-500 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.filter(rc => !rc.resolution).length > 0 ? true : false
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));
498
                        nodes += '<span class="lost">%s</span>'.format(escape_str(lost_lib));
499
                        if(hasReturnClaims) {
499
                        if(hasReturnClaims) {
500
                            nodes += '<span class="claimed_returned">' + _("(Claimed returned)") + '</span>';
500
                            nodes += '<span class="claimed_returned">' + _("(Claimed returned)") + '</span>';
501
- 

Return to bug 38248