Open Source Integrated Library System

Evergreen on IRC

#evergreen Logs for Tuesday, May 31st, 2011

< Monday, May 30th, 2011Raw Log FileWednesday, June 1st, 2011 >
#TimeNickMessage
#03:18:42atz has quit IRC
#04:39:47drdata_home has quit IRC
#04:45:23drdata_home has joined #evergreen
#07:50:39artunit_ has joined #evergreen
#07:51:46mrpeters-isl has joined #evergreen
#07:51:46artunit has quit IRC
#07:52:01artunit_ is now known as artunit
#08:25:51adbowling-isl has joined #evergreen
#08:31:59ernieSimuro has joined #evergreen
#08:35:14ernieSimuro has quit IRC
#08:35:46sfortin has quit IRC
#08:35:58sfortin has joined #evergreen
#08:36:32ernieSimuro has joined #evergreen
#08:38:51mrpeters-islok - what am I doing wrong with git? fatal: Paths with -a does not make sense.
#08:38:57mrpeters-isl git commit -as "LP#739444 Incrementing opac.dtd copyright date - Signed-off-by: Michael Peters <mrpeters@library.in.gov>"
#08:41:20Dyrcona has joined #evergreen
#08:42:28atheos has joined #evergreen
#08:43:31tsberemrpeters-isl: -a is "auto", -s is "signoff", you need a -m for "message"
#08:44:43mrpeters-islaha - wiki needs updating then
#08:44:52mrpeters-islgit commit -as # and enter a useful comment
#08:48:39tsbereIf you don't put a comment on the command line it will bring up an editor
#08:50:25kmlussier has joined #evergreen
#08:55:56gdunbar has joined #evergreen
#09:04:37bradl_ is now known as bradl
#09:15:51yboston has joined #evergreen
#09:15:52Callender has quit IRC
#09:16:39jenny1 has joined #evergreen
#09:17:45dbs has joined #evergreen
#09:21:39dbsmrpeters-isl: For some reason your sign-off was on the same line as your commit message; I'll fix that locally
#09:26:22dbsapplied
#09:28:27mrpeters-isldbs: sorry about that...its probably because i did my message from the command line
#09:28:38mrpeters-islill let it pop up the external editor from now on
#09:29:21Callender has joined #evergreen
#09:31:18dbsNo sweat off my back
#09:31:45dbsthanks for the patch!
#09:34:08mrpeters-islno problem
#09:34:11kmlussier has quit IRC
#09:35:30dbsgit question: once a branch has been merged into Evergreen or OpenSRF from working, should we / when should we then delete the remote branch?
#09:36:54mrpeters-isldbs: so, do you mean: create a "working_branch", do your patching, submit your patch, it gets accepted....then what?
#09:37:16Dyrconadbs: you can keep 'em or delete 'em, its up to you.
#09:37:20dbsmrpeters-isl: right.
#09:37:29DyrconaI usually delete 'em. tsbere tends to keep 'em.
#09:37:29mrpeters-islwhat i was doing in that case is just reverting back to the beginning
#09:37:45mrpeters-islso i always have just 1 working directory that i make my patches in then "start over"
#09:37:46dbsDyrcona: well, technically yes, but I'm asking as a matter of project preference
#09:38:54dbsDyrcona: if everyone keeps all of their working branches forever, then it's going to get kind of hard to find the useful branches eventually, no?
#09:39:14Dyrconayes, pretty much.
#09:39:31tsbereI have started leaning towards "If I don't think I will continue to work on that branch, delete it when it is merged"
#09:39:57Dyrconai was thinking more about local branches, but I see you're talking about on git.evergreen-ils.org.
#09:40:17Dyrconathere, i'd say, delete them after they're merged.
#09:40:59collum has joined #evergreen
#09:41:44dbsokay, sounds good to me
#09:41:55ernieSimurojeff: Are you any closer to checking in the operSRF-PHP version I know that when yoyu were on vacation you said that it only needed to be checked in, where do we stand?
#09:57:42phasefxcollab/phasefx/honor_unified_vol_copy_ui_setting, is that the sort of thing we want a 2nd sign-off on or is it trivial enough to just push to master/rel_2_1 without such?
#10:00:22phasefx(given that I don't usually push untested code anyway)
#10:02:49pmplett has joined #evergreen
#10:13:35kmlussier has joined #evergreen
#10:26:39moodaepo has joined #evergreen
#10:28:00bshumdbs: Hmm, broad searches within a specific copy location are apparently still failing for us. Like searching for the word "japan" in "juvenile nonfiction". Just spins forever. :(
#10:28:31bshumOn the plus side, specific searches in copy location = extremely fast.
#10:31:21mrpeters-islbshum: have you tried to find the actual SQL query that is performed and tried in in PSQL?
#10:31:38bshummrpeters-isl: That's a good idea, I will try to see if I can dig it out.
#10:31:50mrpeters-islmaybe you could do a EXPLAIN ANALYZE on it
#10:32:06mrpeters-islnow, i dont know for sure what you'd be looking for
#10:32:11mrpeters-islbut at least you could see its action plan
#10:33:29mrpeters-islhow are you searching within a specific location?
#10:33:31mrpeters-islcustom code?
#10:33:53bshumNah, it's an advanced search option
#10:34:05mrpeters-islreally? i dont think we have that...
#10:34:08bshumWhen you're scoped to a specific library
#10:34:18bshumThere's a new box that shows up below pub year
#10:34:22bshumCalled "Shelving Location"
#10:34:27bshumThat has all your copy locations in it.
#10:34:28mrpeters-islyeah, i am --- dont have that
#10:34:31mrpeters-islwhat version?
#10:34:37bshumIt's been there for awhile.
#10:34:40bshumWe had it in 2.0.1
#10:34:47bshumStill trying to use it in 2.0.6 now
#10:34:52mrpeters-islinteresting....i dont have it
#10:34:57mrpeters-islwonder if its something you have to turn on
#10:35:33bshumHmm, I don't think we did anything too different.
#10:36:01bshumYeah it's in yours
#10:36:03bshumI can see it..
#10:36:10bshumSwitch to advanced search
#10:36:19mrpeters-islim there....and ive picked a library
#10:36:19bshumThen go to the Search Library options
#10:36:28mrpeters-isloh i need to pick a branch
#10:36:29bshumYou have to select the specific branch, not the system
#10:36:38bshumRight, cause the branch has locations, not the system :)
#10:37:10bshumIt's more evident in the staff client. The default search catalog brings you to advanced search set to the scope of a single library branch anyways.
#10:37:18mrpeters-islhmm taking a bit of time here too
#10:37:22bshumNotably, that list of locations is unordered.
#10:37:31mrpeters-islyeah i noticed that
#10:37:41mrpeters-islnot orderd by id maybe?
#10:38:00mrpeters-isllooks like it spins here too
#10:38:30bshumdbs put out some new function changes for that (and other things): http://git.evergreen-ils.org/?p=working/Evergreen.git;a=commit;h=095658b44ea6a64678fb68253eda1ef11a664863
#10:39:03bshumIf you alter the search function to use that unnest() instead of search.explode_array() it does improve the searching. But apparently doesn't fix it entirely.
#10:51:20bshumAh, looks like it's choking on our search relevance ranking for keyword searches
#10:55:38jenny1 has quit IRC
#11:04:24dbsmrpeters-isl / bshum: If you want to understand what's happening in search, you need to step through the logic in search.query_parser_fts() function manually - at least, that's the best approach that I've been able to come up with
#11:05:46dbsbshum: like you, broad searches on shelving locations tend to time out for us as well
#11:06:23mrpeters-isli wondered if maybe it was just timing out, but would eventually finish at the db level
#11:06:24bshumdbs: We recommended to our libraries to use one of the other search categories (not keyword). Using subject, etc. seemed to work slightly better.
#11:06:48dbsmrpeters-isl: yes, due to the 60 second opensrf default time out. the query continues to run at the database level
#11:07:00mrpeters-islyeah cool thought it might
#11:07:18dbsbshum: yep, that's the same shameful advice that we have to give
#11:07:41dbswhich is why I was diving into the search bits over the past week
#11:08:06mrpeters-islwonder if its "close" to 60 seconds to where we could increase it by 50% or so
#11:09:23dbsmrpeters-isl: if your users are having to wait 60 seconds for search results, they won't be your users for long
#11:10:08mrpeters-isltrue, but wouldn't the other searches still run quicker? i'm thinking just as a temp workaround until its fixed
#11:13:31dbsmrpeters-isl: the speed of the other searches should be unaffected, yes
#11:22:47jenny has joined #evergreen
#11:26:32phasefxcollab/phasefx/unified_vol_copy_ui_from_marc_editor_fast_add for those interested (requires a new local staff client)
#11:30:00dbsphasefx: I'll take a peek at the code at least
#11:30:24phasefxmuchos gracias
#11:35:04dbsphasefx++ # I can read the code!
#11:35:29phasefxline breaks are our friend
#11:36:31dbsOne i18n bit ('Retrieving title...') to-do; it's in collab though so in theory I could do that
#11:37:03phasefxthat's a copy/paste job too, I think, so such i18n could be used elsewhere as well
#11:37:19james has joined #evergreen
#11:37:27jamesHi
#11:37:31jamesanybody here?
#11:37:41phasefxjames: hiya
#11:37:45james is now known as Guest56672
#11:38:00Guest56672so anybody here?
#11:38:45phasefxjust us and some grues
#11:39:53moodaepoGuest56672: About 59 folks are here including bots and you.
#11:40:10Guest56672thanks for the reply
#11:40:48Guest56672i just posted an article about the Connecticut library migration at a forum thought it was a great example of the bazaar from the book of similar title
#11:41:59Guest56672to put things pithily, i'm a lifetime teacher in high schools in Missouri, full certifications in all sciences etc. bs ms not piled higher and deeper but also am a published author
#11:42:09Guest56672spent a lot of time writing instruction manuals
#11:42:15Meliss has joined #evergreen
#11:42:19Guest56672and thought i would volunteer to do so for you folks
#11:43:01dbsphasefx: cool, so someone could cherry-pick 310db79e725ed539 from that branch if they want the i18n bit first
#11:43:38dbsGuest56672: awesome! have you heard of the Evergreen Documentation Interest Group?
#11:43:57Guest56672no i looked at the site but don't remember that particularly
#11:44:04Guest56672if that is it then i could contact someone
#11:44:20dbsthere's a quick overview at http://evergreen-ils.org/dokuwiki/doku.php?id=evergreen-docs:dig
#11:44:36phasefxdbs++ # collab
#11:44:39dbsthe DIG people are very friendly
#11:45:20Guest56672aaahhh found it now, i was lookin under the wrong drop down. I'll noodle around there and if i need to will drop back, thanks very much for the quick reply
#11:46:24Guest56672 has quit IRC
#11:57:26phasefxasset.call_number_class.normalizer populates asset.call_number.label_sortkey?
#11:59:03dbsphasefx: it should
#11:59:09phasefxgracias
#11:59:41dbs has seen cases where LC was applied to CODOC with result = NULL
#11:59:41phasefxnone of those normalizers probably handle labels like Volume 43 No. 11 (December 6, 2010) I bet
#12:00:05dbsheh, well they "handle" them, just not the way people might expect
#12:00:18phasefxstuff like that should get handled by serials functionality, I imagine
#12:00:25dbsabsolutely
#12:00:41phasefxsomething I'm mostly ignorant of. :) thanks
#12:01:06dbsOf course, someone could write a call number normalizer for that format if they were so inclined
#12:02:23dbs isn't very inclined
#12:02:38phasefx hears ya
#12:02:45berickI know I'm late to the party, but where does ARRAY_ACUM come from? e.g. ARRAY_ACUM(evergreen.upgrade_list_applied_deprecates(my_db_patch))
#12:02:54berickor is it a typo?
#12:03:38dbsThat would be a typo
#12:04:05dbsIt should be spelled "array_agg()" in any case :)
#12:04:51berick does not know if that's a joke ;)
#12:05:00bericki need to repair 002.schema.config.sql..
#12:05:53dbsberick: I have a branch to stamp out all use of ARRAY_ACCUM() in favour of the postgresql native ARRAY_AGG() function
#12:06:35dbsand tsbere did me the favour of creating an unwrapped upgrade script for master: remotes/working/user/tsbere@mvlc.org/native-array-functions
#12:06:39berickdbs: gotcha. OK if I fix that one typo for now so trunk will install?
#12:07:01dbsI suggest fixing it as "array_agg()"
#12:07:10berickthat was my next question. thanks!
#12:07:28dbsthank you, a working trunk is a good trunk
#12:19:06jamesrf has quit IRC
#12:20:52jamesrf has joined #evergreen
#12:25:05lisppasteberick pasted "ARRAY_AGG error" at http://paste.lisp.org/display/122390
#12:25:30berickdbs: mean anything to you? ^--
#12:25:53tsbereberick: Means something to me!
#12:26:14dbsIt means pain?
#12:26:38berick:)
#12:26:45tsbereSELECT array_agg(var) FROM evergreen.upgrade_list_applied_deprecates(my_db_patch); with var being whatever it needs to be based on the function return
#12:29:49berickhmm
#12:29:56dbslooks painful in that context
#12:29:59berickany suggestions on how that might look toward the bottom of http://git.evergreen-ils.org/?p=Evergreen.git;a=blob;f=Open-ILS/src/sql/Pg/002.schema.config.sql;h=822623b92761facfa01036414a5cc2988cbf99f5;hb=HEAD#l869
#12:30:49dbscan RAISE accept subselects? heh
#12:31:28berickhm, maybe, or I could select into a variable
#12:33:26yboston has quit IRC
#12:33:35dbsOr you could just use ARRAY_ACCUM() and make it work for now.
#12:33:48berickdbs: tried that. same error
#12:33:54dbsoh, hah
#12:34:04dbsYOU CAN'T GET THERE FROM HERE
#12:34:06berickprobably this branch of code has never been run..
#12:34:21dbslooks like it
#12:38:35dbs doesn't know how invoke that branch
#12:40:07berickdbs: SELECT evergreen.upgrade_deps_block_check('XXXX', NULL);
#12:40:22dbs will give it a shot
#12:46:08dbs tries applying the updated 0526.schema.upgrade-dep-tracking.sql and gets ERROR: relation "db_patch_dependencies" already exists
#12:49:47mrpeters-islphasefx: 2 second xulrunner question
#12:50:09mrpeters-isl"Restore Defaults" in the column picker should restore back to the default columns, right? or does it do something else?
#13:13:43dbsberick: I think I've got something. feels nuts but it doesn't throw an error, so there's that
#13:16:25youdonotexist has joined #evergreen
#13:17:58jenny1 has joined #evergreen
#13:19:11phasefx has quit IRC
#13:19:53phasefx has joined #evergreen
#13:20:14jenny has quit IRC
#13:20:27bshumHmm, it looks like when an alert presents itself due to an entry in the messages area of the 2.0 patron interface, it takes away the coloring around the name of the patron. (or turns it into the same gray in the background).
#13:20:46bshumI'm testing this behavior a bit more
#13:21:57bshumYeah, applying a standing penalty/message apparently takes away the color box around the patron name indicating their status :(
#13:22:13dbsberick, check user/dbs/fix-dep-tracking
#13:22:13tsberemrpeters-isl: You are looking at the "they show an ID and not anything useful" launchpad bug?
#13:22:25mrpeters-isltrying!!!
#13:22:39mrpeters-islim to the point where i want to test 'FM_PGT_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.groups.tree.retrieve', 'secure' : false },
#13:22:43mrpeters-islwith srfsh
#13:22:46mrpeters-islto see what i get back
#13:23:35mrpeters-islin util.js -- { return data.hash.pgt[ my.au.profile() ].name(); }
#13:23:58mrpeters-islso i'm thinking that takes au.profile and links it to a permission.grp_tree.name
#13:24:14tsbereSome of the things that show up with that issue include addresses and such.....that exist as a set of fields further down the list. May want to double-check some of that.
#13:24:33mrpeters-isli noticed addresses came up as ID's but i wasnt sure if that was expected or not
#13:24:40mrpeters-isli kind of it recall always being that way
#13:25:29bshumOh, heh, maybe only horizontally. Have to retest with vertical summary display too.
#13:25:42mrpeters-islto be entirely honest, i'm not entirely sure where to go next
#13:26:47tsberebshum: Applying a penalty may indicate a new color to begin with?
#13:26:57mrpeters-isl"Home Library" gives useful info, instead of an "id" but it doesnt look that different --- { return data.hash.aou[ my.au.home_ou() ].shortname(); }
#13:27:13mrpeters-islso, actor.usr.home_ou = actor.org_unit.shortname i guess
#13:27:38bshumtsbere: I'm checking that out next. The "box" surrounding the name of the patron seems to go away and the name becomes flush to the upper left of the patron display instead of being centered inside the box. Which leads me to assume that the box is somehow gone.
#13:28:10tsberemrpeters-isl: The data.hash.aou part is "a pre-cached list of org units by id populated at login"
#13:28:46mrpeters-islok, so it "works" in the search results becuase its populated when you pull down the org tree for WS registration?
#13:29:13tsbereIt "works" there because it pulls the org tree down at login no matter what, because having the org tree locally saves a lot of potential lookups.
#13:29:42mrpeters-islok, so we probably need to pull down permisson.grp_tree and config.ident_type data too at login/
#13:29:58mrpeters-islconfig.identification_type, rather
#13:30:08tsbereThey might exist somewhere alerady. Or you can add them to the flesh list.
#13:31:26mrpeters-islhmm where would i find the "flesh" list
#13:32:03tsbereI am unsure
#13:32:12tsbere isn't looking at that
#13:32:16mrpeters-isl10-4
#13:32:34tsbere has too many post-migration headaches, and is avoiding digging through code
#13:32:41mrpeters-islill put this into the bug in hopes maybe someone more experienced can pick up from here later on
#13:33:40youdonotexist has quit IRC
#13:34:09tsberemrpeters-isl: A hint: See how it is loading the address and barcode. You want to duplicate *them*
#13:34:54mrpeters-islaha - s = patron.util.retrieve_fleshed_au_via_id(ses(),s,["card"]);
#13:35:00mrpeters-isli assume that's something in the "flesh" list
#13:36:47tsbereif you replace ["card"] with, say, ["card","ident_type"] you should find the type is no longer a value, but an object. With a name() attached.
#13:37:18phasefxmrpeters-isl: also, the whole data.hash thing uses fieldmapper hint/class names by convention. There should be a hash.pgt and a hash.cit
#13:37:49tsberephasefx: Assuming either of those is cached. Are they?
#13:38:03phasefxyeah, pretty sure
#13:38:39phasefxyeah, pgt, cit, citm, ccs, aou, aout, crahp
#13:38:46phasefxI love that last one
#13:38:51mrpeters-isllol
#13:38:52tsberemrpeters-isl: If they are cached, don't flesh them.
#13:39:18mrpeters-islok - i'm not sure i fillow the difference
#13:39:24mrpeters-islcached means they're pulled down at login?
#13:39:48tsbereOn the other hand, you need to use the proper things for them. hash.cit[ my.au.item_type() ].name() for example?
#13:39:56tsbereident_type, not item_type
#13:39:58tsbere<_<
#13:40:23mrpeters-isl 'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return data.hash.cit[ my.au.ident_type() ].name(); }
#13:40:30mrpeters-isllooks like it is using the proper thing
#13:41:15mrpeters-islim trying to compare this to barcode....but honestly it looks the same to me
#13:41:45phasefxmrpeters-isl: it's more defensive to do something like return typeof my.au.ident_type() == 'object' ? my.au.ident_type().name() : data.hash.cit[ my.au.ident_type() ].name();
#13:41:49jenny has joined #evergreen
#13:41:56phasefxin case the data is already fleshed
#13:42:06Rural has joined #evergreen
#13:43:38phasefxpatron search, incidentally, no longer uses the column definitions from a util.js file, but uses the fm_columns method from list.js, which uses fm_IDL.xml
#13:43:59youdonotexist has joined #evergreen
#13:44:17jenny1 has quit IRC
#13:44:53mrpeters-islok. this may be getting a bit beyond my skillset.
#13:45:46phasefxthough such definitions can be overridden on a per column basis
#13:48:07mrpeters-isli see a fm_columns for aua, ac, aua again, and au
#13:48:19mrpeters-isldo we need similar for pgt and cid?
#13:49:40berickdbs++ # fix-dep-tracking works on my dev db
#13:49:53phasefxmrpeters-isl: that's one way to do (and then in 'retrieve_row' you would have to add row.my.pgt and row.my.cit as data being fed to the list), but it could also be overkill since by default you would have a column for every field from those objects
#13:50:07dbsAFAICT, Cookies.js is no longer used by anything. I'm going to delete it and remove all calls to Cookie.js
#13:50:16dbsberick: yay, please sign-off :)
#13:50:22berickdbs: will do
#13:51:00dbshmm - not sure if we need to explicitly DROP TYPE evergreen_patch; outside the transaction to support repeated --create-schemas actually
#13:52:55berickdbs: perhaps creaete the type in the evergreen schema?
#13:53:01berickso it will get dropped automatically
#13:53:58dbsberick: yes, good plan
#13:54:02mrpeters-isl tries
#13:57:18phasefxmrpeters-isl: what would be cool, is to extend fm_columns (in list.js) around where it determines that my_field.datatype == 'link', and have it look for a data.hash to use if the object isn't fleshed. That'd probably take some thought
#13:59:36phasefx tries it real quick
#14:03:13phasefxdoesn't fieldmapper have a way of indicating a default or preferred "display" field for a given class?
#14:04:37tsbereThe reporter has a "lookup via this instead of the primary key in display interfaces" setting. I think dojo interfaces know how to use it.
#14:07:11mrpeters-islok, i think i'm totally whiffing on this
#14:07:11mrpeters-islhttp://pastie.org/1999377
#14:07:42mrpeters-island then i added row.my.pgt = row.my.au.profile(); to "retrieve_row"
#14:07:52mrpeters-islbut i still get an id back for Main (Permission) Profile Group
#14:08:34phasefxmrpeters-isl: the dataobj field, you can remove it. That would tell fm_columns to look for my.au_profile instead of my.pgt
#14:09:04phasefxuseful for when have multiple fields of the same fieldmapper class, like mailing address and billing address
#14:09:47mrpeters-island, am i correct that the "hidden" is for display in staff client, by default?
#14:10:17phasefxmrpeters-isl: also, for row.my.pgt, you want to pass a fleshed object. So something like row.my.pgt = typeof row.my.au.profile() == 'object' ? row.my.au.profile() : obj.data.hash.pgt[ row.my.au.profile() ];
#14:11:20phasefxmrpeters-isl: right, but in this case, you're unhiding every field for the pgt class. It's best to hide them all, and then override a specific one to be unhidden
#14:11:31mrpeters-islright
#14:11:39mrpeters-islok, so i end up with an empty "Group Name" column
#14:11:57mrpeters-islpretty sure that's the "correct" one to use now, instead of main (profile) permission group
#14:12:08phasefxe.g. '*' : { 'hidden' : true }, 'pgt_name' : { 'hidden' : false }
#14:12:29mrpeters-islah cool
#14:13:07phasefxthe fm_columns for 'ac' being a good template
#14:14:01phasefxmrpeters-isl: and it looks like that file is older than the obj.data convention, it's obj.OpenILS.data
#14:14:24phasefxfor your row.my.pgt line
#14:16:21moodaepodbs: Regarding the TT hackfest @ Windsor any chance it could be attended on IRC with an audio/video feed online?
#14:18:44mrpeters-isl-= THIS MESSAGE NOT LOGGED =-
#14:18:52mrpeters-islpasting search_result.js diff now
#14:20:31dbsmoodaepo: IRC, for sure; dunno how much audio/video will help though
#14:21:41phasefxmrpeters-isl: if you have spidermonkey-bin installed, could run js search_result.js on the command-line and find any syntax errors
#14:21:58mrpeters-islok
#14:26:32mrpeters-islit works!
#14:26:47phasefxrock
#14:26:48mrpeters-isli assume i can rinse and repeat for the ident type
#14:27:07phasefxmrpeters-isl: not quite
#14:27:41phasefxthere are two ident types, so you'll need to mimic what billing address and mailing address are doing with their column definitions, using a specific dataobj
#14:28:26phasefxthere's ident_type and ident_type2
#14:28:35mrpeters-islok
#14:30:21mrpeters-islso, 'dataobj' : 'ident_au' and 'dataobj' : 'ident2_au' perhaps?
#14:31:03mrpeters-islassuming the dataobj can be called anything?
#14:34:02mrpeters-islanother important thing will be to remove the "Main (Permission) Profile" column from the picker, somehow
#14:34:06phasefxmrpeters-isl: yeah, they can be called anything. I'd go with ident_type and ident_type2, and use row.my.ident_type and row.my_ident_type2
#14:35:05phasefxmrpeters-isl: use 'remove_me' : true in the definition
#14:35:15phasefxin the place where you would normally put 'hidden' : true
#14:36:21mrpeters-islrow.my.cit = typeof row.my.au.ident_type() == 'object' ? row.my.au.ident_type() : obj.OpenILS.data.hash.pgt[ row.my.au.ident_type() ]; correcT?
#14:36:32mrpeters-islerr row.my.cit = typeof row.my.au.ident_type() == 'object' ? row.my.au.ident_type() : obj.OpenILS.data.hash.cit[ row.my.au.ident_type() ];
#14:37:50phasefxinstead of "row.my.cit", you need to use "row.my.foo", where foo is whatever you specified as the dataobj
#14:38:00mrpeters-islaha
#14:38:10phasefxassuming you want to flesh both ident_type and ident_type2
#14:40:10mrpeters-isli think i need to prefix ident_type2 differently too, right? it loosk like its using the same heading as ident_type
#14:40:36mrpeters-isl'label_prefix' : $('patronStrings').getString('staff.patron.search_result.ident_type2_column_label_prefix'), perhaps?
#14:44:04phasefxtry it :)
#14:44:50collum has quit IRC
#14:45:48RuralWell... I've munged the OpenSRF install on our test Evergreen install. It passed the tests at the end of the OpenSRF part of the installation document on the wiki.
#14:45:53mrpeters-islok, i think i have this knocked out except hiding these columns
#14:46:44RuralNow, using 'request opensrf.math add 2 2' gets me "Received no data from the server."
#14:46:51mrpeters-islany hings on where i'm looking to do "hidden : true" ?
#14:49:15RuralMy srfsh.log is complaining that there is no one to send the message to.
#14:49:34dbsRural: did you by any chance shut down the server without shutting down opensrf first?
#14:49:57RuralYes. There is a very good chance of that.
#14:50:03phasefxmrpeters-isl: in the object for the '*' key
#14:50:26dbsRural: if you're running OpenSRF 2.0.0, it will recover nicely from that
#14:50:49dbsif not, 'rm /openils/var/run/*.pid' and restart opensrf services will probably do the trick
#14:51:13Ruraldbs: Ok. Here goes.
#14:52:06mrpeters-islphasefx: still in search_result.js?
#14:52:21phasefxpaste your diff
#14:52:28mrpeters-islok
#14:53:54Ruraldbs: Woo-hoo! Yup, that's all it was. Makes sense too.
#14:54:01dbsyay
#14:55:48phasefxweird, my patron search can't find the stock admin user, but can find newly registered users
#14:56:17RuralOk. Now onto the staff client.
#14:56:26mrpeters-islphasefx: http://pastie.org/1999594
#14:56:37mrpeters-islhoping i did that right....first "big" patch with git
#14:57:29mrpeters-islew, something nasty happened in there
#14:57:34mrpeters-islhang on
#14:57:48kmlussier has quit IRC
#14:58:54mrpeters-isl is really sucking at git
#15:00:20phasefxmrpeters-isl: I don't see anything obviously wrong/bad. What do you want to do now again?
#15:00:51mrpeters-islline 45 thru 52 are bad
#15:01:09mrpeters-isli accidentally got 2 commits in there
#15:01:17mrpeters-isl1 was a bad old one....i forgot to go back to a clean branch
#15:01:31mrpeters-islwhat i need to do is hide the columns that only display id values
#15:01:56mrpeters-islMain (Permission) Profile, Primary Identification, Secondary Identification
#15:02:27phasefxin the fm_columns for 'au', add 'au_profile' : { 'hidden' : true }, 'au_ident_type' : { 'hidden' : true }, etc.
#15:02:40phasefxif you want to remove them from the column picker altogether, use remove_me instead of hidden
#15:03:01mrpeters-islyikes...ok i dont know why i was making it so hard
#15:03:02mrpeters-islthanks
#15:04:08dbsmrpeters-isl: you also need to set your actual name in git config
#15:04:17mrpeters-isldbs: yep saw that
#15:13:51phasefxone bad thing about typeof foo == 'object'.. it catches nulls. I keep forgetting about that
#15:15:11mrpeters-islpatch posted
#15:15:14mrpeters-islhope it fixes things
#15:16:38dbsheh, maybe good we didn't go with fossil: http://sheddingbikes.com/posts/1306005291.html (although I love his take on git)
#15:17:13drdata_home_ has joined #evergreen
#15:18:02drdata_home has quit IRC
#15:18:09drdata_home_ is now known as drdata_home
#15:18:53Ruralxulrunner is barfing on 'xulrunner ~/Evergreen-ILS-2.0.6/Open-ILS/xul/staff_client/application.ini'. Pops up a window which complains about an XML parsing error. Any ideas?
#15:20:06RuralI am using an Ubuntu 11.04 machine for the staff client. Maybe that is contributing to the problem.
#15:24:27phasefxRural: wrong application.ini
#15:24:34phasefxuse build/application.ini
#15:26:02Ruralphasefx: Bah! ;)
#15:26:51phasefxused to work back in the day, but we kept making things more complicated :)
#15:28:03phasefxfun thing, if we do move to all local xul, we can get rid of that stamp id business
#15:42:44phasefxthere's a collab/phasefx/fm_columns that integrates OpenILS.data.hash with util.list.fm_columns
#15:54:26RuralSo I'm guessing that trying to do your first login from another mausing the staff client is best done on the same machine as the server is running on. I'm having no luck from my desktop to the server running on a VM.
#15:54:38Ruralmausing -> machine
#15:59:38Meliss has quit IRC
#16:01:35phasefxRural: are you using NAT for the vm's networking? that would stop you
#16:01:57sfortin has quit IRC
#16:03:09Ruralphasefx: Ya. The VM is on a virtual bridge. I guess I could create another VM on the same network.
#16:08:22berickcan anyone suggest a reasonable value for the "cat.marc_control_number_identifier" org setting?
#16:10:03berick was pleasantly surprised to see the staff client telling him to set it
#16:10:34dbsberick: ESILIBRARY would be fine
#16:11:06berickdbs: gotcha, thanks!
#16:11:56dbsRural: can you see http://hostname/xul in a web browser?
#16:12:30Ruraldbs: I can.
#16:13:02dbsRural: two possible problems: 1) you need to add the SSL certificate (near login button)
#16:13:15dbs2) you need to restart Apache, it needs to be started after OpenSRF
#16:17:50RuralI added the SSL exception and restarted Apache. I get a "Login failed."
#16:18:45dbsthat's progress
#16:18:47RuralActually, using srfsh, the same credentials fail. Hmmm...
#16:18:53dbswhat credentials?
#16:19:11dbswere they the --admin-user --admin-pass values you set with eg_db_config.pl?
#16:19:59RuralYes.
#16:20:22tsbere should probably be avoiding anything work related, such as IRC, given the morning he had
#16:20:23RuralOne second. There is a possible discrepency in the password.
#16:20:33tsbere pokes berick about sip_statcats2 anyway
#16:21:44RuralOk. I've confirmed the admin password using srfsh. The same credential fails on the staff client.
#16:26:15RuralIt bothers me that the staff client has a message about the workstation not being configured.
#16:27:22mrpeters-islthat is normal
#16:27:29mrpeters-islyou have to register the workstation to one of the branches
#16:27:50mrpeters-islhttp://www.open-ils.org/dokuwiki/doku.php?id=evergreen-user:registering_staff_client_to_different_working_locations
#16:33:31RuralI guess I could just install a desktop environment onto the server and go from there.
#16:36:35dbsRural: I doubt that you'll get anywhere, if you can connect but not login there's some other problem
#16:36:51dbsMaybe HTTPS connectivity isn't allowed
#16:43:22RuralI don't think it's that. I can point my web-browser at the Evergreen server and it is serving up HTTPS content.
#16:44:05DyrconaRural: try logging into the opac with the account you tried from the staff client.
#16:44:46Ruralopac?
#16:47:02Dyrconathat's what you get when you go to https://your-server-name
#17:00:13RuralDyrcona: Ah! Ya, clicking on the "Log in" link gets me...nothing at all. I'm playing with my Javascript settings now.
#17:00:48dbsRural: JavaScript Console would actually be helpful.
#17:01:04dbsNo "playing with JavaScript settings" should be required
#17:01:14dbsoh. Did you run "autogen.sh -u"?
#17:02:42Ruraldbs: Maybe not. I'll check.
#17:05:34Ruraldbs: Yes. I did. Step 3 under "Starting Evergreen", right?
#17:06:09Ruraldbs: On http://open-ils.org/dokuwiki/doku.php?id=server:2.0:install
#17:06:29dbsSounds like it
#17:06:55dbs adds "pullrequest" as an official tag to bugs.launchpad.net/evergreen
#17:09:53phasefxdbs++
#17:16:39dbshttps://bugs.launchpad.net/evergreen/+bugs?field.tag=pullrequest is starting to fill up, now if only phasefx and I could find somebody to signoff / commit these bits... :)
#17:17:29bjwebb has joined #evergreen
#17:17:29bjwebb has joined #evergreen
#17:19:19dbshey bjwebb - how are those exams going?
#17:19:43bjwebbdbs: slowly
#17:20:14bjwebbdbs: they've been fairly okay so far, but i have 3 on consecutive days coming up
#17:20:45dbsbjwebb: well, nice to know that you're still thinking of us
#17:21:14dbsbtw - you pointed me at a branch with Makefile changes - is that ready for merging, in your opinion? or still a work in progress?
#17:23:42bjwebbi'm not sure, i've not had chance to test it a lot, but it should be okay
#17:26:53dbsOkay. I'll try to give it a slight workout
#17:28:29Dyrcona has quit IRC
#17:29:08jenny has left #evergreen
#17:33:42dbsberick: I pushed another commit into user/dbs/fix-dep-tracking to move the TYPE to evergreen.patch and made the upgrade script work a bit more aggressively.
#17:50:17dbs has quit IRC
#17:50:38dbwellsgrabbing 0542
#17:51:11phasefxdbwells: want to sign off on a collab branch which uses 0542? :-)
#17:51:18Ruraldbs was correct. I get the same issues when running a browser on the server.
#17:52:26dbwellsphasefx: I'll certainly take a look at least. Where is it?
#17:52:32phasefxdbwells: collab/phasefx/missing_cat_perms
#17:52:55RuralWhere can I find the passwords in the database? (It's been a while since I did any serious work with Postgres.)
#17:53:35phasefxdbwells: I can't tell if I doing upgrade scripts correctly anymore. I certainly don't have the knack of applying them and having them work
#18:04:29phasefxdbwells: if need be, I can just bump the version later (or just go ahead and push it and let this dual-sign-off thing happen more slowly). don't mean to derail you
#18:06:37tsbere advocates pushing *unwrapped* upgrade scripts, with the committer to master or whatever wrapping them with a version #
#18:07:32phasefxthat's what I do within Equinox, but I was just going to push this, and doing collab instead was an after-thought
#18:08:29phasefxor, rather, instead of unwrapped, I do something like upgrade/xxx.foo.sql, and 'test' as a version. I haven't used the make db patch thing yet
#18:08:33Dyrcona has joined #evergreen
#18:09:10shadowspar has quit IRC
#18:09:17shadowspar has joined #evergreen
#18:15:14phasefx is bowing out for a while
#18:15:20dbwellsphasefx: I will hold off on my commit and try to figure out signing-off on yours early tomorrow. I have no clue what the workflow is supposed to be.
#18:16:10phasefxif someone offers a good one, I'll wiki it
#18:47:50Rural has quit IRC
#18:48:54mrpeters-isl has quit IRC
#19:22:22youdonotexist has quit IRC
#19:27:57b_bonner has left #evergreen
#20:21:28finnx has joined #evergreen
#21:05:33Dyrcona has quit IRC
#21:59:00dbs has joined #evergreen
#21:59:01dbs has joined #evergreen
#22:38:01finnx has quit IRC
#22:55:20adbowling-isl has quit IRC
#23:26:35jamesrf has quit IRC
#23:33:47jamesrf has joined #evergreen
< Monday, May 30th, 2011Raw Log FileWednesday, June 1st, 2011 >