2009-07-07T05:26:11 *** BenO has joined #openils-evergreen 2009-07-07T08:07:57 *** kgs has joined #openils-evergreen 2009-07-07T09:03:10 *** Dyrcona has joined #openils-evergreen 2009-07-07T09:11:51 *** sylvar_ is now known as sylvar 2009-07-07T09:13:18 *** benjamin-ct has joined #OpenILS-Evergreen 2009-07-07T09:14:02 *** natschil has joined #openils-evergreen 2009-07-07T09:17:40 the javascript Request() object type does not seem to send the user session with the request...do I simply need to send the auth session as the first parameter? 2009-07-07T09:18:39 also, I'm a little bit confused as to what the canvas is for 2009-07-07T09:21:16 *** wlayton has joined #openils-evergreen 2009-07-07T09:25:46 *** lisppaste6 has quit IRC 2009-07-07T09:26:01 *** lisppaste6 has joined #openils-evergreen 2009-07-07T09:28:37 And, there was much rejoincing...! 2009-07-07T09:39:20 *** benjamin-ct has quit IRC 2009-07-07T09:39:48 *** benjamin-ct has joined #OpenILS-Evergreen 2009-07-07T09:45:31 *** rsinger has joined #OpenILS-Evergreen 2009-07-07T10:10:12 *** gmcharlt has joined #OpenILS-Evergreen 2009-07-07T10:13:34 *** benjamin-ct has quit IRC 2009-07-07T10:24:22 *** benjamin-ct has joined #OpenILS-Evergreen 2009-07-07T10:57:06 *** dchristens has joined #OpenILS-Evergreen 2009-07-07T10:59:25 *** dbs has joined #openils-evergreen 2009-07-07T11:01:10 Hi folks. How can I have Evergreen index/search the 490 and 830 tags *in addition to* the 440 tag (which has apparently been deprecated) for series statements? 2009-07-07T11:02:22 dchristens: http://open-ils.org/dokuwiki/doku.php?id=scratchpad:random_magic_spells#how_to_include_a_specific_marc_field_with_a_specific_search_class 2009-07-07T11:03:06 miker_++ Most excellent! Thank miker! 2009-07-07T11:03:14 s/Thank/Thanks/ 2009-07-07T11:03:25 * dbs follows the imperative 2009-07-07T11:03:31 miker_++ 2009-07-07T11:03:36 dchristens: refresh that :) 2009-07-07T11:06:24 * dbs prettifies miker_'s work 2009-07-07T11:07:23 "Good, fast, cheap... pick three." :-D thanks, guys. 2009-07-07T11:09:31 dchristens: weird - what version of Evergreen are you running? MODS32 looks like it pulls 490 & 830 into series 2009-07-07T11:10:18 1.4.4.0 2009-07-07T11:10:37 MODS32?? 2009-07-07T11:11:14 heck, even MODS version 2 does 2009-07-07T11:11:19 er, 1.4.0.4 2009-07-07T11:11:21 :-) 2009-07-07T11:11:24 random question... do upgrade scripts re-ingest bibs, or have there been upgrades that suggested that you re-ingest? 2009-07-07T11:11:48 upgrades don't re-ingest 2009-07-07T11:11:52 or have there been upgrade scripts that do a partial re-ingest like miker's example 3.I.? 2009-07-07T11:12:50 * dbs was looking at //mods32:mods/mods32:relatedItem[@type="series"]/mods32:titleInfo in config.metabib_field thinking that the 490 / 830 should already be in dchristens' series index 2009-07-07T11:13:57 but then, I'm the same guy who was wondering yesterday why only one ISBN was indexed in the keyword index 2009-07-07T11:14:16 dbs: what did you find with that? 2009-07-07T11:14:24 jeff: nothing 2009-07-07T11:14:32 * dbs has been flailing ab it 2009-07-07T11:14:38 ah. 2009-07-07T11:15:24 I'm way too scattered. sigh. 2009-07-07T11:42:03 dbs: you are absolutely right - the postgresql table config.metabib_field has an entry for "series", which has an xpath of //mods32:mods/mods32:relatedItem[@type="series"]/mods32:titleInfo 2009-07-07T11:42:18 dbs: *and* 440, 490, etc *are* in /openils/var/xsl/MARC21slim2MODS32.xsl ... guess I need to go back to the cataloguers and find out more about their problem :-) 2009-07-07T11:43:07 dchristens: yeah. a few example records & searches might help, so that you can poke at the metabib.series_field_entry values to see what actually got indexed 2009-07-07T11:43:56 :-) thanks again - I'll play around with that. 2009-07-07T11:43:58 dbs++ 2009-07-07T11:44:38 good luck! 2009-07-07T11:52:00 dbs: I got the Evergreen DB working on Pg 8.4 on Windows. 2009-07-07T11:53:15 Dyrcona: I am filled with admiration and sympathetic wincing. 2009-07-07T11:57:24 *** agJohn has joined #openils-evergreen 2009-07-07T12:00:19 *** EGUEST039 has joined #openils-evergreen 2009-07-07T12:01:14 hello.howdy 2009-07-07T12:03:38 *** ort9217 has joined #openils-evergreen 2009-07-07T12:18:33 Hrm. config.metabib_field id 1 has field_class 'series' and name 'seriestitle', but metabib.keyword_field_entry has 0 rows where field=1. I would think that means that 'series' is not indexed... but I can do a series search in the OPAC. I must be missing a concept here :-) 2009-07-07T12:25:58 dchristens: metabib.series_field_entry perhaps? 2009-07-07T12:28:45 *** anoop has quit IRC 2009-07-07T12:29:21 *** EGUEST039 has quit IRC 2009-07-07T12:38:37 dbs: ah, yes. thanks :-) 2009-07-07T12:39:09 * dchristens slaps his forehead 2009-07-07T12:42:19 *** ort9217 has quit IRC 2009-07-07T12:56:14 *** natschil_ has joined #openils-evergreen 2009-07-07T12:56:24 *** BenO has quit IRC 2009-07-07T12:56:32 the javascript Request object type does not seem to send the user session with the request...do I simply need to send the auth session as the first parameter? 2009-07-07T12:57:17 Dyrcona++ 2009-07-07T12:57:24 food++ 2009-07-07T12:58:15 *** EGUEST039 has joined #openils-evergreen 2009-07-07T13:03:49 *** natschil has quit IRC 2009-07-07T13:07:15 @later tell natschil yes (re auth token) 2009-07-07T13:07:15 miker_: The operation succeeded. 2009-07-07T13:15:58 *** natschil_ is now known as natschil 2009-07-07T13:16:38 miker_: thanks 2009-07-07T13:25:20 howdy.good evening 2009-07-07T13:39:16 *** EGUEST039 has quit IRC 2009-07-07T13:40:21 *** natschil has quit IRC 2009-07-07T13:40:59 *** natschil has joined #openils-evergreen 2009-07-07T13:47:04 So, I'm playing around in the EG database that I setup earlier and I'm manually entering org_unit information directly into the database. 2009-07-07T13:47:34 I see that actor.hours_of_operation default to open and close at 09:00 and 17:00 every day. 2009-07-07T13:47:52 What do I do with libraries that are closed certain days of the week, such as Sunday? 2009-07-07T13:48:05 Should I have them open and close at midnight? 2009-07-07T13:48:20 It doesn't look like those fields allow null values. 2009-07-07T13:52:42 Dyrcona: '00:00' and '00:00' 2009-07-07T13:53:01 Thanks. that's what I meant by "midnight" 2009-07-07T13:53:08 yup 2009-07-07T13:53:23 Also, it looks like dow_0 is Monday? 2009-07-07T13:53:37 I claim no knowledge about *that* part. :) 2009-07-07T13:54:10 :) I'm guessing, from a dump where we had 1.4 setup and inserted hours for 1 location using the cgi programs. 2009-07-07T13:54:50 If that isn't right, I can always fix it later. We're not in production. 2009-07-07T14:00:20 miker_ pasted "from the DateTime man page" at http://paste.lisp.org/display/83181 2009-07-07T14:03:50 Got a weirdness with the reporting function. When attempting output, here's what comes up (this is version 1.4.0.4 of the staff client): 2009-07-07T14:03:52 The requested URL /reporter/2/2/2/report-data.html was not found on this server. 2009-07-07T14:03:54 Some step get missed? Some piece of the reporting package not installed right? 2009-07-07T14:08:05 agJohn: you'll also get that when you're trying to view a pending report that hasn't run yet, iirc. 2009-07-07T14:08:58 Ah, so the running of the report has to happen first.... Makes sense. 2009-07-07T14:11:34 Dyrcona: yep, dow_0 = Monday (ran through this a few days ago) 2009-07-07T14:11:51 thanks muchly. 2009-07-07T14:12:00 meant to add some comments to the schema about that 2009-07-07T14:13:09 i am amused by (from miker's paste): The "day_of_week_0()" method still treats Monday as the first day of the week. 2009-07-07T14:19:44 *** natschil_ has joined #openils-evergreen 2009-07-07T14:20:09 *** natschil has quit IRC 2009-07-07T14:38:01 * berick makes note to fix his time machine to allow travel to year 0 2009-07-07T14:43:00 yeah, that's the only real problem with DateTime 2009-07-07T14:54:59 * dbs uses unapi + LWP to avoid importing already-imported records 2009-07-07T14:55:02 http++ 2009-07-07T14:56:42 *** moodaepo has joined #openils-evergreen 2009-07-07T15:56:27 *** kgs_ has joined #openils-evergreen 2009-07-07T15:57:24 *** kgs has quit IRC 2009-07-07T15:57:24 *** kgs_ is now known as kgs 2009-07-07T15:58:47 *** kgs has quit IRC 2009-07-07T16:03:39 *** kgs has joined #openils-evergreen 2009-07-07T16:08:55 *** benjamin-ct has quit IRC 2009-07-07T16:34:14 * jeff hugs simplejson and JSON::XS 2009-07-07T16:34:20 *** wlayton has quit IRC 2009-07-07T17:03:07 *** Dyrcona has quit IRC 2009-07-07T17:38:11 *** dchristens has left #OpenILS-Evergreen 2009-07-07T17:57:01 *** dbs has quit IRC 2009-07-07T18:27:47 *** natschil_ has quit IRC 2009-07-07T20:05:33 *** djfiander has joined #OpenILS-Evergreen 2009-07-07T20:27:12 bah 2009-07-07T20:27:39 hi 2009-07-07T20:36:52 so, does MFHD do 'except easter'? :) 2009-07-07T20:37:44 I was just thinking about that this evening, as I wrote more test cases. 2009-07-07T20:37:57 No, there is no way in the standard to say, 'except easter'. 2009-07-07T20:38:07 So I don't need to calculate it ;-) 2009-07-07T20:38:31 of course, the standard can't even do 'except Victoria Day' 2009-07-07T20:38:50 Victoria Day == Monday on or after May 24. 2009-07-07T20:41:38 then you're safe! 2009-07-07T20:41:51 you have no idea. 2009-07-07T20:42:19 we're up to 1400 lines of code and growing fast. 2009-07-07T20:43:31 OK, I've got a perl syntax question. 2009-07-07T20:43:47 $#arr is the number of elements in the array @arr 2009-07-07T20:44:27 So, if you've got an array _ref_, how do you find out the number of elements? 2009-07-07T20:44:44 len(@{$aref}) will work, but bleh. 2009-07-07T20:45:34 *** gmcharlt has quit IRC 2009-07-07T20:45:57 *** gmcharlt has joined #OpenILS-Evergreen 2009-07-07T21:02:42 djfiander: don't know how to do $# on an array ref, but keep in mind that $#array is the last subscript while len(@array) is the number of items. 2009-07-07T21:03:18 so... len(@{$aref})-1 would do it, but it seems there should be a better way 2009-07-07T21:06:04 djfiander: which do you actually want? the number of items, or the last subscript? 2009-07-07T21:11:57 actually you should be able to drop the len() 2009-07-07T21:12:32 as long as you're in a scalar context: @{$array_ref}-1 or @{$array_ref} 2009-07-07T21:17:38 *** dbs has joined #openils-evergreen 2009-07-07T21:26:06 I want to say 2009-07-07T21:26:18 foreach my $i (0..$#arr) 2009-07-07T21:26:43 so I just say (scalar(@{$aref})-1) # ick 2009-07-07T21:44:01 *** gmcharlt has quit IRC 2009-07-07T22:04:03 ick. 2009-07-07T22:23:30 ick is uhearst.concat.ca - momma did not raise me to be a designer of any kind. 2009-07-07T22:32:56 I hate computers 2009-07-07T22:33:07 although I do love robust test suites and version control 2009-07-07T22:34:17 ++ to both of those 2009-07-07T22:34:54 and djfiander++ while I'm at it 2009-07-07T22:35:28 djfiander: $#{$a_ref} 2009-07-07T22:35:37 (with credit to #perl) 2009-07-07T22:35:47 seems logical when you see it 2009-07-07T22:35:56 that is proof positive that those guys are just making shit up 2009-07-07T22:36:05 jeff: what is that? 2009-07-07T22:36:20 berick: $#array equivalent for an array ref. 2009-07-07T22:36:21 how to find the last subscript of an array ref 2009-07-07T22:37:02 * berick agrees with djfiander's assessment 2009-07-07T22:37:13 me, I would be tempted to remove the wtf and do something like "my $alen = @$a_ref; foreach my $i (0 .. $alen)" 2009-07-07T22:37:30 dbs, you mean '$alen-1' 2009-07-07T22:37:40 * jeff grins 2009-07-07T22:37:45 and even sprinkle a comment in there - yeah, that :) 2009-07-07T22:38:37 but I'm simplistic, and rather dumb 2009-07-07T22:39:14 for my $e ( @$a_ref ) { } 2009-07-07T22:39:31 *** kgs has quit IRC 2009-07-07T22:40:11 phasefx_: except djfiander wants numbers 2009-07-07T22:40:38 I'm stepping through two arrays in parallel :P 2009-07-07T22:40:43 mmmm 2009-07-07T22:41:31 I can never remember $#, always end up using length(), which is wrong, and then jumping to scalar() 2009-07-07T22:41:53 or at least, that was the case way back when i was still using perl :) 2009-07-07T22:41:55 which is where I started 2009-07-07T22:41:58 bitch 2009-07-07T22:42:20 don't be too jealous, it's all javascript and sql these days 2009-07-07T22:42:54 * phasefx_ goes makes some lemonaid 2009-07-07T22:44:18 sql++ 2009-07-07T22:45:25 why perl sux #2,439: 2009-07-07T22:45:35 return $incr if $incr; 2009-07-07T22:46:01 *** mrpeters-isl_ has joined #openils-evergreen 2009-07-07T22:46:08 return $incr if it's true otherwise keep going. 2009-07-07T22:46:22 this is actually me being overly cute. I shall make the code less cute 2009-07-07T22:54:28 oh good lord. i sparked a whole converation about $# on #perl 2009-07-07T22:54:40 back away slowly 2009-07-07T22:56:22 * jeff is remaining silent 2009-07-07T22:58:08 jeff: I'm sure it's better in Perl 6 2009-07-07T22:59:24 dbs: depending on how worked up #perl gets, it might be now ;) 2009-07-07T23:01:41 heh 2009-07-07T23:06:21 I quite enjoy chromatic's posts on modern perl, fwiw. which, coming from me, isn't much. 2009-07-07T23:08:14 ok. getting closer. but it's bedtime. 2009-07-07T23:09:18 *** djfiander has quit IRC 2009-07-07T23:34:32 hmm: Attempting to build a client session as a server Session ID 2009-07-07T23:34:36 first i've seen that. 2009-07-07T23:35:00 *** benjamin-ct has joined #OpenILS-Evergreen 2009-07-07T23:36:12 *** benjamin-ct has quit IRC 2009-07-07T23:53:05 happened in my apache error logs after a restart. another restart got fewer, a full stop/start of apache eliminated 'em.