Re: [Koha] Barcode's continued part three

2021-02-22 Thread Ere Maijala
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:

Re: [Koha] Barcode's continued part three

2021-02-20 Thread Mason James
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

[Koha] Barcode's continued part three

2021-02-20 Thread library
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

Re: [Koha] Barcode's continued part two

2021-02-19 Thread library
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

Re: [Koha] Barcode's continued part two

2021-02-19 Thread library
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

Re: [Koha] Barcode's continued part two

2021-02-19 Thread 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 Koha::Items; > > my $biblios = Koha::Biblios->search; > my $branchcode='ppa'; > while ( my $biblio=$biblios->next) { >

Re: [Koha] Barcode's continued part two

2021-02-19 Thread 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 kirjoitti 19.2.2021 klo 15.05: Trying to run this: """ use Modern::Perl; use Koha::Biblios; use Koha::Items; my $biblios =

[Koha] Barcode's continued part two

2021-02-19 Thread library
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 =>

Re: [Koha] Barcode's continued

2021-02-19 Thread Ere Maijala
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

Re: [Koha] Barcode's continued

2021-02-18 Thread library
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

Re: [Koha] Barcode's continued

2021-02-18 Thread Mark Alexander
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

[Koha] Barcode's continued

2021-02-18 Thread library
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) {