Tagging in the OPAC Error
Dear all, We have a fresh Koha v 3.01.00.061 install. When we try to add new tags in the OPAC following errors appeare: 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'. ... Of course TagsEnabled, TagsInputOnDetail, TagsInputOnList, TagsShowOnDetail and TagsShowOnList are on. TagsModeration is off for the moment. Has anyone a hint how to solve this? Thank you, Stefan
Help wanted: here is the URL: http://www.bibnet.ch/ We can add tags, but only within lists: # The trick here is to support multiple tags added to multiple bilbios in one POST. # The HTML might not use this, but it makes it more web-servicey from the start. # So the name of param has to have biblionumber built in. # For lack of anything more compelling, we just use "newtag[biblionumber]" # We split the value into tags at comma and semicolon Stefan herrkandera schrieb:
Dear all,
We have a fresh Koha v 3.01.00.061 install. When we try to add new tags in the OPAC following errors appeare:
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'. ...
Of course TagsEnabled, TagsInputOnDetail, TagsInputOnList, TagsShowOnDetail and TagsShowOnList are on. TagsModeration is off for the moment.
Has anyone a hint how to solve this?
Thank you, Stefan _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
2009/11/29 herrkandera <herrkandera@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
participants (2)
-
Chris Cormack -
herrkandera