Skip to content

Instantly share code, notes, and snippets.

2017-03-02 12:26:11 [INFO] Started GET "/advanced" for 127.0.0.1 at 2017-03-02 12:26:11 -0500
2017-03-02 12:26:11 [WARN] You are setting a key that conflicts with a built-in method OmniAuth::Strategy::Options#host defined in OmniAuth::Strategy::Options. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
2017-03-02 12:26:11 [WARN] You are setting a key that conflicts with a built-in method OmniAuth::Strategy::Options#login_url defined in OmniAuth::Strategy::Options. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
2017-03-02 12:26:11 [WARN] You are setting a key that conflicts with a built-in method OmniAuth::Strategy::Options#service_validate_url defined in OmniAuth::Strategy::Options. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
2017-03-02 12:26:11 [WARN] You are setting a key t
Gemfile
+gem 'blacklight_advanced_search'
app/assets/javascripts/application.js
+//= require 'blacklight_advanced_search'
app/controllers/catalog_controller.rb
+ include BlacklightAdvancedSearch::Controller
+
+=begin
Instructions:
Been downloading for 3 days and only ~20% through 1 of the 6 FTP sites, so handing on instructions to someone with a dedicated and fast server for download.
See "FTP Access" links at https://eosweb.larc.nasa.gov/datapool
download each:
curl ftp://l5eil01.larc.nasa.gov/ACRIM_III/ACR3L2SC.001/ -o ACR3L2SC.001.txt
get the pathname:
sysops-MacBook-Pro-3% more search_builder.rb
# frozen_string_literal: true
class SearchBuilder < Blacklight::SearchBuilder
include Blacklight::Solr::SearchBuilderBehavior
include BlacklightAdvancedSearch::AdvancedSearchBuilder
self.default_processor_chain += [:add_advanced_parse_q_to_solr, :add_advanced_search_to_solr]
##
# @example Adding a new step to the processor chain
# self.default_processor_chain += [:add_custom_data_to_query]
FINAL: ["baseball basketball",
"_query_:\"{!dismax qf=$title_qf pf=$title_pf}sports\"",
"_query_:\"{!dismax qf=$author_qf pf=$author_pf}Karee Abdul Jabbar\"",
"_query_:\"{!dismax qf=$subject_qf pf=$subject_pf}biography\""]
2017-03-09 12:09:12 [DEBUG] Solr query: get select
{"qt"=>"search",
"facet.field"=>["format", "pub_date_sort", "author_facet", "location_facet", "language_facet", "subject_topic_facet", "subject_geo_facet", "subject_era_facet", "subject_form_facet", "subject_local_facet", "lc_1letter_facet", "lc_subclass_facet"],
"facet.query"=>["acq_dt:[2017-03-02T00:00:00Z TO *]", "acq_dt:[2017-02-09T00:00:00Z TO *]", "acq_dt:[2016-09-09T00:00:00Z TO *]", "acq_dt:[2016-03-09T00:00:00Z TO *]"],
"facet.pivot"=>[],
@yulgit1
yulgit1 / gist:5405c96d498f4a6f88b9fec632dc9f17
Created April 7, 2017 14:24
publication date facet error
2017-04-07 10:19:58 [INFO] Started GET "/catalog?utf8=%E2%9C%93&q=governor+winthrop&range%5Bpub_date_sort%5D%5Bbegin%5D=1676&range%5Bpub_date_sort%5D%5Bend%5D=2015&commit=Limit" for 130.132.80.190 at 2017-04-07 10:19:58 -0400
2017-04-07 10:19:58 [INFO] Started GET "/assets/application.js" for 130.132.80.190 at 2017-04-07 10:19:58 -0400
2017-04-07 10:19:58 [INFO] Started GET "/assets/library_logo_white_sm.png" for 130.132.80.190 at 2017-04-07 10:19:58 -0400
2017-04-07 10:19:58 [INFO] Started GET "/assets/application.css" for 130.132.80.190 at 2017-04-07 10:19:58 -0400
2017-04-07 10:19:58 [INFO] Processing by CatalogController#index as HTML
2017-04-07 10:19:58 [INFO] Parameters: {"utf8"=>"✓", "q"=>"governor winthrop", "range"=>{"pub_date_sort"=>{"begin"=>"1676", "end"=>"2015"}}, "commit"=>"Limit"}
2017-04-07 10:19:58 [INFO] Started GET "/assets/yaledesign-medium-webfont.ttf" for 130.132.80.190 at 2017-04-07 10:19:58 -0400
2017-04-07 10:19:58 [INFO] Completed 500 Internal Server Error in 16ms (ActiveRecord: 2.
| 234 | 11593813 |
| 269 | 11632320 |
| 270 | 11632319 |
| 271 | 11632317 |
| 272 | 11632316 |
| 273 | 11632318 |
| 554 | 11020845 | 11021552 |failed to abort multipart upload: The difference between the request time and the current time is too large.|digcoll:197307
| 555 | 11020846 | 11021552 | Adaptive Server connection timed out
| 556 | 11020847 | 11021552 | DBPROCESS is dead or not enabled
@yulgit1
yulgit1 / gist:6f70a961956a90dbec4d975da731f024
Created May 2, 2017 14:06
ruby semantic handle example
#from diggit-hydra
#use gem "savon"
handles_enabled: true
handle_wsdl: http://link.odai.yale.edu/ypls-ws/PersistentLinking?wsdl
handle_prefix: 10079/digcoll
handle_group: 10079/DIGCOLL
handle_user: 10079/DIGCOLL
handle_credential: ****
handle_base: http://findit.library.yale.edu/catalog/
DOCS [#<Summon::Document:0x000000067163e8 @src=
{"hasFullText"=>true,
"isFullTextHit"=>false,
"isPrint"=>false,
"inHoldings"=>true,
"openUrl"=>"ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=HUDSON+MACHINE+WORKS%2C+INC&rft.jtitle=Experian+Commercial+Risk+Database&rft.date=2017-03-01&rft.pub=Experian+Information+Solutions%2C+Inc",
"link"=>"http://yale.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwY2DQQSsPwIUyaMuCHpiVkp8L7PPqAvOYibku-NR9R5OASLNIL9Ch0bC7W6HRDCsdwUV2Sn4yaLRcH9jjMDcFlb3m9gWFuqD7o0DzrLDLNBKhlyykAPMysHJmZmA1AqZL0KUO5uGRGAUuuBZxE6C-vYIMbJAWtBADU2qeCIOkR6hLsL-fgq-js4enn6tCuH-Qd7COArDnLsqg5OYa4uyhC7M0HjpbEI-w0FiCQSHFONXUzMLAKM3AIMnEJM3CMsXcOC3R2CQtzdDEMDXVQJJBGo8JUnhlpRm4jEDVFXhtlQwDS0lRaaosA0slsI4CAOHch-A",
"DBID"=>["Q9U", "AZQEC", "7XB", "K6~", "8FL", "8FK", "ABUWG", "FRNLG", "M0F", "BENPR", "DWQXO", "K60", "7WY", "3V.", "BEZIV", "883"], "PublicationDate_xml"=>[
ActionDispatch::Cookies::CookieOverflow at /articles
ActionDispatch::Cookies::CookieOverflow
{"form"=>"basic", "s.cmd"=>"removeTextQuery(George Clinton)", "s.ff"=>["ContentType,and,1,20", "Discipline,and,1,20", "Language,and,1,20"], "s.ho"=>"t", "s.pn"=>"1", "s.q"=>"George Clinton", "s.role"=>"authenticated", "s.secure"=>"f", "search_field"=>"s.q", "spellcheck"=>"true", "layout"=>"articles", "controller"=>"spectrum", "action"=>"search"}
http://stackoverflow.com/questions/9473808/cookie-overflow-in-rails-application