|
Lines 546-552
Libraries › Administration › Koha
Link Here
|
| 546 |
"orderable": true |
546 |
"orderable": true |
| 547 |
}, |
547 |
}, |
| 548 |
{ |
548 |
{ |
| 549 |
"data": function( row, type, val, meta ) { |
549 |
"data": "library_info", |
|
|
550 |
"searchable": false, |
| 551 |
"orderable": false, |
| 552 |
"render": function( data, type, row, meta ) { |
| 550 |
const library_info = []; |
553 |
const library_info = []; |
| 551 |
if ( row.address1 != null ) library_info.push(row.address1.escapeHtml()); |
554 |
if ( row.address1 != null ) library_info.push(row.address1.escapeHtml()); |
| 552 |
if ( row.address2 != null ) library_info.push(row.address2.escapeHtml()); |
555 |
if ( row.address2 != null ) library_info.push(row.address2.escapeHtml()); |
|
Lines 570-577
Libraries › Administration › Koha
Link Here
|
| 570 |
if ( row.notes != null ) library_info.push(_("Notes")+': '+row.notes.escapeHtml()); |
573 |
if ( row.notes != null ) library_info.push(_("Notes")+': '+row.notes.escapeHtml()); |
| 571 |
return library_info.join('<br/>'); |
574 |
return library_info.join('<br/>'); |
| 572 |
}, |
575 |
}, |
| 573 |
"searchable": false, |
|
|
| 574 |
"orderable": false |
| 575 |
}, |
576 |
}, |
| 576 |
{ |
577 |
{ |
| 577 |
"data": "marc_org_code", |
578 |
"data": "marc_org_code", |
|
Lines 614-620
Libraries › Administration › Koha
Link Here
|
| 614 |
"orderable": false |
615 |
"orderable": false |
| 615 |
}, |
616 |
}, |
| 616 |
{ |
617 |
{ |
| 617 |
"data": function( row, type, val, meta ) { |
618 |
"data": "actions", |
|
|
619 |
"searchable": false, |
| 620 |
"orderable": false, |
| 621 |
"render": function( data, type, row, meta ) { |
| 618 |
|
622 |
|
| 619 |
var result = '<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode='+encodeURIComponent(row.library_id)+'" role="button"><i class="fa fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</a>'; |
623 |
var result = '<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode='+encodeURIComponent(row.library_id)+'" role="button"><i class="fa fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</a>'; |
| 620 |
result += '<form action="/cgi-bin/koha/admin/branches.pl" method="post">'; |
624 |
result += '<form action="/cgi-bin/koha/admin/branches.pl" method="post">'; |
|
Lines 625-632
Libraries › Administration › Koha
Link Here
|
| 625 |
return result; |
629 |
return result; |
| 626 |
|
630 |
|
| 627 |
}, |
631 |
}, |
| 628 |
"searchable": false, |
|
|
| 629 |
"orderable": false |
| 630 |
}, |
632 |
}, |
| 631 |
{ |
633 |
{ |
| 632 |
"data": "address1", |
634 |
"data": "address1", |
|
Lines 671-682
Libraries › Administration › Koha
Link Here
|
| 671 |
"orderable": false |
673 |
"orderable": false |
| 672 |
}, |
674 |
}, |
| 673 |
{ |
675 |
{ |
| 674 |
"data": function( row, type, val, meta ) { |
676 |
"data": "opac_info", |
|
|
677 |
"searchable": false, |
| 678 |
"visible": false, |
| 679 |
"orderable": false, |
| 680 |
"render": function( data, type, row, meta ) { |
| 675 |
return ''; // provisional placeholder for opac_info |
681 |
return ''; // provisional placeholder for opac_info |
| 676 |
}, |
682 |
}, |
| 677 |
"searchable": true, |
|
|
| 678 |
"visible": false, |
| 679 |
"orderable": false |
| 680 |
}, |
683 |
}, |
| 681 |
{ |
684 |
{ |
| 682 |
"data": "notes", |
685 |
"data": "notes", |
| 683 |
- |
|
|