cul_scv_hydra 0.19.5 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,50 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <foxml:digitalObject VERSION="1.1" PID="ore:Proxy"
3
+ xmlns:foxml="info:fedora/fedora-system:def/foxml#"
4
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
6
+ <foxml:objectProperties>
7
+ <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
8
+ <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="CModel for ORE (Object Reuse and Exchange) Proxy objects"/>
9
+ </foxml:objectProperties>
10
+ <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
11
+ <foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for CModel for proxy objects" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/">
12
+ <foxml:xmlContent>
13
+ <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
14
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
15
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
16
+ xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
17
+ <dc:title>CModel for proxy objects</dc:title>
18
+ <dc:creator>CUL/IS:LDPD</dc:creator>
19
+ <dc:contributor>NNC</dc:contributor>
20
+ <dc:identifier>ore:Proxy</dc:identifier>
21
+ </oai_dc:dc>
22
+ </foxml:xmlContent>
23
+ </foxml:datastreamVersion>
24
+ </foxml:datastream>
25
+ <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
26
+ <foxml:datastreamVersion ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0">
27
+ <foxml:xmlContent>
28
+ <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
29
+ <rdf:Description rdf:about="info:fedora/ore:Proxy">
30
+ <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ContentModel-3.0"></fedora-model:hasModel>
31
+ </rdf:Description>
32
+ </rdf:RDF>
33
+ </foxml:xmlContent>
34
+ </foxml:datastreamVersion>
35
+ </foxml:datastream>
36
+ <foxml:datastream ID="DS-COMPOSITE-MODEL" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
37
+ <foxml:datastreamVersion ID="DS-COMPOSITE-MODEL1.0" LABEL="Datastream Composite Model" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:FedoraDSCompositeModel-1.0">
38
+ <foxml:xmlContent>
39
+ <dsCompositeModel xmlns="info:fedora/fedora-system:def/dsCompositeModel#">
40
+ <dsTypeModel ID="DC">
41
+ <form FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" MIME="text/xml"></form>
42
+ </dsTypeModel>
43
+ <dsTypeModel ID="RELS-EXT">
44
+ <form FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" MIME="application/rdf+xml"></form>
45
+ </dsTypeModel>
46
+ </dsCompositeModel>
47
+ </foxml:xmlContent>
48
+ </foxml:datastreamVersion>
49
+ </foxml:datastream>
50
+ </foxml:digitalObject>
@@ -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) &gt;&gt; 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,10 @@
1
+ <mets:structMap TYPE="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Filesystem" LABEL="Device" xmlns:mets="http://www.loc.gov/METS/">
2
+ <mets:div ORDER="1" LABEL="Leaf1">
3
+ <mets:div ORDER="1" LABEL="Recto" CONTENTIDS="rbml_css_0702r" />
4
+ <mets:div ORDER="2" LABEL="Verso" CONTENTIDS="rbml_css_0702v" />
5
+ </div>
6
+ <mets:div ORDER="2" LABEL="Leaf2">
7
+ <mets:div ORDER="1" LABEL="Recto" CONTENTIDS="rbml_css_0703r" />
8
+ <mets:div ORDER="2" LABEL="Verso" CONTENTIDS="rbml_css_0703v" />
9
+ </div>
10
+ </mets:structMap>
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.19.5'
5
+ VERSION = '0.20.0'
6
6
  def self.version
7
7
  VERSION
8
8
  end
@@ -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.19.5
4
+ version: 0.20.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: 2014-12-03 00:00:00.000000000 Z
12
+ date: 2014-12-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight
@@ -67,6 +67,20 @@ dependencies:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '7.0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: active-triples
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: 0.2.2
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: 0.2.2
70
84
  - !ruby/object:Gem::Dependency
71
85
  name: active_fedora_finders
72
86
  requirement: !ruby/object:Gem::Requirement
@@ -238,6 +252,11 @@ files:
238
252
  - app/models/concerns/cul/scv/hydra/models/image_resource.rb
239
253
  - app/models/concerns/cul/scv/hydra/models/linkable_resources.rb
240
254
  - app/models/concerns/cul/scv/hydra/models/resource.rb
255
+ - app/models/concerns/nfo/common.rb
256
+ - app/models/concerns/nfo/file_data_object.rb
257
+ - app/models/concerns/nfo/folder.rb
258
+ - app/models/concerns/nie/information_element.rb
259
+ - app/models/concerns/ore/proxy.rb
241
260
  - app/models/concerns/rdf/cul.rb
242
261
  - app/models/concerns/rdf/fcrepo3.rb
243
262
  - app/models/concerns/rdf/nfo.rb
@@ -245,6 +264,9 @@ files:
245
264
  - app/models/concerns/rdf/olo.rb
246
265
  - app/models/concerns/rdf/ore.rb
247
266
  - app/models/concerns/rdf/pimo.rb
267
+ - app/models/concerns/rdf/sc.rb
268
+ - app/models/concerns/sc/canvas.rb
269
+ - app/models/concerns/sc/sequence.rb
248
270
  - app/models/content_aggregator.rb
249
271
  - app/models/cul/scv/hydra/datastreams/dc_metadata.rb
250
272
  - app/models/cul/scv/hydra/datastreams/mods_document.rb
@@ -263,10 +285,12 @@ files:
263
285
  - config/fedora.yml
264
286
  - config/jetty.yml
265
287
  - config/locales/ldpd_hydra.en.yml
288
+ - config/locales/nnc.ntriples
266
289
  - config/predicate_mappings.yml
267
- - config/solr.yml
268
290
  - config/solr_mappings.yml
269
291
  - config/solr_value_maps.yml
292
+ - config/subs.yml
293
+ - config/xsl/marc_to_mods.xsl
270
294
  - fixtures/cmodels/ldpd_ADLMetadata.xml
271
295
  - fixtures/cmodels/ldpd_AESMetadata.xml
272
296
  - fixtures/cmodels/ldpd_BagAggregator.xml
@@ -308,6 +332,7 @@ files:
308
332
  - fixtures/cmodels/ldpd_sdep.StaticImage.xml
309
333
  - fixtures/cmodels/ldpd_sdep.StaticImageAggregator.xml
310
334
  - fixtures/cmodels/ldpd_sdep.StaticImageCore.xml
335
+ - fixtures/cmodels/ore_Proxy.xml
311
336
  - fixtures/spec/BLOB/test001.jpg
312
337
  - fixtures/spec/CUL_DC/dc.xml
313
338
  - fixtures/spec/CUL_MODS/mods-001.xml
@@ -344,7 +369,10 @@ files:
344
369
  - fixtures/spec/FOXML/resource-screen.xml
345
370
  - fixtures/spec/FOXML/resource-thumb.xml
346
371
  - fixtures/spec/FOXML/static-image-aggregator.xml
372
+ - fixtures/spec/MARCXML/3867996.mods.xml
373
+ - fixtures/spec/MARCXML/3867996.xml
347
374
  - fixtures/spec/STRUCTMAP/structmap-examples.xml
375
+ - fixtures/spec/STRUCTMAP/structmap-nested.xml
348
376
  - fixtures/spec/STRUCTMAP/structmap-recto.xml
349
377
  - fixtures/spec/STRUCTMAP/structmap-seq.xml
350
378
  - fixtures/spec/STRUCTMAP/structmap-unordered-seq.xml
@@ -383,10 +411,10 @@ files:
383
411
  - lib/cul_scv_hydra/solrizer/terminology_based_solrizer.rb
384
412
  - lib/cul_scv_hydra/solrizer/value_mapper.rb
385
413
  - lib/cul_scv_hydra/version.rb
386
- - lib/cul_scv_hydra/version.rb~
387
414
  - lib/tasks/cmodel.rake
388
415
  - lib/tasks/cul_hydra_dev.rake
389
416
  - lib/tasks/index.rake
417
+ - lib/tasks/transform.rake
390
418
  homepage: https://github.com/cul/cul_scv_hydra
391
419
  licenses: []
392
420
  metadata: {}
data/config/solr.yml DELETED
@@ -1,5 +0,0 @@
1
- development:
2
- url: http://localhost:8983/solr/test
3
-
4
- test:
5
- url: http://localhost:8983/solr/test
@@ -1,11 +0,0 @@
1
-
2
- module Cul
3
- module Scv
4
- module Hydra
5
- VERSION = '0.19.4'
6
- def self.version
7
- VERSION
8
- end
9
- end
10
- end
11
- end