-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from collectionspace/debug
Bugfix mapping multiple records on same `DataHandler`; add Changelog; changes to tests
- Loading branch information
Showing
11 changed files
with
143 additions
and
107 deletions.
There are no files selected for viewing
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module CollectionSpace | ||
module Mapper | ||
VERSION = "2.2.4" | ||
VERSION = "2.2.5" | ||
end | ||
end |
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 file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# frozen_string_literal: true | ||
|
||
module Helpers | ||
extend self | ||
|
||
def fcart_client | ||
CollectionSpace::Client.new( | ||
CollectionSpace::Configuration.new( | ||
base_uri: 'https://fcart.dev.collectionspace.org/cspace-services', | ||
username: '[email protected]', | ||
password: 'Administrator' | ||
) | ||
) | ||
end | ||
|
||
def fcart_cache | ||
cache_config = { | ||
domain: 'fcart.collectionspace.org', | ||
search_enabled: false, | ||
search_identifiers: false | ||
} | ||
CollectionSpace::RefCache.new(config: cache_config, client: fcart_client) | ||
end | ||
|
||
def populate_fcart(cache) | ||
terms = [ | ||
['personauthorities', 'person', 'Elizabeth', "urn:cspace:fcart.collectionspace.org:personauthorities:name(person):item:name(Elizabeth123)'Elizabeth'"] ] | ||
populate(cache, terms) | ||
end | ||
|
||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0"?> | ||
<document> | ||
<acquisitions_common> | ||
<acquisitionReferenceNumber>ACC216 (migrated accession)</acquisitionReferenceNumber> | ||
<accessionDateGroup> | ||
<dateDisplayDate>1985</dateDisplayDate> | ||
<dateEarliestSingleYear>1985</dateEarliestSingleYear> | ||
<dateEarliestSingleMonth>1</dateEarliestSingleMonth> | ||
<dateEarliestSingleDay>1</dateEarliestSingleDay> | ||
<dateEarliestSingleEra>urn:cspace:fcart.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'</dateEarliestSingleEra> | ||
<dateLatestYear>1985</dateLatestYear> | ||
<dateLatestMonth>12</dateLatestMonth> | ||
<dateLatestDay>31</dateLatestDay> | ||
<dateLatestEra>urn:cspace:fcart.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'</dateLatestEra> | ||
<dateEarliestScalarValue>1985-01-01T00:00:00.000Z</dateEarliestScalarValue> | ||
<dateLatestScalarValue>1986-01-01T00:00:00.000Z</dateLatestScalarValue> | ||
<scalarValuesComputed>true</scalarValuesComputed> | ||
</accessionDateGroup> | ||
<acquisitionMethod>unknown-provenance</acquisitionMethod> | ||
<creditLine>Gift of Frances, 1985</creditLine> | ||
</acquisitions_common> | ||
</document> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<document> | ||
<acquisitions_common> | ||
<acquisitionReferenceNumber>ACC215 (migrated accession)</acquisitionReferenceNumber> | ||
<acquisitionMethod>unknown-provenance</acquisitionMethod> | ||
</acquisitions_common> | ||
</document> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0"?> | ||
<document> | ||
<acquisitions_common> | ||
<acquisitionSources> | ||
<acquisitionSource>urn:cspace:fcart.collectionspace.org:personauthorities:name(person):item:name(Elizabeth123)'Elizabeth'</acquisitionSource> | ||
</acquisitionSources> | ||
<acquisitionReferenceNumber>ACC208 (migrated accession)</acquisitionReferenceNumber> | ||
<accessionDateGroup> | ||
<dateDisplayDate>1985</dateDisplayDate> | ||
<dateEarliestSingleYear>1985</dateEarliestSingleYear> | ||
<dateEarliestSingleMonth>1</dateEarliestSingleMonth> | ||
<dateEarliestSingleDay>1</dateEarliestSingleDay> | ||
<dateEarliestSingleEra>urn:cspace:fcart.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'</dateEarliestSingleEra> | ||
<dateLatestYear>1985</dateLatestYear> | ||
<dateLatestMonth>12</dateLatestMonth> | ||
<dateLatestDay>31</dateLatestDay> | ||
<dateLatestEra>urn:cspace:fcart.collectionspace.org:vocabularies:name(dateera):item:name(ce)'CE'</dateLatestEra> | ||
<dateEarliestScalarValue>1985-01-01T00:00:00.000Z</dateEarliestScalarValue> | ||
<dateLatestScalarValue>1986-01-01T00:00:00.000Z</dateLatestScalarValue> | ||
<scalarValuesComputed>true</scalarValuesComputed> | ||
</accessionDateGroup> | ||
<acquisitionMethod>gift</acquisitionMethod> | ||
<acquisitionNote>Acquisition source role(s): Donor</acquisitionNote> | ||
<creditLine>Gift of Elizabeth, 1985</creditLine> | ||
</acquisitions_common> | ||
</document> |
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 file was deleted.
Oops, something went wrong.