Log of the #blacklight channel on chat.freenode.net

Using timezone: GMT-05:00
* bess joins01:03
* bess leaves01:13
* erikhatcher leaves01:26
* erikhatcher joins01:29
* erikhatcher leaves07:32
* erikhatcher joins08:43
* jaron joins08:53
* cbeer joins09:00
* BillDueber joins09:04
* bess joins09:40
* jamieorc joins09:50
* bess leaves10:57
* erikhatcher leaves12:37
* jvenner joins13:01
Morning all, I have a hopefully small configuration question, I want to solr instance to be on a separate machine. I can get the port configuration changes to take, but blacklight will only ever connect to localhost, not the host I specify13:02
I am using the 2.3 released version13:03
<jaron>you've changed config/solr.yml?13:04
<jvenner>let me double check, I searched for the port number and changed everything I could find :)
<jaron>there you can set solr for development, test and production13:05
<jvenner>that was the one place I missed
nothing like missing the obvios
* g8tor joins13:12
<jvenner>next RFTM type question, where do I set the ruby http server port, as I want to run 2 instances on my machine, so I would like one on 3000 and one on 300113:13
<jaron>in development?13:15
script/server -p 300113:16
<jvenner>I don't speak ruby, and thank you!13:21
<jaron>jvenner: you'll probably want to look into passenger for a production deployment, but in development script/server is just fine
<jvenner>makes sense
* bess joins13:28
<g8tor>hello all13:54
what is the good word is 2.4 official?13:55
<jaron>the 2.4.0 template isn't changed to work so I think not. just tried a template install from the docs.13:57
<g8tor>jaron: what didn't work?13:59
<jaron>rails ./blacklight-app -m http://github.com/projectblacklight/blacklight/raw/v2.4.0/template.rb
<g8tor>will ook at it
oops look at it that is
<jaron>you can take a ook at it while you're looking14:00
<g8tor>jaron: I just ran a fresh install (installed everything as a first time user including blacklight-jetty & blacklight-data) ran the rake task to index the demo data, started the devserver with ./script/server -p 3001 and BAM BL Goodeness. What didn't work for you?14:05
<jaron>using the 2.4.0 template as above? 14:06
<g8tor>yes
<jaron>ok, tried it again and it is working14:08
huh
<g8tor>cool
just for kicks what was the issue you ran into?14:09
<jaron>had to do with installing the plugin, so early on14:10
* Naomi joins14:22
* ndushay leaves
<g8tor>hmmm 14:35
* jaron leaves14:45
* jarona joins
* jarona leaves14:51
* jaron joins14:53
* bess leaves15:03
* darthmolly joins15:12
* cbeer leaves15:14
* cbeer joins
* erikhatcher joins15:50
* erikhatcher leaves16:21
* bess joins16:42
* darthmolly leaves17:27
* cbeer_ joins17:28
* cbeer_ leaves18:05
* cbeer_ joins18:20
<jvenner>I have an output formatting problem with 2.3 released, I have a large set of fields that I display, and when a particular field does not have a value, the values after that field are shifted up one18:36
I was goinng to try just putting an   in the <dd></dd> block but I can't find the file that controls it, or don't know how to have the file compiled so it is loaded18:37
is there something i need to do to cause the html.erb files to be loaded or changes recognized?18:45
* cbeer_ leaves18:51
* jamieorc leaves18:58
* erikhatcher joins19:02
<bess>jvenner: are you running in production or dev mode? 19:03
<jvenner>dev I believe
I don't actually know ;)
<bess>jvenner: okay, tell me about how you're running it19:04
<jvenner>ruby script/server
<bess>if you're running it in production mode by mistake then you have to restart everything before changes will show up
so if you're just running it from the command line that should be in dev mode
<jvenner>I do restart each time to be safe
<bess>tell me what the error you're seeing is
what are you trying to do that's failing?
<jvenner>The problem I have is that I have a lot of fields, that I display in my results and some of the field values are a single new line or other non empty but non visible data19:05
and the alignment between the label and the values is getting messed up, with the values shifting upward relative to the labels
<bess>oh, so it's a CSS problem it sounds like? 19:06
<jvenner>?
I have been trying to put a random but distinct character in every place a <DD>XXX</DD> is output in the hopes of finding the place that renders the search results - to no apparent success
<bess>jvenner: wow, that's really weird19:07
<jvenner>newbie luck !
<bess>jvenner: you don't have an address where I could look at what's happening do you?
<jvenner>I can email you a page source
but no, buried internally
<bess>jvenner: what are you indexing? it shouldn't matter but just curious. Marc records? or something else?
<jvenner>and I have to scrub the page I send you a bit19:08
<bess>yes send me a page source
<jvenner>what are marc records?
I am indexing profile data for users
<bess>jvenner: okay, that answers that question then. :)
jvenner: marc records are bibliographic records that libraries use. Most people using blacklight are using it for marc records, but that certainly isn't a requirement. 19:09
<jvenner>ahh
No, I am using it for data understanding
<bess>great!
<jvenner>on itt's way19:12
This provides a very nice way to understand large datasets
or at least think you are understanding :)
Is there any magic to cause template recompilation or anything, or changes I make should just appear?19:16
<bess>generally changes you make should just appear19:19
jvenner: what version are you using?19:20
2.4?
<jvenner>2.3 released19:24
* g8tor leaves19:25
<bess>would you mind trying 2.4? It's almost released and it should be nice and stable
<jvenner>how different is it? since i don't speak ruby or know the patterns, it is labor intensive getting the distro to work with my data sets19:26
<bess>ah
it shouldn't be very different
your current index should work, actually19:27
oh, but have you made changes to the solr schema?
so maybe in that case you wouldn't want to try upgrading if you don't know ruby or rails very well
so what file are you trying to change?
one of the views?
<jvenner>I have several completey custom solr schema's
<bess>okay
so let's try to troubleshoot the 2.3 version then19:28
so give me the path of the file you're trying to change
<jvenner>I just want my values to line up with the labels in the search results ;)
<bess>so then that's just a CSS problem right?
are you applying any custom CSS?
<jvenner>no
<bess>do you know how to edit the CSS?
<jvenner>btw, I will be happy to help you with hadoop in exchange for this
I do have basic css knowledge
<bess>okay... I've never really used hadoop19:29
* erikhatcher leaves
<bess>it sounds to me like the problem you're having is a CSS problem, not a blacklight or solr or rails problem
<jvenner>Okay, my assumption which may be incorrect is that empty <DD></DD>'s are getting misplaced
<bess>hmm
<jvenner>I changed every place I found a DD block that appeared to be a template 19:30
<bess>oh, and you're trying to artificially populate the empty <DD>'s right?
now I understand what you're trying to do
but when you put values in there they aren't showing up on the screen, right?
<jvenner>yes19:31
which bothers me no end
<bess>can you get any other values to display on the screen?
this should be easy to track down
<jvenner>no
<bess>tell me the path of the file you're editing
<jvenner>./vendor/plugins/blacklight/app/views/catalog/_index_partials/_default.html.erb:7: <dd><%= h document.get(solr_fname) %>  X</dd>
./vendor/plugins/blacklight/app/views/catalog/_show_partials/_default.html.erb:7: <dd><%= document[solr_fname] %>  B</dd>
./vendor/plugins/blacklight/app/views/catalog/_show_partials/_ead/_show.xsl:817: <dd><xsl:apply-templates select="child::*[2]"/> M</dd>
./vendor/plugins/blacklight/app/views/catalog/_show_partials/_ead/_show.xsl:1199: <dd><xsl:apply-templates select="ead:item"/> N</dd>
./vendor/plugins/blacklight/vendor/gems/rdoc-2.3.0/lib/rdoc/markup/to_html.rb:397: " </dd>"19:32
<bess>you're editing *all* of those files?
<jvenner>I put a different letter in, so I could see which one might take19:33
<bess>which file are you editing to try to get a string to show on the scren?
ah
so let's pick one place to track down. :)
what's the path of the URL you're looking at?
<jvenner>so, the screen in question is themain search screen
<bess>in other words, what controller and action are we looking for
<jvenner>I put a keyword in
and I get a list of search results19:34
<bess>okay
can you paste the url, just so I can see it?
<jvenner>in each result are a list of field labels and field values
<bess>I understand I can't actually visit the url
so that's the "index" action
<jvenner>from the url you can probably guess what we are working on ;)
<bess>let's focus on it
<jvenner>http://flexo:3001/catalog?q=sex&qt=search_text&per_page=10&commit=search
<bess>and you haven't customized any of the routes, right? 19:35
if you don't know what I mean by that question then you probably haven't done it. :)
<jvenner>I don't even know what a route is19:36
only think I have touched in the code is what the 'id' field for the documents are
thing
an the blacklight_config.rb
and
<bess>so, here's a url http://virgobeta.lib.virginia.edu/catalog?q=jefferson&qt=search19:37
the controller is "catalog"
so we know its views are in app/views/catalog19:38
<jvenner>in my case at values would be shifted up
1970 might be in lined up with format
<bess>and then w/in catalog you should see a folder called "index"
do you?
excuse me, not a folder
you should see index.html.erb19:39
<jvenner>app/views is empty in th rails dir
<bess>okay, so a bit of background19:40
you installed the demo app, right?
the demo app consists of a mostly blank rails application with a plugin that provides behaviors
<jvenner>./rails/vendor/plugins/blacklight/app/views/bookmarks/index.html.erb
./rails/vendor/plugins/blacklight/app/views/catalog/index.html.erb
./rails/vendor/plugins/blacklight/app/views/saved_searches/index.html.erb
./rails/vendor/plugins/blacklight/app/views/search_history/index.html.erb
./rails/vendor/plugins/blacklight/app/views/user_sessions/index.html.erb
./rails/vendor/plugins/engines/test/plugins/test_assets/app/views/assets/index.html.erb
are the only index.html.erb19:41
probably user error
at insallation
demo app
then hacked on it
<bess>no no
that's right
wait, what?
hang on, I'm looking at a fresh install19:42
I think you're missing a file
sorry, I'm on slow wifi here
takes me awhile to pull up a webpage
<jvenner>slow internet is hard19:43
<bess>this is what you should have:19:44
http://blacklight.rubyforge.org/svn/releases/plugins/blacklight-plugin-2.3/app/views/catalog/
see http://blacklight.rubyforge.org/svn/releases/plugins/blacklight-plugin-2.3/app/views/catalog/index.html.erb ?
are you telling me you don't have that file?
oh, no, you do have it, right?
<jvenner>i think i have thay
<bess>okay, great19:45
try editing something about that file and see if it shows up in your search results
this will edit the HTML container that surrounds your individual search results
<jvenner>k19:46
<bess>did that work? 19:47
<jvenner>not having any luck, trying larger changes19:49
do I need to restart?
<bess>if it isn't working then restart
if a restart fixes it then that tells us something too19:50
<jvenner>no effect whatsoever19:52
with or without restart
<bess>dang
that's really weird, dude19:53
so try this
<jvenner>I am clearly missing some major boat
<bess>how did you install?
I feel like we must be missing something really basic.
<jvenner>It was a while ago
This tree, I cp -rp'd from another tree to serv a different indes
is there some environment variable that tells ruby to look else where, I have been assuming that it works within the tree of the directory I copied it into, but that would explain theproblem19:55
<bess>no there shouldn't be an environment variable19:56
give me a url for a show page19:57
<jvenner>or a path buried in a config file
<bess>oh that could be
<jvenner>http://flexo:3001/catalog?q=sex&qt=search_text&per_page=10&commit=search
<bess>hmmm
<jvenner>I did a quick grep
btw the development log is the file that gets written
<bess>grep for what?
yeah so you're definitely running in dev mode
oh, hmmm
hang on a sec I just had an idea
<jvenner>It states rendering templates within layouts/application then catalog/....19:58
k
<bess>would you mind trying a fresh install with the sample data? 19:59
that would at least give you a known good copy
and then you can start copying over your local changes bit by bit until you break something 20:00
:)
or...
<jvenner>I could just try 2.4 since for this one I only touch the blacklight_config.rb it might be simple
<bess>ok
but wait
just for the record, you aren't supposed to edit the files inside vendor
it should work
<jvenner>oh, do they get copied somewhere?
<bess>but it's bad practice b/c it gets you out of sync w/ the repository
they don't get copied anywhere automatically
do you have anything in 20:01
wait, hang on
<jvenner>am a little mystified over the template expansion, even though I don't speak ruby templates are old hat, I don't understand why my changes don't show up
<bess>give me the FULL path of the index.html.erb file you're editing
give it to me from /
your changes should just show up, your right20:02
the fact that they aren't tells me something deeper is wrong with how you have things set up
I need to know more about what your rails app looks like
you should have
my_rails_app / 20:03
/ app
/ config
<jvenner>http://flexo:3001/catalog?q=sex&qt=search_text&per_page=10&commit=search
<bess>actually, just look here:
http://blacklight.rubyforge.org/svn/releases/demo-app/blacklight-2.3/rails/
<jvenner>oops20:04
/Users/jvenner/work/blacklight-demoapp-2.3-profile/rails/vendor/plugins/blacklight/app/views/catalog/index.html.erb
I launch from reails
rails
the rails directory
is there a simple way to pull 2.4
<bess>no wait
is there anything in  /Users/jvenner/work/blacklight-demoapp-2.3-profile/rails/app/views ? 20:05
<jvenner>no
<bess>dang
okay I'm stumped
<jvenner>empty
ya
this is very odd
<bess>what you're *supposed* to do is put your local overrides there20:06
<jvenner>I can try
copying the changes files there
<bess>so my theory was that someone else had put a local override there, which takes precedence over anything in /vendor
great
follow the same file structure you see in vendor
* cbeer_ joins20:18
<jvenner>I might try dtrace to see if I can follow the file loads
So: anything outside of the<%xxx%> will be passed through as html?
Aha, success20:19
a change appeared
Whee20:21
working
* cbeer_ leaves
<bess>jvenner: really?20:22
<jvenner>really
but the changes are being picked up from the vendor blacklight
area
<bess>so if you override it it works and if you make direct changes to stuff in vendor it doesn't ?
that's WEIRD!
but great that it works now. :)
<jvenner>trying to clean up the blacklight tree and just get my local changes
<bess>so ideally you wouldn't want to make any changes to stuff in vendor20:23
<jvenner>ya, I can't replicate yet but just once replication and your instruction make it possible
I can recopy it form my other tre
from
<bess>b/c the idea is that all your local changes happen in the enclosing app
<jvenner>btw the extra text in the field fixes the alignment issue
<bess>and then you can painlessly upgrade the stuff in vendor to get bug fixes and new features
great, glad that fixes the alignment issue20:24
wow, I learned something. Thanks!
* erikhatcher joins20:27
* bess leaves20:36
<jvenner>Whee all working20:37
thank you so much
* jvenner leaves20:43
* jvenner joins
* bess joins20:44
* bess leaves20:49
* jvenner leaves20:57
* ndushay leaves21:00
* erikhatcher leaves21:19
* cbeer leaves22:44
* rsinger leaves
* jaron leaves
* BillDueber leaves
* cbeer joins22:48
* jaron joins
* BillDueber joins
* rsinger joins
* ndushay joins23:00
* bess joins
* bess leaves23:34
* bess joins23:46
* ndushay leaves23:49
* g8tor joins23:56
Congrats on the 2.4.0 release BL!23:57
* g8tor leaves23:58
<bess>Yay!
* bess leaves00:42
* bess joins01:13
* ndushay joins01:25
* ndushay leaves02:02
* bess leaves02:39

Generated by Sualtam