Bugzilla – Attachment 21726 Details for
Bug 10240
Offline circulation using HTML5 and IndexedDB
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10240 QA follow-up: correctly record fines and fix label
Bug-10240-QA-follow-up-correctly-record-fines-and-.patch (text/plain), 2.78 KB, created by
Jonathan Druart
on 2013-10-02 15:29:10 UTC
(
hide
)
Description:
Bug 10240 QA follow-up: correctly record fines and fix label
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-10-02 15:29:10 UTC
Size:
2.78 KB
patch
obsolete
>From 4215ac9ec125f252d9acc4243b9e9b963c73e4c3 Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Wed, 2 Oct 2013 11:01:54 -0400 >Subject: [PATCH] Bug 10240 QA follow-up: correctly record fines and fix label > >At some point in rebasing I managed to remove the part of the code >that saved fine payments. This patch re-adds that feature. This patch >also corrects the label on the check out tab to not mention partial >names for checkouts when offline, and partial name searches are not >supported in offline circ. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt | 2 ++ > offline_circ/service.pl | 3 +++ > 2 files changed, 5 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt >index d43fd6a..2ea6203 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt >@@ -172,6 +172,7 @@ function uploadTransaction(transaction) { > "action" : transaction.value.action, > "barcode" : transaction.value.barcode, > "cardnumber" : transaction.value.cardnumber, >+ "amount" : transaction.value.amount, > "pending" : true, > }, > }); >@@ -441,6 +442,7 @@ window.addEventListener('load', function(e) { > > $(document).ready(function () { > kohadb.initialize(); >+ $('#header_search #circ_search .tip').text(_("Enter patron card number:")); > > $('ul[aria-labelledby="drop3"]').html('<li><a class="toplinks">You cannot change your branch or logout while using offline circulation</a></li>'); > >diff --git a/offline_circ/service.pl b/offline_circ/service.pl >index 2dcc640..771d459 100755 >--- a/offline_circ/service.pl >+++ b/offline_circ/service.pl >@@ -40,6 +40,7 @@ if ($status eq 'ok') { # if authentication is ok > my $timestamp = $cgi->param('timestamp') || ''; > my $action = $cgi->param('action') || ''; > my $barcode = $cgi->param('barcode') || ''; >+ my $amount = $cgi->param('amount') || 0; > $barcode =~ s/^\s+//; > $barcode =~ s/\s+$//; > my $cardnumber = $cgi->param('cardnumber') || ''; >@@ -54,6 +55,7 @@ if ($status eq 'ok') { # if authentication is ok > $action, > $barcode, > $cardnumber, >+ $amount > ); > } else { > $result = ProcessOfflineOperation( >@@ -64,6 +66,7 @@ if ($status eq 'ok') { # if authentication is ok > 'action' => $action, > 'barcode' => $barcode, > 'cardnumber' => $cardnumber, >+ 'amount' => $amount > } > ); > } >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10240
:
18406
|
18448
|
19005
|
19065
|
19204
|
19328
|
19346
|
19347
|
19353
|
19528
|
20554
|
20555
|
20556
|
20762
|
20995
|
21157
|
21158
|
21159
|
21160
|
21161
|
21495
|
21496
|
21497
|
21498
|
21499
|
21500
|
21552
|
21553
|
21554
|
21555
|
21556
|
21557
|
21558
|
21559
|
21560
|
21573
|
21574
|
21575
|
21576
|
21577
|
21578
|
21579
|
21718
|
21719
|
21720
|
21721
|
21722
|
21723
|
21724
|
21725
| 21726