4 [% PROCESS 'i18n.inc' %]
6 [% INCLUDE "doc-head-open.inc" %]
7 <title>[% FILTER collapse %]
8 [% t("Offline circulation") | html %] ›
9 [% t("Circulation") | html %] ›
10 [% t("Koha") | html %]
12 [% INCLUDE "doc-head-close.inc" %]
15 <body id="ocirc_list" class="circ ocirc">
16 [% WRAPPER 'header.inc' %]
17 [% INCLUDE 'circ-search.inc' %]
20 [% WRAPPER 'sub-header.inc' %]
21 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
24 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
27 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
30 <a href="#" aria-current="page">
38 <div class="main container-fluid">
40 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
42 <h1>Offline circulation</h1>
44 [% IF ( pending_operations ) %]
48 <a id="CheckAll" href="#"><i class="fa fa-check"></i> Check all</a>
49 <a id="CheckNone" href="#"><i class="fa fa-times"></i> Uncheck all</a>
52 <div class="page-section">
53 <table id="operations">
65 [% FOREACH operation IN pending_operations %]
66 <tr class="oc-[% operation.action | html %]">
67 <td><input type="checkbox" name="operationid" id="operationid[% operation.operationid | html %]" value="[% operation.operationid | html %]" /></td>
69 <label for="operationid[% operation.operationid | html %]">[% operation.timestamp | $KohaDates with_hours=1 %]</label>
72 [% SWITCH ( operation.action ) -%]
74 <span>Check out</span>
79 [% CASE # default case -%]
80 <span>[% operation.action | html %]</span>
84 [% IF ( operation.biblionumber ) %]
85 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber | uri %]" title="[% operation.bibliotitle | html %]">[% operation.barcode | html %]</a>
87 <span class="error">[% operation.barcode | html %]</span>
91 [% IF ( operation.actionissue || operation.actionpayment) %]
92 [% IF ( operation.borrowernumber ) %]
93 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber | uri %]" title="[% operation.borrower | html %]">[% operation.cardnumber | html %]</a>
95 <span class="error">[% operation.cardnumber | html %]</span>
99 <td>[% operation.amount | html %]</td>
104 </div> <!-- /.page-section -->
106 <p id="actions">For the selected operations:
107 <input type="button" id="process" value="Process" />
108 <input type="button" id="delete" value="Delete" /></p>
114 <p>There are no pending offline operations.</p>
121 [% MACRO jsinclude BLOCK %]
123 $(document).ready(function() {
125 $('#CheckNone').click(function(e) {
127 $("#operations input:checkbox").prop("checked", false );
129 $('#CheckAll').click(function(e) {
131 $("#operations input:checkbox").prop("checked", true );
133 $('#process,#delete').click(function() {
134 var action = $(this).attr("id");
135 $(":checkbox[name=operationid]:checked").each(function() {
139 data: { 'action': action, 'operationid': this.value },
142 success: function(data) {
143 if( data == "Added." ){
144 cb.replaceWith(_("Added."));
145 } else if ( data == "Deleted."){
146 cb.replaceWith(_("Deleted."));
147 } else if ( data == "Success."){
148 cb.replaceWith(_("Success."));
149 } else if ( data == "Item not issued."){
150 cb.replaceWith(_("Item not checked out."));
151 } else if ( data == "Item not found."){
152 cb.replaceWith(_("Item not found."));
153 } else if ( data == "Barcode not found."){
154 cb.replaceWith(_("Item not found."));
155 } else if ( data == "Borrower not found."){
156 cb.replaceWith(_("Patron not found."));
158 cb.replaceWith(data);
162 if( $('#operations tbody :checkbox').size() == 0 ) {
163 $('#actions').hide();
170 [% INCLUDE 'intranet-bottom.inc' %]