|
Lines 900-908
$(document).ready(function() {
Link Here
|
| 900 |
}, |
900 |
}, |
| 901 |
{ |
901 |
{ |
| 902 |
"mDataProp": function ( oObj ) { |
902 |
"mDataProp": function ( oObj ) { |
| 903 |
let title = '<a class="return-claim-title strong" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber= ' + oObj.biblionumber '">' |
903 |
let title = '<a class="return-claim-title strong" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=' + oObj.biblionumber + '">' |
| 904 |
+ oObj.title |
904 |
+ oObj.title |
| 905 |
+ oObj.enumchron || "" |
905 |
+ ( oObj.enumchron || "" ) |
| 906 |
+ '</a>'; |
906 |
+ '</a>'; |
| 907 |
if ( oObj.author ) { |
907 |
if ( oObj.author ) { |
| 908 |
title += 'by ' + oObj.author; |
908 |
title += 'by ' + oObj.author; |
|
Lines 915-922
$(document).ready(function() {
Link Here
|
| 915 |
{ |
915 |
{ |
| 916 |
"sClass": "return-claim-notes-td", |
916 |
"sClass": "return-claim-notes-td", |
| 917 |
"mDataProp": function ( oObj ) { |
917 |
"mDataProp": function ( oObj ) { |
| 918 |
return |
918 |
return '<span id="return-claim-notes-static-' + oObj.id + '" class="return-claim-notes" data-return-claim-id="' + oObj.id + '">' + oObj.notes + '</span>' |
| 919 |
'<span id="return-claim-notes-static-' + oObj.id + '" class="return-claim-notes" data-return-claim-id=' + oObj.id + '">' + oObj.notes + '</span>' |
|
|
| 920 |
+ '<i style="float:right" class="fa fa-pencil-square-o" title="Double click to edit"></i>'; |
919 |
+ '<i style="float:right" class="fa fa-pencil-square-o" title="Double click to edit"></i>'; |
| 921 |
} |
920 |
} |
| 922 |
}, |
921 |
}, |
|
Lines 937-943
$(document).ready(function() {
Link Here
|
| 937 |
if ( ! oObj.resolution ) return ""; |
936 |
if ( ! oObj.resolution ) return ""; |
| 938 |
|
937 |
|
| 939 |
let desc = '<strong>' + oObj.resolution_data.lib + '</strong> on <i>' + oObj.resolved_on + '</i>'; |
938 |
let desc = '<strong>' + oObj.resolution_data.lib + '</strong> on <i>' + oObj.resolved_on + '</i>'; |
| 940 |
if (oObj.resolved_by_data) desc += ' by <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=' + oObj.resolved_by_data.borrowernumber + '">' + oObj.resolved_by_data.firstname || "" + oObj.resolved_by_data.surname || "" + '</a>'; |
939 |
if (oObj.resolved_by_data) desc += ' by <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=' + oObj.resolved_by_data.borrowernumber + '">' + ( oObj.resolved_by_data.firstname || "" ) + ( oObj.resolved_by_data.surname || "" ) + '</a>'; |
| 941 |
return desc; |
940 |
return desc; |
| 942 |
} |
941 |
} |
| 943 |
}, |
942 |
}, |
|
Lines 950-966
$(document).ready(function() {
Link Here
|
| 950 |
? '<li><a href="#" class="return-claim-tools-resolve" data-return-claim-id="' + oObj.id + '"><i class="fa fa-check-square"></i> Resolve</a></li>' |
949 |
? '<li><a href="#" class="return-claim-tools-resolve" data-return-claim-id="' + oObj.id + '"><i class="fa fa-check-square"></i> Resolve</a></li>' |
| 951 |
: ""; |
950 |
: ""; |
| 952 |
|
951 |
|
| 953 |
return |
952 |
return '<div class="btn-group">' |
| 954 |
'<div class="btn-group">' |
953 |
+ ' <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">' |
| 955 |
+ '<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">' |
954 |
+ ' Actions <span class="caret"></span>' |
| 956 |
+ 'Actions <span class="caret"></span>' |
955 |
+ ' </button>' |
| 957 |
+ '</button>' |
956 |
+ ' <ul class="dropdown-menu">' |
| 958 |
+ '<ul class="dropdown-menu">' |
957 |
+ ' <li><a href="#" class="return-claim-tools-editnotes" data-return-claim-id="' + oObj.id + '"><i class="fa fa-edit"></i> Edit notes</a></li>' |
| 959 |
+ ' <li><a href="#" class="return-claim-tools-editnotes" data-return-claim-id="' + oObj.id + '"><i class="fa fa-edit"></i> Edit notes</a></li>' |
958 |
+ resolve_html |
| 960 |
+ resolve_html |
959 |
+ delete_html |
| 961 |
+ delete_html |
960 |
+ ' </ul>' |
| 962 |
+ '</ul>' |
961 |
+ ' </div>'; |
| 963 |
+ '</div>'; |
|
|
| 964 |
} |
962 |
} |
| 965 |
}, |
963 |
}, |
| 966 |
], |
964 |
], |
| 967 |
- |
|
|