Discussion:
[Koha] Batch checkin in 18.05 koha
Arshad Iqbal
2018-10-31 04:16:22 UTC
Permalink
Hi everyone!
How to batch checkin in 18.05 koha?
Best regards
--
*Muhammad Arshad Iqbal*
Assistant Librarian at Academic Directorate,
National University of Science and Technology (NUST) Islamabad.
Phone number:051-90851371
Cell no.+923444900809
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.katipo.co.nz/mailm
Chris Brown
2018-10-31 06:51:36 UTC
Permalink
Arshad,

You could prepare an offline circulation file (.koc file) and import from
that.

The file format is described at
https://wiki.koha-community.org/wiki/Koha_offline_circulation_file_format

Hope this helps,

Chris Brown
Post by Arshad Iqbal
Hi everyone!
How to batch checkin in 18.05 koha?
Best regards
--
*Muhammad Arshad Iqbal*
Assistant Librarian at Academic Directorate,
National University of Science and Technology (NUST) Islamabad.
Phone number:051-90851371
Cell no.+923444900809
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinf
Arshad Iqbal
2018-10-31 07:38:12 UTC
Permalink
Without offline plugin not possible
Post by Chris Brown
Arshad,
You could prepare an offline circulation file (.koc file) and import from
that.
The file format is described at https://wiki.koha-community.org/wiki/Koha_
offline_circulation_file_format
Hope this helps,
Chris Brown
Post by Arshad Iqbal
Hi everyone!
How to batch checkin in 18.05 koha?
Best regards
--
*Muhammad Arshad Iqbal*
Assistant Librarian at Academic Directorate,
National University of Science and Technology (NUST) Islamabad.
Phone number:051-90851371
Cell no.+923444900809
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
htt
Chris Brown
2018-10-31 09:16:55 UTC
Permalink
Arshad,

