Closed mark-dce closed 8 years ago
https://github.library.ucsb.edu/ADRL/alexandria/pull/16/files should fix this. (Let me know if you try applying the patch and it doesn't!)
@dunn & @mark-dce - I was able to reproduce the problem on my laptop with the code from master. Alex's patch does fix it.
This is the file that worked: https://raw.githubusercontent.com/curationexperts/alexandria-v2/alex-ttl/config/initializers/hydra_config.rb
From my PR:
Previously we were trying to send
etd_url
andimage_url
as methods toRails.application.routes.url_helpers
, but those are aliases forsolr_document_url
, defined inCurationConcernsHelper
whichurl_helpers
doesn't know about.
Is that a correct diagnosis of the problem?
See https://help.library.ucsb.edu/browse/DIGREPO-491?focusedCommentId=67187&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-67187 however; the commit that introduced this bug was meant to remove the localhost:8080
strings from the .ttl
, and with this patch there are some still remaining. I don't know if that's because of this patch or if Justin's original fix was incomplete.
@dunn I'm not sure what the root problem is yet. I'll have to dig around a little more tomorrow. But I did notice that this change will cause this spec to fail: https://github.com/curationexperts/alexandria-v2/blob/master/spec/controllers/local_authorities_controller_spec.rb#L6-L9
Instead of http://test.host/authorities/topics/#{topic.id}
, it has http://test.host/catalog/#{topic_id}
, so it messes up the path within the TTL itself.
What should the first line of the .ttl
look like for images and ETDs? Something like
<http://alexandria.ucsb.edu/catalog/fk4417762f> a <http://projecthydra.org/works/models#Work>,
?
Per @chrissyrissmeyer we should have catalog records using the lib/ark:/48907/f3pz56x4
form in their .ttl
URLs.
New, hacky patch idea here https://github.library.ucsb.edu/ADRL/alexandria/pull/21
Didn't notice the related ticket until just now: #660
It looks like #660 is a duplicate of this story. I'll close it, and we can work off this story.
Pull request submitted to UCSB repo: https://github.library.ucsb.edu/ADRL/alexandria/pull/35
Just waiting for it to be merged. I'll close this story.
STEPS TO REPRODUCE 1) Make sure you have at least one image in your repo 2) Go to the view page for that image and click on the "Download Metadata" link in the "Tools" box at the right of the screen. EXPECTED BEHAVIOR; The application should display the turtle view of the objects graph ACTUAL BEHAVIOR: The application gives a
NoMethodError in CatalogController#show
- full dump: