cul_scv_hydra 0.20.1 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/cul_hydra/filesystem/application.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/code.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/css.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/db.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/directory.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/doc.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/file.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/film.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/flash.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/folder_open.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/html.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/java.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/linux.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/music.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/pdf.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/php.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/picture.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/ppt.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/psd.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/ruby.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/script.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/spinner.gif +0 -0
- data/app/assets/images/cul_hydra/filesystem/txt.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/xls.png +0 -0
- data/app/assets/images/cul_hydra/filesystem/zip.png +0 -0
- data/app/controllers/concerns/cul/hydra/application_id_behavior.rb +43 -0
- data/app/helpers/cul/hydra/ore_proxies_helper_behavior.rb +119 -0
- data/app/helpers/cul/hydra/struct_metadata_helper_behavior.rb +89 -0
- data/app/models/concerns/ore/proxy.rb +1 -0
- data/app/models/concerns/rdf/cul.rb +3 -0
- data/app/models/generic_resource.rb +12 -4
- data/config/fedora.yml +8 -8
- data/config/locales/nnc.ntriples +12 -0
- data/config/subs.yml +12 -0
- data/config/xsl/marc_to_mods.xsl +5542 -0
- data/fixtures/spec/MARCXML/3867996.mods.xml +7 -0
- data/fixtures/spec/MARCXML/3867996.xml +100 -0
- data/lib/cul_scv_hydra/version.rb +1 -1
- data/lib/tasks/transform.rake +23 -0
- metadata +52 -5
- data/config/solr.yml +0 -5
- data/lib/cul_scv_hydra/version.rb~ +0 -11
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
2
|
+
<mods xmlns="http://www.loc.gov/mods/v3"
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
5
|
+
xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd"
|
6
|
+
version="3.5">
|
7
|
+
</mods>
|
@@ -0,0 +1,100 @@
|
|
1
|
+
<record xmlns='http://www.loc.gov/MARC21/slim'>
|
2
|
+
<leader>01316cam a2200361 a 4500</leader>
|
3
|
+
<controlfield tag='001'>3867996</controlfield>
|
4
|
+
<controlfield tag='005'>20100210190726.0</controlfield>
|
5
|
+
<controlfield tag='008'>000922s1898 ja a j 000 1 eng d</controlfield>
|
6
|
+
<datafield ind1=' ' ind2=' ' tag='035'>
|
7
|
+
<subfield code='a'>(OCoLC)502907050</subfield>
|
8
|
+
</datafield>
|
9
|
+
<datafield ind1=' ' ind2=' ' tag='035'>
|
10
|
+
<subfield code='a'>(OCoLC)ocn502907050</subfield>
|
11
|
+
</datafield>
|
12
|
+
<datafield ind1=' ' ind2=' ' tag='035'>
|
13
|
+
<subfield code='a'>(CStRLIN)NYCP00-B10039</subfield>
|
14
|
+
</datafield>
|
15
|
+
<datafield ind1=' ' ind2=' ' tag='035'>
|
16
|
+
<subfield code='a'>(NNC)3867996</subfield>
|
17
|
+
</datafield>
|
18
|
+
<datafield ind1=' ' ind2=' ' tag='040'>
|
19
|
+
<subfield code='a'>NNC</subfield>
|
20
|
+
<subfield code='c'>NNC</subfield>
|
21
|
+
</datafield>
|
22
|
+
<datafield ind1=' ' ind2='4' tag='050'>
|
23
|
+
<subfield code='a'>GR340</subfield>
|
24
|
+
<subfield code='b'>.B69 1898</subfield>
|
25
|
+
</datafield>
|
26
|
+
<datafield ind1=' ' ind2=' ' tag='066'>
|
27
|
+
<subfield code='c'>$1</subfield>
|
28
|
+
</datafield>
|
29
|
+
<datafield ind1=' ' ind2=' ' tag='079'>
|
30
|
+
<subfield code='a'>ocm03317411</subfield>
|
31
|
+
</datafield>
|
32
|
+
<datafield ind1=' ' ind2=' ' tag='090'>
|
33
|
+
<subfield code='a'>SPECIAL COLL. GR340</subfield>
|
34
|
+
<subfield code='b'>.B69 1898</subfield>
|
35
|
+
<subfield code='i'>09/25/00 X</subfield>
|
36
|
+
<subfield code='h'>09/22/00 N</subfield>
|
37
|
+
</datafield>
|
38
|
+
<datafield ind1='0' ind2='4' tag='245'>
|
39
|
+
<subfield code='a'>The Boy who drew cats /</subfield>
|
40
|
+
<subfield code='c'>rendered into English by Lafcadio Hearn.</subfield>
|
41
|
+
</datafield>
|
42
|
+
<datafield ind1=' ' ind2=' ' tag='260'>
|
43
|
+
<subfield code='6'>880-01</subfield>
|
44
|
+
<subfield code='a'>Tōkyō :</subfield>
|
45
|
+
<subfield code='b'>Hasegawa Takejirō,</subfield>
|
46
|
+
<subfield code='c'>Meiji 31 [1898]</subfield>
|
47
|
+
</datafield>
|
48
|
+
<datafield ind1=' ' ind2=' ' tag='300'>
|
49
|
+
<subfield code='a'>[10] leaves :</subfield>
|
50
|
+
<subfield code='b'>col. ill. ;</subfield>
|
51
|
+
<subfield code='c'>18 cm.</subfield>
|
52
|
+
</datafield>
|
53
|
+
<datafield ind1='1' ind2=' ' tag='490'>
|
54
|
+
<subfield code='a'>Japanese fairy tale series ;</subfield>
|
55
|
+
<subfield code='v'>no. 18</subfield>
|
56
|
+
</datafield>
|
57
|
+
<datafield ind1=' ' ind2=' ' tag='500'>
|
58
|
+
<subfield code='a'>Cover title.</subfield>
|
59
|
+
</datafield>
|
60
|
+
<datafield ind1=' ' ind2=' ' tag='500'>
|
61
|
+
<subfield code='a'>Printed on double leaves of crepe paper, folded in the Japanese style.</subfield>
|
62
|
+
</datafield>
|
63
|
+
<datafield ind1=' ' ind2=' ' tag='590'>
|
64
|
+
<subfield code='a'>Housed in Special Collection.</subfield>
|
65
|
+
</datafield>
|
66
|
+
<datafield ind1='1' ind2=' ' tag='700'>
|
67
|
+
<subfield code='a'>Hearn, Lafcadio,</subfield>
|
68
|
+
<subfield code='d'>1850-1904.</subfield>
|
69
|
+
</datafield>
|
70
|
+
<datafield ind1='2' ind2=' ' tag='797'>
|
71
|
+
<subfield code='a'>JASP</subfield>
|
72
|
+
</datafield>
|
73
|
+
<datafield ind1=' ' ind2='0' tag='830'>
|
74
|
+
<subfield code='a'>Japanese fairy tale series ;</subfield>
|
75
|
+
<subfield code='v'>no. 18.</subfield>
|
76
|
+
</datafield>
|
77
|
+
<datafield ind1=' ' ind2=' ' tag='880'>
|
78
|
+
<subfield code='6'>260-01/$1</subfield>
|
79
|
+
<subfield code='a'>東京 :</subfield>
|
80
|
+
<subfield code='b'>長谷川 武次郎,</subfield>
|
81
|
+
<subfield code='c'>明治 31 [1898]</subfield>
|
82
|
+
</datafield>
|
83
|
+
<datafield ind1=' ' ind2=' ' tag='900'>
|
84
|
+
<subfield code='a'>AUTH</subfield>
|
85
|
+
</datafield>
|
86
|
+
<datafield ind1=' ' ind2=' ' tag='990'>
|
87
|
+
<subfield code='a'>GR</subfield>
|
88
|
+
</datafield>
|
89
|
+
<datafield ind1=' ' ind2=' ' tag='991'>
|
90
|
+
<subfield code='a'>GR340.B69 1898</subfield>
|
91
|
+
<subfield code='b'>loc+GR-+0340+00000000+B6900000+001898</subfield>
|
92
|
+
</datafield>
|
93
|
+
<datafield ind1=' ' ind2=' ' tag='992'>
|
94
|
+
<subfield code='a'>East Asian</subfield>
|
95
|
+
<subfield code='b'>East Asian Special Collection (Non-Circulating) >> SPECIAL COLL. GR340.B69 1898|DELIM|4397398</subfield>
|
96
|
+
</datafield>
|
97
|
+
<datafield ind1=' ' ind2=' ' tag='995'>
|
98
|
+
<subfield code='a'>catalog</subfield>
|
99
|
+
</datafield>
|
100
|
+
</record>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
namespace :cul_scv_hydra do
|
2
|
+
|
3
|
+
namespace :transform do
|
4
|
+
|
5
|
+
task :marc => :environment do
|
6
|
+
|
7
|
+
begin
|
8
|
+
src_path = File.join(Rails.root,'fixtures','spec','MARCXML','3867996.xml')
|
9
|
+
xsl_path = File.join(Rails.root,'config','xsl','marc_to_mods.xsl')
|
10
|
+
doc = Nokogiri::XML(File.read(src_path))
|
11
|
+
xslt = Nokogiri::XSLT(File.read(xsl_path))
|
12
|
+
puts xslt.transform(doc)
|
13
|
+
rescue => e
|
14
|
+
puts 'Error: ' + e.message
|
15
|
+
puts e.backtrace
|
16
|
+
next
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cul_scv_hydra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Armintor
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-01-
|
12
|
+
date: 2015-01-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: blacklight
|
@@ -137,6 +137,20 @@ dependencies:
|
|
137
137
|
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: rdf
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: 1.1.5
|
147
|
+
type: :runtime
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: 1.1.5
|
140
154
|
- !ruby/object:Gem::Dependency
|
141
155
|
name: sqlite3
|
142
156
|
requirement: !ruby/object:Gem::Requirement
|
@@ -227,6 +241,31 @@ executables: []
|
|
227
241
|
extensions: []
|
228
242
|
extra_rdoc_files: []
|
229
243
|
files:
|
244
|
+
- app/assets/images/cul_hydra/filesystem/application.png
|
245
|
+
- app/assets/images/cul_hydra/filesystem/code.png
|
246
|
+
- app/assets/images/cul_hydra/filesystem/css.png
|
247
|
+
- app/assets/images/cul_hydra/filesystem/db.png
|
248
|
+
- app/assets/images/cul_hydra/filesystem/directory.png
|
249
|
+
- app/assets/images/cul_hydra/filesystem/doc.png
|
250
|
+
- app/assets/images/cul_hydra/filesystem/file.png
|
251
|
+
- app/assets/images/cul_hydra/filesystem/film.png
|
252
|
+
- app/assets/images/cul_hydra/filesystem/flash.png
|
253
|
+
- app/assets/images/cul_hydra/filesystem/folder_open.png
|
254
|
+
- app/assets/images/cul_hydra/filesystem/html.png
|
255
|
+
- app/assets/images/cul_hydra/filesystem/java.png
|
256
|
+
- app/assets/images/cul_hydra/filesystem/linux.png
|
257
|
+
- app/assets/images/cul_hydra/filesystem/music.png
|
258
|
+
- app/assets/images/cul_hydra/filesystem/pdf.png
|
259
|
+
- app/assets/images/cul_hydra/filesystem/php.png
|
260
|
+
- app/assets/images/cul_hydra/filesystem/picture.png
|
261
|
+
- app/assets/images/cul_hydra/filesystem/ppt.png
|
262
|
+
- app/assets/images/cul_hydra/filesystem/psd.png
|
263
|
+
- app/assets/images/cul_hydra/filesystem/ruby.png
|
264
|
+
- app/assets/images/cul_hydra/filesystem/script.png
|
265
|
+
- app/assets/images/cul_hydra/filesystem/spinner.gif
|
266
|
+
- app/assets/images/cul_hydra/filesystem/txt.png
|
267
|
+
- app/assets/images/cul_hydra/filesystem/xls.png
|
268
|
+
- app/assets/images/cul_hydra/filesystem/zip.png
|
230
269
|
- app/assets/images/cul_scv_hydra/crystal/binary.png
|
231
270
|
- app/assets/images/cul_scv_hydra/crystal/document.png
|
232
271
|
- app/assets/images/cul_scv_hydra/crystal/file.png
|
@@ -241,9 +280,12 @@ files:
|
|
241
280
|
- app/assets/images/cul_scv_hydra/crystal/mp3.png
|
242
281
|
- app/assets/images/cul_scv_hydra/crystal/multimedia2.png
|
243
282
|
- app/assets/images/cul_scv_hydra/crystal/video.png
|
283
|
+
- app/controllers/concerns/cul/hydra/application_id_behavior.rb
|
244
284
|
- app/controllers/concerns/cul/scv/hydra/controller.rb
|
245
285
|
- app/controllers/concerns/cul/scv/hydra/resolver.rb
|
246
286
|
- app/controllers/concerns/cul/scv/hydra/thumbnails.rb
|
287
|
+
- app/helpers/cul/hydra/ore_proxies_helper_behavior.rb
|
288
|
+
- app/helpers/cul/hydra/struct_metadata_helper_behavior.rb
|
247
289
|
- app/models/bag_aggregator.rb
|
248
290
|
- app/models/concept.rb
|
249
291
|
- app/models/concerns/cul/scv/hydra/models.rb
|
@@ -285,10 +327,12 @@ files:
|
|
285
327
|
- config/fedora.yml
|
286
328
|
- config/jetty.yml
|
287
329
|
- config/locales/ldpd_hydra.en.yml
|
330
|
+
- config/locales/nnc.ntriples
|
288
331
|
- config/predicate_mappings.yml
|
289
|
-
- config/solr.yml
|
290
332
|
- config/solr_mappings.yml
|
291
333
|
- config/solr_value_maps.yml
|
334
|
+
- config/subs.yml
|
335
|
+
- config/xsl/marc_to_mods.xsl
|
292
336
|
- fixtures/cmodels/ldpd_ADLMetadata.xml
|
293
337
|
- fixtures/cmodels/ldpd_AESMetadata.xml
|
294
338
|
- fixtures/cmodels/ldpd_BagAggregator.xml
|
@@ -367,6 +411,8 @@ files:
|
|
367
411
|
- fixtures/spec/FOXML/resource-screen.xml
|
368
412
|
- fixtures/spec/FOXML/resource-thumb.xml
|
369
413
|
- fixtures/spec/FOXML/static-image-aggregator.xml
|
414
|
+
- fixtures/spec/MARCXML/3867996.mods.xml
|
415
|
+
- fixtures/spec/MARCXML/3867996.xml
|
370
416
|
- fixtures/spec/STRUCTMAP/structmap-examples.xml
|
371
417
|
- fixtures/spec/STRUCTMAP/structmap-nested.xml
|
372
418
|
- fixtures/spec/STRUCTMAP/structmap-recto.xml
|
@@ -407,10 +453,10 @@ files:
|
|
407
453
|
- lib/cul_scv_hydra/solrizer/terminology_based_solrizer.rb
|
408
454
|
- lib/cul_scv_hydra/solrizer/value_mapper.rb
|
409
455
|
- lib/cul_scv_hydra/version.rb
|
410
|
-
- lib/cul_scv_hydra/version.rb~
|
411
456
|
- lib/tasks/cmodel.rake
|
412
457
|
- lib/tasks/cul_hydra_dev.rake
|
413
458
|
- lib/tasks/index.rake
|
459
|
+
- lib/tasks/transform.rake
|
414
460
|
homepage: https://github.com/cul/cul_scv_hydra
|
415
461
|
licenses: []
|
416
462
|
metadata: {}
|
@@ -433,8 +479,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
433
479
|
version: '0'
|
434
480
|
requirements: []
|
435
481
|
rubyforge_project:
|
436
|
-
rubygems_version: 2.
|
482
|
+
rubygems_version: 2.2.2
|
437
483
|
signing_key:
|
438
484
|
specification_version: 4
|
439
485
|
summary: ActiveFedora, OM, and Solrizer implementations for CUL Staff Collection Viewer
|
440
486
|
test_files: []
|
487
|
+
has_rdoc:
|
data/config/solr.yml
DELETED