Lines 114-120
var renderers = {
Link Here
|
114 |
return title; |
114 |
return title; |
115 |
}, |
115 |
}, |
116 |
itemtype: function (data, type, row) { |
116 |
itemtype: function (data, type, row) { |
117 |
return row.itemtype_description.escapeHtml(); |
117 |
return row.itemtype_description ? row.itemtype_description.escapeHtml() : ''; |
118 |
}, |
118 |
}, |
119 |
collection: function (data, type, row) { |
119 |
collection: function (data, type, row) { |
120 |
return row.collection ? row.collection.escapeHtml() : ''; |
120 |
return row.collection ? row.collection.escapeHtml() : ''; |
Lines 123-135
var renderers = {
Link Here
|
123 |
return row.location ? row.location.escapeHtml() : ''; |
123 |
return row.location ? row.location.escapeHtml() : ''; |
124 |
}, |
124 |
}, |
125 |
homebranch: function (data, type, row) { |
125 |
homebranch: function (data, type, row) { |
126 |
return row.homebranch.escapeHtml(); |
126 |
return row.homebranch ? row.homebranch.escapeHtml() : ''; |
127 |
}, |
127 |
}, |
128 |
issuedate: function (data, type, row) { |
128 |
issuedate: function (data, type, row) { |
129 |
return row.issuedate_formatted; |
129 |
return row.issuedate_formatted; |
130 |
}, |
130 |
}, |
131 |
branch: function (data, type, row) { |
131 |
branch: function (data, type, row) { |
132 |
return row.branchname.escapeHtml(); |
132 |
return row.branchname ? row.branchname.escapeHtml() : ''; |
133 |
}, |
133 |
}, |
134 |
itemcallnumber: function (data, type, row) { |
134 |
itemcallnumber: function (data, type, row) { |
135 |
return row.itemcallnumber ? row.itemcallnumber.escapeHtml() : ''; |
135 |
return row.itemcallnumber ? row.itemcallnumber.escapeHtml() : ''; |
Lines 286-295
var renderers = {
Link Here
|
286 |
}, |
286 |
}, |
287 |
patron: function (data, type, row) { |
287 |
patron: function (data, type, row) { |
288 |
return "<a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=" + row.borrowernumber + "'>" |
288 |
return "<a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=" + row.borrowernumber + "'>" |
289 |
+ row.borrower.firstname.escapeHtml() |
289 |
+ (row.borrower.firstname ? row.borrower.firstname.escapeHtml() : '') |
290 |
+ " " |
290 |
+ " " |
291 |
+ row.borrower.surname.escapeHtml() |
291 |
+ (row.borrower.surname ? row.borrower.surname.escapeHtml() : '') |
292 |
+ " (" + row.borrower.cardnumber.escapeHtml() + ")</a>" |
292 |
+ " (" + (row.borrower.cardnumber ? row.borrower.cardnumber.escapeHtml() : '') + ")</a>" |
293 |
} |
293 |
} |
294 |
}; |
294 |
}; |
295 |
|
295 |
|
296 |
- |
|
|