1 [% INCLUDE "doc-head-open.inc" %]
2 <title>Koha › Circulation › Offline circulation</title>
3 [% INCLUDE "doc-head-close.inc" %]
4 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
6 <script type="text/javascript" language="javascript">
8 $(document).ready(function() {
10 $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_('Uncheck all')+"<\/a>");
11 $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/offline_circ/list.pl\">"+_('Check all')+"<\/a>");
12 $('#CheckNone').click(function() {
13 $("#operations").unCheckCheckboxes();
16 $('#CheckAll').click(function() {
17 $("#operations").checkCheckboxes();
20 $('#process,#delete').click(function() {
21 var action = $(this).attr("id");
22 $(":checkbox[name=operationid]:checked").each(function() {
26 data: { 'action': action, 'operationid': this.value },
29 success: function(data) {
30 if( data == "Added." ){
31 cb.replaceWith(_("Added."));
32 } else if ( data == "Deleted."){
33 cb.replaceWith(_("Deleted."));
34 } else if ( data == "Success."){
35 cb.replaceWith(_("Success."));
36 } else if ( data == "Item not issued."){
37 cb.replaceWith(_("Item not checked out."));
38 } else if ( data == "Item not found."){
39 cb.replaceWith(_("Item not found."));
40 } else if ( data == "Barcode not found."){
41 cb.replaceWith(_("Item not found."));
42 } else if ( data == "Borrower not found."){
43 cb.replaceWith(_("Patron not found."));
49 if( $('#operations tbody :checkbox').size() == 0 ) {
57 <body id="ocirc_list" class="circ ocirc">
58 [% INCLUDE 'header.inc' %]
59 [% INCLUDE 'circ-search.inc' %]
61 <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>
63 <div id="doc" class="yui-t7">
67 <h2>Offline circulation</h2>
69 [% IF ( pending_operations ) %]
72 <p><span class="checkall"></span> |
73 <span class="clearall"></span></p>
74 <table id="operations">
85 [% FOREACH operation IN pending_operations %]
86 <tr class="oc-[% operation.action %]">
87 <td><input type="checkbox" name="operationid" value="[% operation.operationid %]" /></td>
88 <td>[% operation.timestamp %]</td>
89 <td>[% operation.action %]</td>
91 [% IF ( biblionumber ) %]
92 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber %]" title="[% operation.bibliotitle %]">[% operation.barcode %]</a>
94 <span class="error">[% operation.barcode %]</span>
98 [% IF ( operation.actionissue ) %]
99 [% IF ( operation.borrowernumber ) %]
100 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber %]" title="[% operation.borrower %]">[% operation.cardnumber %]</a>
102 <span class="error">[% operation.cardnumber %]</span>
111 <p id="actions">For the selected operations:
112 <input type="button" id="process" value="Process" />
113 <input type="button" id="delete" value="Delete" /></p>
119 <p>There is no pending offline operations.</p>
125 [% INCLUDE 'intranet-bottom.inc' %]