- Open Terminal 1
cd /path/to/hyrax
rake engine_cart:regenerate
-- Rebuild the internal app; May not be necessary- Terminal 1:
rake engine_cart:server
-- Analogue tocd .internal_test_app; rails s
- Open Terminal 2
cd cd /path/to/hyrax
fcrepo_wrapper -v -p 8984 --no-jms
- Open Terminal 3
cd cd /path/to/hyrax
solr_wrapper -v -d solr/config/ -n hydra-development -p 8983
This file contains 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 Solution { | |
static Map<String, Integer> values = new HashMap<>(); | |
static{ | |
values.put("I", 1); | |
values.put("V", 5); | |
values.put("X", 10); | |
values.put("L", 50); | |
values.put("C", 100); |
This file contains 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
require 'spec_helper' | |
describe Hydramata::SolrHelper do | |
before(:all) do | |
class EmbargoMockController | |
include Hydramata::SolrHelper | |
attr_accessor :params | |
def current_ability |
This file contains 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
item=Item.find('changeme:1') | |
item.page_ids | |
Return [] | |
page=Page.find('changeme:2') | |
page.item_ids | |
=> ["changeme:1"] | |
But then | |
item.pages |
This file contains 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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
This file contains 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
This how during query will look like for | |
-----------before query----------- | |
Has Data started before $date | |
startdate:[* TO $date] | |
**************************** | |
Has Data ended before $date | |
enddate:[* TO $date] |
This file contains 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
Yes, you'll need two fields. | |
The query will then have to be on both fields. | |
Example: | |
dateFrom:[$start TO $end] AND dateTo:[$start TO $end] | |
This would mean that the timespan of the object would have to fall entirely within the timespan you are searching for (e.g. object is 1950-1960 and you search for 1900-2000). |
#Mac OS X
This file contains 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 EtdSubmitDatastream < ActiveFedora::NokogiriDatastream | |
set_terminology do |t| | |
t.root(:path=>"workflow") { | |
t.object_id(:path=>{:attribute=>"objectId"}, :label=>"Object ID") | |
} | |
# t.process would allow you to leave off | |
# the :path, but because we called it something |