Open Source Integrated Library System

Evergreen on IRC

#evergreen Logs for Thursday, December 8th, 2011

< Wednesday, December 7th, 2011Raw Log FileFriday, December 9th, 2011 >
#TimeNickMessage
#07:46:01collum has joined #evergreen
#08:29:02Dyrcona has joined #evergreen
#08:35:14Shae has joined #evergreen
#08:36:30mrpeters-isl_ has joined #evergreen
#08:42:18mrpeters-isl_ has quit IRC
#08:51:10akilsdonk has joined #evergreen
#08:59:07csharperrors while doing post install reingest: http://pastebin.com/2PYCj0dR
#09:00:42csharp assumes for the moment that the problem is "marc" rather than "marcxml" as in //marc:datafield[@tag='020']/marc:subfield[@code='a' or @code='z']
#09:00:49gmcharltcsharp: for your cmf entries that use the the marcxml format, only one of 'marc:' or 'marcxml:' is correct
#09:01:23gmcharltso yeah, get them in sync with the prefix expected in config.xml_transform, then it should start working
#09:01:37csharpgmcharlt: okay - makes sense
#09:09:13bwicksall has joined #evergreen
#09:09:39_bott_ has quit IRC
#09:10:04_bott_ has joined #evergreen
#09:38:10jenny has joined #evergreen
#09:48:00akilsdonk has quit IRC
#09:51:30mrpeters-islanyone done a presentation recently on new features in 2.1? especially, for the public user...
#09:54:15tsbere can guarantee that he hasn't.....hard to do a presentation on "new features in 2.1" when you all but migrated into post-2.1
#09:57:36mrpeters-isl:)
#09:57:52mrpeters-isltrying to comb through release notes for things that a patron would actually care about
#09:58:38bshum-= THIS MESSAGE NOT LOGGED =-
#09:58:57bshumamusingly/unfortunately?
#09:59:26DyrconaYes, definitely more flashy patron stuff in 2.2.
#10:00:07bshumThe 2.1 felt more administrative different (with the revised circ matrix stuff) and staff different (unified vol/copy editor)
#10:01:38bshumAt least those were the "big" things I remember off the top of my head.
#10:01:40csharpmrpeters-isl: I did a summary presentation yesterday (like 5 mins) for our libraries
#10:02:01bshum supposes it's a "bigger" leap for csharp ;)
#10:02:07csharpit is ;-)
#10:02:29bshumMost OPAC side stuff didn't really change from 2.0 to 2.1, so patrons? Hmm
#10:03:05bshumThe cache stuff is so nice, but nobody outside of the poor admins really care about that, right?
#10:03:27csharpbshum: oh - I think that's a huge advantage for everyone
#10:03:53csharp had to instruct the patrons of the state of Georgia about how to clear a browser cache
#10:04:05bshumIndeed :S
#10:04:18tsbereBackend improvements are good, even for those who don't see them directly.
#10:04:43csharpyeah - anything that improves speed or findability will be welcome
#10:04:56mrpeters-islcsharp: could i check it out?
#10:05:00mrpeters-islhttp://evergreen.lib.in.us/newfeatures21.html is boring :(
#10:05:12akilsdonk has joined #evergreen
#10:05:54tsberemrpeters-isl: Not only boring, but redundant!
#10:05:58bshumMulti-part hold placement is there twice
#10:06:04csharpmrpeters-isl: I basically read from a list: http://pastebin.com/A9JS61kX
#10:06:08bshumBut maybe that's intended?
#10:06:55csharpremember that "new" means "new from 1.6.1" in our case ;-)
#10:07:04mrpeters-isloops
#11:05:04jeffmore of a generic postgres question, but i'll ask here first because folk are familiar with the schema...
#11:05:39jeffi want to select one row per patron with one of the fields containing every valid post_code associated with the patron.
#11:06:06bshumFun times.
#11:06:50bshumVaguely reminds me of something I might have written for circ rules viewing to include looped in max circ mod limits and having the names of the various circ mods next to the single matchpoint.
#11:07:01jeffI'm thinking array_accum (now array_agg?) and a subquery
#11:07:46mrpeters-islanyone experimented with using awstats to analyze Evergreen traffic?
#11:08:08mrpeters-islhttp://apple.evergreen.lib.in.us/cgi-bin/awstats-7.0/wwwroot/cgi-bin/awstats.pl?config=Evergreen -- for example
#11:08:27bshumjeff: I think I did something like array_to_string(array_agg(field_I_want), ', ') to insert the values as comma separated.
#11:08:49bshumin the select portion of the SQL
#11:09:36bshummrpeters-isl: That sounds very interesting. We've been meaning to put more efforts into tracking usage too. Right now we're using Piwik to collect general usage information.
#11:09:55tsberejeff: Subquery or group by would work. array_agg, or string_agg.
#11:10:06mrpeters-islyeah. looks like a cool tool. just have to figure out how to get it to handle apache logs that are broken up daily :(
#11:10:29bshummrpeters-isl: I'm pretty sure that's why we never got as far with awstats
#11:10:41bshummrpeters-isl: Someone installed it once here, cause I found remnants of it on the servers
#11:11:20mrpeters-isli'm sure it can be done. i was thinking a bash script with a date variable using "date" utility to tell the cron job where to find the logs but i wasn't sure if awstats would handle that and combine them into the monthly log
#11:12:13jefftsbere: i'm not sure how to do it with group by. i can do a simple: select array_agg(post_code) from actor.usr_address where usr = 123;
#11:12:49bshummrpeters-isl: Trickier thing for us has been trying to get it granular on a per library basis while everyone shares a single URL. Really sucks trying to count out exactly how many per library.
#11:13:01bshummrpeters-isl: Though hopefully you don't have to face that.
#11:13:10tsberejeff: Table joins. array_agg in your column list as you are doing so there. You just group by all the other result columns and array_agg will only pick up on the results in that group.
#11:13:19frank_ has quit IRC
#11:13:45jeffoh. right! i wasn't thinking of it as an aggregate function like sum(), count(), etc
#11:14:01tsbereheh
#11:14:16tsberejeff: And depending on how you intend to use the data, you may want to look into string_agg
#11:15:16DyrconaWhile working on getting Evergreen installed on Precise Pangolin, I've noticed we're installing a CPAN module on Lucid Lynx that isn't needed by Evergreen. I've deleted that from the Makefile.install.
#11:15:40bshumtsbere: string_agg is a PG 9.0 thing?
#11:15:44gmcharltDyrcona: which one?
#11:15:49bshumWell, 9.0+
#11:15:54DyrconaXML::RPC
#11:16:13Dyrconagmcharlt: Evergreen doesn't reference it, but it does use RPC::XML.
#11:16:20tsberebshum: You know, it might be. I ignore pre-9.0 these days.
#11:16:47bshumtsbere: Our production is still in 8.4 land. Hoping to get up to 9.x sometime early next year.
#11:17:07bshumtsbere: Sounds like a neat option for our future though
#11:17:28Dyrconabshum: The ubuntu-precise target will install 9.1 psql clients.
#11:17:37tsbere just created an empty bib record by not filling in any marc fields
#11:19:40Dyrconagmcharlt: I think that slipped in during the confusion of trying to get the XML-RPC gateway working on Lucid. A sort of cargo cult thing: we installed it and things worked after, so we added it to the Makefile.
#11:21:16DyrconaAfter I get a stock master installed and mostly working, I'll revisit the XML-RPC on Lucid. I think we will need to install RPC::XML from CPAN to replace the broken one that comes with Lucid, unless it has since been updated.
#11:21:38gmcharltgotcha
#11:28:40tsbereAnyone have thoughts on this before I run over to launchpad with it? http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/tsbere/hold_status_suspended
#11:43:44phasefxtsbere++
#11:44:06tsbere is tired of getting "why aren't these holds filling?" when they are suspended
#11:45:07phasefxI think we may even want to backport that
#11:45:45bshum+1 :D
#11:48:25tsberehttps://bugs.launchpad.net/evergreen/+bug/901767
#11:49:13tsbereNominate away ;)
#11:49:24tsbereOr just target. Whichever. ;)
#12:01:11tsbere notes that bshum decided to go for broke and target clear back to 2.0
#12:06:23bshumWell, that's where I'll start testing it.
#12:06:34bshumBut we can always drop that ;)
#12:11:57tsberetest away! ;)
#12:14:48tsbereheh. "This bug affects you and 1 other person" - That didn't take too long ;)
#12:15:25bshumOh that's probably me :)
#12:15:35tsbere was assuming it was
#12:15:36bshumI always click "affects me" on certain bugs I want to track.
#12:15:49bshumOtherwise I end up losing sight of them
#12:16:16DyrconaI think its a good idea as clicking affects me is one way to raise the heat on a bug.
#12:16:38moodaepohaet_on_bug++
#12:16:44moodaepoOr heat even
#12:17:13bshumBurn in righteous fury?
#12:17:52moodaepobshum++ righteous glory
#12:18:52bshumDoh, misquoted "Burn in righteous fire!"
#12:19:49tsbere is amazed how often people jump on what he sees as the simple stuff that he wasn't even sure was worth doing
#12:20:09tsbereAlthough in this case this was 100% worth doing just to get the constant tickets about it to stop. <_<
#12:20:41bshumYeah I'm asking our staff here whether this is even a thing right now. I actually think folks aren't making enough use of the suspended holds options.
#12:21:04bshumThey're still boggled with other holds-related issues.
#12:23:05tsbereFor us it comes up as a "why did this skip these holds that should have filled and jump into transit instead?" type question. A lot.
#12:30:19bjwebb has joined #evergreen
#12:32:51bshumtsbere: Well I think we've finally gotten holds somewhat more sensible now that we recognize how much the hold target is lying to us.
#12:33:02tsbereheh
#12:33:25bshumtsbere: I'm currently blaming that mess on libraries not checking pull lists but once a week, or deliveries taking extra days beyond expectations.
#12:33:37bshumOr just otherwise not filling holds on a regular basis.
#12:33:40tsbereahh
#12:36:06mrpeters-isl404 Document Not Found (hits on favicon excluded) 1,097,651 98.3 % 448.27 MB
#12:36:11mrpeters-islthats 1 day's apache logs from Evergreen
#12:36:26mrpeters-islseems like a LOT of hits that result in 404's
#12:36:32bshumOuch.
#12:36:34moodaepoheh
#12:36:43bshumWeird nls stuff going on still?
#12:36:47tsbereA lot of language files, for example, are checked for even if they are normally never there...
#12:36:47mrpeters-islbut we have 791225 to address that
#12:37:13bshumYeah jamesrf showed us some of that and how to do symbolic links to fix a whole bunch of those errors.
#12:37:15mrpeters-islyeah, no big deal...it was just sort of funny when i saw that number
#12:37:22bshumCan't remember where/how now of course
#12:37:43plux has joined #evergreen
#12:37:49jamesrfmeh i don't either, i don't think that's an ideal solution, there should be a way to make Dojo not do that
#12:38:43tsbereStep 1 may be "update dojo" <_<
#12:40:39dbs has joined #evergreen
#12:43:31tsbere is reminded, as he reads his email, that dbs doesn't like playing with holds
#12:44:42dbsguilty as charged
#12:45:07Rural has joined #evergreen
#12:46:40bshumEvery time someone adds a new A/T, it's like waiting for the next day's logs to find out whether they royally screwed something up.
#12:47:20bshumEnvironment path settings are such fickle things
#12:47:22Dyrconagmcharlt: RPC::XML::Function needs to be installed.
#12:50:42plux has quit IRC
#12:50:59plux has joined #evergreen
#12:53:29plux has quit IRC
#12:54:04plux has joined #evergreen
#12:54:16copystar has joined #evergreen
#13:01:12Dyrconagmcharlt: Yep, just installing RPC::XML::Function on Ubuntu seems to fix the problems with XML-RPC.
#13:02:34RuralDo Evergreen's version number work like Linux? Is 2.1 the development version and 2.0 the stable version?
#13:02:50tsbereThey work nothing like Linux.
#13:03:07tsbereThey also work nothing like our own docs say they should, near as I can tell ;)
#13:03:44RuralHa! So what which version would a new user want to install? (I'm expecting, "It depends.")
#13:04:08tsberePersonally I recommend "master". But a lot of people aren't comfortable with that, so next on the list would be 2.1
#13:04:14bshumFrom the downloads page: "Currently the latest release from the Evergreen 2.1 series is recommended for new installations andstable releases are suggested for production systems."
#13:04:40DyrconaRural: You want to git clone git://git.evergreen-ils.org/Evergreen.git and run the master branch from that.
#13:05:15RuralOk. I'll finish prepping a VM and go with master.
#13:05:51DyrconaYeah, if our versions actually worked like our docs say they should 2.1 would be 3.0 and 2.2 would be 4.0.
#13:06:32DyrconaRural: Out of curiosity, what flavor of VM are you prepping?
#13:07:40DyrconaI am working on build fixes for Ubuntu Lucid Lynx (10.04) and Precise Pangolin (12.04).
#13:08:29DyrconaSo, if you're installing on Ubuntu, I can point you to a git branch that should work a little better than master currently does.
#13:08:34jefftsbere: slightly annoying: string_agg() does not do any escaping of delimiters -- so foo-bar,baz with a comma delimiter is fine, but with a hyphen it ends up foo-bar-baz.
#13:08:55jeffI guess the answer there is know your data, or do some string replacing before string_agg
#13:09:16tsberejeff: Given that you may *want* to have that happen, yea. ;)
#13:10:27jeffhappily, we have zero post_code values containing | (though there are 10 which contain a comma :P)
#13:11:43bshumWhat no barcodes as ZIP?
#13:11:48RuralDyrcona: It's KVM VM, running Debian. But I could switch gears in a hurry.
#13:12:08DyrconaRural: No. Don't change on my account. Debian should be fine.
#13:12:17jeffbshum: item barcodes as email address -- yep
#13:12:34DyrconaRural: Ubuntu builds just fine, but XML-RPC is broken in master at the moment on Ubuntu.
#13:13:10RuralDyrcona: Gotcha. Debian 6.0.3 ok?
#13:13:35DyrconaRural: If that's Lenny or Squeeze, you'll be fine. (Think it is Squeeze.)
#13:14:24DyrconaYep, that's Squeeze. So go for it.
#13:16:11RuralWill do.
#13:17:50RuralOn another note, does anybody here have experience with the Horizon ILS? One of our librarians in the direction.
#13:18:21bshum points at Dyrcona
#13:19:08DyrconaRural: I do, unfortunately.
#13:19:52Dyrconabrb
#13:20:33tsbere limits his experience in Horizon he is willing to admit existing to something along the lines of "how to blow the servers out to replace them with evergreen"
#13:24:02Dyrconaheh
#13:24:46RuralI'm sensing that there isn't a lot of love for Horizon around here.
#13:25:30RuralMaybe we could move the discussion somewhere where it won't be off-topic.
#13:25:56DyrconaRural: There's a #sdtechshare channel.
#13:26:30DyrconaAre your questions strictly about Horizon or do they relate to comparing Evergreen and Horizon?
#13:28:27RuralA comparison would nicely avoid straying off-topic.
#13:28:51tsbereI don't think we actively avoid going off-topic unless there is a meeting going on in here. >_>
#13:29:00Dyrcona:)
#13:29:17bshum vaguely recalls the bacon conversation that happened DURING a meeting.
#13:30:30RuralMy situation is that our school division desperately needs a division-wide library system. I've been struggling to get time to set up Evergreen.
#13:31:01DyrconaRural: How many libraries?
#13:31:10RuralAn overzealous librarian has been in touch with an organization that runs a Horizon system and sells access to libraries/schools. Access isn't cheap.
#13:31:21RuralEight.
#13:31:26DyrconaHorizon is essentially a dead product.
#13:31:34RuralYay!
#13:31:46dbsRevamped http://evergreen-ils.org/dokuwiki/doku.php?id=dev:git to emphasize pushing branches to working repo instead of attaching patches
#13:31:56Dyrconadbs++
#13:32:14dbstsbere / gmcharlt might get 3 or 4 ssh pubkey requests
#13:32:31DyrconaRural: If you loan rules are identical, then you might want to look at Koha.
#13:32:33tsbere is working on one now
#13:32:39dbstsbere++
#13:33:41DyrconaWhen I last looked at Koha, around version 3.0/3.2, it didn't have the consortial features that we needed, but for smaller consortia with more uniform rules and administration, it seemed like it would work.
#13:33:49DyrconaI also hear it is easier to set up.
#13:34:23dbsIt's packaged in Debian!
#13:34:31DyrconaWhere's gmcharlt when you need him?
#13:35:23dbsrangi is probably sleeping
#13:36:12ranginope
#13:36:13RuralKoha looks like it is controlled by a single company. That's a negative but something we can live with as long as everyone plays fair. Are there more than a couple major players with Evergreen?
#13:36:27rangithats bs rural
#13:36:32tsbere loves having worked all the bugs out of his windows git install as far as doing everything on the command line, compared to needing the GUI
#13:36:33DyrconaRural: No, community koha is compeletely open.
#13:36:38rangi is on the bus
#13:36:44RuralFair enough.
#13:36:49rangikoha-community.org
#13:37:11rangithere is one hostile company who run that other site
#13:37:18rangithey do their own thing tho
#13:37:19RuralGotcha.
#13:37:37RuralAnd Evergreen? Strong community?
#13:37:55DyrconaThis is pretty much the community for Evergreen, this and the mailing lists.
#13:37:58rangigetting stronger all the time
#13:38:35DyrconaWe're very open to new contributors here.
#13:38:38rangi only lurks on the fringes
#13:38:49rangibut the fringes are getting bigger
#13:39:16rangiI hung out with awesome EG guys from sitka in vancouver
#13:39:41rangiI think since both projects changed to git
#13:39:52rangieasier to become a developer
#13:40:01RuralI feel a bit off-balance. It's funny how Open Source folk recommend one-another's projects.
#13:40:52rangidebian.koha-community.org btw
#13:41:04RuralOk. So forget Horizon. Any major reasons why I would choose one of Koha or Evergreen over the other? (In addition to the above.)
#13:41:31phasefxKoha has all web-interfaces
#13:41:32Ruralrangi: Yup. I'm there, and I'm cloning my VM.
#13:41:55phasefxwhich is a pro and con, but mostly a pro
#13:42:16rangido you do course reserves?
#13:42:17rangikoha proper doesn't have that yet
#13:42:33rangihopefully 3.8 in april
#13:42:41csharpRural: I would try setting up demo environments of each and trying each out with small datasets
#13:42:45tsberephasefx: I dunno about that. I see that as a potential bigger con. :P
#13:43:24rangiyeah platform indepence for the lose. ,,, oh wait what? *grin*
#13:43:43rangihmm I can't type, need coffee?
#13:43:50rangiand sleep
#13:43:58jamesrfbtw xulrunner seems gone from http://releases.mozilla.org/pub/mozilla.org/
#13:44:10csharprangi: we have a booking module that provides some basic course reserves functionality
#13:44:18bshumjamesrf: I think mrpeters-isl said something about using the FTP to get that now
#13:44:20Dyrconajamesrf: mrpeters-isl mentioned that the other day.
#13:44:27Dyrconacheck the irc logs.
#13:44:27phasefxarbitrary peripheral support is harder with web, but you could tie yourself to a specific browser and use plugins/extensions/etc
#13:44:31csharpsince I'm in a public library consortium, we don't have use for it
#13:44:49jamesrfah thx
#13:45:09rangicsharp: yep I had seen emily carrs one, so was warning rural koha doesn't have that
#13:45:33csharprangi: oh - got it;-0
#13:46:32rangiand yeah circ rules in koha is only a 3x3 matrix
#13:46:54RuralCool. This has given me a lot to chew on. Looks like Koha will set up in a giffy. That may be the deciding factor. (I've spent days trying to get Evergreen set up.)
#13:46:55rangibranch/library by itemtype by borrowertype
#13:47:11phasefxRural: offline mode important? bookmobiles?
#13:47:12DyrconaRural: That's a bonus point in Koha's favor.
#13:47:13ranginot as flexible as evergreen
#13:47:44DyrconaRural: My suggestion is generally that people go with Koha unless they know they need something that Evergreen does that Koha doesn't.
#13:48:35phasefxit's of course worth trying both out (through public demo servers etc.) You may like the feel of one over the other, and installation is a one-time or infrequent pain :)
#13:48:50RuralThanks all for the suggestions. I'll go to work and share anything I figure is of value here.
#13:49:26jeff has quit IRC
#13:53:09kmlussier has joined #evergreen
#13:59:01bshumjamesrf: Around? Curious if you know anything about how your org's setup for IdeaTorrent was done.
#13:59:18jamesrfi can try to answer sure
#13:59:33bshumWas just wondering if you ended up setting up anything more complex with the code itself.
#13:59:41bshumI found remnants of its bzr tracks
#13:59:52bshumAnd it looked like someone has been throwing in a few commits over the last two years
#14:00:04bshumBut not really sure what the status is since so many pages declare it dead
#14:00:25bshumWas wondering if you guys had done anything with either bzr or git
#14:00:25jeff has joined #evergreen
#14:00:25jeff has joined #evergreen
#14:00:35bshumIn relation to the project code
#14:01:13bshumWe're thinking to start poking around and customizing certain elements.
#14:01:19Dyrconabshum: Play Dr. Frankenstien, raise it from the dead.
#14:01:34Dyrcona"We can fix him. We have the code."
#14:02:03jamesrfyeah we've made a number of modifications although they are not yet tracked in any rcs unforunately
#14:02:21bshumjamesrf: The solutions part is strange, I'm interested to learn how you guys came up with such a clean unified approach to written solutions. Like having everything read off as "Being developed by Sitka team" etc. Or if that's just training and how you guys taught folks to enter information.
#14:03:03bshumThe default module seems to allow for free text there, could see all sorts of random thoughts being entered.
#14:03:31jamesrfno we aren't using it really in the way it was intended, instead libraries just submit things and vote on them
#14:03:44jamesrfthey don't really propose solutions because often they don't understand what the solution would be
#14:03:57jamesrfor their idea is the solution, ie: "make the button bigger" is the idea
#14:03:57bshumYeah, I could see the same thing for us.
#14:04:47jamesrfi think often they need to think "what is the problem making the button bigger solves"
#14:05:11jamesrfbut it's often too much to ask for that in our case
#14:05:23jamesrfthey would rather we figure that part out
#14:05:34bshumMakes sense.
#14:05:36csharpjamesrf: yep ;-)
#14:05:55bshumDid you guys hack the submission forms so that solutions weren't required? Or just edit whatever came through for consistency's sake?
#14:06:12bshumOr only certain approved people input ideas collected, for later voting purposes
#14:06:37bshum(just pondering)
#14:06:43jamesrfno we just ask them to put "no solution" in there or something when they submit it
#14:06:53bshumAh, reasonable.
#14:07:02jamesrfif you click on the "sandbox" you can see what they are doing there
#14:07:34bshumAhh, I see now.
#14:07:46bshumSo then at the next level once approved, you can edit the solution entry.
#14:07:50bshumAnd then have folks vote
#14:07:56bshumNifty
#14:08:21jamesrfwe've sorta modified the voting system a bit as we have weighted voting
#14:09:55bshumWell, we're only in early stages of toying around with.
#14:10:06jamesrfwe have a template also that the idea form is prepopulated with, you can see it in some of the ideas
#14:10:25bshumTook me most of the last two days figuring out how to get Drupal going on one of our local servers.
#14:10:37bshumBut this is a very interesting approach
#14:10:51dbssenator: just merged current origin/master into the "saner TPAC layout branch" - kinda hoping to build on that for some of the work
#14:10:53jamesrfi think it's a bit kludgey but there's not many options out there
#14:11:24dbswe've spent a good chunk of the day with some Evergreen / TPAC dev basics, sorting out SSH keys and git stuff, and are _almost_ ready to start coding :)
#14:12:18bshumjamesrf: Cool, thanks for sharing, I'd be curious to learn how you modified your code for the prepopulated form data.
#14:12:22jeffdbs: congrats!
#14:12:29bshumjamesrf: But maybe a bit later.
#14:12:37senatordbs++
#14:13:04bshumYay dbs!
#14:13:51senatorworking/collab/dbs/tpac-non-fixed-width is the branch you refer to... yes it is
#14:14:39jamesrfbshum: i didn't do it myself but let me know and i can poke the person responsible into joining this channel
#14:14:53senatorlooking forward to the end of lots of inline css and needless dom cruft
#14:30:03edoceoI want to email patrons a due date message, on checkout. -> Action Triggers or .... ?
#14:37:05edoceoAlso, how hard to make an application that sits in OpenSRF that is based on PHP?
#14:37:06tsbereI dunno how easy it is to do that with action/trigger
#14:37:19edoceois there a better way?
#14:37:40tsbereI think if you copy the 3 day pre-due notice and tweak it a little you might get what you want
#14:37:57tsbereThings like telling it to use the checkout time instead of the due date and have no offset
#14:38:18bshumIt's still only fire as often as the script runs
#14:38:25bshumUnless it was somehow an on-demand one?
#14:38:27edoceoI want to have it fire every checkout
#14:38:43bshumKind of like how the pull lists are generated.
#14:38:49bshumOr printing self check receipts
#14:38:50tsbereRun things every 15 min. Then every 15 min it will batch-send the stuff from the last 15 min
#14:38:52edoceoScan, Scan, Scan -> complete checkout -> hey! I got an email from Lib about due date
#14:40:08bshumThe only way to define a complete checkout would be what? Hitting the "done" button?
#14:40:41edoceoI suppose, I don't know the answer there.
#14:40:45bshumSo maybe tie some sort of trigger event off the button.
#14:41:20bshumJust thinking it'd be hard to accurately predict otherwise when a series of checkouts had been "finished"
#14:42:19edoceoSurely some server-side process is executed when a Patron complete a checkout - yea? Would I have to hook in there?
#14:43:43dbsSo - one email per item checked out?
#14:44:12edoceoI'm thinking one email, with a list of the items ordered by due date
#14:44:12jeffaction/trigger events have a logic for grouping them, iirc.
#14:44:17Dyrconadbs: I think he wants 1 email for everything that the patron checks out in a "session"
#14:44:25edoceoDyrcona: yep
#14:45:23jeff"Processing Group Context Field", in the event definition looks like what i was thinking of.
#14:45:26dbsAll you need to do is define what a session is then, and teach Evergreen to understand that, and associate a hook with it, I think.
#14:45:48edoceoSo, perhaps that is not so easy?
#14:45:49dbsjeff: oh sure, you can group by user, just like overdues etc.
#14:45:56dbsperhaps
#14:46:14bshumWell, each checkout would fire off individually I think. But then get grouped together like tsbere described if the A/T running was staggered to allow for events to build together.
#14:46:19dbs1 email per checkout, easy
#14:46:26dbs1 email per user per day, pretty easy
#14:46:48dbs(or "per interval" I guess)
#14:46:52edoceo1 email per checkout == 1 email per item checked out at the counter - so three books => three emails ?
#14:46:54tsbereRig the "fire off the create events" to "clicked on 'done'"
#14:47:08jenny has left #evergreen
#14:47:15dbs returns focus to tpac
#14:47:17jenny has joined #evergreen
#14:48:04bshumedoceo: That's correct. If you were basing it literally on each item checkout.
#14:48:06jeffprocessing delay of X minutes, run checkout action triggers every X-1 minutes, done?
#14:48:57edoceojeff: with that I can run my process every 30 minutes, when a Patron has something checked-out, I look at all their items an issue an email?
#14:48:58jeffi suppose that would depend on the grouping logic when it interacts with processing delay -- is it the first or the last event?
#14:49:47jeffedoceo: i'm thinking that action triggers would do the trick, possibly with a little modification. this is the only documentation i know of, other than the code itself: http://docs.evergreen-ils.org/2.0/draft/html/actiontriggers.html
#14:50:11bshumSeems to me that would mean generating A/T events with process-hooks very often
#14:50:21bshumWell, more than once per day
#14:50:32bshumWhich I guess you could do if you applied varying granularity.
#14:51:01edoceoYes, but perhaps we could email patrons once a day - like at EOD I can run a process that collects all patron/checkout data and sends out a bundle of emails at that time?
#14:51:17phasefxcould just fire an event on the Done button, sending data directly from the client-side list
#14:51:35edoceoDoesn't that requres update tho the staff-client?
#14:51:48phasefxsend the circ id's to a template which runs on the spot. An update of server-side staff client files, yes
#14:51:57phasefxbut not a whole lot of work
#14:52:03edoceoI like this idea
#14:52:17jeffi don't think i'd focus on the Done button. I never use it, for one.
#14:52:24phasefxadd a checkbox for e-mail receipt
#14:52:44edoceoSo, I dig around the XUL, find some events that are reasonable and use those to trigger some additional server side action to send the email?
#14:52:56jeffSo you'd need a "fire when about to close this tab / about to load a new patron / about to close window / about to close staff client" bit.
#14:54:18jeffI just wouldn't recommend relying on the Done button. Either find another trigger, or have a process for catching the ones that were not sent because the Done event wasn't triggered due to a difference in use of the UI.
#14:55:30phasefxcould use onunload
#14:55:53phasefxthough I really don't like using that
#14:56:40phasefxusing Done could be a "matter of training"
#14:56:51edoceoHm, yea, and now it seems like it's putting some logic on that client side
#14:57:17plux has quit IRC
#14:57:19edoceoI was hoping that there was some event in-side the system where when some user completes a checkout of multiple items I could hook in there?
#14:57:50phasefxI'd just use grouping as mentioned by others
#14:57:52edoceoIDK, like some checkout_items_complete() event in Circ.pm or something silly
#14:58:01phasefxnot perfect, but you're not going to miss anything
#14:58:34phasefxa template that groups circs associated with fired checkout events
#14:59:27edoceoSo, in Evergreen the "checkout" is an event that happens per item? Not that happens once to group of items? Is that how it works?
#14:59:47phasefxit's one of things A/T was designed for. EG just doesn't have a notion of "checkout session"
#15:00:50phasefxevery scan of an item barcode is making an api call to a checkout method. I'm unsure if we're actually firing an A/T event or not for checkout, but we could easily tack that behavior onto that checkout method
#15:01:38edoceoIn my Trigger Hooks is an item called 'checkout' - "Item checkout out to user"
#15:01:43tsbereI think checkout based hooks are handled by A/T without events firing
#15:01:54bshum"checkout" is a hook
#15:02:35phasefx never gets passive/active events straight without reference
#15:02:48bshumI wonder if it's possible to reuse elements from other areas
#15:02:49edoceocheckout says passive in my setup
#15:03:23phasefxeither way, you can do what you want, as long as you're willing to define checkout session as "circs that happened within a certain timeframe of each other for a given user"
#15:03:33edoceoYea, I'll do that
#15:03:49dbs going to try adding "circ.due_date" to in-db unapi so we can replace the monster json_query in record detail display
#15:04:15edoceoThen I can make a Tirgger Event on Item Checkout + 15 minutes so that 15 minutes after the last item-checkout I can fire this event?
#15:04:30edoceoBut I'll need some queue there or something?
#15:04:32phasefxno
#15:04:43bshumProbably should fire immediately.
#15:05:05bshumAnd then set the action_trigger_runner script to run at the interval you desire.
#15:05:10bshumWith the appropriate options
#15:05:20edoceoI'm confused
#15:05:38phasefxunless I'm misunderstanding, you'd define an action_trigger.event_definition (your template lives there). It'll have a hook of checkout, a group field of usr, and a delay of 15 minutes
#15:06:02DyrconaError loading database driver [pgsql] <- Guess that means libdbi has a problem.
#15:06:07phasefxthe checkout hook has a core type of circ, so that's what you're dealing with. The usr field is coming off of the circs
#15:06:25phasefxso your template will get targets that are circs that get grouped together by usr
#15:06:29bshumedoceo: From the docs: http://docs.evergreen-ils.org/2.0/draft/html/ProcessingActionTriggers.html
#15:06:39bshumThat page explains how action triggers run
#15:06:45bshumor some of the options rather.
#15:07:16bshumSo what'll happen is that you have to run --process-hooks at least on a regular enough basis to generate all the various A/T entries.
#15:07:23bshumBased on the definition you set up.
#15:07:36bshumThen you have to make sure that's all completed before the next time the --run-pending happens.
#15:07:43bshumOtherwise, it won't actually send anything.
#15:07:48edoceoDrat
#15:08:08bshumThat's part of the normal cron setup for most Evergreen systems.
#15:08:23bshumI think there are examples
#15:08:32edoceoYes, I have seen some
#15:09:00edoceoI'm still a bit confused about how this process will run
#15:09:42edoceoPatron goes to do checkout of four books, that creates four checkout events, then my A/T runs and sees those four events (grouped by usr) ? Is that what it does?
#15:10:54bshumThat sounds right to me, based on my limited interaction with current A/Ts
#15:11:45tsbereCloser to "A/T sees that there are 4 events for that definition grouped on a field that they all share and runs them all as though they were one" ;)
#15:11:58bshumtsbere++
#15:12:01tsbereProvided they are all valid at the time, anyway
#15:12:19tsbereIf three of them are valid (based on the delay) and one isn't then only the three valid ones will be looked at
#15:14:08jeffand will the delay be calculated off of the earliest or the latest event?
#15:14:35bshumEach one individually
#15:14:41bshumAs far as I know
#15:14:51jeffseems that latest would be most useful when grouping at all, but i don't know the complete set of uses.
#15:15:07tsberejeff: Each individually, as bshum said.
#15:15:11bshumThat's why I think the shortest delay possible would group better
#15:15:13jeffgot it.
#15:15:17bshumBased on whenever the cron runs the script
#15:15:18tsbereOtherwise you would *never* get, say, overdue notices.
#15:15:23tsbere;)
#15:15:40bshumI think I learned how that worked based on hold notifications.
#15:15:42tsbereNote that delay can be negative (pre-due notices)
#15:15:54jeffi haven't looked into A/T overdues. those both base off of that? seems... hrm.
#15:15:58jeff will dig later
#15:16:16tsberepositive delay based on due date = "overdue by X days"
#15:16:24tsberenegative delay based on due date = "predue"
#15:16:47tsbereIf you were to create one with a positive delay based on the checkout time you could send due date emails that way
#15:16:47phasefxEG, flexible, but complicated :)
#15:17:26tsbere would lean toward delay of X, run cron every 2X though
#15:19:06tsbereEven that isn't guaranteed to work well, though. :(
#15:19:30DyrconaWhee! More emails for our AOLusers to erroneously flag as spam!
#15:21:29tsbereHuh, checkout.due is passive. checkout isn't, and is created outright by the checkout code. Also, renewals may fire differently than straight checkouts in that regard.....and require a new event *and* email to go out.
#15:22:33jeffDyrcona: do you remove the email address from the patron account when that happens, and note "user marked as spam -- get new email address from patron" as an alert? :-)
#15:22:50tsberejeff: I disagree
#15:23:06jefftsbere: with what?
#15:23:10Dyrconajeff: No, because AOHell strips the recipient address from the spam report so we can't do that.
#15:23:17tsberejeff: You put an alert saying "user can't tell difference between delete and spam buttons - NEVER ALLOW AN EMAIL ON THIS ACCOUNT AGAIN" ;)
#15:23:41Dyrconayep, ID10T error.
#15:23:53DyrconaOh, wait..... I signed something.....
#15:24:41jeffemail addresses are mis-entered or change. it isn't always the receiving user's 'fault' that you get a spam notice. just be thankful that aol gives you any feedback loop. :-)
#15:24:53kmlussier has quit IRC
#15:25:09StephenGWills has joined #evergreen
#15:26:07Dyrconajeff: It's useless. We only signed up to get them because AOL basically required it to continue to accept mail from us a few years ago.
#15:26:29DyrconaILS email notifications look surprisingly a lot like spam to most heuristics.
#15:27:12DyrconaWell, since the install from source libdbi doesn't work on Precise Pangolin, I'm now trying the packaged libdbi and libdbdpgsql.
#15:27:36tsbereHas something to do with "we keep seeing emails that match this pattern coming from you. Because it keeps matching the pattern and people mark it as spam every so often it must *all* be spam and those just deleting it aren't paying enough attention"
#15:28:28DyrconaYeah, I'm surprised that anyone gets automated emails from their library, ever.
#15:28:46DyrconaNo matter the ILS.
#15:29:17kmlussier has joined #evergreen
#15:31:22DyrconaHeh, libdbdpgsql from packages works and one installed from source doesn't!
#15:31:39Dyrconapangolin++
#15:33:34dbsDyrcona: the only reason we were using source was because squeeze and lucid were frozen before the fix we needed got into libdbi, so that's good
#15:34:27Dyrconadbs: ok. the ubunut install for Evergreen is going to look very different after I'm done with it. I'm installing as much from debs as is possible.
#15:34:40dbsDyrcona: that's always been the goal
#15:34:48Rural has quit IRC
#15:35:12csharpdebs++
#15:36:05DyrconaAt this point, only 4 modules are installed via CPAN on precise pangolin. Everything else comes from debs.
#15:36:07dbshappy to see someone else finally doing something with Makefile.install
#15:36:29Dyrconahappy to help.
#15:37:22dbsCool. BTW, the reason "generic_ubuntu" was there is because until recently it served as base for both hardy and lucid
#15:37:27DyrconaSorry 5 modules. I forgot about SpiderMonkey.
#15:37:55bshumJust remembered that I was supposed to help try building 2.0.11 this week. I'm so behind on my mental to-do lists... :(
#15:38:05Dyrconageneric_ubuntu is still there. Now, it only does install_debs & debian_sys_configs
#15:38:43DyrconaI added some comments and a little white space for my (and others') sanity.
#15:39:27tsberesanity is overrated ;)
#15:45:39Dyrconajust have to commit some changes, edit the README, rebase and I'll push to working.
#15:55:51Dyrcona* [new branch] precise_pangolin -> collab/dyrcona/precise_pangolin
#16:23:17copystar has quit IRC
#16:25:59bwicksall has quit IRC
#16:28:45collum has quit IRC
#16:31:35phasefxso, given the code here, http://paste.lisp.org/display/126365, I'd expect to get back a list of bre objects with the attrs field fleshed out (from metabib.record_attr, based on the IDL), but instead I get bah humbug. Am I doing something dumb? :)
#16:32:03phasefxattrs is a virtual field, with a link to mra
#16:33:23phasefxyeah, I'll just mimic what's going on with creator and editor
#16:33:28phasefxforget flesh_fields
#16:33:40phasefxthanks rubber duck channel
#16:34:05bwicksall has joined #evergreen
#16:50:36kmlussier has quit IRC
#16:54:47dbs has quit IRC
#17:04:35Shae has quit IRC
#17:07:01akilsdonk has quit IRC
#17:07:39dbs has joined #evergreen
#17:25:40jenny has left #evergreen
#17:28:37DyrconaWhee! I now have a functional dev machine on an Ubuntu 12.04 VM.
#17:28:47bshumDyrcona++
#17:29:36DyrconaTime to go home.
#17:29:40Dyrcona has quit IRC
#18:11:02edoceo has left #evergreen
#18:37:44edoceo has joined #evergreen
#18:38:59edoceo has left #evergreen
#18:41:40edoceo has joined #evergreen
#18:43:23edoceo has joined #evergreen
#18:54:54edoceo has left #evergreen
#18:56:10edoceo has joined #evergreen
#19:00:32jenny has joined #evergreen
#19:00:34jenny has left #evergreen
#19:47:27StephenGWills has left #evergreen
#19:52:01dbs has quit IRC
#20:05:32dbs has joined #evergreen
#20:38:55pmpafk has quit IRC
#20:58:25edoceo has left #evergreen
#21:00:41edoceo has joined #evergreen
#21:00:51edoceo has left #evergreen
#21:01:58edoceo has joined #evergreen
#21:26:09dbs has quit IRC
< Wednesday, December 7th, 2011Raw Log FileFriday, December 9th, 2011 >