IQSS logo

IRC log for #dataverse, 2016-08-26

Connect via chat.dataverse.org to discuss Dataverse (dataverse.org, an open source web application for sharing, citing, analyzing, and preserving research data) with users and developers.

| Channels | #dataverse index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
00:19 djbrooke joined #dataverse
02:57 yoh joined #dataverse
04:03 djbrooke joined #dataverse
07:22 jri joined #dataverse
12:50 andrewSC joined #dataverse
12:50 andrewSC morning all :)
13:13 jo-pol joined #dataverse
13:14 bsilverstein joined #dataverse
13:19 bsilverstein andrewSC: morning!
13:19 andrewSC :)
13:30 andrewSC oh wow, am I reading this right? Are you guys storing the citation html in solr?
13:31 andrewSC because if that's the case, my job just got real lame
13:36 bsilverstein huh, I was under the impression it just indexed it for searching capabilities
13:36 andrewSC possibly
13:37 andrewSC bsilverstein: basically I'm spelunking in the source trying to find the function that actually builds up that citation string on the dataset page
13:37 andrewSC bsilverstein: https://cl.ly/2z1u1l3S2L42/Screen%20Shot%202016-08-26%20at%209.37.34%20AM.png
13:38 andrewSC as well as the card minimal view for search results
13:38 andrewSC because the xhtml is templated, then there's a js call to some api endpoint
13:39 bsilverstein andrewSC: I see what you're sayin, yeah. I haven't personally worked much w/ the solr capabilities as I'm a small fry undergrad dev intern
13:39 andrewSC bsilverstein: ha gotcha
13:39 bsilverstein I'll do some digging around for ya though! and if I've got nothin' before a local Dataverse guru gets to the office I'll find you an answer
13:39 bsilverstein what's the endpoint just outta curiosity?
13:39 andrewSC I appreciate it
13:40 andrewSC bsilverstein: still trying to find that out
13:40 andrewSC it's a var in the js
13:41 andrewSC DataRetrieverAPI.java is the source api file
13:45 djbrooke joined #dataverse
13:52 bsilverstein andrewSC: looking at the DataRetrieverAPI and it seems like it mostly just takes solr queries and gives back some json (presumably for the js to chew on and turn into search results)
13:54 bsilverstein can't really figure what makes the citation string though but I wanna say the body of it is pulled from solr as you suspected. my word is definitely not a guarantee though
13:58 bsilverstein andrewSC: update! there is a copy of the citation html stored in solr under the "citationHtml" attribute
13:59 djbrooke joined #dataverse
14:08 andrewSC bsilverstein: there's a DataCitation.java I'm looking at now that seems to be doing the actual building?
14:08 andrewSC just got back to my computer so I need to dig a little bit more
14:14 bsilverstein andrewSC: yep, looks to be it! were you hoping to modify it?
14:14 andrewSC bsilverstein: yeah I need to
14:15 bsilverstein for something besides adding metadata I'd assume
14:15 andrewSC I need to strip the doi link out since my org isn't using it
14:15 andrewSC doesn't want to use it
14:16 bsilverstein ah gotcha, here's hoping nothing towards the front end breaks if you trim it out!
14:17 andrewSC bsilverstein: it shouldn't the template that actually "displays" it is just that
14:21 bsilverstein the beauty of comma separated citations lol. if you run into any hiccups I'll try n help!
14:26 andrewSC bsilverstein: ty
14:35 djbrooke joined #dataverse
14:49 andrewSC hahaha
14:49 andrewSC so I modified that source file, compiled, then moved the class file over and restarted glassfish...
14:50 andrewSC I've managed to remove the doi link from the dataset view, but not the card view...
14:53 djbrooke joined #dataverse
14:59 andrewSC //System.out.println("_YE_OLDE_QUERY_COUNTER_");  // for debug purposes
14:59 andrewSC the things you find in source code
14:59 andrewSC hahaha
15:00 djbrooke_ joined #dataverse
15:13 djbrooke joined #dataverse
15:22 andrewSC djbrooke: wb
15:25 djbrooke thanks !
15:28 djbrooke joined #dataverse
15:53 djbrooke joined #dataverse
15:55 djbrooke_ joined #dataverse
15:57 andrewSC bsilverstein: got it, the card view citations are actually generated when you index and then stored in solr like I thought. What you need to do is update the index and search beans to not use persistentUrl in the code, then after you've compiled, you need to clear and reindex solr
15:57 andrewSC so now I have no broken doi links, but can still search via doi :D
15:57 andrewSC huzzah
16:06 bsilverstein andrewSC: nice! glad it panned out easily enough
16:06 andrewSC mhmm
16:46 djbrooke joined #dataverse
17:20 jri joined #dataverse
17:32 andrewSC left #dataverse
17:44 djbrooke joined #dataverse
18:23 djbrooke joined #dataverse
18:34 metamattj joined #dataverse
19:01 razor-work joined #dataverse
19:01 razor-home joined #dataverse
19:32 metamattj joined #dataverse
19:38 djbrooke joined #dataverse
20:29 djbrooke joined #dataverse
20:36 djbrooke joined #dataverse
20:44 LyndsySimon joined #dataverse
21:29 djbrooke_ joined #dataverse
21:59 djbrooke joined #dataverse
22:33 donsizemore joined #dataverse

| Channels | #dataverse index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

Connect via chat.dataverse.org to discuss Dataverse (dataverse.org, an open source web application for sharing, citing, analyzing, and preserving research data) with users and developers.