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 <nav aria-label="Breadcrumb" class="breadcrumb">
16 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
19 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
22 <a href="#" aria-current="page">
29 <div class="main container-fluid">
31 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
33 <h2>Offline circulation</h2>
35 [% IF ( pending_operations ) %]
39 <a id="CheckAll" href="#"><i class="fa fa-check"></i> Check all</a>
40 <a id="CheckNone" href="#"><i class="fa fa-remove"></i> Uncheck all</a>
43 <table id="operations">
55 [% FOREACH operation IN pending_operations %]
56 <tr class="oc-[% operation.action | html %]">
57 <td><input type="checkbox" name="operationid" id="operationid[% operation.operationid | html %]" value="[% operation.operationid | html %]" /></td>
59 <label for="operationid[% operation.operationid | html %]">[% operation.timestamp | html %]</label>
62 [% SWITCH ( operation.action ) -%]
69 [% CASE # default case -%]
70 [% operation.action | html %]
74 [% IF ( operation.biblionumber ) %]
75 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber | uri %]" title="[% operation.bibliotitle | html %]">[% operation.barcode | html %]</a>
77 <span class="error">[% operation.barcode | html %]</span>
81 [% IF ( operation.actionissue || operation.actionpayment) %]
82 [% IF ( operation.borrowernumber ) %]
83 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber | uri %]" title="[% operation.borrower | html %]">[% operation.cardnumber | html %]</a>
85 <span class="error">[% operation.cardnumber | html %]</span>
89 <td>[% operation.amount | html %]</td>
95 <p id="actions">For the selected operations:
96 <input type="button" id="process" value="Process" />
97 <input type="button" id="delete" value="Delete" /></p>
103 <p>There are no pending offline operations.</p>
110 [% MACRO jsinclude BLOCK %]
112 $(document).ready(function() {
114 $('#CheckNone').click(function(e) {
116 $("#operations input:checkbox").prop("checked", false );
118 $('#CheckAll').click(function(e) {
120 $("#operations input:checkbox").prop("checked", true );
122 $('#process,#delete').click(function() {
123 var action = $(this).attr("id");
124 $(":checkbox[name=operationid]:checked").each(function() {
128 data: { 'action': action, 'operationid': this.value },
131 success: function(data) {
132 if( data == "Added." ){
133 cb.replaceWith(_("Added."));
134 } else if ( data == "Deleted."){
135 cb.replaceWith(_("Deleted."));
136 } else if ( data == "Success."){
137 cb.replaceWith(_("Success."));
138 } else if ( data == "Item not issued."){
139 cb.replaceWith(_("Item not checked out."));
140 } else if ( data == "Item not found."){
141 cb.replaceWith(_("Item not found."));
142 } else if ( data == "Barcode not found."){
143 cb.replaceWith(_("Item not found."));
144 } else if ( data == "Borrower not found."){
145 cb.replaceWith(_("Patron not found."));
147 cb.replaceWith(data);
151 if( $('#operations tbody :checkbox').size() == 0 ) {
152 $('#actions').hide();
159 [% INCLUDE 'intranet-bottom.inc' %]