Well, I guess it depends what you're starting from. For example if you have
a file containing a list of the barcodes of the books you want to check in
it would be easy to write a little script (awk / python / bash -- whatever
you're comfortable with) to produce a .koc file with a list of "return"
actions in it then upload that into Koha. No plugins required.

Best Regards,

Chris Brown
Post by Arshad Iqbal
Without offline plugin not possible
Post by Chris Brown
Arshad,
You could prepare an offline circulation file (.koc file) and import from
that.
The file format is described at
https://wiki.koha-community.org/wiki/Koha_offline_circulation_file_format
Hope this helps,
Chris Brown
Post by Arshad Iqbal
Hi everyone!
How to batch checkin in 18.05 koha?
Best regards
--
*Muhammad Arshad Iqbal*
Assistant Librarian at Academic Directorate,
National University of Science and Technology (NUST) Islamabad.
Phone number:051-90851371
Cell no.+923444900809
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
Owen Leonard
2018-10-31 11:57:16 UTC
Permalink
Post by Arshad Iqbal
Without offline plugin not possible
Koha has no built-in tool for batch checkins like there is for batch checkouts.

There is an open bug report for this feature, but as far as I know no
one is working on it:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19814

-- Owen
--
Web Developer
Athens County Public Libraries
https://www.myacpl.org
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/
Arshad Iqbal
2018-10-31 15:27:08 UTC
Permalink
This feature can be added in koha coming version..
Post by Owen Leonard
Post by Arshad Iqbal
Without offline plugin not possible
Koha has no built-in tool for batch checkins like there is for batch checkouts.
There is an open bug report for this feature, but as far as I know no
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19814
-- Owen
--
Web Developer
Athens County Public Libraries
https://www.myacpl.org
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
Paul Hoffman
2018-10-31 16:50:41 UTC
Permalink
Post by Arshad Iqbal
This feature can be added in koha coming version..
Post by Owen Leonard
Post by Arshad Iqbal
Without offline plugin not possible
Koha has no built-in tool for batch checkins like there is for batch
checkouts.
Post by Owen Leonard
There is an open bug report for this feature, but as far as I know no
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19814
If you're feeling adventurous, you might try doing this from the command line
using a simple script; something like this (totally untested!):

# -----------------------------------------------------------------------
#!/usr/bin/perl

use strict;
use warnings;

use C4::Context;
use C4::Circulation;

while (<STDIN>) {
chomp;
s/\r$//;
my $result = ProcessOfflineReturn({ 'barcode' => $_ });
if ($result =~ /success/i) {
print STDERR "OK $_\n";
}
else {
print STDERR "ERR $_ $result\n";
}
}
# -----------------------------------------------------------------------

Save it as /foo/bar/checkin.pl (just for the sake of example), make it
executable (chmod a+x /foo/bar/checkin.pl) and invoke it like this:

koha-shell -c /foo/bar/checkin.pl < /foo/my/file.txt

Where /foo/my/file.txt is just a bunch of item barcodes, one per line.

The ProcessOfflineReturn() function takes care of everything for you -- look up
the item given its barcode, find the patron who checked it out, mark it
returned, etc. It's defined in the file /usr/share/koha/lib/C4/Circulation.pm
around line 3726 if you want to see exactly what it does. (I find the Koha
source code remarkably easy to read and generally have no trouble figuring out
how to use it from a Perl script, though it helps that I've been programming in
Perl for a long, long time.)

Paul.
--
Paul Hoffman <***@flo.org>
Software Services Manager
Fenway Library Organization
550 Huntington Ave.
Boston, MA 02115
(617) 442-2384
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/
Arshad Iqbal
2018-11-01 00:16:13 UTC
Permalink
Your suggestion is looking tricky..
Post by Paul Hoffman
Post by Arshad Iqbal
This feature can be added in koha coming version..
Post by Owen Leonard
Post by Arshad Iqbal
Without offline plugin not possible
Koha has no built-in tool for batch checkins like there is for batch
checkouts.
Post by Owen Leonard
There is an open bug report for this feature, but as far as I know no
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19814
If you're feeling adventurous, you might try doing this from the command line
# -----------------------------------------------------------------------
#!/usr/bin/perl
use strict;
use warnings;
use C4::Context;
use C4::Circulation;
while (<STDIN>) {
chomp;
s/\r$//;
my $result = ProcessOfflineReturn({ 'barcode' => $_ });
if ($result =~ /success/i) {
print STDERR "OK $_\n";
}
else {
print STDERR "ERR $_ $result\n";
}
}
# -----------------------------------------------------------------------
Save it as /foo/bar/checkin.pl (just for the sake of example), make it
koha-shell -c /foo/bar/checkin.pl < /foo/my/file.txt
Where /foo/my/file.txt is just a bunch of item barcodes, one per line.
The ProcessOfflineReturn() function takes care of everything for you -- look up
the item given its barcode, find the patron who checked it out, mark it
returned, etc. It's defined in the file
/usr/share/koha/lib/C4/Circulation.pm
Post by Paul Hoffman
around line 3726 if you want to see exactly what it does. (I find the Koha
source code remarkably easy to read and generally have no trouble figuring out
how to use it from a Perl script, though it helps that I've been programming in
Perl for a long, long time.)
Paul.
--
Software Services Manager
Fenway Library Organization
550 Huntington Ave.
Boston, MA 02115
(617) 442-2384
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katip
Arshad Iqbal
2018-11-01 03:06:23 UTC
Permalink
Actually we have configured RFID with koha, in our self checkout and
checkin workstation have a feature of batch checkout and batch checkin, in
current release koha give only option of batch checkout. I need help in how
to enable batch check in koha????
Post by Arshad Iqbal
Your suggestion is looking tricky..
Post by Paul Hoffman
Post by Arshad Iqbal
This feature can be added in koha coming version..
Post by Owen Leonard
Post by Arshad Iqbal
Without offline plugin not possible
Koha has no built-in tool for batch checkins like there is for batch
checkouts.
Post by Owen Leonard
There is an open bug report for this feature, but as far as I know no
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19814
If you're feeling adventurous, you might try doing this from the command line
#
-----------------------------------------------------------------------
Post by Arshad Iqbal
Post by Paul Hoffman
#!/usr/bin/perl
use strict;
use warnings;
use C4::Context;
use C4::Circulation;
while (<STDIN>) {
chomp;
s/\r$//;
my $result = ProcessOfflineReturn({ 'barcode' => $_ });
if ($result =~ /success/i) {
print STDERR "OK $_\n";
}
else {
print STDERR "ERR $_ $result\n";
}
}
#
-----------------------------------------------------------------------
Post by Arshad Iqbal
Post by Paul Hoffman
Save it as /foo/bar/checkin.pl (just for the sake of example), make it
koha-shell -c /foo/bar/checkin.pl < /foo/my/file.txt
Where /foo/my/file.txt is just a bunch of item barcodes, one per line.
The ProcessOfflineReturn() function takes care of everything for you -- look up
the item given its barcode, find the patron who checked it out, mark it
returned, etc. It's defined in the file
/usr/share/koha/lib/C4/Circulation.pm
Post by Arshad Iqbal
Post by Paul Hoffman
around line 3726 if you want to see exactly what it does. (I find the Koha
source code remarkably easy to read and generally have no trouble figuring out
how to use it from a Perl script, though it helps that I've been programming in
Perl for a long, long time.)
Paul.
--
Software Services Manager
Fenway Library Organization
550 Huntington Ave.
Boston, MA 02115
(617) 442-2384
Owen Leonard
2018-11-01 11:49:18 UTC
Permalink
I need help in how to enable batch check in koha????
Koha has no built-in tool for batch checkins like there is for batch
checkouts. If you want a batch checkin feature you have to build it
yourself or pay someone else to build it for you:

https://koha-community.org/support/paid-support/

-- Owen
--
Web Developer
Athens County Public Libraries
https://www.myacpl.org
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.katipo
Martha Fuerst
2018-11-01 13:34:47 UTC
Permalink
There is a bug in Bugzilla for this, if you would like to contribute/add your voice.

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19814 <https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19814>

There is also a quote on Bywater’s Crowdsourced Development page: http://devs.bywatersolutions.com/2018/01/05/2018-01-05-batch-checkin-module/ <http://devs.bywatersolutions.com/2018/01/05/2018-01-05-batch-checkin-module/>

Marti Fuerst
Systems Librarian
Huntsville-Madison County Public Library
915 Monroe St, Huntsville, AL 35801
Post by Paul Hoffman
Post by Arshad Iqbal
This feature can be added in koha coming version..
Post by Owen Leonard
Post by Arshad Iqbal
Without offline plugin not possible
Koha has no built-in tool for batch checkins like there is for batch
checkouts.
Post by Owen Leonard
There is an open bug report for this feature, but as far as I know no
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19814
If you're feeling adventurous, you might try doing this from the command line
# -----------------------------------------------------------------------
#!/usr/bin/perl
use strict;
use warnings;
use C4::Context;
use C4::Circulation;
while (<STDIN>) {
chomp;
s/\r$//;
my $result = ProcessOfflineReturn({ 'barcode' => $_ });
if ($result =~ /success/i) {
print STDERR "OK $_\n";
}
else {
print STDERR "ERR $_ $result\n";
}
}
# -----------------------------------------------------------------------
Save it as /foo/bar/checkin.pl (just for the sake of example), make it
koha-shell -c /foo/bar/checkin.pl < /foo/my/file.txt
Where /foo/my/file.txt is just a bunch of item barcodes, one per line.
The ProcessOfflineReturn() function takes care of everything for you -- look up
the item given its barcode, find the patron who checked it out, mark it
returned, etc. It's defined in the file /usr/share/koha/lib/C4/Circulation.pm
around line 3726 if you want to see exactly what it does. (I find the Koha
source code remarkably easy to read and generally have no trouble figuring out
how to use it from a Perl script, though it helps that I've been programming in
Perl for a long, long time.)
Paul.
--
Software Services Manager
Fenway Library Organization
550 Huntington Ave.
Boston, MA 02115
(617) 442-2384
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://list

Loading...