Copy Pazpar2's diagnostic message, as well as code, into the
diagnostic object made available to the template. (We still have
to go through this rigmarole due to PAZ--946).
cur.id = data[i].id;
cur.hits = data[i].hits;
cur.diagnostic = data[i].diagnostic;
cur.id = data[i].id;
cur.hits = data[i].hits;
cur.diagnostic = data[i].diagnostic;
+ cur.message = data[i].message;
cur.records = data[i].records;
cur.state = data[i].state;
cleandata.push(cur);
cur.records = data[i].records;
cur.state = data[i].state;
cleandata.push(cur);