Open Source Integrated Library System

Evergreen on IRC

#openils-evergreen Logs for Tuesday, March 10th, 2009

< Monday, March 9th, 2009Raw Log FileWednesday, March 11th, 2009 >
#TimeNickMessage
#00:12:38jeffmiker_++ for 12478 fixing fixed fields
#00:14:19dbs has quit IRC
#01:44:50asmodai has quit IRC
#01:44:54asmodai has joined #OpenILS-Evergreen
#02:16:22asmodai has quit IRC
#02:16:23asmodai_ has joined #OpenILS-Evergreen
#02:17:05asmodai_ is now known as asmodai
#02:22:49asmodai has quit IRC
#02:22:52asmodai has joined #OpenILS-Evergreen
#02:27:55asmodai_ has joined #OpenILS-Evergreen
#02:39:56asmodai has quit IRC
#02:40:15asmodai_ is now known as asmodai
#06:35:29BenO has joined #openils-evergreen
#07:21:47jim_in_mo has quit IRC
#07:42:47kgs has joined #openils-evergreen
#09:12:45phasefxmy new favorite command, svn diff -r PREV
#09:46:53ort_9217 has joined #openils-evergreen
#09:49:23ort_9217phasefx: are you still in here/gonna be in here for a while?
#09:50:42ort_9217oh well, if you are, i might pop by in an hour or two with some questions
#09:51:27ort_9217got to go do something now, though
#09:56:22ort_9217 has quit IRC
#10:39:11skmurphy__ has joined #openils-evergreen
#10:55:40skmurphy has quit IRC
#11:53:49meliss has joined #OpenILS-Evergreen
#12:23:43_dkyle_ has joined #openils-evergreen
#12:36:11eby has joined #OpenILS-Evergreen
#13:01:31jamesrf has joined #openils-evergreen
#13:33:19BenO has quit IRC
#13:50:57eby has quit IRC
#13:59:42eby has joined #OpenILS-Evergreen
#15:01:35eby has quit IRC
#15:07:54phase_bb has quit IRC
#15:08:21eby has joined #OpenILS-Evergreen
#15:44:37phase_bb has joined #openils-evergreen
#16:00:14meliss has quit IRC
#16:23:59eby has quit IRC
#16:26:48eby has joined #OpenILS-Evergreen
#16:46:03brendan_gais there still a copy of import_holdings available somewhere?
#16:53:45phasefxmaybe it's what turned into importer.sh?
#16:56:23_bott_ has left #OpenILS-Evergreen
#17:16:50sarabee_ has quit IRC
#17:24:34brendan_gaahh.. will take a look thanks phasefx
#17:25:44jamesrfbrendan_ga: http://svn.open-ils.org/trac/ILS/browser/branches/rel_1_2_4/Evergreen/src/extras/import/import_holdings.pl
#17:27:09brendan_gathanks just wanted to look at it -- I am correct in thinking this script is deprecated now...
#18:32:26eby has quit IRC
#18:52:33sarabee_ has joined #openils-evergreen
#19:03:51jamesrf has quit IRC
#19:05:38jim_in_mo has joined #openils-evergreen
#20:02:01jeffokay, i'm playing OpenILS::Utils::Fieldmapper and JSON content fetched via the gateway. i'm wondering how to get from JSON string to a Fieldmapper object that I can then use the ever-handy wrap_perl function on.
#20:02:11jeffany ideas?
#20:04:19jeff("you're doing it all wrong!" appreciated also)
#20:08:03jeffoh. JSON2perl in OpenSRF::Utils::JSON
#20:18:42phasefxdoes that mean you got it? :)
#20:18:44djfiander has joined #OpenILS-Evergreen
#20:24:05jeffhrm.
#20:24:08jeffphasefx: not yet :)
#20:30:53phasefxOpenSRF::Utils::JSON->JSON2perl("foo") ?
#20:32:12jeffyeah, i think that gets me partly there. that turns the json into a perl hash, but wrap_perl wants a Fieldmapper object.
#20:33:08jeffi want to take an mvr json payload from an open-ils.search.biblio.record.mods_slim.retrieve call and be able to print the fields like "title", etc.
#20:33:22phasefxI"m used to JSON2js, would have expected it to be a fieldmapper object
#20:33:54jeffmaybe it is, and i'm misreading.
#20:36:09miker_jeff: are you telling OpenILS::Utils::Fieldmapper about the IDL?
#20:37:45jeffi... heh. no, i'm not. i'm going through all the trouble of fetching it, and apparently i forgot to import() it.
#20:40:59jeffokay, closer.
#20:41:16phasefxwhat are you working on, if you don't mind me asking?
#20:43:21jeffat the moment, trying to learn how to make use of data pulled through the gateway.
#20:44:14phasefxdo we have an opensrf-over-http perl library?
#20:44:36jeffnot that i've seen, but if i'm missing it please please tell me ;)
#20:45:56jeffi'm just using LWP to grab the IDL, LWP to make a gateway request, and now trying to turn that payload into an object
#20:47:12jeffi've got some rusty perl skills getting in my way, also.
#20:48:08jim_in_mo has quit IRC
#20:48:53phasefxI love perl, but once you forget it, ouch :)
#20:54:51djfianderI hate perl, because once you forget it, ouch
#20:58:50lisppaste6jeff pasted "perl stabbings" at http://paste.lisp.org/display/76792
#20:58:55miker_I love perl, because I don't forget it
#20:59:13jeffi'm doing something silly, i'm sure.
#20:59:49djfiandermiker_: that's caused by continuous high-grade exposure. it takes very little time to forget
#20:59:50jeffif anyone would like to look at the Data::Dumper output there and offer input, i'm all ears.
#21:00:22miker_jeff: why not just use the $JSON2perl_result ... $JSON2perl_result->author() etc
#21:00:34jeffmiker_: i'll give it a try.
#21:00:44jeffonly reason why was i wasn't aware of that option :)
#21:01:21jeffCan't call method "author" on unblessed reference at ./fm-learn.pl line 33.
#21:01:50miker_however, there's also a to_bare_hash method that will give you ... well ... a hash. where the keys are the field/method names
#21:01:55miker_and the values are the values
#21:02:28miker_oh, because the object is under $JSON2perl_result->{payload}->[0]
#21:02:53miker_you need to unwrap the object from the gateway wrapper
#21:03:20miker_the contents of the payload array is what was returned by the method
#21:03:45miker_the gateway wraps it in a hash, so it can pass the method call status along with the return value
#21:04:20jeffyep, got it!
#21:04:34jeffso, as a quick-and-messy, this works: print $JSON2perl_result->{payload}->[0]->author();
#21:04:44miker_right
#21:05:11jeffyay.
#21:06:05djfianderyou kids are too young to remember what real line noise looked like.
#21:06:30miker_djfiander: um ... we deal with MARC all day long. ain't that enough? ;)
#21:06:37jeffi think i've already asked this, and feel free to tell me "ask the list", but does anyone know of a reason that exposing open-ils.supercat via the gateway would be a Bad Thing? i want to make use of open-ils.supercat.new_book_list
#21:07:04djfiandermiker_: oh, the line-noise variant of MARC is just the human readable display of a binary format ;-)
#21:07:21jeffhrm. now that i'm doing this little bit in perl, i might just consider making a new supercat feed with what i want.
#21:07:25jeff ponders
#21:08:31miker_djfiander: no, I mean the binary format :P
#21:09:20jeffobjective is to pull "new books by item" (which is what open-ils.supercat.new_book_list does) with title/author/etc for featuring on our website.
#21:09:23miker_jeff: that's not a place I'd suggest working on for a first patch, fwiw
#21:10:27miker_will, first new-big-exposed-feature patch, anyway
#21:10:28jeffthen i might stick with my "perl script that calls open-ils.supercat.new_book_list to get record ids, then calls open-ils.search.biblio.record.mods_slim.retrieve to get title/author/etc and feed that into the website.
#21:11:26phasefxis new_book_list exposed somewhere as a supercat feed?
#21:11:35phasefxor is it a work in progress?
#21:11:47miker_phasefx: the exposure was planned, but sponsorship was pulled
#21:11:53jeffmiker_: i hacked around with making a new reporting transform for "dewey hundreds, tens, ones)" and then thought "this is only useful on call numbers", and wondered if it might be better to just add those as a view, kinda' like the dewey blocks in the classic open circulation source... any thoughts there? :)
#21:12:02phasefxah
#21:12:07jeffphasefx: yeah, not exposed. why i asked about exposing open-ils.supercat through the gateway
#21:13:41miker_jeff: supercat app output is very raw, and built to be used by something that creates nice output ... we won't be exposing it by default, but if mlc wants to then I suppose they can
#21:16:45jeffoh, i wasn't advocating it being exposed by default, but wondering if it would be a huge mistake to do. :)
#21:17:09grahamf has joined #openils-evergreen
#21:18:34jeffor i could just do it in python ;)
#21:18:40jeff(hi, grahamf)
#21:18:46grahamfhi jeff
#21:19:02grahamfdoing anything in python sounds like a safe bet :)
#21:21:39phasefx tries to solve this halting problem again :)
#21:23:33jeffmiker_: thanks for the help!
#21:25:01miker_np
#21:39:59jeff goes digging to see if he can delete hold notifications
#21:42:46jim_in_mo has joined #openils-evergreen
#21:45:13jeffnope, not via an api call.
#21:46:24jim_in_moI have Evrgrn 1.4.0.2 installed on ubuntu-intrepid and ehen I start Apache2 I get [warn] NameVirtualHost *:80 has no VirtualHosts
#21:47:18jim_in_mologin admin open-ils returns Unable to communicate with service open-ils.auth
#21:47:45jeffjim_in_mo: did you copy eg.conf to /etc/apache2/sites-available and run a2ensite eg.conf and then reload/restart apache?
#21:49:31jim_in_mochecking history
#21:50:03jeffif there's a link to /etc/apache2/sites-enabled you're probably set.
#21:50:20jeff digs around for an 8.10 image
#21:50:39jeffhrm, nope. i've none. beware, i might be steering you wrong. :P
#21:50:51jeffjim_in_mo: is that login attempt via srfsh?
#21:50:58jeff(guessing so based on the error)
#21:52:02jim_in_moyes, history shows I ran a2ensite as root
#21:52:53jim_in_moyes, login was via srfsh, the srfsh math 2+2 works, login does not
#21:53:22jeffokay, apache's not your only issue, then.
#21:55:17jim_in_moI'm sorry, I have to put a kid to bed. Will dialog later...
#21:55:23jeffgood luck :)
#22:01:19djfianderbleah
#22:01:23djfianderrefactoring.
#22:01:35djfianderon the plus side, I've got a test case so I can tell when I break it :)
#22:01:43jeff grins
#22:22:38djfiander has quit IRC
#22:30:29jamesrf has joined #openils-evergreen
#22:33:01grahamfjust got the i18n/l10n sorted out in Syrup (reserves app). Let the translations begin. :)
#22:34:02phasefxhuzzah
#22:46:32jim_in_moBack on my intrepid install with the srfsh admin login problem, when I browse to localhost, it sends me on to http://localhost/opac/en-US/skin/default/xml/index.xml and I get the page.
#22:47:38jim_in_moMy srfsh login logs [WARN:2413:osrf_stack.c:95:] !!! Received Jabber layer error message
#22:52:14phasefxtry settings-tester.pl?
#22:55:27grahamfg'nite all
#22:55:58phasefxnite
#22:56:08grahamf has quit IRC
#22:57:24jim_in_mosettings-tester.pl starts with a Prototype mismatch: sub main::__LONG_MAX__ () vs none at /usr/lib/perl/5.10/_h2ph_pre.ph line 291 but then redefines it. Then everything is OK.
#22:57:48phasefxI've never seen that before
#22:58:26phasefxperl 5.10?
#22:58:51phasefxha, dbs filed a bug with ubuntu for that
#22:59:09phasefxtry perl -e "require '_h2ph_pre.ph'"
#22:59:48jim_in_moPerl modules loaded, jabber connected - ok, I'll try the perl
#23:00:18phasefxI imagine it's a harmless message
#23:00:27miker_jim_in_mo: http://article.gmane.org/gmane.education.libraries.open-ils.devel/2703 ... looks to be a known issue in Intrepid, but not actually a problem
#23:02:08jim_in_moYes, harmless. opensrf does the math just fine, just doesn't log me into Evergreen
#23:03:30jim_in_moSo in "srfsh% login admin open-ils" admin is the username and open-ils is the default password?
#23:03:46phasefxjim_in_mo: try this in srfsh: request router opensrf.router.info.class.list
#23:04:05phasefxjim_in_mo: that's correct
#23:04:37phasefxthere should be quite a few open-ils services from that class.list request
#23:04:49jim_in_moyes, several Request Completed Successfully
#23:05:25phasefxincluding open-ils.auth?
#23:06:23phasefxjim_in_mo: have you seen this page? http://evergreen-ils.org/dokuwiki/doku.php?id=troubleshooting:checking_for_errors
#23:07:24jim_in_moI did see another error message Could not find fieldmapper.xml in ./ at /openils/lib/perl5/OpenILS/Utils/Fieldmapper.pm line 50
#23:08:54miker_that's definitely a problem
#23:09:24jim_in_moAh HA! open-ils.auth is not in the list of services
#23:12:14jim_in_moIt also Could not find org_tree_js.xml org_tree_html_options.xml locale_html_options.xml org_lasso_js.xml org_tree_proximity.xml
#23:14:19phasefxwhat couldn't?
#23:15:43kgs has quit IRC
#23:17:07jim_in_moThe first time I ran osrf_ctl.sh -l -a start_all. Now I restarted it and those errors don't show up.
#23:17:23jim_in_moAh, Now I get authenticated!
#23:19:56jim_in_moSure enough I needed to restart_all osrf_ctl
#23:20:20jim_in_moIt must create those xml files the first time it runs.
#23:21:50phasefxI don't think anything gets created other pid files and processes with osrf_ctl, but don't know what fixed things either :)
#23:22:47jim_in_moI agree. I tried to locate a few, they don't exist.
#23:24:02jim_in_moWell thanks! I'm on the next step now.
#23:38:22jamesrf has quit IRC
< Monday, March 9th, 2009Raw Log FileWednesday, March 11th, 2009 >