Skip to content

Commit

Permalink
Bug 10240: (follow-up) correctly record fines and fix label
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Galen Charlton <[email protected]>
  • Loading branch information
jcamins authored and gmcharlt committed Oct 11, 2013
1 parent b6ea9da commit c1ec92f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
});
Expand Down Expand Up @@ -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>');

Expand Down
3 changes: 3 additions & 0 deletions offline_circ/service.pl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
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') || '';
Expand All @@ -54,6 +55,7 @@
$action,
$barcode,
$cardnumber,
$amount
);
} else {
$result = ProcessOfflineOperation(
Expand All @@ -64,6 +66,7 @@
'action' => $action,
'barcode' => $barcode,
'cardnumber' => $cardnumber,
'amount' => $amount
}
);
}
Expand Down

0 comments on commit c1ec92f

Please sign in to comment.