IRC log for #koha, 2012-07-19

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

All times shown according to UTC.

Time Nick Message
00:00 jcamins See my tirade earlier.
00:00 rangi kill it with fire then?
00:00 jcamins Well, it does something.
00:00 Sorta.
00:00 rangi id hate for copy and paste code to ever make its way into Koha::
00:00 kinda defeats the point
00:01 so maybe kill it and make something that works and is understandable?
00:01 jcamins Well, it's shim code to deal with the fact that we used to store authid in 152.
00:01 With a big FIXME saying delet.
00:01 *delete
00:01 rangi right
00:01 how long since we put authid in 152 ?
00:02 maybe we can oput that in an script
00:02 and say if you are running 5 year old koha
00:02 run this
00:02 to fix it
00:02 when you upgrade
00:02 and leave it out for new stuff?
00:02 Judit joined #koha
00:02 * rangi is just thinking aloud
00:03 jcamins 2.x?
00:03 rangi yeah, some kinda migration script and be done with it?
00:03 maybe in the 2.2 to 3.0 script?
00:04 misc/migration_tools/22_to_30/
00:04 in there somewhere?
00:04 * jcamins shudders.
00:04 jcamins Nope.
00:04 Oh, wait.
00:04 I was looking in the wrong place.
00:05 rangi ok, ducking out for lunch bbiab
00:06 jcamins rangi: (for when you get back) did 2.2 have the marcflavour syspref?
00:18 dcook joined #koha
00:19 dcook Allo #koha
00:22 melia left #koha
00:37 jcamins My god.
00:37 This code is just staggeringly horrifying.
00:38 dcook Good thing you're sitting down?
00:39 jcamins lol
00:39 * jcamins has not had *nearly* enough to drink, sitting down or not.
00:40 schnydszch joined #koha
00:41 dcook lol
00:41 Is it Wednesday night there?
00:41 Not that I'm judging :p
00:43 P.S. What's the code?
00:43 jcamins Authorities.
00:43 wahanui i think authorities is easy
00:43 jcamins wahanui: forget authorities
00:43 wahanui jcamins: I forgot authorities
00:44 dcook Judging from the interface alone, I can only imagine
00:46 jcamins It's better than it was, but it depends on *EVERYTHING*.
00:47 rangi jcamins: yep it supported unimarc and marc21
00:49 jcamins Good. That means I can use it to find out if it was MARC21.
00:52 Okay, I need a new plan for this.
00:54 Irma joined #koha
00:58 Judit joined #koha
01:01 BobB joined #koha
01:13 pastebot "jcamins" at 127.0.0.1 pasted "ok 1 - use Koha::RecordProcess" (34 lines) at http://paste.koha-community.org/41
01:15 rangi nice!
01:15 * jcamins bangs his head on the desk repeatedly.
01:15 jcamins That *really* hurt.
01:16 Judit do do it then :)
01:17 jcamins Okay, C4::Debug, C4::Charset, and C4::Boolean are safe.
01:17 And I'm not moving them.
01:21 And I don't know how to test Koha::Authority.
01:21 pastebot "jcamins" at 127.0.0.1 pasted "Koha/Authority.pm" (92 lines) at http://paste.koha-community.org/42
01:21 jcamins rangi: any suggestions are welcome.
01:22 rangi well a use_ok will test compile thats not a bad start
01:22 then i guess you manufacture a Marc::Record object
01:22 jcamins Actually, I guess I know how to test new.
01:22 rangi can call new with it?
01:23 jcamins I don't know how to test get_from_authid.
01:23 (oh, want to know why I was suffering so much? Class::Accessor apparently defines ->get)
01:23 rangi you can do $context->set_preference
01:24 to change  marcflavours
01:24 jcamins Yeah, how do I test actually retrieving authorities from the database?
01:25 *but
01:25 rangi you might have to add some sample auths
01:25 to the sample data
01:25 then test against known values
01:25 the koha newsletter, make some authority records for that
01:25 :)
01:26 jcamins Yeah, that's what I feared.
01:26 rangi or you can fudge a db connection
01:26 since we arent testing Context
01:26 it doesnt need to be a real db in the back
01:26 you can make a dbh object
01:26 jcamins I'll show you what I did for my other test.
01:26 rangi that hits sqlite or whatever you want ;)
01:27 pastebot "jcamins" at 127.0.0.1 pasted "t/RecordProcessor_EmbedSeeFromHeadings.t" (50 lines) at http://paste.koha-community.org/43
01:27 jcamins Oh-ho!
01:27 Clever!
01:27 Just mock the C4::Context->dbh call.
01:27 I like it.
01:29 Something DBD::AnyData?
01:29 rangi yeah
01:29 something that doenst require installing a daemon or anything anything that pretend to be a db
01:30 DBD::Mock
01:30 jcamins Ah, perfect.
01:30 rangi maybe i havent read all the man yet :)
01:31 http://www.perl.com/pub/2005/0[…]test_mockdbi.html
01:31 jcamins You specify SQL and the result you want.
01:31 Easy as pie.
01:31 rangi sweet :)
01:31 yay
01:32 this will make lots of tests be able to be moved out of db_dependent
01:32 i mean we arent testing the sql in this case
01:32 but for a lot of cases that's ok
01:33 jcamins Right, what I want to test is that the end result is an actual object with a record where the record goes, etc.
01:34 rangi yep
01:34 * dcook wonders if there is already a slim function for retrieving item URIs...
01:34 rangi exactly
01:41 jcamins You know what?
01:42 For right now I'm making it db_dependent, and just retrieving the first authority.
01:42 rangi heh
01:43 make sure you handle no authorities too
01:43 so that the test bails nicely if it cant find any
01:43 i forget how you do that, but i know ive seen it
01:45 jcamins SKIP
01:45 rangi thats it
01:46 jcamins How do I get a single value from a sth?
01:46 fetch_something?
01:47 rangi fetchrow_hashref
01:47 jcamins Hm, but that's a hashref.
01:47 rangi anything else isn't db safe
01:47 some databases (not mysql) dont hand things back in the same order
01:48 but for our purposes you could assume the database is sane
01:48 jcamins Oh, good point.
01:48 Later I'll need more than one column.
01:48 Never mind.
01:50 Actually, what exactly do I *do* with the authority object to make sure it works?
01:50 rangi hehe
01:50 thats why you kinda need a known value
01:50 jcamins Yeah, well, that's not happening right now.
01:50 Ooh, got it!
01:50 authid is constant.
01:50 rangi cos then you can do is($authority->heading,'fish');
01:50 or whatever
01:50 wahanui whatever is most appropriate for the situation.
01:51 jcamins Or should be.
01:51 wahanui: true.
01:51 wahanui i guess true. is it possible to have automatic recurring invoices for each patron?
01:51 * jcamins blinks.
01:52 Judit joined #koha
01:53 BobB_ joined #koha
01:56 BobB_ joined #koha
01:59 pastebot "jcamins" at 127.0.0.1 pasted "Soon I'll go to sleep and you won't have to look at search results" (37 lines) at http://paste.koha-community.org/44
02:00 rangi sweet
02:00 missing one if is all :)
02:01 jcamins Ooh, and I know which it is, too.
02:01 It's the if checking for an invalid record.
02:05 And the marcflavour.
02:06 Well, changing that will require mocking the entire thing, so we're not going to do that.
02:06 rangi set_preference is handy for that
02:06 changing the flavour anyway
02:06 jcamins Yeah, but without mocking the database to provide both UNIMARC and MARC21 records, it wouldn't help.
02:07 rangi yep
02:21 * dcook <3 the Koha jQuery library
02:22 rangi its even cooler with 3.10 .. because of the reports being available as JSON
02:22 and ones you mark public available on the opac
02:23 so you can do cool stuff with jquery and results of reports
02:23 list of new books, no sweat
02:23 dcook O_O
02:23 rangi pie chart showing breakdown of your catalogue
02:23 no sweat
02:25 dcook I wish I knew more about JSON. I've read a little bit, but nothing substantive. Any recommendations for good resources?
02:25 Or maybe I should just wait until 3.10 and learn  by mucking about
02:25 rangi thats how i learnt
02:25 you can muck about with master now :)
02:25 dcook :D
02:25 rangi jplot is fun
02:25 jquery makes json easy
02:25 you getjson
02:26 and pass it to a fucntion
02:26 eg
02:26 $.getJSON('http://jenkins.koha-community.[…]api/json?jsonp='+"?&callback=?",
02:27 function(data){
02:27 data is now a nice datastructure
02:27 so i can do data.jobs
02:27 http://jenkins.koha-community.org/api/json
02:27 thats what the json looks like
02:28 or more readable
02:28 http://jenkins.koha-community.[…]/json?pretty=true
02:28 so data.jobs gets me an array
02:29 that make sense?
02:29 then i can do this
02:29 for(var i=0;i<jobs.length;i++){                                                                       var name = jobs[i].name;                                                                            var colour = jobs[i].color;
02:29 cool eh
02:29 dcook I'm certainly of agreement
02:30 So which reports will be available as JSON?
02:30 rangi so for koha
02:30 any of them
02:30 in the staff interface
02:31 dcook Including the saved ones?
02:31 rangi any of them you mark as public in the opac
02:31 only the saved ones, you make one
02:31 then you call it with the id
02:31 eg
02:32 koha/cgi-bin/koha/svc/report?id=2
02:32 or ?name=myreport
02:32 either works
02:32 you can even tell koha to cache it
02:33 and it will cache it in whatever caching engine you have enabled
02:33 so it doesnt hit the db each time
02:33 dcook Nice. I was just thinking that it might be problematic if people are trying to call big reports with each page load
02:33 So the cache command is just included in the JS?
02:34 rangi nope you set the cache time when saving the report
02:34 jcamins Okay, bed time.
02:34 Good night.
02:34 rangi the perl code that fetches it, gets it from the cache if its in there and not expired
02:34 dcook Night, jcamins
02:34 rangi or runs the report, and caches the results and hands it back to you
02:35 dcook Nice
02:35 rangi svc/report and opac/svc/report do that
02:35 we built it for the last catalyst academy
02:35 so that the students could play with json/jquery
02:35 they did some neat things
02:36 but yeah for a list of new titles, or a drop down of item types or whatever you wanted to do on the opac, you could write the report to fetch the data and jquery to display it
02:37 dcook Very  very cool
02:37 Alternatively, you could do the same on the staff side, yes?
02:37 rangi yes
02:37 and more
02:37 like the last hours circ stats
02:38 percentage of the collection currently onloan as a graph
02:38 whatever :)
02:38 dcook :D
02:39 This is exactly what I've been wanting for a few months now
02:39 I've kept thinking that the reports are so powerful, but that there display has been so limited
02:40 This also really helps savvy users/clients to get more out of their data
02:40 Koha = awesome
02:40 rangi bug 7249
02:40 wahanui well, bug 7249 is particularly cool.
02:40 huginn 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=7249 enhancement, P3, ---, gmcharlt, Pushed to Master , Report webservices
02:40 dcook Koha developers = even more awesome
02:40 rangi and bug 8256
02:40 huginn 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=8256 enhancement, P5 - low, ---, jcamins, Pushed to Master , Reports webservice should allow selection by name
02:41 rangi dcook: and with the jquery and sql libraries
02:41 even users not that savvy
02:41 can cut and paste
02:41 dcook Mmm very true
02:41 rangi so lets the savvy users help other users too
02:41 dcook That's what I'm doing with the jQuery library
02:41 rangi :)
02:41 yep
02:41 dcook I was able to nix a local change, because of...
02:42 rangi yeah
02:42 dcook Galen's jQuery snippet
02:42 I wish that I would've come on here a month ago, so that I could've saved myself some work :/
02:43 rangi hindsight is 20/20 :)
02:43 how much longer do you have in aussie?
02:43 indefinite?
02:43 dcook Alas, not yet
02:43 I'm flying back to Vancouver on August 15th
02:43 rangi ahhh
02:43 dcook But I'm coming back to Oz in January for a minimum of 3.5 years
02:43 rangi sweet!
02:44 dcook Yeah!
02:44 rangi oh
02:44 dcook It's just a temporary visa for now, but I'm hoping that I'll qualify for a permanent one after 2 years
02:44 rangi when is the eg conf in vancouver
02:44 ahh april
02:45 dcook Eg conf?
02:45 rangi evergreen
02:45 wahanui evergreen is up to Update 11.
02:45 dcook Ahh
02:45 rangi access is in montreal this year tho, in october
02:45 dcook Really? I was hoping that was more than a rumour
02:46 rangi if you are gonna be in canada would be foolish to miss it :)
02:46 http://accessconference.ca/
02:46 dcook I wonder how bad it will be with my courseload..
02:47 But I have an old friend in Montreal that I've been dying to see and as you say...I'd be foolish to miss it :p
02:50 rangi :)
02:50 there are a couple of Koha companies there too
02:50 inlibro
02:50 and Libéo
02:52 dcook Cool. I'll have to check them out when I have a moment
02:52 Planning on coming out again this year?
02:52 rangi unfortunately no
02:52 edinburgh flushed the travel budget
02:52 dcook Ahh, fair enough
02:53 I'm still a bit mad that I didn't find out about KohaCon2012 until it was in progress
02:53 Both for the missed opportunity to see/meet you all
02:53 ...and I love Edinburgh
02:53 :p
02:53 rangi reno next year :)
02:54 you can participate in my session (if it gets picked that is )
02:54 where you have to beat me in blackjack to ask a question
02:55 dcook lol
02:55 Yeah, I just saw that it was reno this morning
02:55 I've never been to Nevada
02:55 rangi ive been to Las Vegas
02:56 * dcook is rather terrible at blackjack
02:56 rangi for my honeymoon, we drove route 1 from seattle down
02:56 and then cut across to las vegas for a weekend
02:56 im bad at it too
02:56 but i figure a hand is fast ;)
02:56 dcook Very true. It's a great idea
02:57 How long was the trip between Seattle and Las Vegas?
02:57 rangi we took our time, stopped and stayed at lots of places along the way
02:57 went to yosemite
02:57 saw the redwoods etc
02:57 i think 7 or 8 days
02:58 dcook Sounds like a good trip :)
02:58 rangi http://photos.bigballofwax.co.[…]hp?g2_itemId=1233
02:58 dcook Admittedly, I've been missing the west coast a bit recently
02:58 rangi its a beautiful drive (for the most part)
02:58 especially the oregon coast
02:59 libsysguy joined #koha
02:59 dcook I bet. I haven't been down that way yet myself, but I'm thinking a trip to Portland might be in order in September or October
02:59 I have a friend who loves his craft beers
03:00 rangi oh
03:00 thats the place to go
03:00 say, did you get to the beer thingy we did in the hotel at access?
03:00 http://photos.bigballofwax.co.[…]hp?g2_itemId=1527   <-- one of hte highlights of the trip
03:01 dcook Unfortunately, when I wasn't at Access, I was at the uni, as that was a pretty busy assignment time :/
03:01 rangi back before you could cheat with a smartphone :)
03:01 ahh you missed the pale ales i brought over then
03:02 http://photos.bigballofwax.co.[…]hp?g2_itemId=1611 <-- lol i forgot about this
03:02 dcook I did indeed :(
03:02 lol
03:03 Maybe he wasn't camping
03:03 rangi could be, hiding out in the woods :)
03:03 dcook Cheaper than a mortgage :P
03:03 rangi you could totally do that in victoria park
03:03 i got lost in there
03:04 dcook That's in California?
03:04 Yet another place that I have yet to see..
03:04 rangi that photo? yeah that was near Lodi
03:05 mind you i got lost in stanley park
03:05 i get lost everywhere
03:05 :)
03:06 dcook lol
03:06 Fair enough
03:06 I don't know if I've been lost in Stanley Park, but I sure didn't end up where I wanted to go
03:07 Do you have to know where you are in the beginning in order to get lost? :p
03:07 rangi yeah i think that was my problem too :)
03:07 dcook It's beautiful though
03:07 rangi i spent the whole day walking there
03:07 it was great
03:07 i saw maybe 5 other people
03:07 in the heart of a big city
03:07 was excellent
03:08 * dcook nods
03:08 dcook I love it there
03:08 NSW has some great parks, but none of them are smack dab in the city
03:09 rangi yeah
03:09 dcook Pacific Spirit Park is another good one in Vancouver
03:09 rangi oh, didnt make it there
03:09 dcook It's over by the university
03:09 rangi tara took us to hmm whats the island called fraser ?
03:09 dcook Hmm, maybe?
03:09 rangi really arty, with cool markets
03:09 dcook I'm not too familiar with the islands
03:09 Granville?
03:09 rangi thats it
03:10 simon fraser is a uni
03:10 dcook Yep, out in Burnaby, I think
03:10 * rangi gets them all mixed up :)
03:10 dcook Can't blame you :p
03:10 How big is Wellington? I figure sooner or later I'll make my way over
03:11 rangi hmm not big, if you count greater wellington i think we are around 400k
03:11 dcook Still bigger than the city I grew up in ;)
03:11 rangi 500 apparently
03:12 dcook That's a pretty decent size
03:12 rangi and 200k in wellington itself
03:12 http://www.wellington.govt.nz/[…]glance/index.html
03:12 come in february :)
03:14 dcook I was thinking that this trip in July/August probably isn't going to happen, so I'm thinking that a trip over in February sounds pretty good :)
03:14 rangi we have LIANZA in september and a bunch of stuff to do before then (thats hte big nz library conference) so yeah i think might just run out of time
03:16 dcook Fair enough. Timing just doesn't seem to be there this time
04:47 druthb joined #koha
05:07 Irma1 joined #koha
05:12 mtompset joined #koha
05:13 mtompset Greetings, #koha.
05:15 BobB joined #koha
05:17 Amit_Gupta joined #koha
05:44 mtj well, i'm looking at a weird bug on a 3.6.4 koha....
05:45 a 'Patron has had overdue items and is blocked for 586 day(s).' message on an item  checkout
05:45 ... and the patron has no items out :/
05:51 hmm, looks like the 'borrowers.debarred is not a date' bug
05:53 $DBversion = "3.07.00.001";
05:53 print "Upgrade done (Change borrowers.debarred into Date )\n";
05:53 . looks like the problem...
05:55 bug 7272
05:55 huginn 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=7272 major, PATCH-Sent (DO NOT USE), ---, paul.poulain, Pushed to Stable , Fix for Bug 6328 causes user accounts to be frozen (SIP2)
06:01 logbot joined #koha
06:03 alex_a bonjour #koha
06:12 mbalmer joined #koha
06:39 reiveune joined #koha
06:39 reiveune hello
06:39 mbalmer bonjour, marseill!
06:40 … marseille ...
06:48 matts ^^ hello mbalmer !
07:01 julian_m joined #koha
07:01 eythian joined #koha
07:02 julian_m hello
07:05 Judit joined #koha
07:05 Judit left #koha
07:05 laurence joined #koha
07:09 raj08 joined #koha
07:09 raj08 hi any user there?
07:10 ??
07:11 asaurat joined #koha
07:12 raj08 any body there?
07:13 rangi yes
07:13 raj08 r u user?
07:14 rangi user of koha?
07:14 raj08 yes
07:15 rangi sometimes yes
07:15 raj08 can u help me oprate of koha?
07:16 rangi have you read the manual and watched the tutorial videos?
07:16 gaetan_B joined #koha
07:16 raj08 i Do:t have Video
07:17 ??
07:18 mtj raj08:  the videos are on youtube...
07:18 eythian http://ubuntuone.com/002KKAFcFghdc3urB26Fxl <-- picture of Marseille I took
07:19 rangi http://bywatersolutions.com/se[…]/tutorial-videos/ and there
07:20 eythian: from up on the hill by the big churchy thingy?
07:21 Notre Dame de la Garde ?
07:21 http://photos.bigballofwax.co.[…]arseille/DSC02185 <-- it was more hazy when i was there
07:23 eythian rangi: yep
07:23 yeah, I think I'm having better weather than that :)
07:23 rangi :)
07:24 cait joined #koha
07:25 rangi morning cait
07:25 eythian hi cait
07:25 laurence joined #koha
07:26 cait hi eythian and rangi :)
07:30 eythian_ joined #koha
07:33 cait wb eythian? :)
07:34 mtj hi #koha
07:37 cait:  i have a Q for you?
07:37 cait sure
07:37 not sure I have an answer for you tho :)
07:38 mtj in Members::IsMemberBlocked, whats a 'fines days'?
07:38 cait that you hae to ask a french person :)
07:38 mtj http://git.koha-community.org/[…]f9e3;hb=HEAD#l609
07:39 cait the idea is that you debar patrons instead of charging fines
07:39 for a certain amount of days that is calculated somehow
07:39 mtj ahh, ok
07:39 rangi mtj: you'll want to talk to biblibre people about that
07:39 mtj bah, and that sub is waay different in master, than in 3.6.4 :/
07:40 ive got a crazy bug in my 3.6.4 , and that sub is causing it
07:40 rangi have to tried 3.6.6 ?
07:40 mtj yes
07:41 rangi or latest 3.6.x .. is it fixed?
07:41 mtj not in 3.6.x,  afaik
07:41 cait mtj: make your your issuingrules don't have values for that
07:41 I mean really no values
07:41 null
07:43 mtj ok - in smart-rules.pl ?
07:43 rangi no in the db
07:46 mtj ok, thanks for the tip!
07:46 eythian http://lwn.net/Articles/507110/ <-- speaking of hyper-v (well, we were yesterday)
07:54 mtj ok, so stupid question number-1.. where do i enable/disable fine-days?
07:55 coz, this patron is blocked until '2014-02-25' ;)
07:56 ah, i think i got it -> 'Suspension in Days (day)'
07:59 w00t - fixed :)
07:59 cait++ rangi++
08:00 but damn, that feature looks buggy :/
08:01 rangi it was supposed to be working in 3.6.x the thought was that hourly loans introduced the bugs
08:02 mtj my koha was calc-ing an issuerule with '28' days suspension, into 586 days?!
08:02 rangi how many days overdue was it?
08:03 21 ?
08:04 mtj hmm, not sure about 'it' - there are 30 old_issues items for this patron
08:05 and 15-ish look to be overdue
08:05 does the finesday code, add *all* overdues together? surely not
08:05 rangi maybe it does
08:05 it would do that with money
08:05 why not days
08:06 mtj heh, yeah ... ok :)
08:06 rangi if you get banned for 1 day per book, it would be wrong to be able to take out 20 and still only get 1 day banned
08:25 mtj so, 30 books in old_issues table - each book 1 day overdue...
08:26 rangi yeah thats probably how it happened
08:26 mtj if 'suspension_days' = 28, is that (30 books * 28 days = 840 days) ?
08:28 yeah, i think thats the situation for my koha
08:28 rangi yup
08:30 mtj thanks for the help - i'm not sure that i would have clicked to this, by myself
08:30 rangi no worries
08:32 mtj oh nice, looks like the evergreen-ils people are doing a tweetbot for their #irc channel, too
08:35 drojf good morning #koha
08:36 rangi ah yep bshum was asking about that
08:36 hi drojf
08:36 mtj (i might have to remind them about the google/spam issues)
08:37 but hey, after the [off] fix... no spam since that day ;)
08:37 rangi yep
08:38 mtj bigpresh++ -> http://search.cpan.org/~bigpre[…]e/TwitterWatch.pm
08:39 i owe that guy a few beers for helping me with my dancer beer.app :)
08:55 eythian joined #koha
08:56 reiveune joined #koha
08:58 asaurat joined #koha
09:03 alex_a joined #koha
09:21 chris_n` joined #koha
10:29 gaetan_B1 joined #koha
10:49 mtj oh, nice -> http://code.ohloh.net/project?pid=&ipid=298154
10:50 new koha git-repo browser, in ohloh
10:51 eythian that must be a very old revision
10:51 jcamins Thank goodness they have the kumara repo. :P
10:52 rangi you can change the repo in the dropdown, and yep its good to have the whole history of the project
10:54 jcamins Isn't it a bit late?
10:55 (in NZ)
10:55 rangi only 11
10:57 good old Cdk
10:57 jcamins Cdk?
11:01 rangi curses development kit
11:01 how circulation worked in kumara
11:01 jcamins Ah.
11:23 jwagner joined #koha
11:23 julian_m joined #koha
11:29 cait joined #koha
11:43 nengard joined #koha
11:45 McCloud joined #koha
12:28 dpavlin quick question: Does printing pdf labels work for anyone in current master code?
12:28 It seems to me that we have "wide character" errors from PDF::Reuse, and I'm stuck...
12:28 I *could* fix it in PDF::Reuse, but this is not optimal.
12:29 gaetan_B joined #koha
12:30 jcamins dpavlin: Latin1-only labels might work. I'm not sure.
12:30 Certainly it is a known issue that the PDF export doesn't handle Unicode.
12:32 dpavlin jcamins: Bug 8375 is surposed to fix something, and it's on the right track, but not sufficiant to make utf-8 work.
12:32 huginn 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=8375 normal, P5 - low, ---, matted-34813, Pushed to Stable , Common diacritics not shown correctly when exporting batch label to PDF
12:33 jcamins Yeah, I understand it's really complicated.
12:33 dpavlin It's really PDF::Reuse fault -- it's doing binmode on file handle, so we have to decode all utf-8 characters into bytes before passing it in.
12:35 asaurat joined #koha
12:36 libsysguy joined #koha
12:40 laurence joined #koha
12:42 tcohen joined #koha
12:48 Oak joined #koha
12:49 * Oak waves
12:49 Oak @seen cait
12:49 huginn Oak: cait was last seen in #koha 5 hours, 7 minutes, and 33 seconds ago: <cait> null
12:50 jcamins Null?
12:50 wahanui well, Null is correct I think.
12:50 Oak yup
12:59 ago43 joined #koha
13:02 gaetan_B joined #koha
13:13 cait joined #koha
13:30 drojf joined #koha
13:33 nengard lots of patches on bug 6716 need sign off :) and they're easy to test ? hint hint hint :)
13:33 huginn 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=6716 enhancement, P3, ---, nengard, Needs Signoff , Database Documentation
13:41 mtompset joined #koha
13:42 mtompset Someone should update the topic to point to the new meeting time. :)
13:44 Greetings, #koha.
13:58 * mtompset waves bye.
14:19 clrh joined #koha
14:33 trea joined #koha
14:51 laurence left #koha
14:57 cait joined #koha
14:59 edveal joined #koha
15:04 tcohen hi #koha
15:10 gaetan_B joined #koha
15:14 julian_m joined #koha
15:16 alex_a left #koha
15:22 Koha3-06-Help joined #koha
15:24 Koha3-06-Help Hello.  We did a Koha 22 to 3.06 upgrade.  Everything worked great.  We have one outstanding issue still.  In the OPAC if you search for a title from all libraries the search works fine.  However when you try and restrict to a single branch it returns no results.  Now if you search across all libraries to get results then click on one of the <continued>
15:26 branches to get no results the URL ends in "limit-branch:<branchcode>" if you manually change the ending to "limit-holdingbranch:<branchcode>" the page returns results.  Is there a way of changing the perl search file to have the url return "holdingbranch:" instead of "branch:"?
15:26 glawson_ joined #koha
15:27 eythian Koha3-06-Help: yes, you could probably modify the template to do that
15:28 Koha3-06-Help: however, it might be worth seeing if there's a bug about that, or determining if it's just a weird feature of your data.
15:28 wizzyrea I don't see a bug for that particular problem though
15:28 eythian if it's your data, it might be something you can fix.
15:28 wizzyrea right, i'm thinking
15:28 you may have populated the homebranch
15:28 but not the holding branch
15:28 libsysguy ^^
15:28 wizzyrea or the other way around
15:28 wahanui the other way around is more readable as far as the intent of the clause
15:28 wizzyrea forgeth the other way around
15:29 asaurat left #koha
15:29 wizzyrea forget the other way around
15:29 wahanui wizzyrea: I forgot other way around
15:29 Koha3-06-Help HoldingBranch and Homebranch in the items table are populated and the same.
15:29 libsysguy wizzyrea I thought we were going to get wahanui to do a logic puzzle
15:29 * wizzyrea giggles
15:30 libsysguy Koha3-06-Help have you tried reindexing from the xml?
15:30 * libsysguy can't remember if you re-index after an upgrade
15:31 libsysguy typically if there is a search problem in the opac its something to do with the indexes rather than the database
15:31 Koha3-06-Help I went ahead and created a Branch column in my items table set it equal to Holdingbranch.  Setup the relation and created an index on that column.  Still the same results
15:31 eythian libsysguy: I reindex whenever I look at something funny
15:31 Koha3-06-Help: just creating tables won't really help
15:31 trea1 joined #koha
15:31 libsysguy yeah in fact that is a really bad idea Koha3-06-Help
15:31 wizzyrea there was a bug back in 3.2 that was kind of like that
15:32 Koha3-06-Help I have reran the zebraindex.pl file.  I guess I am not totally certain what you mean by index from the xml file.
15:32 libsysguy two things that are ill-advised…manually modifying koha code and manually modifying the schema
15:33 Koha3-06-Help ./rebuild_zebra.pl -v -x -r -b
15:33 that will rebuild the indexes for bibs from xml
15:34 Koha3-06-Help Just run that or should I change something before that?
15:34 libsysguy you can just run that
15:34 wizzyrea not sure what you'd change
15:35 libsysguy what kind of install do you have?
15:35 Koha3-06-Help Ubuntu 1-
15:35 eythian joined #koha
15:35 Koha3-06-Help err, 10
15:35 libsysguy Koha3-06-Help: i mean is it a git install, package, tarball?
15:35 Koha3-06-Help package tarball
15:36 libsysguy so im assuming you chose production install when you installed from the tarball?
15:37 Koha3-06-Help Correct
15:39 jcamins eythian++
15:39 libsysguy oh actually you can probably run the script from inside the unzipped tar
15:40 i've gotta run but reindex and see if that helps
15:41 jcamins Koha3-06-Help: you have to use Zebra starting with 3.4.
15:41 Koha3-06-Help: you should remove the branch column or else you will run into problems.
15:41 *may run into problems.
15:42 Koha3-06-Help: do you have anything in items.homebranch?
15:42 Koha3-06-Help I removed the branch column.  That is what I was doing.  rebuild zebra running now
15:42 wizzyrea jcamins: he says home and holding match
15:42 jcamins wizzyrea: oh, thanks.
15:42 Koha3-06-Help: you ran the script to remove items from biblioitems?
15:43 Koha3-06-Help Yes HomeBranch and Holdbranch are population
15:43 jcamins And, perhaps most importantly of all, you set NoZebra to "Use" and configured Zebra?
15:43 (by "perhaps" I mean "definitely")
15:44 Woohoo! Test passes!
15:44 * jcamins is taking a test-centric development approach.
15:44 jcamins Unit tests before functionality.
15:44 I don't know why I don't always do this.
15:45 eythian because it feels like it takes a lot longer, even though it really doesn't.
15:45 jcamins eythian: actually, I think it's because it never occurred to me that I *could*.
15:46 Koha3-06-Help Yes ran remove items from biblioitems and we have NoZebra set to use and configured Zebra
15:46 jcamins Hmmm.
15:49 my $suggestions = $suggestor->get_suggestions({ 'search' => 'silliness' });
15:49 ^^ this no suggestions for such silliness. :D
15:49 s/this //
15:49 Maybe this is why I don't generally write tests first.
15:49 I get silly.
15:52 Okay... reasons why suggestions shouldn't be AJAXy?
15:52 Ready, go!
15:52 wizzyrea: I'm looking at you, here.
15:52 * wizzyrea doesn't see a reason
15:52 wizzyrea people who don't have javascript will be mad?
15:52 jcamins Why shouldn't I make the "Did you mean?" bar into an AJAX-based thing?
15:52 wizzyrea ^^ see above
15:53 jcamins Okay...
15:53 do I care?
15:53 wizzyrea (I don't really consider it a deal breaker though - people who use IE must think the web never works, ever. People who don't use javascript probably have a similar experience)
15:54 jcamins Sticking it inline at the top will make things a hell of a lot slower if you want useful suggestions.
15:54 eythian wizzyrea: also people with screenreaders etc
15:54 wizzyrea ^^ and that
15:54 jcamins Okay, that I care about.
15:54 eythian jcamins: opac or staff client?
15:54 jcamins OPAC.
15:54 I would prefer not to make search results even slower.
15:54 eythian if OPAC, I'd say target fancy but fall back gracefully
15:54 wizzyrea what he said
15:55 jcamins For screenreaders/no-JS... what about providing a link to get suggestions?
15:55 Adds more work for me, of course.
15:55 eythian sure
15:55 shouldn't be too much work, just link to the same page with "option=inline-suggestions" or similar
15:55 jcamins But then everyone gets zippy searches
15:56 Oh, you mean serve the rendered suggestions?
15:56 BRILLIANT!!!
15:56 Seriously, guys, it turns out I shouldn't do test-first development.
15:56 I get a little over-enthusiastic.
15:56 eythian yeah, so if they follow the link they get it like ajax, it just takes longer
15:57 also, if you can, try to avoid bumping content down if you insert stuff at the top, it's really annoying if things move 2 or 3 seconds after you start reading.
15:57 * eythian would also like a pony
15:58 jcamins eythian: I only planned on displaying one line of suggestions.
15:58 eythian ah right, easy then
15:58 jcamins Which will be occupied by the link to get suggestions.
15:58 (or "Loading suggestions...")
15:58 eythian yeah, sounds good
15:58 jcamins Well, actually, I planned on displaying a sidebar with suggestions, but the suggestions at the top makes more sense now that you have suggested an easier way to deal with it.
15:59 (yes, I planned on rendering the JSON in the browser... it's easy to test that;)
15:59 eythian yeah :)
16:00 jcamins Arglebargle! My test only covers 98.1% of the module.
16:01 eythian haha
16:01 melia joined #koha
16:05 jcamins I tested 100% of the module I wrote just so I could test the module I'm trying to test.
16:06 Well, I'll come back to this mystery.
16:08 Koha3-06-Help Ok.  I ran rebuild_zebra rebuild_zebra.pl -v -x -r -b the same thing is happening.  Branch: returns no results.  holdingbranch: returns results
16:10 reiveune left #koha
16:12 Koha3-06-Help For my sanity.  How would I go about changing the template so the URL returns holdingbranch: instead of just branch: ?
16:14 jcamins Koha3-06-Help: you're having problems from the advanced search screen?
16:14 Morthland joined #koha
16:15 Morthland Howdy
16:15 I need some help generating a report.
16:16 Koha3-06-Help Yeah.  When I search for a book under all libraries.  I get results.  When I restrict it to a specific Branch I get no results.  Interesting thing is the URL has an ending of "limit-branch:<branchcode>"  if I change it to "limit-holdingbranch:<branchcode>" I get results.
16:16 Morthland I need something of an inventory, but I need it to include the publishing date.
16:17 jcamins sql report library?
16:17 wahanui hmmm... sql report library is at http://wiki.koha-community.org[…]L_Reports_Library
16:17 jcamins Morthland: ^^ there should be a report there you can borrow.
16:17 "Weeder" or something like that.
16:17 Koha3-06-Help: when you say it says "limit-branch" do you mean "limit=branch"?
16:18 Koha3-06-Help yes "=" my bad.
16:18 jcamins Okay, just checking.
16:18 Ooh. I bet I know what it is.
16:18 I bet 2.2 had different mappings.
16:19 Koha3-06-Help opac-search.pl?q=huxley     -> Returns Resutls
16:19 jcamins So...
16:19 hm.
16:19 Changing it in the interface is going to be a huuuuuge problem.
16:19 Koha3-06-Help opac-search.pl?idx=kw&q=huxley&so​rt_by=relevance_ASC&limit=branch:RHS   - Returns no results
16:19 * jcamins ponders.
16:19 jcamins Do you have an internal knowledgebase?
16:20 Koha3-06-Help opac-search.pl?idx=kw&q=huxley&sort_b​y=relevance_ASC&limit=holdingbranch:RHS  -> returns results
16:20 jcamins I have a solution, but it depends on you having an internal knowledgebase.
16:20 Somewhere that some would *definitely* look when upgrading.
16:20 *someone
16:20 Even if that someone weren't you.
16:20 Even if that someone had just been assigned to upgrade Koha after a decade of blissful neglect to the server.
16:21 Koha3-06-Help No we do not have an internal knowledgebase.
16:21 jcamins Hm.
16:21 Can you have instructions etched onto the server's case?
16:21 (I'm actually serious... you are going to make an impossibly small change, and it is going to confuse people)
16:22 Morthland what is the title of the publishing date column?
16:24 Nevermind, I believe I have found it.
16:24 jcamins Morthland: I don't recall.
16:24 There's a report on duplicate titles that should show you, though.
16:24 Also there's a weeder report that includes it.
16:24 :)
16:25 Koha3-06-Help: so, in order to fix the problem, you can open up /etc/zebradb/ccl.properties, find the line that says "branch homebranch" and move that line to below the one that says "holdingbranch 1=[something] and change it to "branch holdingbranch"
16:28 Koha3-06-Help I am willing to try anything at this point.  Give me a min.  It would only be me or one other person that does this.
16:31 That fixed it.  Could you explain to me why it did?  The URL is still the same
16:32 drojf joined #koha
16:35 jcamins What you did is changed the "branch:" prefix for searching to mean holdingbranch instead of homebranch.
16:36 Koha3-06-Help But homebranch is the same as holdingbranch?  I am not trying to argue, just understand.
16:36 jcamins Nope.
16:36 homebranch and holdingbranch are two different fields.
16:37 The problem is that items.homebranch is not getting put into the correct place for indexing.
16:37 It would be good to fix that.
16:37 Koha3-06-Help I know they are two different fields.  But they appear to be identical data.
16:37 jcamins Unfortunately, I don't know how to fix it.
16:37 items.homebranch and items.holdingbranch have identical data.
16:37 The search engine does not use the data from there directly, though.
16:39 I'd say "it makes sense," except it doesn't. ;)
16:40 wizzyrea what did I miss re: the tests and koha::searchengine::zebra
16:40 it's failing with a "not in @INC"
16:41 do I have a wrong config file somewhere
16:41 Koha3-06-Help Would it be a fix to the database?  Or a fix to the zebra index?  I don't mind spending sometime looking.  What would I be looking for?
16:41 jcamins No, it doesn't work on Squeeze.
16:41 wizzyrea ah
16:41 jcamins Problem, ya.
16:41 wizzyrea i knew I had missed something
16:42 mbalmer joined #koha
16:42 mbalmer ola
16:42 jcamins Koha3-06-Help: it'll be something to do with your MARC mappings.
16:42 Probably homebranch needs to be mapped to something different than it is.
16:43 But changing mappings can be tricky. In fact, I'm not 100% sure how it works.
16:43 wizzyrea: I posted a tetchy comment on the bug.
16:45 Woohoo!
16:45 100% test coverage!
16:45 wizzyrea which bug?
16:46 jcamins @query solr
16:46 huginn jcamins: 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=7260 enhancement, P5 - low, ---, gmcharlt, NEW , User should be able to determine the number of search results per page (OPAC)
16:46 jcamins: 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=7174 enhancement, P5 - low, ---, paul.poulain, NEW , Authentication rewriting
16:46 jcamins: 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=8233 major, P2, ---, jonathan.druart, ASSIGNED , New search engine layer - introduce solr without breaking anything else
16:46 jcamins: 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=7417 enhancement, P5 - low, ---, jcamins, ASSIGNED , Include alternate forms from authorities in bibliographic searches
16:46 jcamins: 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=7013 normal, PATCH-Sent (DO NOT USE), ---, adrien.saurat, In Discussion , required format is not enforced for authorized values
16:46 jcamins Bug 8233
16:46 huginn 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=8233 major, P2, ---, jonathan.druart, ASSIGNED , New search engine layer - introduce solr without breaking anything else
16:48 wizzyrea how are the tests passing on jenkins?
16:49 jcamins wizzyrea: rangi spent waaaaaaay more time than I would've had the patience for recompiling things from CPAN.
16:50 wizzyrea ooo kkkayyy
17:00 jcamins have I mentioned recently what a horror SearchAuthorities is?
17:00 drojf goodness. i have a single mysql database at my hoster and can install a single module (like wordpress, mediawiki etc) only once into that db. i had mediawiki installed, deleted it and now i cannot reinstall, because obviously they forget to delete the information "mediawiki deleted from db". so what is their solution? i should try to delete the whole database. with all the other data inside. because their deinstallation routine is broken
17:00 jcamins drojf: time to change hosts?
17:00 Get a VPS.
17:01 drojf i just got that a few weeks ago so i guess i'm stuck for a year or pay twice.
17:01 jcamins :(
17:02 drojf i probably should lose a raspberry pi somewhere in the university network
17:02 jcamins lol
17:06 * drojf gets a backup of his db. who knows what is going to happen next
17:08 pastebot "jcamins" at 127.0.0.1 pasted "wizzyrea: pour vous" (61 lines) at http://paste.koha-community.org/45
17:08 wizzyrea thanks :)
17:08 jcamins Actually, I'm going to symlink a bunch more now.
17:09 xsl
17:09 wizzyrea we should make the installer do this for us
17:09 bc this is nuts.
17:09 jcamins lang_defs
17:09 Agreed.
17:09 You should comment on my bug saying that it's a good idea.
17:09 It wasn't well-received.
17:09 wizzyrea which bug
17:09 * wizzyrea will have to be righteously convinced otherwise.
17:10 tomatoe joined #koha
17:10 wizzyrea whaddup nightshade
17:10 jcamins Also etc, I think.
17:10 Good question.
17:10 tomatoe left #koha
17:11 jcamins Bug 7512
17:11 huginn 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=7512 enhancement, P5 - low, ---, gmcharlt, NEW , Dev mode install should use Zebra configs from kohaclone
17:12 jcamins etc/zebradb/etc can be symlinked to.
17:12 Oh, except for passwd.
17:21 gaetan_B bye !
17:21 jcamins Test-driven development is just easier.
17:22 If I make the script respond to the command line, I can just run opac/opac-suggestions.pl over and over until it gives the results I want.
17:23 Also, anyone who doesn't write POD first is making their lives needlessly complex and unpleasant.
17:30 brylie joined #koha
17:33 jeff docs++
17:48 nengard speaking of docs ? bug 6716 still needs several sign off :)
17:48 huginn 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=6716 enhancement, P3, ---, nengard, Needs Signoff , Database Documentation
18:40 trea left #koha
19:21 jcamins Alas, oleonard is not here.
19:26 libsysguy joined #koha
19:26 nengard left #koha
20:00 jcamins Bug 7417 submited for signoff.
20:00 huginn 04Bug http://bugs.koha-community.org[…]w_bug.cgi?id=7417 enhancement, P5 - low, ---, jcamins, Needs Signoff , Include alternate forms from authorities in bibliographic searches
20:00 jcamins *submitted
20:00 trea joined #koha
20:01 rangi Morning peeps
20:02 drojf good morning rangi
20:05 jcamins I have a markup problem.
20:06 When this line wraps, the second overlaps the first.
20:06 CSS problem.
20:06 jwagner joined #koha
20:06 BobB joined #koha
20:06 khall joined #koha
20:06 bag joined #koha
20:06 phasefx_ joined #koha
20:06 senator joined #koha
20:06 gmcharlt joined #koha
20:06 sijobl joined #koha
20:06 drojf weeeee
20:07 jcamins Got it. display: inline-block;
20:07 cait joined #koha
20:09 Topic for #koha is now Koha 3.8.2, 3.6.6 and 3.4.8 Now Available | Koha Community Website - http://www.koha-community.org/ | General IRC meeting, 18 July 2012 at 10:00 UTC+0
20:10 trea left #koha
20:13 * cait waves
20:13 * jcamins waves back.
20:16 jcamins YES!!!!
20:16 I got relevance ranking working with authorities. :D
20:17 Uhhh... this is good.
20:17 And surprising.
20:22 rangi My stop brb
20:23 drojf jcamins++
20:27 cait jcamins++
20:27 drojf hi cait :)
20:28 cait hi all :)
20:30 rangi back
20:40 kathryn joined #koha
20:44 wizzyrea jcamins++
20:47 jcamins Ummm...
20:47 Could someone try to edit local use system preferences?
20:47 * wizzyrea is on it
20:48 wizzyrea it works for me
20:48 any specific local use preference?
20:48 a "new preference?
20:48 "
20:48 jcamins I can't get to the page at all.
20:49 wizzyrea hmm
20:49 how did you go about getting there
20:49 jcamins I clicked the link.
20:49 Must be my fault.
20:49 I wonder how.
20:49 wizzyrea I went More -> administration -> Global system preferences -> local use tab
20:50 worked ok for me
20:50 jcamins Oh, got it.
20:51 I had opened a pref file, and the .swp file was confusing the script.
20:51 wizzyrea oooooo
20:58 @wunder lawrence ks
20:58 huginn wizzyrea: The current temperature in Lawrence Live-Courtesy of the Khoury's, Lawrence, Kansas is 38.0°C (3:58 PM CDT on July 19, 2012). Conditions: Clear. Humidity: 37%. Dew Point: 21.0°C. Pressure: 29.91 in 1013 hPa (Falling). Heat advisory in effect until 8 PM CDT Tuesday...
20:58 wizzyrea not as bad as what my computer says but OY still hot
21:03 rangi hmm
21:03 @wunder nzwn
21:03 huginn rangi: The current temperature in Wellington, New Zealand is 10.0°C (8:00 AM NZST on July 20, 2012). Conditions: Partly Cloudy. Humidity: 82%. Dew Point: 7.0°C. Pressure: 30.42 in 1030 hPa (Steady).
21:29 wizzyrea ooh jquery 2.0 will drop support for IE 6 7 and 8
21:29 about time I say. Those people already think the web is broken anyway, let's just make it official. ;)
21:30 cait it also looks like the menu widget will be in the next jquery ui release
21:30 only no idea when that is
21:30 rangi yay
21:32 cait i tried to find out last week
21:32 libsysguy @wunder 75707
21:32 huginn libsysguy: The current temperature in The Ridge at the Woods, Tyler, Texas is 35.1°C (4:30 PM CDT on July 19, 2012). Conditions: Clear. Humidity: 50%. Dew Point: 23.0°C. Pressure: 30.03 in 1017 hPa (Falling).
21:41 drojf rangi: http://www.3d0g.net/brewing/untappd-kegerator
21:41 rangi heh sweet
21:51 cait :)
21:52 tomatoe joined #koha
21:56 drojf ha, bed before midnight! i'm a good boy. good night #koha
21:57 cait good night drojf
21:57 wizzyrea gnite :)
21:57 cait :)
21:57 wizzyrea now to get cait into bed...
21:58 cait cait is on vacation :)
21:58 wizzyrea that means you should be SLEEPING.
21:58 :)
21:59 cait huh?
21:59 wizzyrea on vacation, good time to sleep
21:59 cait I am talking to my brother about computer things
21:59 wizzyrea oh never mind.
21:59 :)
21:59 cait :)
22:07 edveal left #koha
22:32 cait night all
22:33 rangi cya cait
22:33 cait left #koha
22:52 tomatoe left #koha
23:12 BobB_ joined #koha
23:37 papa joined #koha

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

koha1