Evergreen ILS Website

IRC log for #evergreen, 2014-05-16

| Channels | #evergreen index | Today | | Search | Google Search | Plain-Text | summary | Join Webchat

All times shown according to the server's local time.

Time Nick Message
00:18 jl- joined #evergreen
01:03 zerick2 joined #evergreen
03:28 zerick2 joined #evergreen
05:06 pinesol_green Incoming from qatests: Test Success - http://testing.evergreen-ils.org/~live/test.html <http://testing.evergreen-ils.org/~live/test.html>
07:46 Shae joined #evergreen
07:55 jboyer-laptaupe joined #evergreen
08:04 artunit joined #evergreen
08:13 collum joined #evergreen
08:21 timlaptop joined #evergreen
08:22 akilsdonk joined #evergreen
08:36 mmorgan joined #evergreen
08:47 Callender_ joined #evergreen
08:56 kbeswick joined #evergreen
09:00 ericar joined #evergreen
09:05 kmlussier joined #evergreen
09:38 kmlussier @coffee
09:38 * pinesol_green brews and pours a cup of Colombia Huila Supremo, and sends it sliding down the bar to kmlussier
09:40 yboston joined #evergreen
10:45 jl- @coffee
10:45 * pinesol_green brews and pours a cup of Fair Trade Organic Ethiopia Yirgacheffe, and sends it sliding down the bar to jl-
10:55 phasefx @beer
10:55 pinesol_green phasefx: http://wonder-tonic.com/geocitiesizer/content.ph​p?theme=2&amp;music=6&amp;url=evergreen-ils.org
10:55 tsbere @bartender phasefx
10:55 * pinesol_green fills a pint glass with Unibroue 11, and sends it sliding down the bar to phasefx (http://beeradvocate.com/beer/profile/22/7361/)
10:55 phasefx tsbere++
11:01 vlewis joined #evergreen
11:05 geoffsams joined #evergreen
12:11 jihpringle joined #evergreen
12:23 Bmagic hey all, I wanted to share a discover for me. I was in a situation where I needed to grant a staff account the ability to override the "The patron has reached the maximum number of holds" error. When the patron had the "Everything" permission, the system would allow them to override but otherwise, I could not find the single permission that allowed this
12:24 Bmagic After digging through the code, it looks like the error is "MAX_HOLDS" located in a hash map inside of PermitHold.pm on line 211 (EG 2.4.1)
12:25 Bmagic This is apart of "LEGACY_HOLD_EVENT_MAP" and we (I assume everyone) didnt have a MAX_HOLDS.override permission in the system. I am pleased to say that adding this permission to permission.perm_list and then assigning it to the staff patron, the system allowed the override!
12:32 rfrasur joined #evergreen
12:38 Shae joined #evergreen
12:43 mmorgan Bmagic++
12:43 mmorgan So does that mean that MAX_HOLDS.override should be included in the stock Evergreen permissions?
12:47 hbrennan joined #evergreen
12:48 Bmagic mmorgan: I believe so, I am writing a bug report on launchpad
12:52 mmorgan Awesome!
12:58 kmlussier Bmagic++
13:05 ericar joined #evergreen
13:12 phasefx anyone want to sanity check my logic on staff client bandwidth requirements?
13:13 phasefx simply logging into an already registered staff client with stock test data seems to pull down 2.1MB of data in about 15 seconds.  That seems to be the most demanding activity as far as bandwidth goes.  Checking in 10 items, for example, only pulls 83.6KB and uploads 15.4KB
13:14 phasefx so, let's take the login example, 2.1MB in 15 seconds = 143.36 KBps.  If we had 10 staff doing that at exactly the same time, we'd have 143.36 KBps * 10 = 1.4 MBps = 11.2 Mbps
13:15 phasefx residential Charter internet offers 30 Mbps down.  So for 10 staff, residential Charter should be sufficient?
13:16 * phasefx looks at the upload side of it
13:17 phasefx 4Mbps upstream for Charter
13:19 phasefx so say we use checkin as our worst case scenario for upstream, 10 staff checking in 10 items each in...optimistic 10 seconds.  15.4KB/10s * 10 = .12 Mbps
13:30 jeff latency and ack starvation from a saturated connection are bigger concerns than bandwidth.
13:31 * phasefx can believe, but doesn't know how to tell folks to "shop" for that :(
13:32 tsbere phasefx: At this point I generally tell people "if you can get X people browsing the internet on the connection then you can run that many staff clients" >_>
13:32 jeff mostly it comes down to it being a good idea to have some means (before the cable modem) to prevent bandwidth-hungry applications (say, patron wireless) from impacting staff evergreen operations.
13:32 gmcharlt well, at least one thing /not/ to shop for is satellite internet
13:32 phasefx :D
13:36 dbs 2mb of data to log in? Wow.
13:37 dbs Is that gzip-compressed?
13:37 phasefx yeah, we made some movement to try caching that stuff, but it got stalled between different implementation ideas
13:37 phasefx IIRC
13:38 phasefx dbs: this is my dev server, where would I look?
13:39 phasefx my eg_vhost.conf is very close to stock
13:39 phasefx looks like there's a rule saying SetEnv no-gzip for /xul/.*\.xul
13:40 phasefx https://bugs.launchpad.net/evergreen/+bug/1102300
13:40 pinesol_green Launchpad bug 1102300 in Evergreen "speed up staff client login sequence" (affected: 1, heat: 6) [Wishlist,Triaged]
13:43 * jeff revisits making the default sort for bre container searches be "order added to list, desc"
13:44 kmlussier jeff: What is the default sort now?
13:45 jeff kmlussier: relevance.
13:45 ktomita joined #evergreen
13:45 jeff kmlussier: which is pretty meaningless in a bre container search, i think.
13:46 kmlussier jeff: Yes, order added makes a little more sense. Actually, a lot more sense.
13:47 tsbere jeff: Should pos be first (when set)?
13:47 jeff step 1: get working proof of concept, step 2: post working branch for eeevil and tsbere to poke holes in ;-)
13:47 jeff tsbere: when set, likely.
13:48 jeff tsbere: haven't given thought to what to do when date-added-to-bucket is desired and pos is set, of course.
13:48 tsbere jeff: note that I am not sure anything ever sets that right now, but I still figure it may be a good thing to throw in there if you are doing the work to add other sorting.
13:48 jeff tsbere: is anything UI-wise currently setting pos?
13:49 jeff one challenge is that i want to ORDER BY a field from a table that is CTE'd with an alias that i don't have the ability to predict -- determining where to store that for later use right now.
13:50 jeff maybe stuffing it someplace in the queryparser object -- seems logical, just not certain yet. getting my feet wet with QueryParser internals (after an initially aborted attempt a few weeks back :-)
13:52 tsbere jeff: For added fun, what about when someone jams two containers into one search? >_>
13:52 jeff tsbere: fallback to current behavior.
13:53 jeff tsbere: my proposed change is essentially 'when doing a single-bre-container search, "Relevance" means "date added to list, descending"'
14:04 krvmga joined #evergreen
14:05 krvmga would someone explain to me as if i'm a five year old what record density means for search returns?
14:05 krvmga feel free to use alphabet blocks as needed
14:06 rfrasur krvmga++ #I can't help but I can empathize.
14:06 krvmga :)
14:06 tsbere krvmga: I think the general gist is "the more the record contains what you searched for the more relevant it is"
14:07 kmlussier krvmga: I can't explain. I can use examples. A keyword showing up five times in a record with 100 words has more density than if it shows up two times in a record with 100 words. However, it shows up five times in a record with 100 words, it has less density than if it shows up five times in a record with 50 words.
14:07 tsbere krvmga: Which means that your search term coming up five times in 10,000 words in the record is less relevant than once in 100 words.
14:07 kmlussier krvmga: What tsbere said.
14:08 krvmga tsbere++
14:08 krvmga kmlussier++
14:08 krvmga i understand now. thank you very much.
14:08 krvmga i thought i understood before but i was missing the x times in x words bit
14:09 krvmga wow, now i want to have cake.
14:09 krvmga whenever i get an "ah ha!", i always want to celebrate.
14:09 kmlussier @dessert krvmga
14:09 * pinesol_green grabs some Pineapple Upside Down Cake for krvmga
14:09 krvmga lol
14:10 * kmlussier is still waiting on her squash pie. ;)
14:10 krvmga as it happens, i _love_ pineapple upside down cake.
14:11 krvmga kmlussier will enjoy squash pie on monday.
14:11 krvmga i will make it happen.
14:11 * kmlussier will make sure she doesn't call out sick Monday.
14:11 krvmga :)
14:11 kmlussier krvmga: Don't let the systems staff see it before I get there. They eat everything.
14:12 krvmga i will be careful of that.
14:26 krvmga one last question about density: how does the system calculate "words"?
14:26 krvmga words in a record, i mean.
14:26 tsbere krvmga: Words in the indexed data is more accurate
14:26 krvmga tsbere++ # excellent
14:43 * eeevil reads up ...
14:44 eeevil jeff: I think a sort axis makes sense. as for date+pos, I'd say "ORDER BY pos NULLS LAST, date"
14:45 eeevil jeff: but, there are use cases for sorting by rel ... search within a container, for instance
14:51 jeff eeevil: ah yes, point.
14:51 jeff (one i had considered and forgotten)
15:06 eeevil crmhttp://shisaa.jp/postset/postgre​sql-full-text-search-part-3.html has an OK overview on ranking. we use ts_rank_cd() (relevant to the post)
15:06 eeevil er
15:06 eeevil krvmga:  http://shisaa.jp/postset/postgre​sql-full-text-search-part-3.html has an OK overview on ranking. we use ts_rank_cd() (relevant to the post)
15:07 krvmga eeevil++
15:07 krvmga thanks
15:07 eeevil np
15:09 * dbs shamelessly points at http://stuff.coffeecode.net/2012/pgopen_fulltext/ for an overview of full-text search in postgresql in general
15:10 dbs very shallow on the differences between ts_rank and ts_rank_cd though.
15:11 kmlussier If memory serves me correctly, the stock PO JEDI Template now uses the vendor SAN instead of the name, so http://docs.evergreen-ils.org/2.6/_troub​leshooting.html#_po_jedi_template_issues might be obsolete?
15:11 krvmga dbs++
15:11 kmlussier But it might not be a bad idea to add a reminder to update the template, because I don't think the most current PO JEDI template was ever included in upgrade scripts.
15:12 krvmga i am enjoying both of these articles.
15:15 krvmga even though i occasionally feel like i'm trying to gnarfle the garthok.
15:17 phasefx twas brillig, and the slithy toves
15:35 kmlussier1 joined #evergreen
15:44 jeff * [new branch]      container_date_sort -> user/jeff/container_date_sort
15:44 jeff basic proof of concept, but it seems to work okay.
15:44 jeff and hopefully the method i used wasn't too evil.
15:46 jeff haven't tried breaking it too much yet.
15:46 jeff that's forward-ported to master from testing on 2.5
16:11 jboyer-laptaupe phasefx: Do you think you could pull out a memory about a line of code you wrote 8 years ago? :D
16:11 mceraso joined #evergreen
16:11 bshum joined #evergreen
16:12 phasefx jboyer-laptaupe: maybe
16:12 phasefx print "hello world\n";
16:12 jboyer-laptaupe I've gotten a question about changing the Type of a receipt in the receipt editor. Apparently that drop-down was enabled at some point in the past (at least here) but if we made any changes to enable it they never hit git.
16:13 jboyer-laptaupe Do you know if there's a reason that the type of a receipt shouldn't be changed? The svn commit log where it was disabled got cut short in the transition to git.
16:14 jboyer-laptaupe It's an easy one-line change, but if it's going to break things I'd rather leave it be.
16:14 phasefx IIRC, the only role that type plays is in picking the test data for the preview pane. It's informational only
16:15 phasefx I may had delusions in the past of letting you switch to different test data sets
16:15 phasefx have had
16:16 rfrasur_ joined #evergreen
16:16 jboyer-laptaupe Hmm. I may need to see examples of what people are talking about here then. Someone wants to add billing info (balance_owed, etc.) to items_out, which I don't think will fly, though they claim it worked in the past.
16:16 phasefx jboyer-laptaupe: what would you imagine the behavior might be if you could change the type?
16:17 jboyer-laptaupe I didn't think it did anything, I'm told that it would allow you to pull in, say, billing macros when you're actually printing checkout or items_out.
16:17 phasefx jboyer-laptaupe: the template does get a fleshed patron object from Items Out.. may be possible to get to billing data via javascript there
16:19 jboyer-laptaupe Would it have to run in the staff client, or could it be included with the custom_print OU setting?
16:20 jboyer-laptaupe Basically by that I mean would we have to make code changes centrally or just tell libs "put this stuff in your receipts"
16:21 phasefx if you have custom_print using %receipt.html%, then you should still be able to use javascript stuff in the template.  Not so sure about %receipt.txt%
16:21 phasefx of course, you can't do javascript stuff so directly anymore
16:21 akilsdonk_ joined #evergreen
16:23 phasefx jboyer-laptaupe: hrmm, I'm thinking you may have to edit print.js and provide a custom macro
16:23 hbrennan I could use some help figuring out permissions to edit things in Library Settings...
16:23 jboyer-laptaupe That's what I was thinking it might take in the end.
16:24 phasefx jboyer-laptaupe: you see the examples where it's doing stuff like referencing params.patron.first_given_name()..  that patron object is fleshed, but I don't know how well fleshed
16:24 hbrennan I am trying to set up online patron self-registration, but can't edit the fields. I got the UPDATE_ORG_SETTINGS, but ti still isn't letting me
16:25 phasefx jboyer-laptaupe: if .billable_transactions() is fleshed, then you're in business
16:25 jboyer-laptaupe I'll keep poking around to see what people really want and how badly they want it.
16:25 jboyer-laptaupe Thanks! phasefx++
16:26 phasefx hbrennan: I'll give it a poke with a minimal account
16:27 hbrennan Thanks
16:27 hbrennan I just looked and UPDATE_ORG_SETTING is only set to branch, but that's all we have and all I'm trying to set up
16:28 phasefx you mean UPDATE_ORG_UNIT_SETTING_ALL?
16:28 hbrennan I don't see one that says all
16:28 hbrennan I'm just looking in my patron screen though
16:28 phasefx I don't see UPDATE_ORG_SETTING :(
16:28 hbrennan haha
16:28 hbrennan oh boy
16:29 hbrennan Maybe it's different if you're looking in Admin > Local > Permissions?
16:30 hbrennan I don't have permission to view the permissions, except in my patron acct under Other
16:30 phasefx okay, I see UPDATE_ORG_SETTING now
16:31 hbrennan Isn't that what I need?
16:31 phasefx well.. it's a pre-requisite
16:31 phasefx the settings themselves may be configured to use more specific permissions
16:31 phasefx what's a specific setting you're interested in?
16:32 hbrennan Actually, things are stranger.. I see a checkbox for my acct that says VIEW_PERMISSION, yet it's grayed out under Admin
16:32 hbrennan that's a whole other story I guess
16:32 hbrennan I want to get to everything to set up the patron self-registration
16:32 hbrennan which should all be in Library Settings
16:33 phasefx I see a opac.self_register.timeout, aka Patron Self-Reg. Display Timeout
16:33 phasefx opac.allow_pending_user aka Allow Patron Self-Registration
16:34 hbrennan OPAC: Allow Patron Self-Registration
16:34 hbrennan a bunch under OPAC
16:34 phasefx opac.pending_user_expire_interval => Patron Self-Reg. Expire Interval
16:34 hbrennan and some GUI
16:34 hbrennan to edit the form
16:34 phasefx so I don't see any special perms for those in stock
16:35 hbrennan No, sorry, those are some of the Library Settings I need to edit
16:35 * phasefx will try it with his test user
16:35 hbrennan so I need more permissions besides just UPDATE_ORG_SETTINGS
16:35 phasefx maybe, not sure yet
16:36 hbrennan someday I'll create a list of "If you want to do this" you need these permissions at these levels
16:36 phasefx alright, so I created a Volunteer and granted UPDATE_ORG_SETTINGS at Branch level
16:36 hbrennan okay
16:37 hbrennan A volunteer is standard patron but with no late fees
16:37 hbrennan just FYI :)
16:37 phasefx a stock Volunteer, that is, which is a staff member in this case
16:37 hbrennan oh, okie dok
16:38 phasefx and.. I see the settings, but get nothing in the context menu, so can't change anything
16:39 phasefx alright, so what are we missing...
16:39 hbrennan I can type things in the context and value and hit save, but it doesn't update
16:39 hbrennan or throw out any messages
16:39 phasefx got VIEW_ORG_SETTINGS ?
16:40 hbrennan Yes, at consortium level
16:40 hbrennan but this is where that "have VIEW_PERMISSIONS" thing comes in
16:40 hbrennan because that is checked for me
16:40 hbrennan but I can't get to Admin > Server > Permissions
16:41 hbrennan So the checked permissions that I see aren't lining up with what I can actually do
16:41 tsbere UPDATE_ORG_UNIT_SETTING_ALL would allow editing everything....otherwise I thought you needed specific update permissions as defined on the setting types
16:41 hbrennan Okay, so that must be under permissions ( the full one)
16:41 phasefx okay, if you don't have UPDATE_ORG_UNIT_SETTING_ALL, then you need a specific permission I think, but only certain settings might have specific permissions
16:42 hbrennan can you check if there is a permission setting to view permissions that is different, such as one with an ALL
16:42 hbrennan ?
16:42 phasefx I suspect UPDATE_ORG_SETTINGS is cruft
16:42 phasefx hbrennan: not sure I'm following
16:43 tsbere phasefx: I agree on that, the only things that reference it in master are the 1.6.1-2.0 upgrade script, seed values, and the 0026 upgrade script
16:43 hbrennan Are you looking at permissions under Admin > server > Permissions?
16:43 phasefx hbrennan: no
16:43 hbrennan phasefx: Hmm, where are you?
16:43 phasefx to see whether my test user had a permission or not, I was using the User Perm Editor
16:44 hbrennan in your "patron" info?
16:44 phasefx well, I went in through the Admin menu, but through the patron display is an option
16:44 hbrennan okay
16:44 hbrennan and those show different options than on mine...
16:44 hbrennan does this have to do with my permission group maybe?
16:44 phasefx hbrennan: so tsbere confirms, UPDATE_ORG_SETTINGS does nothing
16:45 hbrennan haha, thanks tsbere
16:45 phasefx hbrennan: so you need UPDATE_ORG_UNIT_SETTING_ALL.. and if that's too powerful, then you have to create specific permissions for the settings you're wanting to allow access to, and grant those permissions instead
16:45 phasefx and configure those settings to use those permissions
16:45 hbrennan I should have no problems getting that
16:46 hbrennan on our old system I had the highest level
16:46 hbrennan we're trying something new with EG
16:46 hbrennan but it's causing a lot of problems with time tracking down permissions
16:47 phasefx hbrennan: I took a peek at your system, no permission group has that permission, but one user does
16:47 hbrennan One more thing.. since you see more than I can, is there another setting for VIEW_PERMISSIONS?
16:47 hbrennan Because that is checked, but again, not letting me view permissions
16:47 hbrennan seeing the whole list of options would help me figure out what i needed
16:48 hbrennan but I'm blind to some of them
16:48 phasefx hbrennan: your Staff group (and descendents) has VIEW_PERMISSION at consortial level
16:49 hbrennan yep, but I can't see permissions in Admin > Server > Permissions
16:49 hbrennan it's grayed out so I can't even click on the menu item
16:49 hbrennan I can get to Permission Groups
16:49 phasefx ah
16:49 hbrennan so there must be another permission to view permissions
16:49 mceraso joined #evergreen
16:50 bshum joined #evergreen
16:50 hbrennan perhaps VIEW_PERMISSIONS_ALL
16:50 phasefx a UI perission
16:50 hbrennan yes
16:50 hbrennan just to see the list that you can see
16:50 hbrennan because UPDATE_ORG_UNIT_SETTINGS_ALL is not on my list to see
16:51 phasefx hbrennan: you need one of these: CREATE_PERM DELETE_PERM UPDATE_PERM
16:51 phasefx in order to have that menu option enabled
16:51 phasefx maybe all of them, but I think just one
16:52 hbrennan ok, and then that sounds like I can just set my own permissions
16:52 hbrennan Which would be fine with me
16:53 hbrennan I already have direct server access
16:53 hbrennan I just have very limited staff client access
16:53 hbrennan I'm all backwards
16:54 phasefx hbrennan: give yourself the EVERYTHING permission and toggle the super_user flag on your account :)
16:54 hbrennan woohoo
16:54 phasefx though EVERYTHING isn't quite EVERYTHING like it used to be
16:54 hbrennan Honestly I don't want everything, then I'm to blame :)
16:55 hbrennan But it is a little silly that I can break the db, but I can't turn on patron self-registration
16:56 hbrennan I'll brb.. going to catch someone to get me these permission so I can give you feedback as to whether it works
16:57 phasefx hbrennan: remember to log out and back into the staff client after your permissions have changed
17:00 mmorgan phasefx: earlier you said once you have UPDATE_ORG_UNIT_SETTING_ALL.. , you have to create specific perms for individual settings. How is that done?
17:00 tsbere mmorgan: the _ALL one skips the individual permission bit
17:01 mmorgan I assume you add a permission, but how do you know what to call it?
17:01 tsbere mmorgan: Otherwise, make a permission, open up the org unit setting types editor, and assign it as the "update perm" for the setting
17:01 tsbere mmorgan: The name isn't important (it used to be, it isn't now). Traditional naming is UPDATE_ORG_UNIT_SETTING.name where name is the org unit setting type name
17:01 phasefx mmorgan: you can call it anything that makes sense to you, but it'd be good to use a scheme that wouldn't collide with stock permissions
17:01 phasefx something like  NOBLE.specific_setting_perm
17:01 mmorgan Ah ok, I see.
17:02 tsbere mmorgan: MVLC has at least one permission that is assigned to multiple setting types. 21 of them, in fact. And I believe I started it as MVLC_whatever. Most of our other custom perms follow the UPDATE_ORG_UNIT_SETTING.name convention.
17:02 mmorgan I was missing the part in the org unit setting types editor.
17:03 hbrennan Ahh, so that's where CREATE_PERM would come in handy tsbere
17:03 mmorgan Thanks. I may have known that at one time, but not anytime recently ;-)
17:03 mmorgan tsbere++ phasefx++
17:04 hbrennan Okay, I can see permissions.....
17:04 hbrennan and I can edit Library Settings!
17:04 hbrennan Yay! phasefx++ tsbere++
17:05 hbrennan And for the record, I only needed one of the ____PERM permissions to access Admin > Server > Permissions
17:06 hbrennan so Allow Patron Self-Registration is true.....
17:06 hbrennan but where is the link?
17:06 hbrennan haha
17:06 phasefx hbrennan: in the OPAC footer, with a stock skin
17:07 hbrennan It must be commented out perhaps? It's not showing in the OPAC
17:07 hbrennan Opening the db....
17:08 hbrennan It's not listed, which isn't a problem because I can add it
17:08 hbrennan problem is, what's the URL?
17:08 hbrennan There are some steps missing from the instructions
17:08 kmlussier hbrennan: Did you refresh?
17:08 Bmagic I am sure this is common but im not sure how to handle this. When reingesting the bibs I am getting dupliate tcn_value errors. When I query the database for tcn_value!=split_part(spli​t_part(marc,'<controlfield tag="001">',2),'<',1)   I get 3/4 million rows..... So this is probably something someone has encountered before
17:08 phasefx hbrennan: your customer footer.tt2 is lacking what's in the stock footer.tt2
17:09 phasefx s/customer/custom/
17:09 hbrennan ahhh okay
17:09 kmlussier @praise phasefx
17:09 * pinesol_green the upgrade came off brilliantly, and it's all because of phasefx
17:09 kmlussier It's true. I've seen many upgrades come off brilliantly because of phasefx.
17:11 hbrennan I broke the OPAC
17:11 hbrennan haha
17:11 phasefx hbrennan: if you fire off a support ticket real quick I can fix it for you :)
17:11 hbrennan Well, I deleted the chunk
17:11 hbrennan I always say, I break things often but I know how to back up a step!
17:11 phasefx hbrennan++
17:12 hbrennan Because that chunk is a little different I'm not sure how to enter it
17:12 hbrennan [% IF ctx.get_org_setting(         ctx.physical_loc || ctx.aou_tree.id, 'opac.allow_pending_user') %]     <a href="[% mkurl(ctx.opac_root _ '/register') %]">[%          l('Request Library Card') %]</a> &nbsp;|&nbsp;     [% ELSE %]
17:12 hbrennan this whole piece
17:12 phasefx there's a bit more following the ELSE
17:12 phasefx an alternative link.  ultimately, I would remove the ELSE and the link following it, but keep the END
17:12 hbrennan I see an example
17:12 hbrennan oh ok
17:12 hbrennan the end
17:12 hbrennan let's try that
17:13 hbrennan always good to make changes to the OPAC database at 1:15p
17:13 phasefx so basically you have code there that looks like [% IF %] [% ELSE %] [% END %]
17:13 mmorgan Better than at 5:00 on a Friday :)
17:13 hbrennan haha yep mmorgan++
17:13 hbrennan okay, took out the ELSE
17:14 hbrennan have the END
17:14 hbrennan didn't break the OPAC
17:14 hbrennan but no link
17:14 phasefx the other thing going on there is that it's looking for the permission at a certain context
17:15 phasefx if the physical_loc URL param exists, or if it exists as a cookie, it'll use that org and look for the corresponding setting.  otherwise, it'll look at the top of the Consortium for the setting
17:15 phasefx so your setting, what org did you add it to?
17:15 hbrennan Allow self-registration? Branch
17:15 phasefx s/permission/setting/
17:15 hbrennan so I need that code in the ||?
17:16 hbrennan Oops, that's a no
17:16 mmorgan left #evergreen
17:16 phasefx hbrennan: I would move the setting to the consortium, if you want it to always be on
17:17 phasefx alternately, you could just add the link and skip the whole IF/END part
17:17 phasefx though I don't know if the interface itself looks at the setting
17:17 hbrennan We only have the one branch, so I'm not sure it matters?
17:19 phasefx hbrennan: right, so use Consortium instead of Branch in this case.  It takes extra effort to make the OPAC think it's in a Branch context over the Consortium
17:19 phasefx did they give you your UPDATE_ALL permission at the Consortium level? :)
17:19 hbrennan So where do I put that 3-letter code in this:    [% IF ctx.get_org_setting(         ctx.physical_loc || ctx.aou_tree.id, 'opac.allow_pending_user') %]
17:20 phasefx no need to modify that at all with a 3-letter code
17:20 hbrennan okay
17:20 phasefx just change the Context library for the setting to the top of the org tree
17:20 hbrennan I'm only at branch for UPDATE
17:21 hbrennan so for the setting on our branch level shows
17:21 hbrennan okay, brb
17:23 Bmagic Anyone have that tcn_value difficulty when reingesting biblio.record_entry ?
17:25 hbrennan Okay, I have permission to set Library Settings at consortium level
17:25 hbrennan but when I edit the change from branch to consortium and save this weird message shows in blue at the top of the page
17:25 hbrennan he setting you edited is not the currently chosen org unit, therefore the changes you made are not visible.
17:26 kmlussier hbrennan: That's normal.
17:26 hbrennan okay
17:26 hbrennan thanks
17:26 hbrennan what a weird way to display a message
17:26 hbrennan it wasn't a popup and it faded away on its own
17:27 hbrennan ohhh now I see the Context Location
17:28 hbrennan Ah-ha! Link appears!
17:28 hbrennan Yikes, just like that
17:28 hbrennan ah, it's live.. better turn it back off
17:29 kmlussier ha ha...after all that hard work. :)
17:29 phasefx :D
17:29 hbrennan phew
17:30 phasefx 30 self registrations later...
17:30 hbrennan thank you so much phasefx!
17:30 hbrennan phasefx++
17:30 phasefx you're welcome
17:30 hbrennan I'll give you extra praise in my feedback from the serials predictions
17:30 hbrennan Phasefx is my hero this week!
17:32 hbrennan We are still having people fill out little index cards with all their info and typing it in, and then storing them in a card catalog
17:32 hbrennan after I get this self-registration up and running, no more!
17:32 phasefx huzzah
17:32 hbrennan Thank you, thank you! My dog is in the car so I better get to lunch
17:38 Bmagic Is the preferred state of biblio.record_entry to have the 001 tag be equal to the DB id and tcn_value the same?
18:16 kmlussier joined #evergreen
18:36 bshum joined #evergreen
18:36 mceraso joined #evergreen
18:36 pastebot joined #evergreen
18:36 book` joined #evergreen
18:36 egbuilder joined #evergreen
18:36 jeff__ joined #evergreen
18:36 dreuther joined #evergreen
18:36 bradl joined #evergreen
18:36 pinesol_green joined #evergreen
18:36 hopkinsju joined #evergreen
18:36 Bmagic joined #evergreen
18:36 graced joined #evergreen
18:36 eeevil joined #evergreen
18:36 phasefx2 joined #evergreen
20:48 PJ_ joined #evergreen
20:50 PJ_ hi, I just installed opensrf. When i try to switch to user opensrf I receive this error 'bash: PREFIX: No such file or directory' I would be grateful if someone can help me please.
20:58 PJ_ I should have mentionned that I am using ubuntu 12.04 Precise and opensrf 2.30
20:59 jeff PJ_: sounds like you may have echoed something literally into the .bashrc file for the opensrf user, instead of replacing PREFIX with something like /openils
20:59 jeff PJ_: if you're familiar with a text editor, I'd change to the opensrf user and edit the ~/.bashrc file -- look at the end of the file
21:01 jeff you probably have something like this, which is incorrect: export PATH=\$PATH:/<PREFIX>/bin
21:01 jeff that line should look like: export PATH=$PATH:/openils/bin
21:02 jeff in the OpenSRF README file, this would be covered by the part ``substituting <PREFIX> with the value you passed to `--prefix`''
21:03 PJ_ I will try
21:04 PJ_ can you tell me where is bashrc located?
21:07 PJ_ never mind I was able to edit it using gedit ~/.bashrc from root
21:10 PJ_ <jeff> I edited the file, but there is nothing of the sort of what you mentionned.
21:14 PJ_ <jeff> when I try sudo su - opensrf I receive a similar error '-su: PREFIX: No such file or directory'
21:25 PJ_ <jeff> I just deleted and recreated the user opensrf. If you can help me type PREFIX in the the echo command properly, I think this might fix it
21:26 PJ_ <jeff> in the configure line I entered exactly what was written './configure --prefix=/openils --sysconfdir=/openils/conf
21:28 timhome_ joined #evergreen
21:30 jcamins PJ_: I'm just guessing, but you might be looking at the wrong .bashrc. You shouldn't really be using root for anything.
21:31 jcamins In fact, I'm pretty sure the instructions said to use the opensrf user when I used them (which was, granted, months ago).
21:31 jcamins ... and in fact you said you were using the opensrf user.
21:32 jcamins So take a look at that user's .bashrc file, and see if you can spot the literal PREFIX.
21:32 jcamins (aside: Friday night is not a good time for support, as demonstrated by the fact that you're getting advice from someone who doesn't use EG and is only around because he doesn't feel like cooking plantains)
21:34 jeff PJ_: the .bashrc file in question would be the opensrf user's .bashrc, which would be ~/.bashrc when you are the opensrf user, or ~opensrf/.bashrc when you are not.
21:35 jeff PJ_: the README says ``substituting <PREFIX> with the value you passed to `--prefix` in your configure command', which means you would use the command: echo "export PATH=\$PATH:/openils/bin" >> /home/opensrf/.bashrc
21:35 * jeff steals jcamins' plantains
21:35 jcamins jeff: as long as you leave enough for our dinner tomorrow... and cook them for me.
21:37 PJ_ you're right, that's what I found at the end export PATH=$PATH:/<PREFIX>/bin export PATH=$PATH:/openils/bin export PATH=$PATH:/openils/bin export PATH=$PATH:/openils/conf
21:40 PJ_ <jcamins> I wonder why is the same line repeated 3 times? should I leave them like this?
21:43 PJ_ <jcamins> <jeff> could you pls confirm what value should I substitute for prefix in bashrc, knowing that my configure line looked like this ''./configure --prefix=/openils --sysconfdir=/openils/conf'
21:43 jeff PJ_: it would be ideal to have only one instance of the correct line, and no others.
21:44 jeff export PATH=$PATH:/openils/bin
21:44 jeff PREFIX and /openils/conf are incorrect.
21:46 PJ_ <jeff> <jcamins> Excellent! Now I can change the user without any error messages, thanks to your great support
21:48 PJ_ <jeff> <jcamins> I have one more issue with opensrf installation at the very last step, where you do srfsh I get this error Unable to bootstrap client for requests
21:50 PJ_ <jeff> <jcamins> ejabberd is running as you can see '/etc/init.d/ejabberd start Starting jabber server: ejabberd already running.'
21:54 PJ_ <jeff> <jcamins> in step 12 of the installation when I try 'osrf_ctl.sh -l -a start_all' I receive ' /openils/bin/osrf_ctl.sh is deprecated.  Use osrf_control instead'
21:57 PJ_ ' osrf_control -l --start-all' seems to work though.
22:04 timhome joined #evergreen
22:14 PJ_ I guess it's time to go now, thanks for your excellent support.
22:15 jeff PJ_: you're welcome! happy adventures!
22:15 * jeff gets done clearing a sorter jam and heads back home

| Channels | #evergreen index | Today | | Search | Google Search | Plain-Text | summary | Join Webchat