2008-05-28T01:07:47 *** dbs has quit IRC 2008-05-28T01:48:37 *** Mark__T has joined #openils-evergreen 2008-05-28T02:32:21 *** sylvar has joined #openils-evergreen 2008-05-28T03:06:53 *** skmurphy has quit IRC 2008-05-28T03:07:22 *** sylvar has quit IRC 2008-05-28T03:14:03 *** phase_bb has quit IRC 2008-05-28T03:15:41 *** phase_bb has joined #openils-evergreen 2008-05-28T06:31:02 *** Mark__T has quit IRC 2008-05-28T06:31:57 *** rsinger has joined #OpenILS-Evergreen 2008-05-28T06:32:02 *** Mark__T has joined #openils-evergreen 2008-05-28T07:00:30 *** ibbo has joined #OpenILS-Evergreen 2008-05-28T07:59:52 *** dbs has joined #openils-evergreen 2008-05-28T08:15:11 *** kbeswick has joined #openils-evergreen 2008-05-28T08:35:32 *** Slazer has joined #openils-evergreen 2008-05-28T09:18:13 phasefx_: I think Robert's org_unit hierarchy is screwed. he has children of org_unit 2 with the same org_unit_type as their parent. 2008-05-28T09:18:55 iirc, that is a "Bad Thing"(TM) 2008-05-28T09:20:06 indeed 2008-05-28T09:30:39 ah, I looked but didn't catch that 2008-05-28T09:30:59 I can let him know 2008-05-28T09:32:29 sure 2008-05-28T09:32:42 or if you're already drafting an email, you can :) 2008-05-28T09:35:51 phasefx_: okay, will do 2008-05-28T09:37:22 too early for me and I need more coffee :) I'm going to take that as: You were already drafting an email, and I'm going to let you finish and not duplicate your effort 2008-05-28T09:38:43 phasefx_: indeed! 2008-05-28T09:38:55 I was about to pour my cereal into my coffee a few minutes ago, so I understnad 2008-05-28T09:39:13 I have poured tea into cereal by accident 2008-05-28T09:39:25 decided not to eat it 2008-05-28T09:45:20 You are wise :) 2008-05-28T09:53:44 *** pmurray_away is now known as pmurray 2008-05-28T09:54:36 *** sylvar has joined #openils-evergreen 2008-05-28T10:02:16 Hmm, 1.2.1-1.2.2-upgrade-db.sql is nontrivial... wonder how long it'll take. Wait and see, I suppose. 2008-05-28T10:03:54 sylvar: it's pretty quick. use the latest version from subversion 2008-05-28T10:04:02 the one packaged in 1.2.2.0 is busted 2008-05-28T10:05:00 wiki says http://svn.open-ils.org/trac/ILS/export/9582/trunk/Open-ILS/src/sql/Pg/1.2.1-1.2.2-upgrade-db.sql -- is that right? 2008-05-28T10:05:52 yep 2008-05-28T10:08:09 the only question, then, is the exchange rate from "pretty quick" into "still running on a VMware virtual server". :) 2008-05-28T10:10:20 and i'll upgrade my client from 1.2.1.4 to 1.2.2.0 afterward. 2008-05-28T10:11:33 sylvar: it really is fast - there's no significant indexes being recreated, mostly just views and functions being added. 2008-05-28T10:13:18 *** gmcharlt has joined #OpenILS-Evergreen 2008-05-28T10:13:53 I worry that "Code Museum" might not be as obvious to newbie admins as "Previous Releases". I'd like to suggest that we change the name of that page and the links to it. 2008-05-28T10:14:36 I won't be upset if consensus is to keep the cute hackerly name. 2008-05-28T10:18:55 *** Mark__T has left #openils-evergreen 2008-05-28T10:27:34 *** nee has joined #OpenILS-Evergreen 2008-05-28T10:28:58 sylvar: well, we don't really want anyone installing an old release, so I'm not sure why we even want to help a newbie admin find an old release 2008-05-28T10:29:13 that being said, it's hard to argue against clear labelling 2008-05-28T10:29:52 "Unsupported releases" :D 2008-05-28T10:32:47 :) 2008-05-28T10:32:48 re the upgrade to 1.2.2, there's a materialized view being created which could take a while 2008-05-28T10:33:55 what? postgresql has materialized views now? 2008-05-28T10:34:04 ha 2008-05-28T10:34:15 dbs: it's trigger based 2008-05-28T10:34:24 next thing you know it'll support transactions... 2008-05-28T10:34:28 hahah 2008-05-28T10:34:32 dbs++ 2008-05-28T10:35:20 hey, when should we start sprinkling "" elements throughout opensrf.xml? 2008-05-28T10:36:06 ? 2008-05-28T10:36:26 oh! for the http translator 2008-05-28T10:36:49 probably now in the EG trunk 2008-05-28T10:37:42 *** nee has left #OpenILS-Evergreen 2008-05-28T10:45:36 * jeff mutters things about exim 2008-05-28T10:45:37 hmm - we don't link to http://open-ils.org/dokuwiki/doku.php?id=upgrading:1.2.1_to_1.2.2 from the 1.2.2.0 download 2008-05-28T10:58:02 nor vice versa -- which could leave the impression that running the SQL update script and editing eg_vhost.conf and opensrf.xml is the same as upgrading Evergreen. 2008-05-28T10:58:35 in any case, even on my molasses server, the SQL upgrade script is done 2008-05-28T10:59:08 :) 2008-05-28T10:59:26 *** dmcmorris_esi has left #openils-evergreen 2008-05-28T10:59:59 *** dmcmorris_esi has joined #OPENILS-EVERGREEN 2008-05-28T11:01:51 so, after I've edited those files, what else do I need to do? just run install.sh? 2008-05-28T11:03:53 sylvar: you'll need to make config, and choose targets that don't include openils_db 2008-05-28T11:04:23 then make && make install 2008-05-28T11:04:49 (yes, we really do need to document this, and yes, an "openils_upgrade" would be a nice thing to add) 2008-05-28T11:06:43 kbeswick: sounds like makefile goodness to me ;) 2008-05-28T11:07:33 i live and breathe the makefile right now 2008-05-28T11:07:45 and of course I should shut down all services before make install? 2008-05-28T11:08:15 well, I'm guessing apache2, memcached, and opensrf, anyhow -- maybe not postgres 2008-05-28T11:09:32 sylvar: sounds good - memcached might not be necessary but it certainly won't hurt to shut it down 2008-05-28T11:12:25 for the open-ils.org web folks: it would be nice to have named anchors for each

, preferably for each

and/or

, so I could link to http://www.open-ils.org/downloads.php#EvergreenSourceCode or http://www.open-ils.org/downloads.php#EvergreenSourceCode-CurrentStable 2008-05-28T11:12:58 *** Karen__ has joined #OpenILS-Evergreen 2008-05-28T11:19:59 sylvar: good idea and easily done - if I have time post-shower (moving slow this am) I'll do it 2008-05-28T11:26:39 Grrr... I was almost done expanding the directions for the upgrade and I fat-fingered something, and Firefox didn't cache what I'd done. Anyone got a favorite extension that would have autosaved the contents of form fields? 2008-05-28T11:31:46 One other thing to add to the install docs at some point: cd /openils/var/web/xul ; ln -s 20071025.091435/ rel_1_2_2_0 2008-05-28T12:15:17 *** Stompro has joined #openils-evergreen 2008-05-28T12:24:34 *** phase_bb has quit IRC 2008-05-28T12:42:23 *** sylvar has quit IRC 2008-05-28T13:05:35 *** rsinger has quit IRC 2008-05-28T13:19:38 *** pmurray is now known as pmurray_away 2008-05-28T14:17:11 *** sylvar has joined #openils-evergreen 2008-05-28T14:18:17 *** ibbo has quit IRC 2008-05-28T14:34:09 Is there a way to specify what image to return when there's no ISBN and therefore obviously no Amazon image? At the moment it seems to be using http://evergreen-server/opac/extras/ac/jacket/small/ with a null ISBN at the end, and that just looks ugly in a browser. If we could supply a 1x1 transparent GIF instead... 2008-05-28T14:34:47 This is on 1.2.2.0. 2008-05-28T14:36:02 sylvar: there is no way to specify that now, but it would be a good (and trivial) addition to the 1.2.2 added content plugin... 2008-05-28T14:36:26 where does that plugin live? 2008-05-28T14:37:52 OpenILS::WWW::AddedContent is the top-level component 2008-05-28T14:38:04 with plugins as subclasses to taht 2008-05-28T14:38:25 in the Perl modules, that is 2008-05-28T14:40:10 * dbs gets sorely tempted by the phrase "good (and trivial)" 2008-05-28T14:40:22 dbs: DO IT! 2008-05-28T14:40:30 go, man! go! 2008-05-28T14:40:32 I don't want to steal sylvar's thunder 2008-05-28T14:40:32 * berick dares dbs 2008-05-28T14:40:44 or sylvar. go man go! 2008-05-28T14:40:48 someone! 2008-05-28T14:40:54 anyone but me! ;) 2008-05-28T14:41:04 (yes, I was about to do it) 2008-05-28T14:41:12 no miker_ no 2008-05-28T14:42:12 use Image::Magick; if (!$isbn) return Image::Magic->new('jpg', 1, 1, transparent => 1); #totally made up 2008-05-28T14:42:40 heh 2008-05-28T14:43:49 perhaps we could chain added content handlers while we're at it, eh? 2008-05-28T14:44:11 Amazon || Syndetics || Google || whatever... 2008-05-28T14:44:20 (this is me on my day off. LAME!) 2008-05-28T14:44:44 and.. oooh ooh... make animated gifs if there is cover art from multiple vendors... :D :D :D 2008-05-28T14:44:49 s/amazon// 2008-05-28T14:45:18 phasefx_: maybe in a neat-o throbbing way 2008-05-28T14:45:53 dbs: one day I'll make a spin-the-wheel-style sliding shelf browser 2008-05-28T14:46:26 you know, like, in the future when someone has already done it and made a dojo digit for it 2008-05-28T14:46:38 bibliocommons already "innovated" that, you might have to license rights to the technology 2008-05-28T14:47:03 phasefx_: funny you should say that ... there is a dojox component for that, IIRC 2008-05-28T14:47:59 the book the Inmates Are Running the Asylum had an example like that for movie selection on airlines 2008-05-28T14:48:33 miker_: excellent, and combine it with the javascript image shadow gimmick I've seen elsewhere 2008-05-28T14:48:38 * phasefx_ directs 2008-05-28T14:48:54 shadow/reflection 2008-05-28T14:51:00 All Macintosh chrome-y 2008-05-28T14:52:06 wish swoosh swounds 2008-05-28T14:52:16 that's a lot of w's 2008-05-28T14:53:09 hmm... so, in AddedContent.pm sub get_url, I could change the 'die' line to 'if !($res->is_success) { $res = $agent->get($blankurl); }', and that would do the trick, yes? 2008-05-28T14:55:10 sylvar: we could even have the blank URL set in the config file, so the plugin doesn't need to know about that 2008-05-28T14:55:55 and keep the die line, just insert above it 2008-05-28T14:56:04 right, we could define my $blankurl (global to AddedContent.pm) as the result of looking up a config file 2008-05-28T14:56:21 phasefx_, exactly what I thought next. :) 2008-05-28T14:56:33 go man go 2008-05-28T14:56:50 is there an example pulling from the config in there? 2008-05-28T14:56:51 well, we'd need some ML service to talk to the config file 2008-05-28T14:57:06 if no isbn is provided, we can short-circuit quite a bit 2008-05-28T14:57:18 since mod_perl can't do that directly (private service, IIRC) 2008-05-28T14:57:22 berick++ 2008-05-28T14:57:32 berick: yeah, that was my thought before 2008-05-28T14:57:41 * miker_ runs away 2008-05-28T14:58:02 heh 2008-05-28T14:58:02 come play basketball 2008-05-28T14:58:53 arg, gotta go call 2008-05-28T15:00:31 now that everyone is away, I'll suggest the quick and dirty solution ;) hardcode a relative to the opac server image URL, symlink it to whatever image you really want 2008-05-28T15:00:50 phasefx_: I'm removing your commit privs 2008-05-28T15:00:51 then it's skinnable 2008-05-28T15:01:03 ack, that miker_ guy was still here 2008-05-28T15:01:19 phasefx_: it's okay, you can publish your own bzr repository 2008-05-28T15:01:25 huzzah 2008-05-28T15:01:32 DirtyGreen 2008-05-28T15:01:50 yeaaaah 2008-05-28T15:03:21 dirtygreen.net is available, phasefx 2008-05-28T15:03:32 in the army we were simple green, hooah 2008-05-28T15:04:07 so named for a cleaner used during GI "parties" 2008-05-28T15:12:41 Where should I look for the logs created by AddedContent.pm? I see "use OpenSRF::Utils::Logger qw/$logger/;" at the top... 2008-05-28T15:12:49 sylvar: if you are patching that, fix the typo for HTPP while you're at it 2008-05-28T15:13:00 dbs: that was the first thing I changed 2008-05-28T15:13:05 sylvar: :)( 2008-05-28T15:13:25 are your logs cranked up to INFO level? 2008-05-28T15:13:36 maybe not, is that in opensrf.xml? 2008-05-28T15:14:26 opensrf_core.xml I believe 2008-05-28T15:15:07 then it should show up in osrfsys.log 2008-05-28T15:17:40 hmm, not that I saw. I changed loglevel from 2 to 3 and restarted opensrf. I don't see it in osrfsys.log. 2008-05-28T15:19:46 grep "added content" /openils/var/log/* returns nothing. 2008-05-28T15:22:50 dbs pasted "grep "added content" /openils/var/log/*" at http://paste.lisp.org/display/61375 2008-05-28T15:22:59 is added content enabled in your opensrf.xml? 2008-05-28T15:23:10 phasefx_: ohhh, good point 2008-05-28T15:23:30 sylvar: you might be using the crufty old apache stuff 2008-05-28T15:23:58 Hmm. I thought I'd removed that from eg_vhost.conf. Weird. 2008-05-28T15:24:41 I had Added Content all set up once... couldn't figure out why it wasn't working... 2008-05-28T15:24:41 turns out, I forgot to uncomment the opensrf.xml section.... 2008-05-28T15:26:03 sylvar pasted "Doesn't look commented out to me" at http://paste.lisp.org/display/61376 2008-05-28T15:28:21 perhaps I need to restart something to make my changes to AddedContent.pm show up, but even so it should have been logging something, I think... 2008-05-28T15:29:07 that's a mod_perl script? If you spit something to stdout/stderr would it show up in the apache logs? 2008-05-28T15:30:50 probably be good to glance at the apache logs anyway 2008-05-28T15:31:09 well, error.log has: 2008-05-28T15:31:11 [Wed May 28 13:16:56 2008] [debug] mod_cache.c(129): Adding CACHE_SAVE filter for /opac/extras/ac/jacket/small/ 2008-05-28T15:31:13 [Wed May 28 13:16:56 2008] [debug] mod_cache.c(136): Adding CACHE_REMOVE_URL filter for /opac/extras/ac/jacket/small/ 2008-05-28T15:32:03 sylvar: are you running searches for fresh content (not hitting the cache)? 2008-05-28T15:32:44 well, that might be what's going on 2008-05-28T15:32:53 let me try a new search 2008-05-28T15:34:24 OK, a new search still gives me http://evergreen-test.library.utah.edu/opac/extras/ac/jacket/small/ as the image URL for added content when there's no ISBN available 2008-05-28T15:35:31 did you get a message logged in osrfsys.log? 2008-05-28T15:35:46 dbs: different topic, I remember some properties on a mozilla window object that could be used to store data, much like the staff client's OpenILS.data singleton, but I can't find reference to them now. Am I nuts? Do you remember that? 2008-05-28T15:37:49 well, sort of. I'm getting two errors from sub handler: 2008-05-28T15:37:50 [2008-5-28 13:35:52] /usr/sbin/apache2 [ERR :21210:AddedContent.pm:103:] added content handler failed: jacket_small(0060254238) => added content request failed: 500 read timeout 2008-05-28T15:37:52 [2008-5-28 13:35:55] /usr/sbin/apache2 [ERR :21213:AddedContent.pm:103:] added content handler failed: jacket_small(0671741853) => added content request failed: 500 read timeout 2008-05-28T15:38:27 but not from sub get_url. 2008-05-28T15:39:05 phasefx_: man, you know more than I ever will about XUL. I just immediately think of window.G or whatever. 2008-05-28T15:40:36 phasefx_: do you mean http://developer.mozilla.org/en/docs/Working_with_windows_in_chrome_code#The_hidden_window_hack ? 2008-05-28T15:41:39 sylvar pasted "What I tried to do with AddedContent.pm" at http://paste.lisp.org/display/61379 2008-05-28T15:42:15 I'm going to leave this alone for now. If someone can get my hack, or something like it, to work, so much the better. I've got to make some screenshots. 2008-05-28T15:42:50 sylvrar: I'm looking there; that wasn't it. What I'm doing now is very much the "Using an XPCOM singleton component", though in a very hacky way, and I'm translating to and from JSON everything that goes through.. my problem is that I have a very large data structure that is causing script delay warnings, so rather than try to selectively disable the JSON wrapping, I want to just use a different mechanism for this one 2008-05-28T15:43:55 You're well beyond my google-fu, then. 2008-05-28T15:45:50 hmm - maybe set blank_url as a global variable inside child_init(), then reference it directly (like net_timeout) in get_url 2008-05-28T15:46:31 dbs: an apache config variable, perhaps ... PerlSetVar 2008-05-28T15:48:10 cool, firefox3 has javascript modules 2008-05-28T15:48:48 Components.utils.import("resource://app/modules/my_module.jsm"); and it'll look for var EXPORTED_SYMBOLS = ["foo", "bar"] in that file, and export/import them 2008-05-28T15:50:52 screw it, I'm going to play a poker tourney before I have to pick up Amber. having accomplished almost nothing today. augh. 2008-05-28T15:55:14 *** kbeswick has quit IRC 2008-05-28T15:55:53 *** Slazer has quit IRC 2008-05-28T16:01:48 *** skmurphy has joined #openils-evergreen 2008-05-28T16:12:02 Is AddedContent.pm the wrong place to put this? It occurs to me that maybe we should be doing this in sub jacket_small, jacket_medium, jacket_large. Returning a transparent GIF won't help if we're expecting an XML response. 2008-05-28T16:17:31 Also, what should I be restarting after I modify added-content Perl modules? Apache? 2008-05-28T16:17:51 opensrf restart_perl and apache 2008-05-28T16:19:55 sylvar: for debugging purposes, you should probably dump the blank_url setting as well 2008-05-28T16:24:29 berick pasted "added content short-circuit" at http://paste.lisp.org/display/61385 2008-05-28T16:26:45 sylvar: the jacket_* types don't support xml/json formats. only small/medium/large 2008-05-28T16:28:33 dbs: chaining handlers should be pretty easy. child_init can just return an array of handlers. iterate through them until a non-404 is found 2008-05-28T16:28:46 * sylvar makes another effort to ignore this really interesting problem in order to work on a report. 2008-05-28T16:30:17 *** dbs_ has joined #openils-evergreen 2008-05-28T16:37:27 *** dbs has quit IRC 2008-05-28T16:44:46 How old would a Microsoft OS have to be before the clien would be impaired? Unicode requires 2000/XP, right? 2008-05-28T16:46:58 i think it's safe to say anything before 2000/xp is off the table in general 2008-05-28T16:47:55 OK. 2008-05-28T17:55:27 *** sylvar has left #openils-evergreen 2008-05-28T19:07:03 *** rsinger has joined #OpenILS-Evergreen 2008-05-28T19:18:53 *** djfiander has joined #OpenILS-Evergreen 2008-05-28T19:32:08 *** Karen__ has left #OpenILS-Evergreen 2008-05-28T19:37:47 *** rsinger has quit IRC 2008-05-28T20:27:54 *** gmcharlt has quit IRC 2008-05-28T20:43:36 *** grahamf_ has joined #openils-evergreen 2008-05-28T20:44:04 hi all 2008-05-28T20:53:17 *** lisppaste6 has quit IRC 2008-05-28T20:53:47 *** djfiander has quit IRC 2008-05-28T21:05:03 *** lisppaste6 has joined #openils-evergreen 2008-05-28T21:35:48 *** kwak has joined #openils-evergreen 2008-05-28T21:40:55 *** kwak has quit IRC 2008-05-28T21:54:17 grahamf_: hello 2008-05-28T22:29:41 *** grahamf_ has quit IRC 2008-05-28T22:48:55 *** pmurray_away has quit IRC 2008-05-28T22:57:41 *** pmurray_away has joined #openils-evergreen 2008-05-28T23:28:48 ugh, getting a namespace error for marc: when editing a record 2008-05-28T23:43:55 perhaps related to rev. 9634?