modsulator 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/modsulator/modsulator_template.xlsx +0 -0
- data/lib/modsulator/modsulator_template.xml +208 -185
- data/spec/features/process_template_spec.rb +3 -4
- data/spec/fixtures/Heckrotte_ChartsOfCoastSurvey.xml +31 -31
- data/spec/fixtures/crowdsourcing_bridget_1.xml +20 -20
- data/spec/fixtures/crowdsourcing_bridget_2.xml +130 -130
- data/spec/fixtures/edition_physLoc_intmediatype.xlsx +0 -0
- data/spec/fixtures/edition_physLoc_intmediatype.xml +41 -0
- data/spec/fixtures/filled_template_20160711.xlsx +0 -0
- data/spec/fixtures/filled_template_20160711.xml +458 -0
- data/spec/fixtures/roman_coins_mods.xml +347 -347
- data/spec/integration_tests/integration_spec.rb +3 -1
- metadata +14 -10
- data/spec/fixtures/filled_template.xlsx +0 -0
- data/spec/fixtures/test:002.xml +0 -63
|
@@ -22,7 +22,9 @@ describe Modsulator do
|
|
|
22
22
|
'crowdsourcing_bridget_1.xlsx' => 'crowdsourcing_bridget_1.xml',
|
|
23
23
|
'crowdsourcing_bridget_2.xlsx' => 'crowdsourcing_bridget_2.xml',
|
|
24
24
|
'Heckrotte_ChartsOfCoastSurvey.xlsx' => 'Heckrotte_ChartsOfCoastSurvey.xml',
|
|
25
|
-
'SC1049_metadata.xlsx' => 'SC1049_metadata.xml'
|
|
25
|
+
'SC1049_metadata.xlsx' => 'SC1049_metadata.xml',
|
|
26
|
+
'edition_physLoc_intmediatype.xlsx' => 'edition_physLoc_intmediatype.xml',
|
|
27
|
+
'filled_template_20160711.xlsx' => 'filled_template_20160711.xml'
|
|
26
28
|
}.each do |testfile, results_file|
|
|
27
29
|
it "converts #{testfile} correctly to valid XML" do
|
|
28
30
|
generated_xml_string = Modsulator.new(File.join(FIXTURES_DIR, testfile), testfile).convert_rows()
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: modsulator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tommy Ingulfsen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-02
|
|
11
|
+
date: 2016-08-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: roo
|
|
@@ -56,16 +56,16 @@ dependencies:
|
|
|
56
56
|
name: activesupport
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- - "
|
|
59
|
+
- - "<"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
61
|
+
version: '5.0'
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- - "
|
|
66
|
+
- - "<"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
68
|
+
version: '5.0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: rake
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -193,13 +193,15 @@ files:
|
|
|
193
193
|
- spec/fixtures/crowdsourcing_bridget_1.xml
|
|
194
194
|
- spec/fixtures/crowdsourcing_bridget_2.xlsx
|
|
195
195
|
- spec/fixtures/crowdsourcing_bridget_2.xml
|
|
196
|
-
- spec/fixtures/
|
|
196
|
+
- spec/fixtures/edition_physLoc_intmediatype.xlsx
|
|
197
|
+
- spec/fixtures/edition_physLoc_intmediatype.xml
|
|
198
|
+
- spec/fixtures/filled_template_20160711.xlsx
|
|
199
|
+
- spec/fixtures/filled_template_20160711.xml
|
|
197
200
|
- spec/fixtures/invalid_crowdsourcing_bridget_1.xml
|
|
198
201
|
- spec/fixtures/manifest_v0174.csv
|
|
199
202
|
- spec/fixtures/manifest_v0174.xml
|
|
200
203
|
- spec/fixtures/roman_coins_mods.xlsx
|
|
201
204
|
- spec/fixtures/roman_coins_mods.xml
|
|
202
|
-
- spec/fixtures/test:002.xml
|
|
203
205
|
- spec/fixtures/test_002.csv
|
|
204
206
|
- spec/fixtures/test_002.xlsx
|
|
205
207
|
- spec/integration_tests/integration_spec.rb
|
|
@@ -240,7 +242,10 @@ test_files:
|
|
|
240
242
|
- spec/fixtures/crowdsourcing_bridget_1.xml
|
|
241
243
|
- spec/fixtures/crowdsourcing_bridget_2.xlsx
|
|
242
244
|
- spec/fixtures/crowdsourcing_bridget_2.xml
|
|
243
|
-
- spec/fixtures/
|
|
245
|
+
- spec/fixtures/edition_physLoc_intmediatype.xlsx
|
|
246
|
+
- spec/fixtures/edition_physLoc_intmediatype.xml
|
|
247
|
+
- spec/fixtures/filled_template_20160711.xlsx
|
|
248
|
+
- spec/fixtures/filled_template_20160711.xml
|
|
244
249
|
- spec/fixtures/Fitch_Chavez.xlsx
|
|
245
250
|
- spec/fixtures/Fitch_Chavez.xml
|
|
246
251
|
- spec/fixtures/Fitch_King.xlsx
|
|
@@ -260,7 +265,6 @@ test_files:
|
|
|
260
265
|
- spec/fixtures/roman_coins_mods.xml
|
|
261
266
|
- spec/fixtures/SC1049_metadata.xlsx
|
|
262
267
|
- spec/fixtures/SC1049_metadata.xml
|
|
263
|
-
- spec/fixtures/test:002.xml
|
|
264
268
|
- spec/fixtures/test_002.csv
|
|
265
269
|
- spec/fixtures/test_002.xlsx
|
|
266
270
|
- spec/integration_tests/integration_spec.rb
|
|
Binary file
|
data/spec/fixtures/test:002.xml
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<xmlDocs xmlns="http://library.stanford.edu/xmlDocs" datetime="2015-05-07 11:07:50AM" sourceFile="test_002.csv">
|
|
3
|
-
<xmlDoc id="descMetadata" objectId="">
|
|
4
|
-
<mods xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.loc.gov/mods/v3" version="3.5" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd">
|
|
5
|
-
<titleInfo>
|
|
6
|
-
<title>À la recherche du temps perdu</title>
|
|
7
|
-
</titleInfo>
|
|
8
|
-
<titleInfo type="translated">
|
|
9
|
-
<title>Remembrance of Things Past</title>
|
|
10
|
-
</titleInfo>
|
|
11
|
-
<titleInfo type="alternative">
|
|
12
|
-
<title>In Search of Lost Time</title>
|
|
13
|
-
</titleInfo>
|
|
14
|
-
<name type="personal" authority="naf" valueURI="http://lccn.loc.gov/n79021736">
|
|
15
|
-
<namePart>Proust, Marcel, 1871-1922</namePart>
|
|
16
|
-
<role>
|
|
17
|
-
<roleTerm type="code" authority="marcrelator">aut</roleTerm>
|
|
18
|
-
</role>
|
|
19
|
-
</name>
|
|
20
|
-
<name type="personal">
|
|
21
|
-
<namePart>Krutch, Joseph Wood</namePart>
|
|
22
|
-
<role>
|
|
23
|
-
<roleTerm type="text">translator</roleTerm>
|
|
24
|
-
</role>
|
|
25
|
-
</name>
|
|
26
|
-
<typeOfResource>text</typeOfResource>
|
|
27
|
-
<genre authority="marcgt">novel</genre>
|
|
28
|
-
<originInfo>
|
|
29
|
-
<place>
|
|
30
|
-
<placeTerm type="text">Paris</placeTerm>
|
|
31
|
-
</place>
|
|
32
|
-
<dateIssued>1871</dateIssued>
|
|
33
|
-
</originInfo>
|
|
34
|
-
<language>
|
|
35
|
-
<languageTerm authority="iso639-2b" type="code">fre</languageTerm>
|
|
36
|
-
</language>
|
|
37
|
-
<physicalDescription>
|
|
38
|
-
<form>print</form>
|
|
39
|
-
<extent>xvi, 387 p.. 28 cm.</extent>
|
|
40
|
-
</physicalDescription>
|
|
41
|
-
<abstract>A long hard night, punctuated by
|
|
42
|
-
raining sleep.</abstract>
|
|
43
|
-
<tableOfContents>v. 1. Swann's way. Within a budding grove. The Guermantes way -- v. 2. Cities of the plain. The captive. The sweet cheat gone.
|
|
44
|
-
The past recaptured</tableOfContents>
|
|
45
|
-
<note>Original edition with translators annotations.
|
|
46
|
-
|
|
47
|
-
Further annotations not anticipated.</note>
|
|
48
|
-
<note type="statement of responsibility">Introduction by C.K. Scott Moncrieff.
|
|
49
|
-
|
|
50
|
-
New paragraph added.</note>
|
|
51
|
-
<note>Translation of the seven-volume work, A la recherche du temps perdu.</note>
|
|
52
|
-
<subject authority="lcsh">
|
|
53
|
-
<topic>France--Social life and customs--Fiction</topic>
|
|
54
|
-
</subject>
|
|
55
|
-
<identifier type="isbn">057120760X</identifier>
|
|
56
|
-
<identifier type="isbn">9780571207602</identifier>
|
|
57
|
-
<location>
|
|
58
|
-
<physicalLocation type="repository" authority="lcsh">Repository22</physicalLocation>
|
|
59
|
-
<shelfLocator>VA.4221</shelfLocator>
|
|
60
|
-
</location>
|
|
61
|
-
</mods>
|
|
62
|
-
</xmlDoc>
|
|
63
|
-
</xmlDocs>
|