Lines 485-491
Link Here
|
485 |
nodes += '<span class="dmg">%s</span>'.format(escape_str(damaged_lib)); |
485 |
nodes += '<span class="dmg">%s</span>'.format(escape_str(damaged_lib)); |
486 |
} |
486 |
} |
487 |
|
487 |
|
488 |
if ( row.not_for_loan_status || item_types_notforloan[row.item_type_id] ) { |
488 |
if ( row.not_for_loan_status || item_types_notforloan.get(row.item_type_id) ) { |
489 |
let not_for_loan_lib = av_not_for_loan.get(row.not_for_loan_status.toString()); |
489 |
let not_for_loan_lib = av_not_for_loan.get(row.not_for_loan_status.toString()); |
490 |
nodes += '<span class="notforloan">%s'.format(_("Not for loan")) + ( not_for_loan_lib ? '<span class="reason"> (%s)</span>'.format(escape_str(not_for_loan_lib)) : '' ) + '</span>'; |
490 |
nodes += '<span class="notforloan">%s'.format(_("Not for loan")) + ( not_for_loan_lib ? '<span class="reason"> (%s)</span>'.format(escape_str(not_for_loan_lib)) : '' ) + '</span>'; |
491 |
} |
491 |
} |
Lines 525-531
Link Here
|
525 |
} |
525 |
} |
526 |
[% END %] |
526 |
[% END %] |
527 |
|
527 |
|
528 |
if ( ! ( row.not_for_loan_status || item_types_notforloan[row.item_type_id] || row.checked_out_date || row.lost_status || row.withdrawn || row.damaged_status || row.transfer || row.first_hold || row.recall ) ) { |
528 |
if ( ! ( row.not_for_loan_status || item_types_notforloan.get(row.item_type_id) || row.checked_out_date || row.lost_status || row.withdrawn || row.damaged_status || row.transfer || row.first_hold || row.recall ) ) { |
529 |
nodes += ' <span>%s</span>'.format(_("Available")) |
529 |
nodes += ' <span>%s</span>'.format(_("Available")) |
530 |
} |
530 |
} |
531 |
|
531 |
|
532 |
- |
|
|