3 [% INCLUDE "doc-head-open.inc" %]
4 <title>Koha › Circulation › Offline circulation</title>
5 [% INCLUDE "doc-head-close.inc" %]
8 <body id="ocirc_list" class="circ ocirc">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'circ-search.inc' %]
12 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Offline circulation</div>
14 <div class="main container-fluid">
16 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
18 <h2>Offline circulation</h2>
20 [% IF ( pending_operations ) %]
23 <p><span class="checkall"></span> |
24 <span class="clearall"></span></p>
25 <table id="operations">
37 [% FOREACH operation IN pending_operations %]
38 <tr class="oc-[% operation.action %]">
39 <td><input type="checkbox" name="operationid" value="[% operation.operationid %]" /></td>
40 <td>[% operation.timestamp %]</td>
42 [% SWITCH ( operation.action ) -%]
49 [% CASE # default case -%]
50 [% operation.action %]
54 [% IF ( operation.biblionumber ) %]
55 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber %]" title="[% operation.bibliotitle %]">[% operation.barcode %]</a>
57 <span class="error">[% operation.barcode %]</span>
61 [% IF ( operation.actionissue || operation.actionpayment) %]
62 [% IF ( operation.borrowernumber ) %]
63 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber %]" title="[% operation.borrower %]">[% operation.cardnumber %]</a>
65 <span class="error">[% operation.cardnumber %]</span>
69 <td>[% operation.amount %]</td>
75 <p id="actions">For the selected operations:
76 <input type="button" id="process" value="Process" />
77 <input type="button" id="delete" value="Delete" /></p>
83 <p>There are no pending offline operations.</p>
90 [% MACRO jsinclude BLOCK %]
91 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
92 <script type="text/javascript">
93 $(document).ready(function() {
95 $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_("Uncheck all")+"<\/a>");
96 $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_("Check all")+"<\/a>");
97 $('#CheckNone').click(function() {
98 $("#operations").unCheckCheckboxes();
101 $('#CheckAll').click(function() {
102 $("#operations").checkCheckboxes();
105 $('#process,#delete').click(function() {
106 var action = $(this).attr("id");
107 $(":checkbox[name=operationid]:checked").each(function() {
111 data: { 'action': action, 'operationid': this.value },
114 success: function(data) {
115 if( data == "Added." ){
116 cb.replaceWith(_("Added."));
117 } else if ( data == "Deleted."){
118 cb.replaceWith(_("Deleted."));
119 } else if ( data == "Success."){
120 cb.replaceWith(_("Success."));
121 } else if ( data == "Item not issued."){
122 cb.replaceWith(_("Item not checked out."));
123 } else if ( data == "Item not found."){
124 cb.replaceWith(_("Item not found."));
125 } else if ( data == "Barcode not found."){
126 cb.replaceWith(_("Item not found."));
127 } else if ( data == "Borrower not found."){
128 cb.replaceWith(_("Patron not found."));
130 cb.replaceWith(data);
134 if( $('#operations tbody :checkbox').size() == 0 ) {
135 $('#actions').hide();
142 [% INCLUDE 'intranet-bottom.inc' %]