IRC log for #koha, 2005-02-10

← Previous day | Today | Next day → | Search | Index

All times shown according to UTC.

Time Nick Message
13:55 hdl paul ?
13:56 Hello everybody.
13:56 owen Hi hdl
13:58 hdl I am hired by paul to work on stats for koha.
13:58 I am french, living on the seaside in France near Montpellier.
13:59 I would like to know if there is an easy way to debug perl code in Koha other way then consulting the logs, printing them would be nice to me.
14:00 owen Hi, nice to meet you.  I'm from the Nelsonville Public Library and the author of the NPL templates
14:00 I work mostly with the interface rather than the Perl code, so I'm not the best person to ask about debugging
14:01 hdl Sorry.
14:01 I saw you did nice job.
14:03 kados hdl: have you used data::dumper or the 'perl debugger'?
14:04 here's a link: http://www.ferg.org/papers/fer[…]introduction.html
14:05 here's maybe a better one: http://modperlbook.org/html/ch21_05.html
14:05 owen around?
14:05 owen Yes
14:06 Not the same kind of problem we've seen before, kados?
14:06 kados I'm also unsure why someone was looking for the title "jane austen's book club"... is that supposed to show up too?
14:07 well it sounds a bit familiar
14:07 owen http://www.amazon.com/exec/obi[…]tail/-/0399151613
14:08 kados right ... so is the assumption that we have this book?
14:08 ahh ... that 's a different title eh?
14:08 o
14:09 owen I remember you manually correcting a flaw in one of the MARC records (or marc-related tables?) that was preventing something from showing up in the opac
14:09 Is that not what's going on here?
14:10 kados not sure yet
14:18 huh ... this doesn't look good:
14:18 select tagsubfield,word from marc_word where bibid like 144902;
14:19 245a        | Da
14:19 245a        | Vinci
14:19 245a        | legacy
14:19 245a        | /
14:19 owen '/' is getting separated out as a word?
14:20 kados but select title from biblio where biblionumber like 144902;
14:20 The Jane Austen book club /
14:20 no that's ok ... it's the wrong record for that bibid
14:21 the da vinci legacy is biblionumber 144886
14:22 select tagsubfield,word from marc_word where bibid like 144886;
14:22 | 245a        | Big
14:22 | 245a        | Russ
14:23 | 245a        | me
14:23 what is going on here?
14:23 owen Records are getting their wires crossed?
14:25 kados paul around?
14:25 owen He's paul_away at the moment
14:28 kados ahh ... bibid and biblionumber are different ;-)
14:28 whoever thought that was a good naming scheme for those columns ;-)
14:30 ok ... select tagsubfield,word from marc_word where bibid like 144918;
14:30 yields the right results
14:34 owen is it possible we're stripping off the first or second result somewhere?
14:34 or last result
14:34 does that sound familiar?
14:34 owen Hmm.... not sure.
14:34 kados I can't come up with any other reason for both records not showing up in the opac
14:34 do you know of any other titles that we have LP and AF for?
14:36 owen A search for 'london bridges' turns up 3 in the intranet and only 2 in the opac
14:36 (both keyword searches)
14:37 kados hmmm
14:39 owen Intranet title search for 'golden compass' turns up 4, and opac title search only turns up 2
14:40 But one of the 4 is lost, so maybe it's still a 1 item difference
14:40 kados all three london bridges items have appropriate entries in marc_word
14:40 but searches where we know we only have one result are showing up fine
14:40 like cryptonomicon for instance
14:41 one item in both intranet and opac
14:43 hdl thanks kados.
14:43 Leaving.
14:44 kados huh ... we're getting some strange errors in our logs
14:46 owen Like what?
14:47 kados well there's some good news here
14:47 owen Anyway, maybe this is a non-issue since these searches look like they work on 101?
14:47 kados yep
14:47 that's what I just noticed
14:48 must be my fault
14:48 I can't see any differences though
14:48 the data looks identical to me
14:48 so maybe it's an older bug or something
14:49 hehe ... even better ... "Jane austen's book club" works!
14:49 owen In fact I've been telling people that we shouldn't worry about these problems because of the pending upgrade.  I just didn't say the same thing to Justin in reply to his post because I was sick of repeating it
14:50 kados I'll respond  this time ;-)
14:50 owen Be as mean as possible ;)
14:54 kados hehe
14:55 yea I always try to be ;-)
14:56 owen does  Andr�s Tarallo's name show up strangely in your email client?
14:56 it totally messes up mutt
14:56 I end up having to delete all his emails before I can sanely read the others
14:57 owen it works okay in Thunderbird and, and works fine in mutt for me
15:05 kados huh ... must be my mucking about with charsets earlier this year
18:42 owen chris around?
18:43 chris yep
18:43 owen I know you're busy, but can I ask a quick question?
18:43 chris sure can
18:44 owen One of the things that bugs our staff members is the time it takes to lift a debarment.  so I was thinking of writing a script that I could pass just a member number and 1 or 0 to.
18:45 In general, are simple scripts like this okay, or should things be incorporated into modules like into Members.pm
18:46 chris simple scripts are fine, if its a one off thing
18:46 if you think you might want to use the same code in more than one place, then a  module is the right place for it
18:46 does that make sense?
18:46 owen Yes.
18:47 kados is there only one flag to set/unset with debarred patrons?
18:47 chris cool, modules are just all about making the code easy to maintain, and so you dont end up with the same code written in lots of different places
18:47 i think so
18:48 owen it's a column in the table, 0 or 1
18:49 chris cool, then yep just switching that will be all thats needed
18:49 kados that's a nice and simple script ;-)
18:49 owen That's about my speed :)
19:28 What do you know, it worked!
19:31 kados congrats owen!
19:33 staff will be glad
20:17 michael hi everyone here !
20:18 chris hi michael
20:18 michael oh... sourceforge is on... i was afraid not to be able to dl koha
20:18 ... :-)
20:18 sourceforge servers were down for 10 minutes
20:19 ... i guess i have install all rpm perl package... so i can begin a new install of koha 2.2.0... i'tell you how it works...
20:20 chris :)
20:21 michael oh no... i miss MCPAN Date:Manip....... it will be more longer than  i thought... of course...
20:21 how are you chris? here in France... this is cold night
20:22 chris its pretty warm here in nz today
20:22 a little bit of a breeze, but lots of sun
20:22 michael cool
20:23 not so much sun here in france... i'm seek and so i stay on my computer to heal carefullt :-)
20:23 chris heh
20:24 it gets quite hot in my office during the summer, with the computers, and me, and my dogs :)
20:24 michael ;-)
20:25 i don't want to be unpatient or unpleasant but just 1 question : how do you install this perl package need by koha ?
20:25 i'm a console a root console but seems doesn't work
20:27 if u have no time to answer just tell me i'll understand
20:29 ... hum seems to work steo by step...
20:29 ;-)
20:30 chris you can go
20:30 perl -MCPAN -e shell
20:31 to get into the interactive CPAN shell
20:31 then just type install packagename
20:31 michael chris: i just enter informations and i am dl some perl package....
20:31 chris cool
20:31 if its the first time using CPAN, it will make you do some setup
20:31 but from then on, it shouldnt need any more
20:34 michael ... sometimes i forget one of these : " or these ' ... but it seeams i ready to go now...
20:34 for info, i use the MandrakeLinux distro
20:35 All required perl modules are installed.
20:39 hum :-(
20:39 ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
20:39 256ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
20:39 /usr/bin/mysqladmin: connect to server at 'localhost' failed
20:39 error: 'Access denied for user: 'root@localhost' (Using password: YES)'
20:39 /usr/bin/mysqladmin: connect to server at 'localhost' failed
20:39 error: 'Access denied for user: 'michael@localhost' (Using password: YES)'
20:40 some pbs with mysql access
20:50 ...
20:50 stange msg here :
20:50 Choose MARC definition [1]: 2
20:50 Unmatched [ in regex; marked by <-- HERE in m/<-- HERE A2/ at Install.pm line 627, <STDIN> line 18.

← Previous day | Today | Next day → | Search | Index

koha1