Closed jrochkind closed 10 years ago
if I remove my override, things SEEM to be good. I can't fully test refworks export on :3000 on my local machine (firewalls firewalls for callback), I'm going to have to actually deploy to a demo server to fully test it.
sorry for the report involving just my local overrides that had to be updated for new BL.
okay, after fixing that issue, /bookmarks displays. EndNote export works.
But I'm afraid trying to test real live Refworks export against live Refworks, it is NOT working.
Refworks is giving me an error message, it's usual vague "Import Failed." I will debug further, but may not be able to get to it until Monday.
Okay, the callback URL being given to refworks is returning a 406.
Refworks URL:
http://www.refworks.com/express/expressimport.asp?vendor=JH+Libraries&filter=MARC+Format&encoding=65001&url=https%3A%2F%2Fblacklight.library.jhu.edu%2Fblacklight_upgrade%2Fbookmarks.format%3Fencrypted_user_id%3DNVBWa0piQ1ZLeE5ZckgwYkI3TVJxZEJ6b1hFSHhEcW9KUGdZbzQrNEsxVkhmVXJQUWozbEVaOFpzNitmQ0RuNnVlRStGRUt1dWl6T1NTcTN2QXk2alE9PS0tZ0dmbXJzaHlkQ0Fzalovd2pJKytNQT09--60574c8ac03fae4b4ea50192eea7be40c6ddb3fb
Unescaped callback URL:
https://blacklight.library.jhu.edu/blacklight_upgrade/bookmarks.format?encrypted_user_id=NVBWa0piQ1ZLeE5ZckgwYkI3TVJxZEJ6b1hFSHhEcW9KUGdZbzQrNEsxVkhmVXJQUWozbEVaOFpzNitmQ0RuNnVlRStGRUt1dWl6T1NTcTN2QXk2alE9PS0tZ0dmbXJzaHlkQ0Fzalovd2pJKytNQT09--60574c8ac03fae4b4ea50192eea7be40c6ddb3fb
Which results in a 406 with a blank body. Let me check the error logs on that one...
[2014-04-10 16:45:27.756] FATAL ActionController::UnknownFormat (ActionController::UnknownFormat):
actionpack (4.1.0) lib/action_controller/metal/mime_responds.rb:440:in `retrieve_collector_from_mimes'
actionpack (4.1.0) lib/action_controller/metal/mime_responds.rb:256:in `respond_to'
blacklight (5.4.0.rc1) app/controllers/bookmarks_controller.rb:31:in `index'
Ah, the problem of course is that it's giving Refworks a callback url with bookmarks.format
, that should be bookmarks.refworks_marc_txt
.
I suspect somewhere there's a literal format
that was supposed to be an interpolated varialbe #{format]
or something like that. But I haven't tracked down where that is in the code yet (not even sure which gem it's in), and am prob about to leave for the day.
Thanks. Fixed in 8ed1ba71c98d8e184f06be57ba36bbeae463c40b.
Thanks! is there a new rc or other release, or to use/test this fix should I be pointing at github master?
blacklight master
and the blacklight-marc pull request.
blacklight-5.4.0.rc1
/blacklight_marc-19a26074dfed (which should be head of blacklight54compat branch of blacklight-marc)
When I view /bookmarks with any items in them at all, in my local app, I get an exception:
Showing /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/blacklight_marc-19a26074dfed/app/views/bookmarks/_refworks.html.erb where line #3 raised:
No route matches {:action=>"show", :controller=>"catalog", :format=>"refworks_marc_txt", :id=>nil} missing required keys: [:id]
application trace is just one line:
full stack trace: