Class: GeoblacklightAdmin::FieldMappingsGblv1

Inherits:
Object
  • Object
show all
Defined in:
app/models/geoblacklight_admin/field_mappings_gblv1.rb

Class Method Summary collapse

Class Method Details

.callObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
# File 'app/models/geoblacklight_admin/field_mappings_gblv1.rb', line 8

def self.call
  {
    dc_title_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:title],
      delimited: false,
      transformation_method: nil
    },
    alternativeTitle_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:alternative_title],
      delimited: true,
      transformation_method: nil
    },
    dct_alternativeTitle_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:alternative_title],
      delimited: true,
      transformation_method: nil
    },
    dc_description_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:description],
      delimited: false,
      transformation_method: nil
    },
    dc_language_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:language],
      delimited: true,
      transformation_method: nil
    },
    dc_language_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:language],
      delimited: true,
      transformation_method: nil
    },
    dc_publisher_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:publisher],
      delimited: true,
      transformation_method: nil
    },
    dc_publisher_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:publisher],
      delimited: true,
      transformation_method: nil
    },
    dc_creator_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:creator],
      delimited: true,
      transformation_method: nil
    },
    b1g_genre_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:resource_class],
      delimited: true,
      transformation_method: nil
    },
    dc_subject_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:subject],
      delimited: true,
      transformation_method: nil
    },
    b1g_keyword_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:keyword],
      delimited: true,
      transformation_method: nil
    },
    dct_issued_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:date_issued],
      delimited: false,
      transformation_method: nil
    },
    dct_temporal_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:temporal_coverage],
      delimited: true,
      transformation_method: nil
    },
    b1g_date_range_drsim: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:date_range],
      delimited: true,
      transformation_method: nil
    },
    dct_spatial_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:spatial_coverage],
      delimited: true,
      transformation_method: nil
    },
    b1g_geonames_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:geonames],
      delimited: true,
      transformation_method: nil
    },
    solr_geom: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:geometry],
      delimited: false,
      transformation_method: nil
    },
    dc_format_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:format],
      delimited: false,
      transformation_method: nil
    },
    layer_geom_type_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:resource_type],
      delimited: false,
      transformation_method: nil
    },
    layer_id_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:wxs_identifier],
      delimited: false,
      transformation_method: nil
    },
    dct_references_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:reference],
      delimited: false,
      transformation_method: "build_dct_references"
    },
    b1g_image_ss: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:b1g_image_url],
      delimited: false,
      transformation_method: nil
    },
    dc_identifier_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:identifier],
      delimited: false,
      transformation_method: nil
    },
    layer_slug_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:id],
      delimited: false,
      transformation_method: nil
    },
    dct_provenance_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:provider],
      delimited: false,
      transformation_method: nil
    },
    b1g_code_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:code],
      delimited: false,
      transformation_method: nil
    },
    dct_isPartOf_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:is_part_of],
      delimited: true,
      transformation_method: nil
    },
    dc_source_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:source],
      delimited: true,
      transformation_method: nil
    },
    b1g_status_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:status],
      delimited: false,
      transformation_method: nil
    },
    dct_accrualMethod_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:accrual_method],
      delimited: false,
      transformation_method: nil
    },
    "Accrual Periodicity": {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:accrual_periodicity],
      delimited: false,
      transformation_method: nil
    },
    b1g_dateAccessioned_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:date_accessioned],
      delimited: false,
      transformation_method: nil
    },
    b1g_dateRetired_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:date_retired],
      delimited: false,
      transformation_method: nil
    },
    dc_rights_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:rights],
      delimited: false,
      transformation_method: nil
    },
    dct_accessRights_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:access_rights],
      delimited: true,
      transformation_method: nil
    },
    suppressed_b: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:suppressed_record],
      delimited: false,
      transformation_method: nil
    },
    b1g_child_record_b: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:child_record],
      delimited: false,
      transformation_method: nil
    },
    solr_year_i: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:index_year],
      delimited: false,
      transformation_method: nil
    },
    layer_modified_dt: {
      destination: "layer_modified_dt",
      delimited: false,
      transformation_method: nil
    },
    dct_mediator_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:mediator],
      delimited: false,
      transformation_method: nil
    },
    score: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    cugir_category_sm: {
      destination: "cugir_category_sm",
      delimited: false,
      transformation_method: nil
    },
    solr_bboxtype: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    b1g_access_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:access],
      delimited: false,
      transformation_method: nil
    },
    geoblacklight_version: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    nyu_addl_dspace_s: {
      destination: "nyu_addl_dspace_s",
      delimited: false,
      transformation_method: nil
    },
    b1g_collection_sm: {
      destination: "b1g_collection_sm",
      delimited: false,
      transformation_method: nil
    },
    georss_polygon_s: {
      destination: "georss_polygon_s",
      delimited: false,
      transformation_method: nil
    },
    dct_accrual_sm: {
      destination: "dct_accrual_sm",
      delimited: false,
      transformation_method: nil
    },
    solr_bboxtype__maxX: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    solr_bboxtype__minX: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    solr_bboxtype__maxY: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    solr_bboxtype__minY: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    call_number_s: {
      destination: "call_number_s",
      delimited: false,
      transformation_method: nil
    },
    timestamp: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    b1g_centroid_ss: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    cugir_addl_downloads_s: {
      destination: "cugir_addl_downloads_s",
      delimited: false,
      transformation_method: nil
    },
    cugir_filesize_s: {
      destination: "cugir_filesize_s",
      delimited: false,
      transformation_method: nil
    },
    _version_: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    stanford_rights_metadata_s: {
      destination: "stanford_rights_metadata_s",
      delimited: false,
      transformation_method: nil
    }
  }
end

.uri_2_category_references_mappingsObject



318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# File 'app/models/geoblacklight_admin/field_mappings_gblv1.rb', line 318

def self.uri_2_category_references_mappings
  ActiveSupport::HashWithIndifferentAccess.new({
    "http://www.opengis.net/def/serviceType/ogc/wcs": "wcs",
    "http://www.opengis.net/def/serviceType/ogc/wms": "wms",
    "http://www.opengis.net/def/serviceType/ogc/wfs": "wfs",
    "http://iiif.io/api/image": "iiif_image",
    "http://iiif.io/api/presentation#manifest": "iiif_manifest",
    "http://schema.org/image": "image",
    "http://schema.org/downloadUrl": "download",
    "http://schema.org/thumbnailUrl": "thumbnail",
    "http://lccn.loc.gov/sh85035852": "documentation_download",
    "http://schema.org/url": "documentation_external",
    "http://www.isotc211.org/schemas/2005/gmd/": "metadata_iso",
    "http://www.opengis.net/cat/csw/csdgm": "metadata_fgdc",
    "http://www.loc.gov/mods/v3": "metadata_mods",
    "http://www.w3.org/1999/xhtml": "metadata_html",
    "urn:x-esri:serviceType:ArcGIS#FeatureLayer": "arcgis_feature_layer",
    "urn:x-esri:serviceType:ArcGIS#TiledMapLayer": "arcgis_tiled_map_layer",
    "urn:x-esri:serviceType:ArcGIS#DynamicMapLayer": "arcgis_dynamic_map_layer",
    "urn:x-esri:serviceType:ArcGIS#ImageMapLayer": "arcgis_image_map_layer",
    "http://schema.org/DownloadAction": "harvard",
    "https://openindexmaps.org": "open_index_map",
    "https://oembed.com": "oembed"
  })
end