[Koha] La] Tagging in the OPAC Error
Chris Cormack
chris at bigballofwax.co.nz
Sun Nov 29 08:21:43 NZDT 2009
2009/11/29 herrkandera <herrkandera at gmx.ch>:
> Help wanted:
>
> here is the URL: http://www.bibnet.ch/
>
> We can add tags, but only within lists:
>
>>
>> Error! Illegal parameter 'newtag202 | 06 | 01.01 | 01.02 | 1.13.C | 06'.
>> Error! Illegal parameter 'newtag2061 | 06 | 1.13.C | 01.00 | 16'.
>> Error! Illegal parameter 'newtag1185 | 19'.
>> ...
>>
It is the trailing information that is breaking this.
if (/^newtag(.*)/) {
my $biblionumber = $1;
unless ($biblionumber =~ /^\d+$/) {
$debug and warn "$_ references non
numerical biblionumber '$biblionumber'";
push @errors, {+'badparam' => $_ };
in the above examples $biblionumber is going to be
'202 | 06 | 01.01 | 01.02 | 1.13.C | 06'
That doesn't match the unless, so it is failing.
It should simply be
newtag202 then biblionumber = 202 and the script will work.
That seems to be the problem anyway.
Chris
More information about the Koha
mailing list