4 [% INCLUDE "doc-head-open.inc" %]
5 <title>Koha › Circulation › Offline circulation</title>
6 [% INCLUDE "doc-head-close.inc" %]
9 <body id="ocirc_list" class="circ ocirc">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'circ-search.inc' %]
13 <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>
15 <div class="main container-fluid">
17 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
19 <h2>Offline circulation</h2>
21 [% IF ( pending_operations ) %]
24 <p><span class="checkall"></span> |
25 <span class="clearall"></span></p>
26 <table id="operations">
38 [% FOREACH operation IN pending_operations %]
39 <tr class="oc-[% operation.action | html %]">
40 <td><input type="checkbox" name="operationid" value="[% operation.operationid | html %]" /></td>
41 <td>[% operation.timestamp | html %]</td>
43 [% SWITCH ( operation.action ) -%]
50 [% CASE # default case -%]
51 [% operation.action | html %]
55 [% IF ( operation.biblionumber ) %]
56 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber | html %]" title="[% operation.bibliotitle | html %]">[% operation.barcode | html %]</a>
58 <span class="error">[% operation.barcode | html %]</span>
62 [% IF ( operation.actionissue || operation.actionpayment) %]
63 [% IF ( operation.borrowernumber ) %]
64 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber | html %]" title="[% operation.borrower | html %]">[% operation.cardnumber | html %]</a>
66 <span class="error">[% operation.cardnumber | html %]</span>
70 <td>[% operation.amount | html %]</td>
76 <p id="actions">For the selected operations:
77 <input type="button" id="process" value="Process" />
78 <input type="button" id="delete" value="Delete" /></p>
84 <p>There are no pending offline operations.</p>
91 [% MACRO jsinclude BLOCK %]
92 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
93 <script type="text/javascript">
94 $(document).ready(function() {
96 $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_("Uncheck all")+"<\/a>");
97 $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_("Check all")+"<\/a>");
98 $('#CheckNone').click(function() {
99 $("#operations").unCheckCheckboxes();
102 $('#CheckAll').click(function() {
103 $("#operations").checkCheckboxes();
106 $('#process,#delete').click(function() {
107 var action = $(this).attr("id");
108 $(":checkbox[name=operationid]:checked").each(function() {
112 data: { 'action': action, 'operationid': this.value },
115 success: function(data) {
116 if( data == "Added." ){
117 cb.replaceWith(_("Added."));
118 } else if ( data == "Deleted."){
119 cb.replaceWith(_("Deleted."));
120 } else if ( data == "Success."){
121 cb.replaceWith(_("Success."));
122 } else if ( data == "Item not issued."){
123 cb.replaceWith(_("Item not checked out."));
124 } else if ( data == "Item not found."){
125 cb.replaceWith(_("Item not found."));
126 } else if ( data == "Barcode not found."){
127 cb.replaceWith(_("Item not found."));
128 } else if ( data == "Borrower not found."){
129 cb.replaceWith(_("Patron not found."));
131 cb.replaceWith(data);
135 if( $('#operations tbody :checkbox').size() == 0 ) {
136 $('#actions').hide();
143 [% INCLUDE 'intranet-bottom.inc' %]