4 [% INCLUDE "doc-head-open.inc" %]
5 <title>Offline circulation › Circulation › Koha</title>
6 [% INCLUDE "doc-head-close.inc" %]
9 <body id="ocirc_list" class="circ ocirc">
10 [% WRAPPER 'header.inc' %]
11 [% INCLUDE 'circ-search.inc' %]
14 [% WRAPPER 'sub-header.inc' %]
15 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
18 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
21 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
24 <a href="#" aria-current="page">
32 <div class="main container-fluid">
34 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
36 <h1>Offline circulation</h1>
38 [% IF ( pending_operations ) %]
42 <a id="CheckAll" href="#"><i class="fa fa-check"></i> Check all</a>
43 <a id="CheckNone" href="#"><i class="fa fa-remove"></i> Uncheck all</a>
46 <table id="operations">
58 [% FOREACH operation IN pending_operations %]
59 <tr class="oc-[% operation.action | html %]">
60 <td><input type="checkbox" name="operationid" id="operationid[% operation.operationid | html %]" value="[% operation.operationid | html %]" /></td>
62 <label for="operationid[% operation.operationid | html %]">[% operation.timestamp | html %]</label>
65 [% SWITCH ( operation.action ) -%]
67 <span>Check out</span>
72 [% CASE # default case -%]
73 <span>[% operation.action | html %]</span>
77 [% IF ( operation.biblionumber ) %]
78 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber | uri %]" title="[% operation.bibliotitle | html %]">[% operation.barcode | html %]</a>
80 <span class="error">[% operation.barcode | html %]</span>
84 [% IF ( operation.actionissue || operation.actionpayment) %]
85 [% IF ( operation.borrowernumber ) %]
86 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber | uri %]" title="[% operation.borrower | html %]">[% operation.cardnumber | html %]</a>
88 <span class="error">[% operation.cardnumber | html %]</span>
92 <td>[% operation.amount | html %]</td>
98 <p id="actions">For the selected operations:
99 <input type="button" id="process" value="Process" />
100 <input type="button" id="delete" value="Delete" /></p>
106 <p>There are no pending offline operations.</p>
113 [% MACRO jsinclude BLOCK %]
115 $(document).ready(function() {
117 $('#CheckNone').click(function(e) {
119 $("#operations input:checkbox").prop("checked", false );
121 $('#CheckAll').click(function(e) {
123 $("#operations input:checkbox").prop("checked", true );
125 $('#process,#delete').click(function() {
126 var action = $(this).attr("id");
127 $(":checkbox[name=operationid]:checked").each(function() {
131 data: { 'action': action, 'operationid': this.value },
134 success: function(data) {
135 if( data == "Added." ){
136 cb.replaceWith(_("Added."));
137 } else if ( data == "Deleted."){
138 cb.replaceWith(_("Deleted."));
139 } else if ( data == "Success."){
140 cb.replaceWith(_("Success."));
141 } else if ( data == "Item not issued."){
142 cb.replaceWith(_("Item not checked out."));
143 } else if ( data == "Item not found."){
144 cb.replaceWith(_("Item not found."));
145 } else if ( data == "Barcode not found."){
146 cb.replaceWith(_("Item not found."));
147 } else if ( data == "Borrower not found."){
148 cb.replaceWith(_("Patron not found."));
150 cb.replaceWith(data);
154 if( $('#operations tbody :checkbox').size() == 0 ) {
155 $('#actions').hide();
162 [% INCLUDE 'intranet-bottom.inc' %]