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 ) %]
25 <a id="CheckAll" href="#"><i class="fa fa-check"></i> Check all</a>
26 <a id="CheckNone" href="#"><i class="fa fa-remove"></i> Uncheck all</a>
29 <table id="operations">
41 [% FOREACH operation IN pending_operations %]
42 <tr class="oc-[% operation.action | html %]">
43 <td><input type="checkbox" name="operationid" id="operationid[% operation.operationid | html %]" value="[% operation.operationid | html %]" /></td>
45 <label for="operationid[% operation.operationid | html %]">[% operation.timestamp | html %]</label>
48 [% SWITCH ( operation.action ) -%]
55 [% CASE # default case -%]
56 [% operation.action | html %]
60 [% IF ( operation.biblionumber ) %]
61 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber | uri %]" title="[% operation.bibliotitle | html %]">[% operation.barcode | html %]</a>
63 <span class="error">[% operation.barcode | html %]</span>
67 [% IF ( operation.actionissue || operation.actionpayment) %]
68 [% IF ( operation.borrowernumber ) %]
69 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber | uri %]" title="[% operation.borrower | html %]">[% operation.cardnumber | html %]</a>
71 <span class="error">[% operation.cardnumber | html %]</span>
75 <td>[% operation.amount | html %]</td>
81 <p id="actions">For the selected operations:
82 <input type="button" id="process" value="Process" />
83 <input type="button" id="delete" value="Delete" /></p>
89 <p>There are no pending offline operations.</p>
96 [% MACRO jsinclude BLOCK %]
98 $(document).ready(function() {
100 $('#CheckNone').click(function(e) {
102 $("#operations input:checkbox").prop("checked", false );
104 $('#CheckAll').click(function(e) {
106 $("#operations input:checkbox").prop("checked", true );
108 $('#process,#delete').click(function() {
109 var action = $(this).attr("id");
110 $(":checkbox[name=operationid]:checked").each(function() {
114 data: { 'action': action, 'operationid': this.value },
117 success: function(data) {
118 if( data == "Added." ){
119 cb.replaceWith(_("Added."));
120 } else if ( data == "Deleted."){
121 cb.replaceWith(_("Deleted."));
122 } else if ( data == "Success."){
123 cb.replaceWith(_("Success."));
124 } else if ( data == "Item not issued."){
125 cb.replaceWith(_("Item not checked out."));
126 } else if ( data == "Item not found."){
127 cb.replaceWith(_("Item not found."));
128 } else if ( data == "Barcode not found."){
129 cb.replaceWith(_("Item not found."));
130 } else if ( data == "Borrower not found."){
131 cb.replaceWith(_("Patron not found."));
133 cb.replaceWith(data);
137 if( $('#operations tbody :checkbox').size() == 0 ) {
138 $('#actions').hide();
145 [% INCLUDE 'intranet-bottom.inc' %]