@@ -, +, @@
---
koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 87 +++++++++++++---------------
1 file changed, 41 insertions(+), 46 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js
+++ a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js
@@ -554,9 +554,9 @@ $(document).ready(function() {
let content = "";
if ( oObj.return_claim_id ) {
- content = `${oObj.return_claim_created_on_formatted}`;
+ content = '' + oObj.return_claim_created_on_formatted + '';
} else {
- content = ` ${RETURN_CLAIMED_MAKE}`;
+ content = '' + RETURN_CLAIMED_MAKE + '';
}
return content;
}
@@ -845,7 +845,7 @@ $(document).ready(function() {
$('#claims-returned-modal').modal('hide')
- $(`.claim-returned-btn[data-itemnumber='${itemnumber}']`).replaceWith(``);
+ $('.claim-returned-btn[data-itemnumber="' + itemnumber + '"]').replaceWith('
${created_on.toLocaleDateString()}`;
+ content = '' + created_on.toLocaleDateString() + '';
$(id).parent().parent().addClass('ok');
} else {
content = RETURN_CLAIMED_FAILURE;
@@ -900,14 +900,14 @@ $(document).ready(function() {
},
{
"mDataProp": function ( oObj ) {
- let title = `
- ${oObj.title}
- ${oObj.enumchron || ""}
- `;
+ let title = ''
+ + oObj.title
+ + ( oObj.enumchron || "" )
+ + '';
if ( oObj.author ) {
- title += `by ${oObj.author}`;
+ title += 'by ' + oObj.author;
}
- title += `${oObj.barcode}`;
+ title += '' + oObj.barcode + '';
return title;
}
@@ -915,10 +915,8 @@ $(document).ready(function() {
{
"sClass": "return-claim-notes-td",
"mDataProp": function ( oObj ) {
- return `
- ${oObj.notes}
-
- `;
+ return '' + oObj.notes + ''
+ + '';
}
},
{
@@ -937,32 +935,30 @@ $(document).ready(function() {
"mDataProp": function ( oObj ) {
if ( ! oObj.resolution ) return "";
- let desc = `${oObj.resolution_data.lib} on ${oObj.resolved_on}`;
- if (oObj.resolved_by_data) desc += ` by ${oObj.resolved_by_data.firstname || ""} ${oObj.resolved_by_data.surname || ""}`;
+ let desc = '' + oObj.resolution_data.lib + ' on ' + oObj.resolved_on + '';
+ if (oObj.resolved_by_data) desc += ' by ' + ( oObj.resolved_by_data.firstname || "" ) + ( oObj.resolved_by_data.surname || "" ) + '';
return desc;
}
},
{
"mDataProp": function ( oObj ) {
let delete_html = oObj.resolved_on
- ? `