2 [% IF (AllowOfflineCirculation) %]
3 [% SET manifestattr = 'manifest="/cgi-bin/koha/circ/offline-mf.pl"' %]
5 [% IF ( bidi && AllowOfflineCirculation ) %]<html lang="[% lang %]" dir="[% bidi %]" manifest="/cgi-bin/koha/circ/offline-mf.pl">
6 [% ELSIF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">
7 [% ELSIF ( AllowOfflineCirculation ) %]<html lang="[% lang %]" manifest="/cgi-bin/koha/circ/offline-mf.pl">
8 [% ELSE %]<html lang="[% lang %]">[% END %]
10 <title>Koha › Circulation</title>
11 [% INCLUDE 'doc-head-close.inc' %]
12 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.indexeddb.js"></script>
13 <script type="text/javascript" src="[% interface %]/prog/en/js/offlinecirc.js"></script>
14 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script>
15 <script type="text/javascript">
17 var ALERT_SUCCESSFUL_CHECKIN = _("Checked in item.");
18 var ALERT_MATERIALS = _("Note about the accompanying materials: ");
19 var ALERT_RESTRICTED = _("Patron is RESTRICTED");
20 var ALERT_NO_MATCHING_ITEM = _("No item with barcode in offline database (transaction recorded anyway): ");
21 var ALERT_NOT_CHECKED_OUT = _("Item not listed as checked out in offline database (transaction recorded anyway)");
22 var ALERT_ITEM_WITHDRAWN = _("Item has been withdrawn (transaction recorded anyway)");
23 var ALERT_ITEM_RESTRICTED = _("Item is restricted (transaction recorded anyway)");
24 var ALERT_ITEM_LOST = _("Item has been lost (transaction recorded anyway)");
25 var ALERT_NO_MATCHING_PATRON = _("No patron cardnumber in offline database (proceeding anyway): ");
26 var ALERT_PATRON_GONE_NO_ADDRESS = _("Patron's address is in doubt (transaction recorded anyway)");
27 var ALERT_PATRON_CARD_LOST = _("Patron's card is lost");
28 var ALERT_PATRON_EXPIRED = _("Patron's card is expired");
29 var ALERT_PATRON_BLOCKED_TEMPORARY = _("Patron has had overdue items and is restricted for: ");
30 var ALERT_PATRON_RESTRICTED = _("Patron is restricted");
31 var ALERT_PATRON_FINE = _("Patron has outstanding fines: ");
32 var ALERT_PATRON_FINE_OVER_LIMIT = _("Patron fines are over limit: ");
33 var UPLOAD_PENDING_MESSAGE = _("You have transactions in the offline circulation database on this computer that have not been uploaded.");
34 var NO_UPLOAD_PENDING_MESSAGE = _("You do not have any pending transactions in the offline circulation database on this computer.");
38 var dateformat = '[% IF ( dateformat_us ) %]mm/dd/yy[% ELSIF ( dateformat_metric ) %]dd/mm/yy[% ELSE %]yy-mm-dd[% END %]';
40 function checkin(barcode, item, error) {
41 var alerts = checkAlerts(barcode, item);
42 if (typeof item === 'undefined') {
45 item.title = item.title || _("(Unknown)");
46 item.author = item.author || _("(Unknown)");
47 item.homebranch = item.homebranch || "";
48 item.holdingbranch = item.holdingbranch || "";
49 item.callnumber = item.callnumber || "";
50 item.itemtype = item.itemtype || "";
51 item.barcode = item.barcode || barcode;
52 var trans = { "timestamp" : new Date().toMySQLString(),
57 $('.offline-home').hide();
58 $('.offline-sync').hide();
59 $('.offline-circulation').hide();
60 $('.offline-circulation-instructions').hide();
61 $('.offline-returns').show();
62 kohadb.recordTransaction(trans, function () {
63 $('#session-returned').show();
64 $('#already-checked-in tbody').prepend('<tr><td>' + item.title + '</td><td>' + item.author + '</td><td>' + barcode + '</td><td>' + item.homebranch + '</td><td>' + item.holdingbranch + '</td><td></td><td>' + item.callnumber + '</td><td>' + item.itemtype + '</td></tr>');
65 if (alerts.length > 0) {
66 $('#alerts').append('<div class="dialog alert"><h3>' + _("Check in message") + '</h3></div>');
67 for (var msg in alerts) {
68 $('#alerts .dialog').append('<p>' + alerts[msg] + '</p');
71 $('#alerts').append('<div class="dialog"><h3>' + ALERT_SUCCESSFUL_CHECKIN + '</h3></div>');
74 setTimeout(function() { $('#checkin-barcode').trigger('focus'), 1 });
77 function checkAlerts(barcode, item) {
79 if (typeof item === 'undefined') {
80 alerts.push(ALERT_NO_MATCHING_ITEM + barcode);
82 if (typeof item.materials !== 'undefined' && item.materials != null) {
83 alerts.push(ALERT_MATERIALS + item.materials);
89 function showSyncInfo() {
90 kohadb.loadSetting("item-timestamp", showTimestamp);
91 kohadb.loadSetting("patron-timestamp", showTimestamp);
92 kohadb.loadSetting("issue-timestamp", showTimestamp);
93 kohadb.loadSetting("dirty", function (key, val) {
95 $('#upload-message').text(UPLOAD_PENDING_MESSAGE);
97 $('#upload-message').text(NO_UPLOAD_PENDING_MESSAGE);
102 function synchronize() {
103 kohadb.saveSetting("userid", "[% loggedinusername %]");
104 kohadb.saveSetting("branchcode", "[% LoginBranchcode %]");
106 [% UNLESS (AllowOfflineCirculation) %]
110 $('#download-records').click(reloadRecords);
111 $('#upload-transactions').click(function () {
112 $('.loading-overlay div').text(_("Uploading transactions, please wait..."));
113 $('.loading-overlay').show();
114 var uploadIter = $.indexedDB("koha").objectStore("transactions").each(uploadTransaction);
115 uploadIter.done(function() {
116 $.indexedDB("koha").transaction(["transactions"]).then(function(){
118 }, function(transaction){
119 transaction.objectStore("transactions").clear();
121 $('.loading-overlay').hide();
122 kohadb.saveSetting("dirty", false);
123 $('#upload-message').text(NO_UPLOAD_PENDING_MESSAGE);
129 function showTimestamp(key, value) {
130 if (typeof value !== 'undefined') {
131 var ts = new Date(value);
132 $('#' + key).text($.datepicker.formatDate(dateformat, ts) + ' ' + ts.toTimeString());
134 $('#' + key).text(_("(never)"));
138 function reloadRecords(ev) {
139 $(".loading-overlay div").text(_("Loading records, please wait..."));
140 $(".loading-overlay").show();
142 $.indexedDB("koha").transaction(["patrons", "items", "issues"]).then(function(){
145 }, function(transaction){
146 transaction.objectStore("patrons").clear();
147 transaction.objectStore("items").clear();
148 transaction.objectStore("issues").clear();
150 if (typeof ev !== 'undefined') {
151 ev.stopPropagation();
155 function uploadTransaction(transaction) {
158 url: "/cgi-bin/koha/offline_circ/service.pl",
159 data: { "userid" : kohadb.settings.userid,
160 "branchcode" : kohadb.settings.branchcode,
161 "timestamp" : transaction.value.timestamp,
162 "action" : transaction.value.action,
163 "barcode" : transaction.value.barcode,
164 "cardnumber" : transaction.value.cardnumber,
168 return undefined, true;
171 function finishedLoading() {
172 kohadb.saveSetting('item-timestamp', start.toISOString())
173 kohadb.saveSetting('patron-timestamp', start.toISOString())
174 kohadb.saveSetting('issue-timestamp', start.toISOString())
175 showTimestamp('item-timestamp', start.toISOString());
176 showTimestamp('patron-timestamp', start.toISOString());
177 showTimestamp('issue-timestamp', start.toISOString());
178 $(".loading-overlay").hide();
181 function loadRecords(page) {
182 [% IF (AllowOfflineCirculation) %]
183 $(".loading-overlay div").text(_("Loading page " + page + ", please wait..."));
184 $(".loading-overlay").show();
187 url: "/cgi-bin/koha/offline_circ/download.pl",
188 data: { "data": "all",
192 }).done(function (data) {
193 $.indexedDB("koha").transaction(["patrons", "items", "issues"]).then(function(){
197 setTimeout(function () { loadRecords(page + 1); }, 200);
200 }, function(transaction){
202 var patrons = transaction.objectStore("patrons");
203 $.each(data.patrons, function () {
208 var items = transaction.objectStore("items");
209 $.each(data.items, function () {
214 var issues = transaction.objectStore("issues");
215 $.each(data.issues, function () {
224 function validate1(date) {
225 var today = new Date();
226 if ( date < today ) {
233 function loadPatron(barcode) {
234 $('#oldissues').hide();
235 $('#session-issues').hide();
236 $('#issuest tbody').empty();
237 $('#session-payments').hide();
238 $('.checkout-count').text(0);
239 $.indexedDB("koha").transaction(["patrons", "issues"]).then(function() {
241 }, function(transaction){
242 var patrons = transaction.objectStore("patrons");
243 patrons.get(barcode).done(function (patron, error) {
244 showPatron(barcode, patron, error);
246 var issuesidx = transaction.objectStore("issues").index("cardnumber");
247 $('#oldissuest tbody').empty();
248 issuesidx.each(function (item) {
249 $('#oldissues').show();
250 $('#oldissuest tbody').append("<tr><td>" + item.value.date_due + "</td><td>" + item.value.barcode + "</td><td>" + item.value.title + "</td><td>" + item.value.itype + "</td><td>" + item.value.issuedate + "</td><td>" + item.value.issuebranch + "</td><td>" + item.value.callnumber + "</td><td>" + "" + "</td></tr>");
251 $('.checkout-count').text(parseInt($('.checkout-count').text()) + 1);
256 function checkout(barcode, item, error) {
257 var alerts = checkAlerts(barcode, item);
258 if (typeof item === 'undefined') {
261 item.title = item.title || "";
262 item.author = item.author || "";
263 item.homebranch = item.homebranch || "";
264 item.holdingbranch = item.holdingbranch || "";
265 item.callnumber = item.callnumber || "";
266 item.itemtype = item.itemtype || "";
267 if ($('#duedatespec').val().length === 0) {
268 alert(_("You must set a due date in order to use offline circulation!"));
269 setTimeout(function() { $('#duedatespec').trigger('focus'), 1 });
272 var date_due = new Date($('#duedatespec').datepicker('getDate'));
273 var trans = { "timestamp" : new Date().toMySQLString(),
275 "cardnumber" : curpatron.cardnumber,
276 "date_due" : date_due.toMySQLString(),
279 $('#alerts').empty();
280 kohadb.recordTransaction(trans, function () {
281 $('#session-issues').show();
282 $('#issuest tbody').prepend('<tr><td>' + $.datepicker.formatDate(dateformat, date_due) + date_due.toTimeString() + '</td><td>' + item.title + '</td><td>' + barcode + '</td><td>' + item.itemtype + '</td><td>' + $.datepicker.formatDate(dateformat, new Date()) + '</td><td>' + kohadb.settings.branchcode + '</td><td>' + item.callnumber + '</td><td></td></tr>');
283 $('.checkout-count').text(parseInt($('.checkout-count').text()) + 1);
284 if (alerts.length > 0) {
285 $('#alerts').append('<div class="dialog alert"><h3>' + _("Check out message") + '</h3></div>');
286 for (var msg in alerts) {
287 $('#alerts .dialog').append('<p>' + alerts[msg] + '</p');
290 $('#checkout-barcode').val('');
294 function recordFine(amount) {
295 var timestamp = new Date()
296 var trans = { "timestamp" : timestamp.toMySQLString(),
297 "cardnumber" : curpatron.cardnumber,
299 "action" : "payment",
301 kohadb.recordTransaction(trans, function () {
302 $('#session-payments').show();
303 $('#session-payments tbody').prepend('<tr><td>' + amount + '</td><td>' + $.datepicker.formatDate(dateformat, timestamp) + timestamp.toTimeString() + '</td></tr>');
304 $('.fine-amount').text(parseInt($('.fine-amount').text) - amount);
308 function checkPatronAlerts(cardnumber, patron) {
310 if (typeof patron === 'undefined') {
311 alerts.push(ALERT_NO_MATCHING_PATRON + cardnumber);
313 if (patron.gonenoaddress !== '0') {
314 alerts.push(ALERT_PATRON_GONE_NO_ADDRESS);
316 if (patron.lost !== '0') {
317 alerts.push(ALERT_PATRON_CARD_LOST);
319 if (patron.debarred !== null) {
320 if (patron.debarred != '9999-12-31') {
321 alerts.push(ALERT_PATRON_BLOCKED_TEMPORARY + $.datepicker.formatDate(dateformat, patron.debarred));
323 alerts.push(ALERT_PATRON_RESTRICTED);
326 if (parseInt(patron.fine) > [% maxoutstanding %]) {
327 alerts.push(ALERT_PATRON_FINE_OVER_LIMIT + patron.fine);
328 } else if (parseInt(patron.fine) > 0) {
329 alerts.push(ALERT_PATRON_FINE + patron.fine);
337 function showPatron(barcode, patron, error) {
338 var alerts = checkPatronAlerts(barcode, patron);
339 if (typeof patron === 'undefined') {
342 patron.surname = patron.surname || "";
343 patron.firstname = patron.firstname || "";
344 patron.othernames = patron.othernames || "";
345 patron.address = patron.address || "";
346 patron.address2 = patron.address2 || "";
347 patron.city = patron.city || "";
348 patron.state = patron.state || "";
349 patron.country = patron.country || "";
350 patron.zipcode = patron.zipcode || "";
351 patron.phone = patron.phone || "";
352 patron.mobile = patron.mobile || "";
353 patron.phonepro = patron.phonepro || "";
354 patron.email = patron.email || "";
355 patron.emailpro = patron.emailpro || "";
356 patron.categorycode = patron.categorycode || "";
357 patron.branchcode = patron.branchcode || "";
358 patron.cardnumber = barcode;
359 patron.fine = patron.fine || "0";
361 patron.name = patron.firstname + (patron.othernames.length > 0 ? " (" + patron.othernames + ") " : " ") + patron.surname + " (" + barcode + ")";
362 if (patron.name.length > 0) {
363 $('.patron-title').text(patron.name);
365 $('.patron-title').text(_("Unrecognized patron") + " (" + barcode + ")");
367 if (patron.address.length > 0 || patron.address2.length > 0) {
368 $('#patron-address-1').text(patron.address);
369 $('#patron-address-2').text(patron.address2);
371 $('#patron-address-1').html('<span class="empty" id="noaddressstored">' + _("No address stored.") + '</span></li>');
372 $('#patron-address-2').text('');
374 if (patron.city.length > 0) {
375 $('#patron-address-parts').text(patron.city + (patron.state.length > 0 ? ", " + patron.state : "") + " " + patron.zipcode + (patron.country.length > 0 ? ", " + patron.country : ""));
377 $('#patron-address-parts').html('<span class="empty" id="nocitystored">' + _("No city stored.") + '</span></li>');
379 if (patron.phone.length > 0 || patron.mobile.length > 0 || patron.phonepro.length > 0) {
380 $('#patron-phone').text((patron.phone.length > 0 ? patron.phone : (patron.mobile.length > 0 ? patron.mobile : (patron.phonepro.length > 0 ? patron.phonepro : ''))));
382 $('#patron-phone').html('<span class="empty" id="nophonestored">' + _("No phone stored.") + '</span></li>');
384 if (patron.email.length > 0 || patron.emailpro.length > 0) {
385 $('#patron-email').text((patron.email.length > 0 ? patron.email : (patron.emailpro.length > 0 ? patron.emailpro : "")));
387 $('#patron-email').html('<span class="empty" id="noemailstored">' + _("No email stored.") + '</span></li>');
389 if (patron.categorycode.length > 0) {
390 $('#patron-category').text(_("Category: ") + patron.categorycode);
392 $('#patron-category').html('<span class="empty" id="unknowncategory">' + _("Category code unknown.") + '</span></li>');
394 if (patron.branchcode.length > 0) {
395 $('#patron-library').text(_("Home library: ") + patron.branchcode);
397 $('#patron-library').html('<span class="empty" id="unknowncategory">' + _("Home library unknown.") + '</span></li>');
399 $('.fine-amount').text(patron.fine);
400 $('#alerts').empty();
401 if (alerts.length > 0) {
402 $('#alerts').append('<div class="dialog alert"><h3>' + _("Check out message") + '</h3></div>');
403 for (var msg in alerts) {
404 $('#alerts .dialog').append('<p>' + alerts[msg] + '</p>');
408 $('#yui-main').show();
409 setTimeout(function() { $('#checkout-barcode').trigger('focus'), 1 });
412 // This next bit of code is to deal with the updated session issue
413 window.addEventListener('load', function(e) {
414 window.applicationCache.addEventListener('updateready', function(e) {
415 if (window.applicationCache.status == window.applicationCache.UPDATEREADY) {
416 // Browser downloaded a new app cache.
417 // Swap it in and reload the page to get the new hotness.
418 window.applicationCache.swapCache();
419 if (confirm(_("A new version of this site is available. Load it?"))) {
420 window.location.reload();
423 // Manifest didn't changed. Nothing new to server.
429 $(document).ready(function () {
433 $('#checkin-form, #checkin_search form').submit(function (event) {
434 event.preventDefault();
435 var barcode = $('input[name="barcode"]', this).val();
436 $('input[name="barcode"]', this).val('');
437 $.indexedDB("koha").transaction(["items"]).then(function() {
439 }, function(transaction){
440 var items = transaction.objectStore("items");
441 items.get(barcode).done(function (item, error) {
442 checkin(barcode, item, error);
447 $('#go-to-home').click(function () {
448 $('#alerts').empty();
449 $('.offline-sync').hide();
450 $('.offline-circulation').hide();
451 $('.offline-returns').hide();
452 $('.offline-circulation-instructions').hide();
453 $('.offline-home').show();
456 $('#go-to-returns').click(function () {
457 $('#alerts').empty();
458 $('.offline-home').hide();
459 $('.offline-sync').hide();
460 $('.offline-circulation').hide();
461 $('.offline-circulation-instructions').hide();
462 $('.offline-returns').show();
463 setTimeout(function() { $('#checkin-form input[name="barcode"]').trigger('focus'), 1 });
466 $('#go-to-circ').click(function () {
467 $('#alerts').empty();
468 $('.offline-home').hide();
469 $('.offline-sync').hide();
470 $('.offline-returns').hide();
471 $('.offline-circulation').hide();
472 $('.offline-circulation-instructions').show();
473 $('#header_search').tabs("option", "active", 0);
474 setTimeout(function() { $('#circ_search input[name="findborrower"]').trigger('focus'), 1 });
477 $('#go-to-sync').click(function () {
478 $('#alerts').empty();
482 url: "/cgi-bin/koha/offline_circ/list.pl",
483 success: function () {
484 $('.offline-home').hide();
485 $('.offline-returns').hide();
486 $('.offline-circulation').hide();
487 $('.offline-circulation-instructions').hide();
488 $('.offline-sync').show();
492 alert(_("You are offline and therefore cannot sync your database"));
497 $('#go-to-pending').click(function (ev) {
498 $('#alerts').empty();
502 url: "/cgi-bin/koha/offline_circ/list.pl",
503 success: function () {
504 window.location = '/cgi-bin/koha/offline_circ/list.pl';
507 alert(_("You are offline and therefore cannot process pending operations"));
512 $('#patronsearch').submit(function (event) {
513 event.preventDefault();
514 loadPatron($('#findborrower').val());
515 $('.offline-home').hide();
516 $('.offline-returns').hide();
517 $('.offline-sync').hide();
518 $('.offline-circulation-instructions').hide();
519 $('.offline-circulation').show();
520 $('#findborrower').val('');
521 setTimeout(function() { $('#checkout-barcode').trigger('focus'), 1 });
524 $('#pay-fine').click(function (event) {
525 event.preventDefault();
526 recordFine($('#pay-fine-amount').val());
529 $('#patronlists').tabs();
531 $("#newduedate").datetimepicker({
532 minDate: 1, // require that renewal date is after today
536 $("#duedatespec").datetimepicker({
537 onClose: function(dateText, inst) { setTimeout(function() { $('#checkout-barcode').trigger('focus'), 1 }); },
541 $('#mainform').submit(function (event) {
542 event.preventDefault();
543 var barcode = $('#checkout-barcode').val();
544 $.indexedDB("koha").transaction(["items"]).then(function() {
546 }, function(transaction){
547 var items = transaction.objectStore("items");
548 items.get(barcode).done(function (item, error) {
549 checkout(barcode, item, error);
557 <body id="circ_offline" class="circ">
558 [% INCLUDE 'header.inc' %]
559 [% INCLUDE 'circ-search.inc' %]
560 <div class="loading-overlay" style="display: none;">
561 <div>Downloading records, please wait...</div>
564 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a id="go-to-home" href="#offline-home">Offline circulation</a></div>
566 <div id="doc3" class="yui-t2">
570 <audio id="alert_sound" src="[% interface %]/prog/sound/critical.ogg" autobuffer="autobuffer"></audio>
571 <audio id="success_sound" src="[% interface %]/prog/sound/beep.ogg" autobuffer="autobuffer"></audio>
573 <div id="alerts" class="yui-b">
575 [% UNLESS (AllowOfflineCirculation) %]
576 <div id="noofflinecircwarning" class="dialog alert">
577 <p><strong>Warning:</strong> Offline Circulation has been disabled. You may continue and record transactions, but patron and item information will not be available.</p>
581 <div id="offline-home" class="yui-b offline-home">
583 <h1>Offline circulation</h1>
584 <div class="yui-u first">
586 <li><a id="go-to-circ" href="#offline-circulation">Check out</a></li>
587 <li><a id="go-to-returns" href="#offline-returns">Check in</a></li>
592 <p><strong>Note:</strong> You must be online to use these options.</p>
594 <li><a id="go-to-sync" href="#offline-sync">Synchronize</a></li>
595 <li><a id="go-to-pending" href="/cgi-bin/koha/offline_circ/list.pl">Pending offline circulation actions</a>
601 <div id="offline-sync" style="display: none;" class="yui-b offline-sync">
602 <div id="toolbar" class="btn-toolbar">
603 [% IF (AllowOfflineCirculation) %]
604 <a href="#" id="download-records" class="btn btn-small"><i class="icon-arrow-down"></i>Download records</a>
606 <a href="#" id="upload-transactions" class="btn btn-small"><i class="icon-arrow-up"></i>Upload transactions</a>
609 <h1>Offline circulation</h1>
610 <div class="yui-u first">
611 <div id="download-message">
612 In order for offline circulation to work on this computer,
613 your library's records must be up-to-date on this computer:
615 <li>Patron records were last synced on: <span id="patron-timestamp">(checking)</span></li>
616 <li>Item records were last synced on: <span id="item-timestamp">(checking)</span></li>
617 <li>Circulation records were last synced on: <span id="issue-timestamp">(checking)</span></li>
623 <div id="upload-message">
625 <div>View <a href="/cgi-bin/koha/offline_circ/list.pl">pending offline circulation actions</a></div>
630 <div id="offline-returns" style="display: none;" class="yui-b offline-returns">
632 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
633 <div class="yui-u first">
635 <legend>Check In</legend>
636 <label for="checkin-barcode">Enter item barcode: </label>
637 <input name="barcode" id="checkin-barcode" size="14" class="focus"/>
638 <input type="submit" class="submit" value="Submit" />
644 <div id="session-returned" style="display: none;">
645 <h2>Checked-in items</h2>
646 <table id="already-checked-in">
648 <tr><th>Title</th><th>Author</th><th>Barcode</th><th>Home library</th><th>Holding library</th><th>Shelving location</th><th>Call number</th><th>Type</th></tr>
656 <div style="display: none;" class="yui-b offline-circulation-instructions">
658 Scan a patron barcode to start.
662 <div id="offline-circulation" style="display: none;" class="yui-b offline-circulation">
664 <form method="post" action="/cgi-bin/koha/circ/offline.pl" id="mainform" name="mainform" autocomplete="off">
665 <fieldset id="circ_circulation_issue">
666 <span id="clearscreen"><a href="/cgi-bin/koha/circ/offline.pl" title="Clear screen">x</a></span>
667 <label for="checkout-barcode">Checking out to <span class="patron-title"></span></label>
668 <div class="hint">Enter item barcode:</div>
669 <input type="text" name="barcode" id="checkout-barcode" class="barcode focus" size="14" />
670 <input type="submit" value="Check Out" />
672 <div class="date-select">
673 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
674 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" readonly="readonly" />
675 <label for="stickyduedate"> Remember for session:</label>
676 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
677 <input type="button" class="action" id="cleardate" value="Clear" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" />
683 <div class="yui-g"><div id="patronlists" class="toptabs">
685 <li><a href="#checkouts"><span class="checkout-count">0</span> Checkouts</a></li>
686 <li><a href="#fines"><span class="fine-amount">0</span> in fines</a></li>
689 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
691 <div id="session-issues">
694 <th scope="col">Due date</th>
695 <th scope="col">Title</th>
696 <th scope="col">Barcode</th>
697 <th scope="col">Item type</th>
698 <th scope="col">Checked out on</th>
699 <th scope="col">Checked out from</th>
700 <th scope="col">Call no</th>
701 <th scope="col">Charge</th>
709 <h5>Previous checkouts</h5>
710 <table id="oldissuest">
712 <th scope="col">Due date</th>
713 <th scope="col">Title</th>
714 <th scope="col">Barcode</th>
715 <th scope="col">Item type</th>
716 <th scope="col">Checked out on</th>
717 <th scope="col">Checked out from</th>
718 <th scope="col">Call no</th>
719 <th scope="col">Charge</th>
728 <span class="patron-title"></span> has <span class="fine-amount">0</span> in fines. If you would like you can record payments.
729 <fieldset><legend>Pay fines</legend>
730 <label for="pay-fine-amount">Fine amount: </label><input type="text" name="pay-fine-amount" id="pay-fine-amount"/>
731 <button id="pay-fine" class="submit">Pay fine</button>
733 <table id="session-payments" style="display: none;">
734 <thead><tr><th>Amount</th><th>Timestamp</th></tr></thead>
744 <div class="yui-b offline-circulation" style="display: none;">
745 <div class="patroninfo"><h5 class="patron-title"></h5>
747 <li id="patron-address-1"></li>
748 <li id="patron-address-2"></li>
749 <li id="patron-address-parts"><!-- city, state, zipcode, country --></li>
750 <li id="patron-phone"></li>
751 <li id="patron-email"></li>
752 <li id="patron-category"></li>
753 <li id="patron-library"></li>
757 [% INCLUDE 'intranet-bottom.inc' %]