From: Chris Nighswonger <[EMAIL PROTECTED]>
There should be a documenation change at least for 3.0 to the effect that on
systems
not running JavaScript, 'incremental' is the only option available for
autoBarcode
although other options appear. A fix for this will hopefully appear in 3.2.
Signed-off-by: Galen Charlton <[EMAIL PROTECTED]>
---
cataloguing/additem.pl | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl
index ce5cb4c..da09dd0 100755
--- a/cataloguing/additem.pl
+++ b/cataloguing/additem.pl
@@ -96,8 +96,10 @@ if ($op eq "additem") {
my @indicator = $input->param('indicator');
my $xml = TransformHtmlToXml([EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL
PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED], 'ITEM');
my $record=MARC::Record::new_from_xml($xml, 'UTF-8');
- # if autoBarcode is ON, calculate barcode...
- if (C4::Context->preference('autoBarcode')) {
+ # if autoBarcode is set to 'incremental', calculate barcode...
+ # NOTE: This code is subject to change in 3.2 with the implemenation of
ajax based autobarcode code
+ # NOTE: 'incremental' is the ONLY autoBarcode option available to those
not using javascript
+ if (C4::Context->preference('autoBarcode') eq 'incremental') {
my ($tagfield,$tagsubfield) =
&GetMarcFromKohaField("items.barcode",$frameworkcode);
unless ($record->field($tagfield)->subfield($tagsubfield)) {
my $sth_barcode = $dbh->prepare("select max(abs(barcode)) from
items");
--
1.5.5.GIT
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches