adiwg-mdtranslator 2.1.2 → 2.2.0
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/CHANGELOG.md +402 -0
- data/adiwg-mdtranslator.gemspec +1 -1
- data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +7 -2
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_contact.rb +196 -0
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_dateTime.rb +8 -0
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_fgdc.rb +1 -1
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_identification.rb +80 -26
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_keyword.rb +13 -2
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_lineage.rb +58 -0
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_process.rb +101 -0
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_quality.rb +21 -1
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_security.rb +48 -0
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_source.rb +83 -0
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_timePeriod.rb +10 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_allocation.rb +92 -71
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_funding.rb +49 -43
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_processStep.rb +113 -90
- data/lib/adiwg/mdtranslator/readers/sbJson/modules/module_sbJson.rb +2 -1
- data/lib/adiwg/mdtranslator/version.rb +2 -1
- data/lib/adiwg/mdtranslator/writers/html/sections/html_allocation.rb +23 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_funding.rb +9 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_processStep.rb +37 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_processStep.rb +103 -91
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_allocation.rb +7 -1
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_funding.rb +4 -2
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_processStep.rb +6 -2
- metadata +11 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e1a7618b0b9a44fbbd8808b27a9111adca45d85
|
|
4
|
+
data.tar.gz: 55dca9d676c8c8ed9a95518b0a2ff4cfc0c52ceb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c59615f5b8ae9addda3b76e957333fca0feea02b12ffced0f26703315a6311b26d95c4c794e5f349eab497f7743c13fa303cdc4122bafa284edbc3e14c54798
|
|
7
|
+
data.tar.gz: 151db516221b7d753b01a42e96300e0286769f4688750ba48f2d3514ce02bb4d5d034f72d865beacd70ee47470811bd26912ac7594aaa6c2186df67e2bd49275
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
## [v2.2.0](https://github.com/adiwg/mdTranslator/tree/v2.2.0)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.1.2...v2.2.0)
|
|
6
|
+
|
|
7
|
+
**Fixed bugs:**
|
|
8
|
+
|
|
9
|
+
- Error on sbJSON read [\#118](https://github.com/adiwg/mdTranslator/issues/118)
|
|
10
|
+
- sbJson to mdJson translation fails [\#116](https://github.com/adiwg/mdTranslator/issues/116)
|
|
11
|
+
|
|
12
|
+
**Merged pull requests:**
|
|
13
|
+
|
|
14
|
+
- Add Lineage and Funding changes for schema version 2.3 [\#125](https://github.com/adiwg/mdTranslator/pull/125) ([stansmith907](https://github.com/stansmith907))
|
|
15
|
+
|
|
16
|
+
## [v2.1.2](https://github.com/adiwg/mdTranslator/tree/v2.1.2) (2017-08-25)
|
|
17
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.1.1...v2.1.2)
|
|
18
|
+
|
|
19
|
+
**Merged pull requests:**
|
|
20
|
+
|
|
21
|
+
- Remove schema support from sbJson reader [\#120](https://github.com/adiwg/mdTranslator/pull/120) ([stansmith907](https://github.com/stansmith907))
|
|
22
|
+
|
|
23
|
+
## [v2.1.1](https://github.com/adiwg/mdTranslator/tree/v2.1.1) (2017-08-24)
|
|
24
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.1.0...v2.1.1)
|
|
25
|
+
|
|
26
|
+
**Closed issues:**
|
|
27
|
+
|
|
28
|
+
- fgdc Handling DateTime [\#110](https://github.com/adiwg/mdTranslator/issues/110)
|
|
29
|
+
- fgdc Contact Name with ORCID [\#109](https://github.com/adiwg/mdTranslator/issues/109)
|
|
30
|
+
|
|
31
|
+
**Merged pull requests:**
|
|
32
|
+
|
|
33
|
+
- Fix sbJson reader for 'relatedItems' browse categories [\#117](https://github.com/adiwg/mdTranslator/pull/117) ([stansmith907](https://github.com/stansmith907))
|
|
34
|
+
|
|
35
|
+
## [v2.1.0](https://github.com/adiwg/mdTranslator/tree/v2.1.0) (2017-08-14)
|
|
36
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.0.0...v2.1.0)
|
|
37
|
+
|
|
38
|
+
**Closed issues:**
|
|
39
|
+
|
|
40
|
+
- sbJson 2.0 extents [\#82](https://github.com/adiwg/mdTranslator/issues/82)
|
|
41
|
+
- sbJson 2.0 contacts [\#64](https://github.com/adiwg/mdTranslator/issues/64)
|
|
42
|
+
|
|
43
|
+
**Merged pull requests:**
|
|
44
|
+
|
|
45
|
+
- Support revisions to mdCodes and sbJson writer [\#107](https://github.com/adiwg/mdTranslator/pull/107) ([stansmith907](https://github.com/stansmith907))
|
|
46
|
+
|
|
47
|
+
## [v2.0.0](https://github.com/adiwg/mdTranslator/tree/v2.0.0) (2017-07-06)
|
|
48
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.0.0rc13...v2.0.0)
|
|
49
|
+
|
|
50
|
+
**Implemented enhancements:**
|
|
51
|
+
|
|
52
|
+
- Add computed bounding box [\#49](https://github.com/adiwg/mdTranslator/issues/49)
|
|
53
|
+
- Refactor GeoJSON support in mdJSON reader [\#42](https://github.com/adiwg/mdTranslator/issues/42)
|
|
54
|
+
|
|
55
|
+
**Fixed bugs:**
|
|
56
|
+
|
|
57
|
+
- New computed bounding box code [\#84](https://github.com/adiwg/mdTranslator/issues/84)
|
|
58
|
+
|
|
59
|
+
**Closed issues:**
|
|
60
|
+
|
|
61
|
+
- sbJson 2.0 citation facet [\#80](https://github.com/adiwg/mdTranslator/issues/80)
|
|
62
|
+
- sbJson 2.0 product [\#79](https://github.com/adiwg/mdTranslator/issues/79)
|
|
63
|
+
- sbJson 2.0 project facet [\#78](https://github.com/adiwg/mdTranslator/issues/78)
|
|
64
|
+
- sbJson 2.0 budget facet [\#77](https://github.com/adiwg/mdTranslator/issues/77)
|
|
65
|
+
- sbJson handle HTML fields [\#76](https://github.com/adiwg/mdTranslator/issues/76)
|
|
66
|
+
- sbJson 2.0 distributionLinks [\#75](https://github.com/adiwg/mdTranslator/issues/75)
|
|
67
|
+
- sbJson 2.0 spatial [\#74](https://github.com/adiwg/mdTranslator/issues/74)
|
|
68
|
+
- sbJson 2.0 facets [\#73](https://github.com/adiwg/mdTranslator/issues/73)
|
|
69
|
+
- sbJson 2.0 previewImage [\#72](https://github.com/adiwg/mdTranslator/issues/72)
|
|
70
|
+
- sbJson 2.0 files [\#71](https://github.com/adiwg/mdTranslator/issues/71)
|
|
71
|
+
- sbJson 2.0 dates [\#70](https://github.com/adiwg/mdTranslator/issues/70)
|
|
72
|
+
- sbJson 2.0 tags [\#69](https://github.com/adiwg/mdTranslator/issues/69)
|
|
73
|
+
- sbJson 2.0 un-mapped core [\#68](https://github.com/adiwg/mdTranslator/issues/68)
|
|
74
|
+
- sbJson 2.0 browseCategories [\#67](https://github.com/adiwg/mdTranslator/issues/67)
|
|
75
|
+
- sbJson 2.0 webLinks [\#66](https://github.com/adiwg/mdTranslator/issues/66)
|
|
76
|
+
- sbJson 2.0 primaryLocation [\#65](https://github.com/adiwg/mdTranslator/issues/65)
|
|
77
|
+
- sbJson 2.0 parentId [\#63](https://github.com/adiwg/mdTranslator/issues/63)
|
|
78
|
+
- sbJson 2.0 materialRequestInstructions [\#62](https://github.com/adiwg/mdTranslator/issues/62)
|
|
79
|
+
- sbJson 2.0 provenance [\#61](https://github.com/adiwg/mdTranslator/issues/61)
|
|
80
|
+
- sbJson 2.0 rights [\#60](https://github.com/adiwg/mdTranslator/issues/60)
|
|
81
|
+
- sbJson 2.0 purpose [\#59](https://github.com/adiwg/mdTranslator/issues/59)
|
|
82
|
+
- sbJson 2.0 link [\#58](https://github.com/adiwg/mdTranslator/issues/58)
|
|
83
|
+
- sbJson 2.0 identifier [\#57](https://github.com/adiwg/mdTranslator/issues/57)
|
|
84
|
+
- sbJson 2.0 citation [\#56](https://github.com/adiwg/mdTranslator/issues/56)
|
|
85
|
+
- sbJson 2.0 body [\#55](https://github.com/adiwg/mdTranslator/issues/55)
|
|
86
|
+
- sbJson 2.0 id [\#54](https://github.com/adiwg/mdTranslator/issues/54)
|
|
87
|
+
- sbJson 2.0 titles [\#53](https://github.com/adiwg/mdTranslator/issues/53)
|
|
88
|
+
- sbJson 2.0 writer [\#52](https://github.com/adiwg/mdTranslator/issues/52)
|
|
89
|
+
- sbJSON 2.0 reader [\#51](https://github.com/adiwg/mdTranslator/issues/51)
|
|
90
|
+
|
|
91
|
+
**Merged pull requests:**
|
|
92
|
+
|
|
93
|
+
- mdTranslator version 2.0.0 complete [\#99](https://github.com/adiwg/mdTranslator/pull/99) ([stansmith907](https://github.com/stansmith907))
|
|
94
|
+
|
|
95
|
+
## [v2.0.0rc13](https://github.com/adiwg/mdTranslator/tree/v2.0.0rc13) (2017-06-21)
|
|
96
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.0.0rc11...v2.0.0rc13)
|
|
97
|
+
|
|
98
|
+
**Merged pull requests:**
|
|
99
|
+
|
|
100
|
+
- Changes from third sbJson writer review [\#97](https://github.com/adiwg/mdTranslator/pull/97) ([stansmith907](https://github.com/stansmith907))
|
|
101
|
+
|
|
102
|
+
## [v2.0.0rc11](https://github.com/adiwg/mdTranslator/tree/v2.0.0rc11) (2017-06-12)
|
|
103
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.0.0rc10...v2.0.0rc11)
|
|
104
|
+
|
|
105
|
+
**Merged pull requests:**
|
|
106
|
+
|
|
107
|
+
- Merge sbJson writer changes after second review session [\#96](https://github.com/adiwg/mdTranslator/pull/96) ([stansmith907](https://github.com/stansmith907))
|
|
108
|
+
|
|
109
|
+
## [v2.0.0rc10](https://github.com/adiwg/mdTranslator/tree/v2.0.0rc10) (2017-06-07)
|
|
110
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.0.0rc9...v2.0.0rc10)
|
|
111
|
+
|
|
112
|
+
**Merged pull requests:**
|
|
113
|
+
|
|
114
|
+
- Add sbJson core elements 'metadataRepository', 'geographicExtents' [\#95](https://github.com/adiwg/mdTranslator/pull/95) ([stansmith907](https://github.com/stansmith907))
|
|
115
|
+
|
|
116
|
+
## [v2.0.0rc9](https://github.com/adiwg/mdTranslator/tree/v2.0.0rc9) (2017-06-06)
|
|
117
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.0.0rc8...v2.0.0rc9)
|
|
118
|
+
|
|
119
|
+
**Merged pull requests:**
|
|
120
|
+
|
|
121
|
+
- Allow choice of which dictionary to translate in ISO19110 writer [\#94](https://github.com/adiwg/mdTranslator/pull/94) ([stansmith907](https://github.com/stansmith907))
|
|
122
|
+
|
|
123
|
+
## [v2.0.0rc8](https://github.com/adiwg/mdTranslator/tree/v2.0.0rc8) (2017-05-26)
|
|
124
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.0.0rc7...v2.0.0rc8)
|
|
125
|
+
|
|
126
|
+
**Merged pull requests:**
|
|
127
|
+
|
|
128
|
+
- Improve nav buttons in html output, bump version. [\#93](https://github.com/adiwg/mdTranslator/pull/93) ([jlblcc](https://github.com/jlblcc))
|
|
129
|
+
|
|
130
|
+
## [v2.0.0rc7](https://github.com/adiwg/mdTranslator/tree/v2.0.0rc7) (2017-05-26)
|
|
131
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.0.0rc6...v2.0.0rc7)
|
|
132
|
+
|
|
133
|
+
**Merged pull requests:**
|
|
134
|
+
|
|
135
|
+
- Improve nav buttons in html output, bump version. [\#92](https://github.com/adiwg/mdTranslator/pull/92) ([jlblcc](https://github.com/jlblcc))
|
|
136
|
+
|
|
137
|
+
## [v2.0.0rc6](https://github.com/adiwg/mdTranslator/tree/v2.0.0rc6) (2017-05-25)
|
|
138
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.0.0rc5...v2.0.0rc6)
|
|
139
|
+
|
|
140
|
+
**Merged pull requests:**
|
|
141
|
+
|
|
142
|
+
- Fix handling of nil resourceType.name in html writer [\#91](https://github.com/adiwg/mdTranslator/pull/91) ([stansmith907](https://github.com/stansmith907))
|
|
143
|
+
|
|
144
|
+
## [v2.0.0rc5](https://github.com/adiwg/mdTranslator/tree/v2.0.0rc5) (2017-05-21)
|
|
145
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.0.0rc4...v2.0.0rc5)
|
|
146
|
+
|
|
147
|
+
**Merged pull requests:**
|
|
148
|
+
|
|
149
|
+
- Fix bug with mdTranslator when no writer is provided [\#90](https://github.com/adiwg/mdTranslator/pull/90) ([stansmith907](https://github.com/stansmith907))
|
|
150
|
+
|
|
151
|
+
## [v2.0.0rc4](https://github.com/adiwg/mdTranslator/tree/v2.0.0rc4) (2017-05-21)
|
|
152
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.0.0rc3...v2.0.0rc4)
|
|
153
|
+
|
|
154
|
+
**Merged pull requests:**
|
|
155
|
+
|
|
156
|
+
- Enhance html writer test data 'metadataInfo' to use as example mdJson [\#89](https://github.com/adiwg/mdTranslator/pull/89) ([stansmith907](https://github.com/stansmith907))
|
|
157
|
+
|
|
158
|
+
## [v2.0.0rc3](https://github.com/adiwg/mdTranslator/tree/v2.0.0rc3) (2017-05-17)
|
|
159
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v2.0.0rc2...v2.0.0rc3)
|
|
160
|
+
|
|
161
|
+
**Merged pull requests:**
|
|
162
|
+
|
|
163
|
+
- Deprecate 'topicCategory' from mdJson 2.1 [\#88](https://github.com/adiwg/mdTranslator/pull/88) ([stansmith907](https://github.com/stansmith907))
|
|
164
|
+
|
|
165
|
+
## [v2.0.0rc2](https://github.com/adiwg/mdTranslator/tree/v2.0.0rc2) (2017-05-01)
|
|
166
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0...v2.0.0rc2)
|
|
167
|
+
|
|
168
|
+
**Merged pull requests:**
|
|
169
|
+
|
|
170
|
+
- Add CLI tests [\#86](https://github.com/adiwg/mdTranslator/pull/86) ([stansmith907](https://github.com/stansmith907))
|
|
171
|
+
- Major release 2.0.0rc1 [\#85](https://github.com/adiwg/mdTranslator/pull/85) ([stansmith907](https://github.com/stansmith907))
|
|
172
|
+
|
|
173
|
+
## [v1.4.0](https://github.com/adiwg/mdTranslator/tree/v1.4.0) (2017-04-20)
|
|
174
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0.beta14...v1.4.0)
|
|
175
|
+
|
|
176
|
+
## [v1.4.0.beta14](https://github.com/adiwg/mdTranslator/tree/v1.4.0.beta14) (2016-11-18)
|
|
177
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0.beta13...v1.4.0.beta14)
|
|
178
|
+
|
|
179
|
+
**Merged pull requests:**
|
|
180
|
+
|
|
181
|
+
- Fix for JRuby [\#50](https://github.com/adiwg/mdTranslator/pull/50) ([derekjwilliams](https://github.com/derekjwilliams))
|
|
182
|
+
|
|
183
|
+
## [v1.4.0.beta13](https://github.com/adiwg/mdTranslator/tree/v1.4.0.beta13) (2016-07-16)
|
|
184
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0.beta12...v1.4.0.beta13)
|
|
185
|
+
|
|
186
|
+
## [v1.4.0.beta12](https://github.com/adiwg/mdTranslator/tree/v1.4.0.beta12) (2016-07-16)
|
|
187
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0.beta11...v1.4.0.beta12)
|
|
188
|
+
|
|
189
|
+
## [v1.4.0.beta11](https://github.com/adiwg/mdTranslator/tree/v1.4.0.beta11) (2016-06-23)
|
|
190
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0.beta10...v1.4.0.beta11)
|
|
191
|
+
|
|
192
|
+
## [v1.4.0.beta10](https://github.com/adiwg/mdTranslator/tree/v1.4.0.beta10) (2016-06-23)
|
|
193
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0.beta9...v1.4.0.beta10)
|
|
194
|
+
|
|
195
|
+
## [v1.4.0.beta9](https://github.com/adiwg/mdTranslator/tree/v1.4.0.beta9) (2016-06-22)
|
|
196
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0.beta8...v1.4.0.beta9)
|
|
197
|
+
|
|
198
|
+
## [v1.4.0.beta8](https://github.com/adiwg/mdTranslator/tree/v1.4.0.beta8) (2016-06-18)
|
|
199
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0.beta7...v1.4.0.beta8)
|
|
200
|
+
|
|
201
|
+
## [v1.4.0.beta7](https://github.com/adiwg/mdTranslator/tree/v1.4.0.beta7) (2016-06-18)
|
|
202
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0.beta6...v1.4.0.beta7)
|
|
203
|
+
|
|
204
|
+
## [v1.4.0.beta6](https://github.com/adiwg/mdTranslator/tree/v1.4.0.beta6) (2016-06-18)
|
|
205
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0.beta5...v1.4.0.beta6)
|
|
206
|
+
|
|
207
|
+
## [v1.4.0.beta5](https://github.com/adiwg/mdTranslator/tree/v1.4.0.beta5) (2016-06-17)
|
|
208
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0.beta4...v1.4.0.beta5)
|
|
209
|
+
|
|
210
|
+
## [v1.4.0.beta4](https://github.com/adiwg/mdTranslator/tree/v1.4.0.beta4) (2016-06-17)
|
|
211
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0.beta3...v1.4.0.beta4)
|
|
212
|
+
|
|
213
|
+
**Merged pull requests:**
|
|
214
|
+
|
|
215
|
+
- Account for nil identifier in sbJson reader [\#48](https://github.com/adiwg/mdTranslator/pull/48) ([jlblcc](https://github.com/jlblcc))
|
|
216
|
+
|
|
217
|
+
## [v1.4.0.beta3](https://github.com/adiwg/mdTranslator/tree/v1.4.0.beta3) (2016-06-17)
|
|
218
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0.beta2...v1.4.0.beta3)
|
|
219
|
+
|
|
220
|
+
**Merged pull requests:**
|
|
221
|
+
|
|
222
|
+
- Support Project facet in sbJson writer [\#47](https://github.com/adiwg/mdTranslator/pull/47) ([jlblcc](https://github.com/jlblcc))
|
|
223
|
+
|
|
224
|
+
## [v1.4.0.beta2](https://github.com/adiwg/mdTranslator/tree/v1.4.0.beta2) (2016-06-17)
|
|
225
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.4.0.beta1...v1.4.0.beta2)
|
|
226
|
+
|
|
227
|
+
**Merged pull requests:**
|
|
228
|
+
|
|
229
|
+
- Update sbJson reader [\#46](https://github.com/adiwg/mdTranslator/pull/46) ([jlblcc](https://github.com/jlblcc))
|
|
230
|
+
- Update travis to force bundler install [\#45](https://github.com/adiwg/mdTranslator/pull/45) ([jlblcc](https://github.com/jlblcc))
|
|
231
|
+
|
|
232
|
+
## [v1.4.0.beta1](https://github.com/adiwg/mdTranslator/tree/v1.4.0.beta1) (2016-06-17)
|
|
233
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.3.0...v1.4.0.beta1)
|
|
234
|
+
|
|
235
|
+
**Implemented enhancements:**
|
|
236
|
+
|
|
237
|
+
- Add sbJSON reader, sbJSON writer, mdJSON writer [\#43](https://github.com/adiwg/mdTranslator/pull/43) ([jlblcc](https://github.com/jlblcc))
|
|
238
|
+
|
|
239
|
+
**Merged pull requests:**
|
|
240
|
+
|
|
241
|
+
- Update submodule [\#44](https://github.com/adiwg/mdTranslator/pull/44) ([jlblcc](https://github.com/jlblcc))
|
|
242
|
+
|
|
243
|
+
## [v1.3.0](https://github.com/adiwg/mdTranslator/tree/v1.3.0) (2015-09-28)
|
|
244
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.2.1...v1.3.0)
|
|
245
|
+
|
|
246
|
+
**Implemented enhancements:**
|
|
247
|
+
|
|
248
|
+
- Add version numbers to readers and writers [\#39](https://github.com/adiwg/mdTranslator/issues/39)
|
|
249
|
+
- Add the ContentInformation class to mdTranslator [\#33](https://github.com/adiwg/mdTranslator/issues/33)
|
|
250
|
+
- Convert mdTranslator return hash from global to class variable [\#27](https://github.com/adiwg/mdTranslator/issues/27)
|
|
251
|
+
- HTML Writer should output only relevant sections [\#25](https://github.com/adiwg/mdTranslator/issues/25)
|
|
252
|
+
- Add custom stylesheet option to HTML writer [\#24](https://github.com/adiwg/mdTranslator/issues/24)
|
|
253
|
+
|
|
254
|
+
**Fixed bugs:**
|
|
255
|
+
|
|
256
|
+
- Tests failing due to use of clone on class variable [\#41](https://github.com/adiwg/mdTranslator/issues/41)
|
|
257
|
+
|
|
258
|
+
**Closed issues:**
|
|
259
|
+
|
|
260
|
+
- Add alternateTitle to Citation [\#40](https://github.com/adiwg/mdTranslator/issues/40)
|
|
261
|
+
- Basic support for gridded data [\#31](https://github.com/adiwg/mdTranslator/issues/31)
|
|
262
|
+
|
|
263
|
+
**Merged pull requests:**
|
|
264
|
+
|
|
265
|
+
- Maintain newlines in abstract\(html writer\), \#37 [\#38](https://github.com/adiwg/mdTranslator/pull/38) ([jlblcc](https://github.com/jlblcc))
|
|
266
|
+
|
|
267
|
+
## [v1.2.1](https://github.com/adiwg/mdTranslator/tree/v1.2.1) (2015-07-02)
|
|
268
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.2.0...v1.2.1)
|
|
269
|
+
|
|
270
|
+
## [v1.2.0](https://github.com/adiwg/mdTranslator/tree/v1.2.0) (2015-07-02)
|
|
271
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.1.1...v1.2.0)
|
|
272
|
+
|
|
273
|
+
**Implemented enhancements:**
|
|
274
|
+
|
|
275
|
+
- Add characterSet to resourceInfo [\#30](https://github.com/adiwg/mdTranslator/issues/30)
|
|
276
|
+
- Use mdCodes in mdTranslator [\#29](https://github.com/adiwg/mdTranslator/issues/29)
|
|
277
|
+
- Provide available reader & writers through CLI [\#28](https://github.com/adiwg/mdTranslator/issues/28)
|
|
278
|
+
|
|
279
|
+
**Fixed bugs:**
|
|
280
|
+
|
|
281
|
+
- enumerationlist should be camelCase [\#34](https://github.com/adiwg/mdTranslator/issues/34)
|
|
282
|
+
- Maps don't refresh bounds when using "open" button [\#36](https://github.com/adiwg/mdTranslator/issues/36)
|
|
283
|
+
- Is CLI reader option required? [\#35](https://github.com/adiwg/mdTranslator/issues/35)
|
|
284
|
+
- Trap responsibleParty with no contact [\#26](https://github.com/adiwg/mdTranslator/issues/26)
|
|
285
|
+
|
|
286
|
+
**Closed issues:**
|
|
287
|
+
|
|
288
|
+
- Add HTML writer [\#23](https://github.com/adiwg/mdTranslator/issues/23)
|
|
289
|
+
|
|
290
|
+
## [v1.1.1](https://github.com/adiwg/mdTranslator/tree/v1.1.1) (2015-05-06)
|
|
291
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.1.0...v1.1.1)
|
|
292
|
+
|
|
293
|
+
## [v1.1.0](https://github.com/adiwg/mdTranslator/tree/v1.1.0) (2015-05-06)
|
|
294
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.0.0...v1.1.0)
|
|
295
|
+
|
|
296
|
+
**Closed issues:**
|
|
297
|
+
|
|
298
|
+
- Data Dictionary [\#22](https://github.com/adiwg/mdTranslator/issues/22)
|
|
299
|
+
|
|
300
|
+
## [v1.0.0](https://github.com/adiwg/mdTranslator/tree/v1.0.0) (2015-03-11)
|
|
301
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.0.0rc4...v1.0.0)
|
|
302
|
+
|
|
303
|
+
**Closed issues:**
|
|
304
|
+
|
|
305
|
+
- Tests failing with some seeds [\#18](https://github.com/adiwg/mdTranslator/issues/18)
|
|
306
|
+
- Failure when requesting 19110 writer but no dataDictionary is supplied [\#19](https://github.com/adiwg/mdTranslator/issues/19)
|
|
307
|
+
|
|
308
|
+
## [v1.0.0rc4](https://github.com/adiwg/mdTranslator/tree/v1.0.0rc4) (2015-03-06)
|
|
309
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.0.0rc3...v1.0.0rc4)
|
|
310
|
+
|
|
311
|
+
**Closed issues:**
|
|
312
|
+
|
|
313
|
+
- Replace references to mdtranslator.herokuapp.com [\#16](https://github.com/adiwg/mdTranslator/issues/16)
|
|
314
|
+
|
|
315
|
+
## [v1.0.0rc3](https://github.com/adiwg/mdTranslator/tree/v1.0.0rc3) (2015-03-06)
|
|
316
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.0.0rc2...v1.0.0rc3)
|
|
317
|
+
|
|
318
|
+
## [v1.0.0rc2](https://github.com/adiwg/mdTranslator/tree/v1.0.0rc2) (2015-03-06)
|
|
319
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v1.0.0rc1...v1.0.0rc2)
|
|
320
|
+
|
|
321
|
+
## [v1.0.0rc1](https://github.com/adiwg/mdTranslator/tree/v1.0.0rc1) (2015-02-28)
|
|
322
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v0.12.1...v1.0.0rc1)
|
|
323
|
+
|
|
324
|
+
**Implemented enhancements:**
|
|
325
|
+
|
|
326
|
+
- De-Normalize contacts in internal data store [\#17](https://github.com/adiwg/mdTranslator/issues/17)
|
|
327
|
+
|
|
328
|
+
**Fixed bugs:**
|
|
329
|
+
|
|
330
|
+
- De-Normalize contacts in internal data store [\#17](https://github.com/adiwg/mdTranslator/issues/17)
|
|
331
|
+
|
|
332
|
+
## [v0.12.1](https://github.com/adiwg/mdTranslator/tree/v0.12.1) (2015-01-22)
|
|
333
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v0.12.0...v0.12.1)
|
|
334
|
+
|
|
335
|
+
## [v0.12.0](https://github.com/adiwg/mdTranslator/tree/v0.12.0) (2015-01-17)
|
|
336
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v0.10.2...v0.12.0)
|
|
337
|
+
|
|
338
|
+
**Closed issues:**
|
|
339
|
+
|
|
340
|
+
- Translator crashes when supplied reader doesn't exist. [\#10](https://github.com/adiwg/mdTranslator/issues/10)
|
|
341
|
+
|
|
342
|
+
**Merged pull requests:**
|
|
343
|
+
|
|
344
|
+
- Dev to Master - dynamic path of readers and writers based on names [\#13](https://github.com/adiwg/mdTranslator/pull/13) ([stansmith907](https://github.com/stansmith907))
|
|
345
|
+
- Merge Dev to Master version 0.11.0 [\#12](https://github.com/adiwg/mdTranslator/pull/12) ([stansmith907](https://github.com/stansmith907))
|
|
346
|
+
|
|
347
|
+
## [v0.10.2](https://github.com/adiwg/mdTranslator/tree/v0.10.2) (2014-12-05)
|
|
348
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v0.9.0-beta...v0.10.2)
|
|
349
|
+
|
|
350
|
+
**Implemented enhancements:**
|
|
351
|
+
|
|
352
|
+
- Failure if non-semantic version is supplied [\#11](https://github.com/adiwg/mdTranslator/issues/11)
|
|
353
|
+
|
|
354
|
+
**Fixed bugs:**
|
|
355
|
+
|
|
356
|
+
- Failure if non-semantic version is supplied [\#11](https://github.com/adiwg/mdTranslator/issues/11)
|
|
357
|
+
- Formatting messages [\#9](https://github.com/adiwg/mdTranslator/issues/9)
|
|
358
|
+
|
|
359
|
+
## [v0.9.0-beta](https://github.com/adiwg/mdTranslator/tree/v0.9.0-beta) (2014-11-11)
|
|
360
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v0.8.6-beta...v0.9.0-beta)
|
|
361
|
+
|
|
362
|
+
**Implemented enhancements:**
|
|
363
|
+
|
|
364
|
+
- Add support for resourceType, initiativeType [\#8](https://github.com/adiwg/mdTranslator/issues/8)
|
|
365
|
+
- Use the NGDC codelists [\#3](https://github.com/adiwg/mdTranslator/issues/3)
|
|
366
|
+
|
|
367
|
+
**Closed issues:**
|
|
368
|
+
|
|
369
|
+
- Test the limits of a minimal adiwgJson input [\#7](https://github.com/adiwg/mdTranslator/issues/7)
|
|
370
|
+
|
|
371
|
+
## [v0.8.6-beta](https://github.com/adiwg/mdTranslator/tree/v0.8.6-beta) (2014-10-15)
|
|
372
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v0.8.5-beta...v0.8.6-beta)
|
|
373
|
+
|
|
374
|
+
## [v0.8.5-beta](https://github.com/adiwg/mdTranslator/tree/v0.8.5-beta) (2014-10-15)
|
|
375
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v0.8.2-beta...v0.8.5-beta)
|
|
376
|
+
|
|
377
|
+
**Implemented enhancements:**
|
|
378
|
+
|
|
379
|
+
- Add readme files for readers and writers [\#6](https://github.com/adiwg/mdTranslator/issues/6)
|
|
380
|
+
|
|
381
|
+
## [v0.8.2-beta](https://github.com/adiwg/mdTranslator/tree/v0.8.2-beta) (2014-10-10)
|
|
382
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v0.8.1-beta...v0.8.2-beta)
|
|
383
|
+
|
|
384
|
+
**Implemented enhancements:**
|
|
385
|
+
|
|
386
|
+
- Add version output to CLI [\#5](https://github.com/adiwg/mdTranslator/issues/5)
|
|
387
|
+
|
|
388
|
+
## [v0.8.1-beta](https://github.com/adiwg/mdTranslator/tree/v0.8.1-beta) (2014-10-06)
|
|
389
|
+
[Full Changelog](https://github.com/adiwg/mdTranslator/compare/v0.8.0-beta...v0.8.1-beta)
|
|
390
|
+
|
|
391
|
+
**Fixed bugs:**
|
|
392
|
+
|
|
393
|
+
- OnlineResource is not output for metadata{ } \> resourceInfo{ } \> citation{ } [\#4](https://github.com/adiwg/mdTranslator/issues/4)
|
|
394
|
+
|
|
395
|
+
## [v0.8.0-beta](https://github.com/adiwg/mdTranslator/tree/v0.8.0-beta) (2014-09-29)
|
|
396
|
+
**Merged pull requests:**
|
|
397
|
+
|
|
398
|
+
- Merge in dev branch [\#1](https://github.com/adiwg/mdTranslator/pull/1) ([jlblcc](https://github.com/jlblcc))
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/adiwg-mdtranslator.gemspec
CHANGED
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
|
33
33
|
spec.add_runtime_dependency "thor", "~> 0.19"
|
|
34
34
|
spec.add_runtime_dependency "uuidtools", "~> 2.1"
|
|
35
35
|
spec.add_runtime_dependency "json-schema", "~> 2.7"
|
|
36
|
-
spec.add_runtime_dependency "adiwg-mdjson_schemas", ">= 2.
|
|
36
|
+
spec.add_runtime_dependency "adiwg-mdjson_schemas", ">= 2.3"
|
|
37
37
|
spec.add_runtime_dependency "adiwg-mdcodes", "~> 2.3"
|
|
38
38
|
spec.add_runtime_dependency "jbuilder", "~> 2.5"
|
|
39
39
|
spec.add_runtime_dependency "kramdown", "~> 1.13"
|
|
@@ -662,6 +662,8 @@ class InternalMetadata
|
|
|
662
662
|
timePeriod: {},
|
|
663
663
|
processors: [],
|
|
664
664
|
references: [],
|
|
665
|
+
stepSources: [],
|
|
666
|
+
stepProducts: [],
|
|
665
667
|
scope: {}
|
|
666
668
|
}
|
|
667
669
|
end
|
|
@@ -953,19 +955,22 @@ class InternalMetadata
|
|
|
953
955
|
|
|
954
956
|
def newAllocation
|
|
955
957
|
{
|
|
958
|
+
id: nil,
|
|
956
959
|
amount: nil,
|
|
957
960
|
currency: nil,
|
|
958
961
|
sourceId: nil,
|
|
959
962
|
recipientId: nil,
|
|
960
963
|
matching: false,
|
|
964
|
+
onlineResources: [],
|
|
961
965
|
comment: nil
|
|
962
966
|
}
|
|
963
967
|
end
|
|
964
968
|
|
|
965
969
|
def newFunding
|
|
966
970
|
{
|
|
967
|
-
|
|
968
|
-
timePeriod: {}
|
|
971
|
+
description: nil,
|
|
972
|
+
timePeriod: {},
|
|
973
|
+
allocations: []
|
|
969
974
|
}
|
|
970
975
|
end
|
|
971
976
|
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# Reader - fgdc to internal data structure
|
|
2
|
+
# unpack fgdc contact
|
|
3
|
+
|
|
4
|
+
# History:
|
|
5
|
+
# Stan Smith 2017-08-25 original script
|
|
6
|
+
|
|
7
|
+
require 'nokogiri'
|
|
8
|
+
require 'adiwg/mdtranslator/internal/internal_metadata_obj'
|
|
9
|
+
require_relative 'module_fgdc'
|
|
10
|
+
|
|
11
|
+
module ADIWG
|
|
12
|
+
module Mdtranslator
|
|
13
|
+
module Readers
|
|
14
|
+
module Fgdc
|
|
15
|
+
|
|
16
|
+
module Contact
|
|
17
|
+
|
|
18
|
+
def self.unpack(xContact, hResponseObj)
|
|
19
|
+
|
|
20
|
+
# instance classes needed in script
|
|
21
|
+
intMetadataClass = InternalMetadata.new
|
|
22
|
+
|
|
23
|
+
# contact 10 (cntinfo) - contact information
|
|
24
|
+
contactType = nil
|
|
25
|
+
personName = ''
|
|
26
|
+
orgName = ''
|
|
27
|
+
xContactInfo = xContact.xpath('./cntinfo')
|
|
28
|
+
unless xContactInfo.empty?
|
|
29
|
+
|
|
30
|
+
# contact 10.1 (cntperp) - contact person primary
|
|
31
|
+
xPerson = xContactInfo.xpath('./cntperp')
|
|
32
|
+
unless xPerson.empty?
|
|
33
|
+
contactType = 'person'
|
|
34
|
+
|
|
35
|
+
# person primary 10.1.1 (cntper) - name of person
|
|
36
|
+
# person primary 10.1.2 (cntorg) - name of organization
|
|
37
|
+
personName = xPerson.xpath('./cntper').text
|
|
38
|
+
orgName = xPerson.xpath('./cntorg').text
|
|
39
|
+
return nil if personName.empty?
|
|
40
|
+
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# contact 10.2 (cntorgp) - contact organization primary
|
|
44
|
+
xOrg = xContactInfo.xpath('./cntorgp')
|
|
45
|
+
unless xOrg.empty?
|
|
46
|
+
contactType = 'organization'
|
|
47
|
+
|
|
48
|
+
# organization primary 10.1.1 (cntper) - name of person
|
|
49
|
+
# organization primary 10.1.2 (cntorg) - name of organization
|
|
50
|
+
personName = xOrg.xpath('./cntper').text
|
|
51
|
+
orgName = xOrg.xpath('./cntorg').text
|
|
52
|
+
return nil if orgName.empty?
|
|
53
|
+
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# add new contacts to contact array
|
|
57
|
+
unless contactType.nil?
|
|
58
|
+
personId = Fgdc.add_contact(personName, false) unless personName.empty?
|
|
59
|
+
orgId = Fgdc.add_contact(orgName, true) unless orgName.empty?
|
|
60
|
+
hContact = Fgdc.get_contact_by_id(personId) if contactType == 'person'
|
|
61
|
+
hContact = Fgdc.get_contact_by_id(orgId) if contactType == 'organization'
|
|
62
|
+
|
|
63
|
+
# contact 10.3 (cntpos) - contact position
|
|
64
|
+
position = xContactInfo.xpath('./cntpos').text
|
|
65
|
+
if contactType == 'person'
|
|
66
|
+
hContact[:positionName] = position
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# contact 10.4 (cntaddr) - contact address []
|
|
70
|
+
axAddress = xContactInfo.xpath('./cntaddr')
|
|
71
|
+
unless axAddress.empty?
|
|
72
|
+
axAddress.each do |xAddress|
|
|
73
|
+
hAddress = intMetadataClass.newAddress
|
|
74
|
+
|
|
75
|
+
# address 10.4.1 (addrtype) - address type
|
|
76
|
+
addType = xAddress.xpath('./addrtype').text
|
|
77
|
+
hAddress[:addressTypes] << addType unless addType.empty?
|
|
78
|
+
|
|
79
|
+
# address 10.4.2 (address) - address lines []
|
|
80
|
+
axAddLines = xAddress.xpath('./address')
|
|
81
|
+
unless axAddLines.empty?
|
|
82
|
+
axAddLines.each do |xLine|
|
|
83
|
+
addLine = xLine.text
|
|
84
|
+
hAddress[:deliveryPoints] << addLine unless addLine.empty?
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# address 10.4.3 (city) - city
|
|
89
|
+
city = xAddress.xpath('./city').text
|
|
90
|
+
hAddress[:city] = city unless city.empty?
|
|
91
|
+
|
|
92
|
+
# address 10.4.4 (state) - state or province
|
|
93
|
+
state = xAddress.xpath('./state').text
|
|
94
|
+
hAddress[:adminArea] = state unless state.empty?
|
|
95
|
+
|
|
96
|
+
# address 10.4.5 (postal) - postal code
|
|
97
|
+
postal = xAddress.xpath('./postal').text
|
|
98
|
+
hAddress[:postalCode] = postal unless postal.empty?
|
|
99
|
+
|
|
100
|
+
# address 10.4.6 (country) - country
|
|
101
|
+
country = xAddress.xpath('./country').text
|
|
102
|
+
hAddress[:country] = country unless country.empty?
|
|
103
|
+
|
|
104
|
+
hContact[:addresses] << hAddress
|
|
105
|
+
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# contact 10.5 (cntvoice) - contact voice phone number []
|
|
110
|
+
axVoice = xContactInfo.xpath('./cntvoice')
|
|
111
|
+
unless axVoice.empty?
|
|
112
|
+
axVoice.each do |xPhone|
|
|
113
|
+
phone = xPhone.text
|
|
114
|
+
unless phone.empty?
|
|
115
|
+
hPhone = intMetadataClass.newPhone
|
|
116
|
+
hPhone[:phoneNumber] = phone
|
|
117
|
+
hPhone[:phoneServiceTypes] << 'voice'
|
|
118
|
+
hContact[:phones] << hPhone
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# contact 10.6 (cnttdd) - contact TDD/TTY phone number []
|
|
124
|
+
axTDD = xContactInfo.xpath('./cnttdd')
|
|
125
|
+
unless axTDD.empty?
|
|
126
|
+
axTDD.each do |xPhone|
|
|
127
|
+
phone = xPhone.text
|
|
128
|
+
unless phone.empty?
|
|
129
|
+
hPhone = intMetadataClass.newPhone
|
|
130
|
+
hPhone[:phoneNumber] = phone
|
|
131
|
+
hPhone[:phoneServiceTypes] << 'tty'
|
|
132
|
+
hContact[:phones] << hPhone
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# contact 10.7 (cntfax) - contact fax phone number []
|
|
138
|
+
axFax = xContactInfo.xpath('./cntfax')
|
|
139
|
+
unless axFax.empty?
|
|
140
|
+
axFax.each do |xPhone|
|
|
141
|
+
phone = xPhone.text
|
|
142
|
+
unless phone.empty?
|
|
143
|
+
hPhone = intMetadataClass.newPhone
|
|
144
|
+
hPhone[:phoneNumber] = phone
|
|
145
|
+
hPhone[:phoneServiceTypes] << 'facsimile'
|
|
146
|
+
hContact[:phones] << hPhone
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# contact 10.8 (cntemail) - contact email address []
|
|
152
|
+
axEmail = xContactInfo.xpath('./cntemail')
|
|
153
|
+
unless axEmail.empty?
|
|
154
|
+
axEmail.each do |xEmail|
|
|
155
|
+
email = xEmail.text
|
|
156
|
+
unless email.empty?
|
|
157
|
+
hContact[:eMailList] << email
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# contact 10.9 (hours) - hours of service
|
|
163
|
+
hours = xContactInfo.xpath('./hours').text
|
|
164
|
+
hContact[:hoursOfService] << hours unless hours.empty?
|
|
165
|
+
|
|
166
|
+
# contact 10.10 (cntinst) - contact instructions
|
|
167
|
+
instruct = xContactInfo.xpath('./cntinst').text
|
|
168
|
+
hContact[:contactInstructions] = instruct unless instruct.empty?
|
|
169
|
+
|
|
170
|
+
Fgdc.set_contact(hContact)
|
|
171
|
+
|
|
172
|
+
# setup responsibility object
|
|
173
|
+
# let routine that called this module set responsibility roleName
|
|
174
|
+
hResponsibility = intMetadataClass.newResponsibility
|
|
175
|
+
hParty = intMetadataClass.newParty
|
|
176
|
+
hParty[:contactId] = hContact[:contactId]
|
|
177
|
+
aContact = Fgdc.find_contact_by_id(hContact[:contactId])
|
|
178
|
+
hParty[:contactIndex] = aContact[0]
|
|
179
|
+
hParty[:contactType] = aContact[1]
|
|
180
|
+
hResponsibility[:parties] << hParty
|
|
181
|
+
|
|
182
|
+
return hResponsibility
|
|
183
|
+
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
return nil
|
|
188
|
+
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
end
|