This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://dl.boxcloud.com/d/1/imJqWfBku5Aap3gh98mEDKVHVAwi4wVrR313WkwY3-V3h6sirX_bl0vFULaWAKRhAscX9PjRGdOC4llENNTogUTwuAZ38ysjOG-mKvjjXxUGbC-XF4Q4KjM0AGYmNo5fVMnKjv6g80FqddZORESOVTcCQQatljRgx-OeEWQdUfso5AbE3Uq2hlXd4ZdKzOyUnppnXu59dxl1bzKb6qHv5ESf6nnRTPimmouLN-O-kUb9YONAyNrfeduNM1sPGMeUBXFhMCk9JwHQOI-KtzPavXICw0AHnyqE599U___yxGp4DuTcjXQynirMHCatSctA8g9iveoXu6__-DlBHoaCqBLbNMK1SokZ4UPX455Q8MTgOJ-5dcdpV7N4DLpG7k6cfE2bjd3u-nihvIiSEjR5f1bc2ZbmP_6ssk1epqGRzsKg_IgAahdncjlxwSWHnng7CjavizaFYBGV1UXeOfBXWxdGyMyz2qmua-lx7lQRldiXgp-8UoGbmoj6qI2osTHHZR3QOpO7SK_v9lAFiTVXhgmDpf-ajeIHmKEzzTY5Ffk-gYjDdPf9p6i-U_itl8CF_NiK6RoyfSvnswPbHf_cV9PyNuaqVYktvjwGSXWLBuLaScDadukbWMubmF51KVNOf6k_5ylc6wj6yiGHhzFKnUJE4I0hUSU4DKE_tib-5ZTzEmJUeoRwERsMSM4uQtd5P94yCuNgOSy0VDnlL4sPdPCFENwAEX2E7Jo5mefjbCVqK916K1xU7neCByGgOFC9MMiTLGbDjKyb1oBSlKIE-4ETEIwf0wJgF5s17pM9dq3-pHA392J884k3EFe6ELwgw5anCjJVTvHd3aRz_IflL0VAyfDa8pyS86I3UEuaIHzPAw0KoBD63PdeDcigrfGZIR5sGZu6Ncke7FBlsISr-FJ6w_xG7SxGB_6bIRWwhu_irSgasiU1KvqIgl-ryP2FUo7TliRUZrGZ8RrwpTe8_Z9FRBhJR3CPILQi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # generate output rails generate hyrax:work atlas | |
| info GENERATING WORK MODEL: Atlas | |
| create app/actors/hyrax/actors/atlas_actor.rb | |
| create app/controllers/hyrax/atlas_controller.rb | |
| create app/indexers/atlas_indexer.rb | |
| create app/forms/hyrax/atlas_form.rb | |
| create app/models/atlas.rb | |
| create app/views/hyrax/atlas/_atlas.html.erb | |
| insert config/initializers/hyrax.rb | |
| create config/locales/atlas.en.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| => #<ActiveFedora::LdpResource:0x007f20673fbae0 @client=#<ActiveFedora::CachingConnection:0x007f20618b6c48 @options={:omit_ldpr_interaction_model=>true}, @http=#<Faraday::Connection:0x007f206081d918 @parallel_manager=nil, @headers={"User-Agent"=>"Faraday v0.11.0", "Authorization"=>"Basic ZmVkb3JhQWRtaW46ZmVkb3JhNGVBZG1pbg=="}, @params={}, @options=#<Faraday::RequestOptions (empty)>, @ssl=#<Faraday::SSLOptions (empty)>, @default_parallel_manager=nil, @builder=#<Faraday::RackBuilder:0x007f206081d7d8 @handlers=[Faraday::Request::UrlEncoded, Faraday::Adapter::NetHttp], @app=#<Faraday::Request::UrlEncoded:0x007f206755bf20 @app=#<Faraday::Adapter::NetHttp:0x007f206756fef8 @app=#<Proc:0x007f206756c028@/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/faraday-0.11.0/lib/faraday/rack_builder.rb:152 (lambda)>, @connection_options={}, @config_block=nil>>>, @url_prefix=#<URI::HTTP http://ssrepo1qa-new.vmhost.psu.edu:8080/SSqaFedora-new/rest>, @proxy=nil>, @cache={}, @cache_enabled=false>, @subject="http:// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gf = GenericFile.find("abc123") | |
| file = File.open("file name") | |
| content = file.read | |
| gf.content.content = content | |
| gf.create_derivatives | |
| gf.visibility = "open" | |
| gf.save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config.add_search_field('all_fields', label: 'All Fields', include_in_advanced_search: false) do |field| | |
| all_names = config.index.search_fields.join(" ") | |
| field.solr_parameters = { | |
| qf: "#{all_names} id all_text_timv", | |
| pf: "title_ssi" | |
| } | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| old | |
| {"qt"=>"search", "facet.field"=>["resource_type_sim", "collection_sim", "creator_sim", "tag_sim", "subject_sim", "language_sim", "based_near_sim", "publisher_sim", "file_format_sim", "active_fedora_model_ssi"], "facet.query"=>[], "facet.pivot"=>[], "fq"=>["edit_access_group_ssim:public OR edit_access_group_ssim:registered OR edit_access_person_ssim:archivist1", "_query_:\"{!raw f=depositor_ssim}archivist1\"", "_query_:\"{!raw f=has_model_ssim}GenericFile\""], "hl.fl"=>[], "rows"=>10, "q"=>"titletitle", "facet"=>true, "f.resource_type_sim.facet.limit"=>6, "f.collection_sim.facet.limit"=>6, "f.creator_sim.facet.limit"=>6, "f.tag_sim.facet.limit"=>6, "f.subject_sim.facet.limit"=>6, "f.language_sim.facet.limit"=>6, "f.based_near_sim.facet.limit"=>6, "f.publisher_sim.facet.limit"=>6, "f.file_format_sim.facet.limit"=>6, "sort"=>"score desc, date_uploaded_dtsi desc", "qf"=>"title_tesim description_tesim tag_tesim subject_tesim creator_tesim contributor_tesim publisher_tesim based_near_tesim language_tesim date_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MySearchBuilder < Blacklight::Solr::SearchBuilder | |
| def my_search_stuff(solr_parameters) | |
| # optionally change facets | |
| solr_parameters[:"facet.field"].concat([Solrizer.solr_name("my field", :symbol)]) | |
| # Optionally change facet limit | |
| solr_parameters[:"facet.limit"] = my_count | |
| # optionally filter the records |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @prefix nt: <http://www.jcp.org/jcr/nt/1.0> . | |
| @prefix ns001: <http://purl.org/dc/terms/> . | |
| @prefix test: <info:fedora/test/> . | |
| @prefix ns002: <info:fedora/fedora-system:def/model#> . | |
| @prefix ns003: <http://id.loc.gov/vocabulary/relators/> . | |
| @prefix ns004: <http://www.w3.org/ns/auth/acl#> . | |
| @prefix xs: <http://www.w3.org/2001/XMLSchema> . | |
| @prefix mode: <http://www.modeshape.org/1.0> . | |
| @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
| @prefix ns006: <http://scholarsphere.psu.edu/ns#> . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cam156@its-sas-tsb-88[~/archivesphere]> rails s | |
| Usage: | |
| rails new APP_PATH [options] | |
| Options: | |
| -r, [--ruby=PATH] # Path to the Ruby binary of your choice | |
| # Default: /Users/cam156/.rbenv/versions/2.2.2/bin/ruby | |
| -m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL) | |
| [--skip-gemfile], [--no-skip-gemfile] # Don't create a Gemfile | |
| -B, [--skip-bundle], [--no-skip-bundle] # Don't run bundle install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CurationConcerns::CharacterizationService | |
| characterize | |
| characterizes, extracts fulltext and stores the results (FAILED - 1) | |
| Failures: | |
| 1) CurationConcerns::CharacterizationService characterize characterizes, extracts fulltext and stores the results | |
| Failure/Error: expect(generic_file.mime_type).to eq 'application/vnd.oasis.opendocument.text' | |
| expected: "application/vnd.oasis.opendocument.text" |