4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Home › Circulation › Checkout Notes</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
8 [% INCLUDE 'datatables.inc' %]
9 <script type="text/javascript">
11 $(document).ready(function(){
12 $("#notestable").dataTable($.extend(true, {}, dataTablesDefaults, {
14 { "aTargets": [ 0, -1 ], "bSearchable": false, "bSortable": false },
16 "sPaginationType": "four_button"
19 $(".SelectAll").on("click", function(){
20 $("input[name='issue_ids'][type='checkbox']").prop("checked", true);
21 $(".btn-sm").prop("disabled", false);
24 $(".ClearAll").on("click", function(){
25 $("input[name='issue_ids'][type='checkbox']").prop("checked", false);
26 $(".btn-sm").prop("disabled", true);
31 $("input[type='checkbox']").click(function(event){
32 if ( $("input[type='checkbox']").is(":checked") ) {
33 $(".btn-sm").prop("disabled", false);
35 $(".btn-sm").prop("disabled", true);
39 $(".btn-xs").click(function(event){
40 event.preventDefault(); // prevent form submission
41 var $action = $(this).attr("name");
42 var $issue_id = $(this).data('issue_id');
45 'issue_id': $issue_id,
49 url: '/cgi-bin/koha/svc/checkout_notes/',
56 if (data.status == 'success'){
57 if ( $action == 'notseen' ){
58 $("#status_" + $issue_id).text("Not seen");
59 $(event.target).siblings(".seen").prop("disabled", false);
60 $(event.target).prop("disabled", true);
62 $("#status_" + $issue_id).text("Seen");
63 $(event.target).siblings(".notseen").prop("disabled", false);
64 $(event.target).prop("disabled", true);
67 $("#error").text(_("Unable to change status of note."));
75 [% INCLUDE 'calendar.inc' %]
76 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
78 [% INCLUDE 'header.inc' %]
79 [% INCLUDE 'circ-search.inc' %]
80 <div id="breadcrumbs">
81 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
82 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> ›
86 <div id="doc" class="yui-t7"> <!-- <div id="doc3" class="yui-t2" -->
90 <h1>Checkout notes</h1>
92 <div class="dialog alert" id="error"></div>
94 [% IF ( selected_count ) %]
95 <div class="dialog message">
96 [% IF ( action == 'seen' ) %]
97 [% selected_count %] note(s) marked as seen.
98 [% ELSIF ( action == 'notseen' ) %]
99 [% selected_count %] note(s) marked as not seen.
101 Failed to change the status of [% selected_count %] item(s).
104 <a href="/cgi-bin/koha/circ/checkout-notes.pl" class="btn btn-default btn-sm"><i class="fa fa-left"></i> Return to checkout notes</a>
108 <fieldset class="action">
109 <a class="SelectAll"><i class="fa fa-check"></i> Select all</a> | <a class="ClearAll"><i class="fa fa-remove"></i> Clear all</a>
112 <form id="mark_selected" method="post" action="/cgi-bin/koha/circ/checkout-notes.pl">
114 <table id="notestable">
127 [% FOREACH note IN notes %]
129 <td><input type="checkbox" name="issue_ids" value="[% note.issue_id %]"></td>
130 <td>[% note.item.biblionumber.title %] - [% note.item.biblionumber.author %] (<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% note.item.biblionumber.biblionumber %]">[% note.item.barcode %]</a>)</td>
131 <td>[% note.note %]</td>
132 <td>[% note.notedate | $KohaDates %]</td>
133 <td>[% note.borrower.firstname %] [% note.borrower.surname %] (<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% note.borrower.borrowernumber %]">[% note.borrower.cardnumber %]</a>)</td>
134 <td>[% IF ( note.noteseen == 0 ) %]
135 <span id="status_[% note.issue_id %]">Not seen</span>
136 [% ELSIF ( note.noteseen == 1 ) %]
137 <span id="status_[% note.issue_id %]">Seen</span>
139 <td class="actions">[% IF ( note.noteseen == 1 ) %]
140 <button name="seen" data-issue_id="[% note.issue_id %]" class="seen btn btn-default btn-xs" disabled="disabled"><i class="fa fa-eye"></i> Mark seen</button> <button name="notseen" data-issue_id="[% note.issue_id %]" class="notseen btn btn-default btn-xs"><i class="fa fa-eye-slash"></i> Mark not seen</button>
141 [% ELSIF ( note.noteseen == 0 ) %]
142 <button name="seen" data-issue_id="[% note.issue_id %]" class="seen btn btn-default btn-xs"><i class="fa fa-eye"></i> Mark seen</button> <button name="notseen" data-issue_id="[% note.issue_id %]" class="notseen btn btn-default btn-xs" disabled="disabled"><i class="fa fa-eye-slash"></i> Mark not seen</button>
149 <fieldset class="action">
150 <button type="submit" class="btn btn-default btn-sm" name="mark_selected-seen" value="seen" disabled="disabled"><i class="fa fa-eye"></i> Mark seen</button>
151 <button type="submit" class="btn btn-default btn-sm" name="mark_selected-notseen" value="notseen" disabled="disabled"><i class="fa fa-eye-slash"></i> Mark not seen</button>
156 [% END %] <!-- notes -->
158 [% END %] <!-- selected_count -->
160 </div> <!-- yui-main -->
164 [% INCLUDE 'intranet-bottom.inc' %]