Re: [Koha-devel] [Koha] callnumber.pl errors in koha-error_log
Hi Pete, On Wed, Mar 16, 2011 at 2:37 PM, Peter Huerter <pete.huerter@gmail.com>wrote:
Hi Chris,
I am invoking it as a callback. In order to get it to work I had to respond to the error in the koha-error_log, however I re-factored the code for our purposes.
Perhaps there is another issue then, but I am pretty sure I am using the value_builder structure in the way it is intended.
I cannot duplicate this error on my sandbox. C4::Auth is loaded by callnumber.pl at line 22 (http://tinyurl.com/68kqmxq), so I'm not sure what might be causing the error on your system. There should be no need to import that sub as C4::Auth exports it by default. Kind Regards, Chris
Hi Chris, My bad. In my effors/struggles to get our custom callnumber callback/value_builder working I must have based my callnumber off a different/simpler value_builder script (possibly marc21_field_003.pl). I then cut and paste the various pieces of callnumber.pl into my code to incrementally get it working. Because of this process I am not able to say for sure why I had troubles with callnumber.pl. Looking at callnumber.pl again, it is possible that it was working however not assigning callnumbers since we did not have items.itemcallnumber field populated for any records. The default callnumber.pl uses the MAX SQL operator (which in my case was likely not well defined since all of our items.itemcallnumbers were blank at the time). Thanks for following up, Pete. On Thu, Mar 17, 2011 at 8:10 AM, Chris Nighswonger < cnighswonger@foundations.edu> wrote:
Hi Pete,
On Wed, Mar 16, 2011 at 2:37 PM, Peter Huerter <pete.huerter@gmail.com>wrote:
Hi Chris,
I am invoking it as a callback. In order to get it to work I had to respond to the error in the koha-error_log, however I re-factored the code for our purposes.
Perhaps there is another issue then, but I am pretty sure I am using the value_builder structure in the way it is intended.
I cannot duplicate this error on my sandbox.
C4::Auth is loaded by callnumber.pl at line 22 (http://tinyurl.com/68kqmxq), so I'm not sure what might be causing the error on your system. There should be no need to import that sub as C4::Auth exports it by default.
Kind Regards, Chris
Hi Pete, On Thu, Mar 17, 2011 at 10:07 AM, pete huerter <pete.huerter@gmail.com>wrote: <snip> I then cut and paste the various pieces...
Been there, done that, and spent hours debugging a bad cut-n-paste! :-) Keep hitting it, and always feel free to ask questions. I had a lot of help from the folks here when I started hacking on Koha several years ago and am always looking to return the favor. And don't forget to contribute your work so we can all benefit! Kind Regards, Chris
participants (2)
-
Chris Nighswonger -
pete huerter