View | Details | Raw Unified | Return to bug 15219
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-7 / +6 lines)
Lines 112-118 var renderers = { Link Here
112
        return title;
112
        return title;
113
    },
113
    },
114
    itemtype: function (data, type, row) {
114
    itemtype: function (data, type, row) {
115
        return row.itemtype_description.escapeHtml();
115
        return row.itemtype_description ? row.itemtype_description.escapeHtml() : '';
116
    },
116
    },
117
    collection: function (data, type, row) {
117
    collection: function (data, type, row) {
118
        return row.collection ? row.collection.escapeHtml() : '';
118
        return row.collection ? row.collection.escapeHtml() : '';
Lines 121-133 var renderers = { Link Here
121
        return row.location ? row.location.escapeHtml() : '';
121
        return row.location ? row.location.escapeHtml() : '';
122
    },
122
    },
123
    homebranch: function (data, type, row) {
123
    homebranch: function (data, type, row) {
124
        return row.homebranch.escapeHtml();
124
        return row.homebranch ? row.homebranch.escapeHtml() : '';
125
    },
125
    },
126
    issuedate: function (data, type, row) {
126
    issuedate: function (data, type, row) {
127
        return row.issuedate_formatted;
127
        return row.issuedate_formatted;
128
    },
128
    },
129
    branch: function (data, type, row) {
129
    branch: function (data, type, row) {
130
        return row.branchname.escapeHtml();
130
        return row.branchname ? row.branchname.escapeHtml() : '';
131
    },
131
    },
132
    itemcallnumber: function (data, type, row) {
132
    itemcallnumber: function (data, type, row) {
133
        return row.itemcallnumber ? row.itemcallnumber.escapeHtml() : '';
133
        return row.itemcallnumber ? row.itemcallnumber.escapeHtml() : '';
Lines 270-279 var renderers = { Link Here
270
    },
270
    },
271
    patron: function (data, type, row) {
271
    patron: function (data, type, row) {
272
        return "<a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=" + row.borrowernumber + "'>"
272
        return "<a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=" + row.borrowernumber + "'>"
273
             + row.borrower.firstname.escapeHtml()
273
             + (row.borrower.firstname ? row.borrower.firstname.escapeHtml() : '')
274
             + " "
274
             + " "
275
             + row.borrower.surname.escapeHtml()
275
             + (row.borrower.surname ? row.borrower.surname.escapeHtml() : '')
276
             + " (" + row.borrower.cardnumber.escapeHtml() + ")</a>"
276
             + " (" + (row.borrower.cardnumber ? row.borrower.cardnumber.escapeHtml() : '') + ")</a>"
277
    }
277
    }
278
};
278
};
279
279
280
- 

Return to bug 15219