The lines mentioned in the errors don't match the script you pasted. If
you encounter any further errors, please share the actual barcode.pl as
an attachment or via pastebin. Here is an example:
https://pastebin.com/k2dGC1Wf
--Ere
libr...@princeofpeaceabbey.org kirjoitti 20.2.2021 klo 18.28:
hi Raphael
don't forget to upgrade your system before running the script, if needed?
Jonathan's script may not run on older Koha versions, like Koha 16.05.05
On 21/02/21 5:28 am, libr...@princeofpeaceabbey.org wrote:
When I tried to run barcode.pl
...
This is the error messages that I
When I tried to run barcode.pl
use Modern::Perl;
use Koha::Biblios;
use Koha::Items;
my $biblios = Koha::Biblios->search;
my $branchcode='ppa';
while (my $biblio=$biblios->next) {
Koha::Item->new(
{
biblionumber
I removed those """ at the beginning and end then got this message:
Cant locate koha/Biblios.pm in @INC
Quoting Ere Maijala :
If you have those """ at the beginning and end of the file, remove
them. So the first line would be:
use Modern::Perl;
--Ere
libr...@princeofpeaceabbey.org
Removed the quotes but still got the same error message.
how to you get koha-shell ppa to work?
Quoting Jonathan Druart :
Don't include the quotes, it was to delimit the code.
Le ven. 19 févr. 2021 à 14:05, a écrit :
Trying to run this:
"""
use Modern::Perl;
use Koha::Biblios;
use
Don't include the quotes, it was to delimit the code.
Le ven. 19 févr. 2021 à 14:05, a écrit :
>
>
> Trying to run this:
>
> """
>
> use Modern::Perl;
> use Koha::Biblios;
> use Koha::Items;
>
> my $biblios = Koha::Biblios->search;
> my $branchcode='ppa';
> while ( my $biblio=$biblios->next) {
>
If you have those """ at the beginning and end of the file, remove them.
So the first line would be:
use Modern::Perl;
--Ere
libr...@princeofpeaceabbey.org kirjoitti 19.2.2021 klo 15.05:
Trying to run this:
"""
use Modern::Perl;
use Koha::Biblios;
use Koha::Items;
my $biblios =
Trying to run this:
"""
use Modern::Perl;
use Koha::Biblios;
use Koha::Items;
my $biblios = Koha::Biblios->search;
my $branchcode='ppa';
while ( my $biblio=$biblios->next) {
Koha::Item->new(
{
biblionumber =>
Also, barccode should be barcode, right?
--Ere
Mark Alexander kirjoitti 18.2.2021 klo 18.52:
Excerpts from library's message of 2021-02-18 10:22:59 -0600:
I tried the perl that Jonathan sent but the Internet did not give good
advise on how to run the perl. Here is what I typed:
When I
Thanks for seeing my typos. Now it is giving me this message:
String found where operator expected at barcode.pl line 22, near “””
(Might be a runaaway multi-line “” string starting on line 1)
(Missing semicolon on previous line?)
syntax error at barcode.pl line 22, near
Excerpts from library's message of 2021-02-18 10:22:59 -0600:
> I tried the perl that Jonathan sent but the Internet did not give good
> advise on how to run the perl. Here is what I typed:
When I compare Jonathon's script with yours, I see some typos in yours:
holingbranch
I tried the perl that Jonathan sent but the Internet did not give good
advise on how to run the perl. Here is what I typed:
"""
use Modern::Perl;
use Koha::Biblios;
use Koha::Items;
my $biblios = Koha::Biblios->search;
my $branchcode='ppa';
while ( my $biblio=$biblios->next) {
12 matches
Mail list logo