const hasReturnClaims = row.return_claims.filter(rc => !rc.resolution).length > 0 ? true : false
nodes += '<span class="lost">%s</span>'.format(escape_str(lost_lib));
if(hasReturnClaims) {
nodes += '<span class="claimed_returned">(Claimed returned)</span>';
nodes += '<span class="claimed_returned">' + _("(Claimed returned)") + '</span>';
}
-