2 [% INCLUDE "doc-head-open.inc" %]
3 <title>Koha › Circulation › Offline circulation</title>
4 [% INCLUDE "doc-head-close.inc" %]
7 <body id="ocirc_list" class="circ ocirc">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'circ-search.inc' %]
11 <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>
13 <div id="doc" class="yui-t7">
17 <h2>Offline circulation</h2>
19 [% IF ( pending_operations ) %]
22 <p><span class="checkall"></span> |
23 <span class="clearall"></span></p>
24 <table id="operations">
36 [% FOREACH operation IN pending_operations %]
37 <tr class="oc-[% operation.action %]">
38 <td><input type="checkbox" name="operationid" value="[% operation.operationid %]" /></td>
39 <td>[% operation.timestamp %]</td>
41 [% SWITCH ( operation.action ) -%]
48 [% CASE # default case -%]
49 [% operation.action %]
53 [% IF ( operation.biblionumber ) %]
54 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber %]" title="[% operation.bibliotitle %]">[% operation.barcode %]</a>
56 <span class="error">[% operation.barcode %]</span>
60 [% IF ( operation.actionissue || operation.actionpayment) %]
61 [% IF ( operation.borrowernumber ) %]
62 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber %]" title="[% operation.borrower %]">[% operation.cardnumber %]</a>
64 <span class="error">[% operation.cardnumber %]</span>
68 <td>[% operation.amount %]</td>
74 <p id="actions">For the selected operations:
75 <input type="button" id="process" value="Process" />
76 <input type="button" id="delete" value="Delete" /></p>
82 <p>There are no pending offline operations.</p>
88 [% MACRO jsinclude BLOCK %]
89 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
90 <script type="text/javascript">
91 $(document).ready(function() {
93 $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_("Uncheck all")+"<\/a>");
94 $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_("Check all")+"<\/a>");
95 $('#CheckNone').click(function() {
96 $("#operations").unCheckCheckboxes();
99 $('#CheckAll').click(function() {
100 $("#operations").checkCheckboxes();
103 $('#process,#delete').click(function() {
104 var action = $(this).attr("id");
105 $(":checkbox[name=operationid]:checked").each(function() {
109 data: { 'action': action, 'operationid': this.value },
112 success: function(data) {
113 if( data == "Added." ){
114 cb.replaceWith(_("Added."));
115 } else if ( data == "Deleted."){
116 cb.replaceWith(_("Deleted."));
117 } else if ( data == "Success."){
118 cb.replaceWith(_("Success."));
119 } else if ( data == "Item not issued."){
120 cb.replaceWith(_("Item not checked out."));
121 } else if ( data == "Item not found."){
122 cb.replaceWith(_("Item not found."));
123 } else if ( data == "Barcode not found."){
124 cb.replaceWith(_("Item not found."));
125 } else if ( data == "Borrower not found."){
126 cb.replaceWith(_("Patron not found."));
128 cb.replaceWith(data);
132 if( $('#operations tbody :checkbox').size() == 0 ) {
133 $('#actions').hide();
140 [% INCLUDE 'intranet-bottom.inc' %]