hydra-core 8.2.0 → 9.0.0.beta1
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/app/controllers/concerns/hydra/controller/controller_behavior.rb +5 -6
- data/app/controllers/concerns/hydra/controller/download_behavior.rb +37 -39
- data/app/models/concerns/hydra/model_methods.rb +22 -22
- data/hydra-core.gemspec +3 -3
- data/lib/generators/hydra/head_generator.rb +0 -2
- data/lib/generators/hydra/templates/catalog_controller.rb +1 -2
- data/lib/generators/hydra/templates/config/initializers/hydra_config.rb +8 -8
- data/lib/hydra-core.rb +4 -0
- data/lib/hydra-head/version.rb +1 -2
- data/spec/controllers/catalog_controller_spec.rb +6 -8
- data/spec/controllers/downloads_controller_spec.rb +40 -47
- data/spec/lib/catalog_spec.rb +15 -0
- data/spec/lib/model_methods_spec.rb +19 -9
- data/spec/spec_helper.rb +9 -5
- data/spec/support/lib/generators/test_app_generator.rb +1 -8
- data/spec/support/lib/tasks/rspec.rake +2 -1
- data/tasks/rspec.rake +1 -7
- metadata +25 -31
- data/app/search_builders/hydra/search_builder.rb +0 -5
- data/lib/generators/hydra/hyhead_fixtures_generator.rb +0 -27
- data/lib/generators/hydra/templates/config/blacklight.yml +0 -9
- data/lib/railties/hydra-fixtures.rake +0 -49
- data/spec/models/mods_asset_spec.rb +0 -16
- data/spec/search_builders/search_builder_spec.rb +0 -22
- data/spec/support/app/models/generic_content.rb +0 -21
- data/spec/support/spec/fixtures/hydra_test_generic_content.foxml.xml +0 -138
- data/spec/support/spec/fixtures/hydrangea_fixture_mods_article1.foxml.xml +0 -234
- data/tasks/hydra-head-fixtures.rake +0 -58
@@ -1,21 +0,0 @@
|
|
1
|
-
# GenericContent: EXAMPLE Model that conforms to the Hydra genericContent and genericMetadata cModels
|
2
|
-
require 'deprecation'
|
3
|
-
class GenericContent < ActiveFedora::Base
|
4
|
-
extend Deprecation
|
5
|
-
|
6
|
-
# Uses the Hydra Rights Metadata Schema for tracking access permissions & copyright
|
7
|
-
# FIXME: should this have "include Hydra::ModelMixins::CommonMetadata" instead?
|
8
|
-
has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata
|
9
|
-
|
10
|
-
# A place to put extra metadata values, e.g. the user id of the object depositor (for permissions)
|
11
|
-
has_metadata :name => "properties", :type => Hydra::Datastream::Properties
|
12
|
-
|
13
|
-
# adds helpful methods for basic hydra objects.
|
14
|
-
# FIXME: redundate with GenericContent include above??
|
15
|
-
include Hydra::ModelMethods
|
16
|
-
|
17
|
-
def initialize( attrs={} )
|
18
|
-
Deprecation.warn(GenericContent, "GenericContent is deprecated and will be removed in hydra-head 5.x")
|
19
|
-
super
|
20
|
-
end
|
21
|
-
end
|
@@ -1,138 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<foxml:digitalObject VERSION="1.1" PID="hydra:test_generic_content" xmlns:foxml="info:fedora/fedora-system:def/foxml#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
|
3
|
-
<foxml:objectProperties>
|
4
|
-
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
|
5
|
-
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE=""/>
|
6
|
-
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
|
7
|
-
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2011-07-14T01:28:47.221Z"/>
|
8
|
-
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-07-14T01:30:56.432Z"/>
|
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 this object" CREATED="2011-07-14T01:28:47.221Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="341">
|
12
|
-
<foxml:xmlContent>
|
13
|
-
<oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
|
14
|
-
<dc:identifier>hydra:test_generic_content</dc:identifier>
|
15
|
-
<dc:description>A test object using the GenericContent (active)fedora model</dc:description>
|
16
|
-
</oai_dc:dc>
|
17
|
-
</foxml:xmlContent>
|
18
|
-
</foxml:datastreamVersion>
|
19
|
-
</foxml:datastream>
|
20
|
-
<foxml:datastream ID="descMetadata" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
21
|
-
<foxml:datastreamVersion ID="descMetadata.1" LABEL="" CREATED="2011-07-14T01:30:13.169Z" MIMETYPE="text/xml" SIZE="1552">
|
22
|
-
<foxml:xmlContent>
|
23
|
-
<mods xmlns="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.3" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-3.xsd">
|
24
|
-
<titleInfo lang="">
|
25
|
-
<title>generic content</title>
|
26
|
-
</titleInfo>
|
27
|
-
<name type="personal">
|
28
|
-
<namePart type="given">Orlob</namePart>
|
29
|
-
<namePart type="family">Gryphon</namePart>
|
30
|
-
<affiliation>Fantasy</affiliation>
|
31
|
-
<role>
|
32
|
-
<roleTerm authority="marcrelator" type="text"/>
|
33
|
-
</role>
|
34
|
-
<description>Mythical Creatures</description>
|
35
|
-
</name>
|
36
|
-
<typeOfResource/>
|
37
|
-
<genre authority="marcgt"/>
|
38
|
-
<language>
|
39
|
-
<languageTerm authority="iso639-2b" type="code"/>
|
40
|
-
</language>
|
41
|
-
<physicalDescription>
|
42
|
-
<extent/>
|
43
|
-
</physicalDescription>
|
44
|
-
<abstract>A test object using the GenericContent (active)fedora model</abstract>
|
45
|
-
<subject>
|
46
|
-
<topic>flying creatures</topic>
|
47
|
-
</subject>
|
48
|
-
<relatedItem type="host">
|
49
|
-
<titleInfo>
|
50
|
-
<title/>
|
51
|
-
</titleInfo>
|
52
|
-
<identifier type="issn"/>
|
53
|
-
<originInfo>
|
54
|
-
<publisher/>
|
55
|
-
<dateIssued/>
|
56
|
-
</originInfo>
|
57
|
-
<part>
|
58
|
-
<detail type="volume">
|
59
|
-
<number/>
|
60
|
-
</detail>
|
61
|
-
<detail type="number">
|
62
|
-
<number/>
|
63
|
-
</detail>
|
64
|
-
<extent unit="pages">
|
65
|
-
<start/>
|
66
|
-
<end/>
|
67
|
-
</extent>
|
68
|
-
<date/>
|
69
|
-
</part>
|
70
|
-
</relatedItem>
|
71
|
-
<location>
|
72
|
-
<url/>
|
73
|
-
</location>
|
74
|
-
</mods>
|
75
|
-
</foxml:xmlContent>
|
76
|
-
</foxml:datastreamVersion>
|
77
|
-
</foxml:datastream>
|
78
|
-
<foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
79
|
-
<foxml:datastreamVersion ID="RELS-EXT.0" LABEL="" CREATED="2011-07-14T01:28:49.031Z" MIMETYPE="text/xml" SIZE="277">
|
80
|
-
<foxml:xmlContent>
|
81
|
-
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
82
|
-
<rdf:Description rdf:about="info:fedora/hydra:test_generic_content">
|
83
|
-
<hasModel xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/afmodel:GenericContent"/>
|
84
|
-
</rdf:Description>
|
85
|
-
</rdf:RDF>
|
86
|
-
</foxml:xmlContent>
|
87
|
-
</foxml:datastreamVersion>
|
88
|
-
</foxml:datastream>
|
89
|
-
<foxml:datastream ID="rightsMetadata" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
90
|
-
<foxml:datastreamVersion ID="rightsMetadata.1" LABEL="" CREATED="2011-07-14T01:30:56.432Z" MIMETYPE="text/xml" SIZE="777">
|
91
|
-
<foxml:xmlContent>
|
92
|
-
<rightsMetadata xmlns="http://hydra-collab.stanford.edu/schemas/rightsMetadata/v1" version="0.1">
|
93
|
-
<copyright>
|
94
|
-
<human/>
|
95
|
-
<machine>
|
96
|
-
<uvalicense>no</uvalicense>
|
97
|
-
</machine>
|
98
|
-
</copyright>
|
99
|
-
<access type="discover">
|
100
|
-
<human/>
|
101
|
-
<machine/>
|
102
|
-
</access>
|
103
|
-
<access type="read">
|
104
|
-
<human/>
|
105
|
-
<machine>
|
106
|
-
<group>researcher</group>
|
107
|
-
<group>public</group>
|
108
|
-
<group>patron</group>
|
109
|
-
<group>donor</group>
|
110
|
-
</machine>
|
111
|
-
</access>
|
112
|
-
<access type="edit">
|
113
|
-
<human/>
|
114
|
-
<machine>
|
115
|
-
<person>archivist1</person>
|
116
|
-
<group>archivist</group>
|
117
|
-
<group>admin_policy_object_editor</group>
|
118
|
-
</machine>
|
119
|
-
</access>
|
120
|
-
<embargo>
|
121
|
-
<human/>
|
122
|
-
<machine/>
|
123
|
-
</embargo>
|
124
|
-
</rightsMetadata>
|
125
|
-
</foxml:xmlContent>
|
126
|
-
</foxml:datastreamVersion>
|
127
|
-
</foxml:datastream>
|
128
|
-
<foxml:datastream ID="properties" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
129
|
-
<foxml:datastreamVersion ID="properties.0" LABEL="" CREATED="2011-07-14T01:28:49.367Z" MIMETYPE="text/xml" SIZE="99">
|
130
|
-
<foxml:xmlContent>
|
131
|
-
<fields>
|
132
|
-
<collection>generic_content</collection>
|
133
|
-
<depositor>archivist1</depositor>
|
134
|
-
</fields>
|
135
|
-
</foxml:xmlContent>
|
136
|
-
</foxml:datastreamVersion>
|
137
|
-
</foxml:datastream>
|
138
|
-
</foxml:digitalObject>
|
@@ -1,234 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<foxml:digitalObject VERSION="1.1" PID="hydrangea:fixture_mods_article1"
|
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=""/>
|
9
|
-
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
|
10
|
-
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2010-06-17T19:56:19.301Z"/>
|
11
|
-
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-06-17T19:57:30.688Z"/>
|
12
|
-
</foxml:objectProperties>
|
13
|
-
<foxml:datastream ID="AUDIT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="false">
|
14
|
-
<foxml:datastreamVersion ID="AUDIT.0" LABEL="Audit Trail for this object" CREATED="2010-06-17T19:56:19.301Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit">
|
15
|
-
<foxml:xmlContent>
|
16
|
-
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
|
17
|
-
<audit:record ID="AUDREC1">
|
18
|
-
<audit:process type="Fedora API-M"/>
|
19
|
-
<audit:action>addDatastream</audit:action>
|
20
|
-
<audit:componentID>descMetadata</audit:componentID>
|
21
|
-
<audit:responsibility>fedoraAdmin</audit:responsibility>
|
22
|
-
<audit:date>2010-06-17T19:56:22.150Z</audit:date>
|
23
|
-
<audit:justification></audit:justification>
|
24
|
-
</audit:record>
|
25
|
-
<audit:record ID="AUDREC2">
|
26
|
-
<audit:process type="Fedora API-M"/>
|
27
|
-
<audit:action>addDatastream</audit:action>
|
28
|
-
<audit:componentID>RELS-EXT</audit:componentID>
|
29
|
-
<audit:responsibility>fedoraAdmin</audit:responsibility>
|
30
|
-
<audit:date>2010-06-17T19:56:22.353Z</audit:date>
|
31
|
-
<audit:justification></audit:justification>
|
32
|
-
</audit:record>
|
33
|
-
<audit:record ID="AUDREC3">
|
34
|
-
<audit:process type="Fedora API-M"/>
|
35
|
-
<audit:action>addDatastream</audit:action>
|
36
|
-
<audit:componentID>rightsMetadata</audit:componentID>
|
37
|
-
<audit:responsibility>fedoraAdmin</audit:responsibility>
|
38
|
-
<audit:date>2010-06-17T19:56:23.335Z</audit:date>
|
39
|
-
<audit:justification></audit:justification>
|
40
|
-
</audit:record>
|
41
|
-
<audit:record ID="AUDREC4">
|
42
|
-
<audit:process type="Fedora API-M"/>
|
43
|
-
<audit:action>addDatastream</audit:action>
|
44
|
-
<audit:componentID>properties</audit:componentID>
|
45
|
-
<audit:responsibility>fedoraAdmin</audit:responsibility>
|
46
|
-
<audit:date>2010-06-17T19:56:23.477Z</audit:date>
|
47
|
-
<audit:justification></audit:justification>
|
48
|
-
</audit:record>
|
49
|
-
<audit:record ID="AUDREC5">
|
50
|
-
<audit:process type="Fedora API-M"/>
|
51
|
-
<audit:action>modifyObject</audit:action>
|
52
|
-
<audit:componentID></audit:componentID>
|
53
|
-
<audit:responsibility>fedoraAdmin</audit:responsibility>
|
54
|
-
<audit:date>2010-06-17T19:57:30.688Z</audit:date>
|
55
|
-
<audit:justification></audit:justification>
|
56
|
-
</audit:record>
|
57
|
-
</audit:auditTrail>
|
58
|
-
</foxml:xmlContent>
|
59
|
-
</foxml:datastreamVersion>
|
60
|
-
</foxml:datastream>
|
61
|
-
<foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
62
|
-
<foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2010-06-17T19:56:19.301Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="360">
|
63
|
-
<foxml:xmlContent>
|
64
|
-
<oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
|
65
|
-
<dc:identifier>hydrangea:fixture_mods_article1</dc:identifier>
|
66
|
-
</oai_dc:dc>
|
67
|
-
</foxml:xmlContent>
|
68
|
-
</foxml:datastreamVersion>
|
69
|
-
</foxml:datastream>
|
70
|
-
<foxml:datastream ID="descMetadata" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
71
|
-
<foxml:datastreamVersion ID="descMetadata.0" LABEL="" CREATED="2010-06-17T19:56:22.150Z" MIMETYPE="text/xml" SIZE="19">
|
72
|
-
<foxml:xmlContent>
|
73
|
-
<mods version="3.0" xsi:schemaLocation="http://www.loc.gov/mods/v3
|
74
|
-
http://www.loc.gov/standards/mods/v3/mods-3-0.xsd" xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
75
|
-
|
76
|
-
<titleInfo>
|
77
|
-
<nonSort>THE</nonSort>
|
78
|
-
<title>ARTICLE TITLE</title>
|
79
|
-
<subTitle>SUBTITLE</subTitle>
|
80
|
-
</titleInfo>
|
81
|
-
<titleInfo type="alternative">
|
82
|
-
<title>VARYING FORM OF TITLE</title>
|
83
|
-
</titleInfo>
|
84
|
-
|
85
|
-
<name type="personal">
|
86
|
-
<namePart type="family">FAMILY NAME</namePart>
|
87
|
-
<namePart type="given">GIVEN NAMES</namePart>
|
88
|
-
<namePart type="termsOfAddress">DR.</namePart>
|
89
|
-
<displayForm>NAME AS IT APPEARS</displayForm>
|
90
|
-
<affiliation>FACULTY, UNIVERSITY</affiliation>
|
91
|
-
<role>
|
92
|
-
<roleTerm authority="marcrelator" type="text">Creator</roleTerm>
|
93
|
-
</role>
|
94
|
-
</name>
|
95
|
-
<name type="personal">
|
96
|
-
<namePart type="family">Lacks</namePart>
|
97
|
-
<namePart type="given">Henrietta</namePart>
|
98
|
-
<displayForm>HeLa</displayForm>
|
99
|
-
<affiliation>Baltimore</affiliation>
|
100
|
-
<role>
|
101
|
-
<roleTerm authority="marcrelator" type="text">Contributor</roleTerm>
|
102
|
-
</role>
|
103
|
-
</name>
|
104
|
-
<name type="corporate">
|
105
|
-
<namePart>NSF</namePart>
|
106
|
-
<role>
|
107
|
-
<roleTerm authority="marcrelator" type="text">Funder</roleTerm>
|
108
|
-
</role>
|
109
|
-
</name>
|
110
|
-
<name type="conference">
|
111
|
-
<namePart>some conference</namePart>
|
112
|
-
<role>
|
113
|
-
<roleTerm authority="marcrelator" type="text">Host</roleTerm>
|
114
|
-
</role>
|
115
|
-
</name>
|
116
|
-
|
117
|
-
<typeOfResource>text</typeOfResource>
|
118
|
-
<genre authority="local">journal article</genre>
|
119
|
-
|
120
|
-
<abstract>ABSTRACT</abstract>
|
121
|
-
<subject>
|
122
|
-
<topic>TOPIC 1</topic>
|
123
|
-
<topic>TOPIC 2</topic>
|
124
|
-
</subject>
|
125
|
-
<subject authority="AUTHORITY SOURCE (RFCD, LCSH)">
|
126
|
-
<topic>CONTROLLED TERM</topic>
|
127
|
-
</subject>
|
128
|
-
|
129
|
-
<language>
|
130
|
-
<languageTerm authority="iso639-2b" type="code">en-aus </languageTerm>
|
131
|
-
</language>
|
132
|
-
|
133
|
-
<physicalDescription>
|
134
|
-
<internetMediaType>application/pdf</internetMediaType>
|
135
|
-
<extent>36 p.</extent>
|
136
|
-
</physicalDescription>
|
137
|
-
|
138
|
-
<relatedItem type="host">
|
139
|
-
<titleInfo>
|
140
|
-
<title>TITLE OF HOST JOURNAL</title>
|
141
|
-
</titleInfo>
|
142
|
-
<originInfo>
|
143
|
-
<publisher>PUBLISHER</publisher>
|
144
|
-
<dateIssued>DATE</dateIssued>
|
145
|
-
</originInfo>
|
146
|
-
<identifier type="issn">0013-8908</identifier>
|
147
|
-
<part>
|
148
|
-
<detail type="volume">
|
149
|
-
<number>2</number>
|
150
|
-
</detail>
|
151
|
-
<detail type="level">
|
152
|
-
<number>2</number>
|
153
|
-
</detail>
|
154
|
-
<extent unit="pages">
|
155
|
-
<start>195</start>
|
156
|
-
<end>230</end>
|
157
|
-
</extent>
|
158
|
-
<date>FEB. 2007</date>
|
159
|
-
</part>
|
160
|
-
</relatedItem>
|
161
|
-
|
162
|
-
<identifier type="uri">http://URL.edu.au/</identifier>
|
163
|
-
<identifier type="doi">doi:10.1006/jmbi.1995.0238</identifier>
|
164
|
-
<location>
|
165
|
-
<url>http://URL.edu.au/</url>
|
166
|
-
</location>
|
167
|
-
<accessCondition type="restrictionOnAccess">EMBARGO NOTE</accessCondition>
|
168
|
-
<accessCondition type="use and reproduction">OPEN ACCESS</accessCondition>
|
169
|
-
|
170
|
-
</mods>
|
171
|
-
</foxml:xmlContent>
|
172
|
-
</foxml:datastreamVersion>
|
173
|
-
</foxml:datastream>
|
174
|
-
<foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
175
|
-
<foxml:datastreamVersion ID="RELS-EXT.0" LABEL="" CREATED="2010-06-17T19:56:22.353Z" MIMETYPE="text/xml" SIZE="306">
|
176
|
-
<foxml:xmlContent>
|
177
|
-
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
178
|
-
<rdf:Description rdf:about="info:fedora/hydrangea:fixture_mods_article1">
|
179
|
-
<hasModel xmlns="info:fedora/fedora-system:def/relations-external#" rdf:resource="info:fedora/afmodel:ModsAsset"></hasModel>
|
180
|
-
</rdf:Description>
|
181
|
-
</rdf:RDF>
|
182
|
-
</foxml:xmlContent>
|
183
|
-
</foxml:datastreamVersion>
|
184
|
-
</foxml:datastream>
|
185
|
-
<foxml:datastream ID="rightsMetadata" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
186
|
-
<foxml:datastreamVersion ID="rightsMetadata.0" LABEL="" CREATED="2010-06-17T19:56:23.335Z" MIMETYPE="text/xml" SIZE="19">
|
187
|
-
<foxml:xmlContent>
|
188
|
-
<rightsMetadata xmlns="http://hydra-collab.stanford.edu/schemas/rightsMetadata/v1">
|
189
|
-
<copyright>
|
190
|
-
<human>(c)2009 The Hydra Project</human>
|
191
|
-
<human type="someSpecialisedType">Blah Blah</human>
|
192
|
-
<human type="aDifferentType">More blah</human>
|
193
|
-
<machine><a rel="license" href="http://creativecommons.org/licenses/publicdomain/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/publicdomain/88x31.png" /></a><br />This work is in the <a rel="license" href="http://creativecommons.org/licenses/publicdomain/">Public Domain</a>.</machine>
|
194
|
-
</copyright>
|
195
|
-
<access type="discover">
|
196
|
-
<human></human>
|
197
|
-
<machine>
|
198
|
-
<policy>hydra-policy:4502</policy>
|
199
|
-
<group>public</group>
|
200
|
-
</machine>
|
201
|
-
</access>
|
202
|
-
<access type="read">
|
203
|
-
<human></human>
|
204
|
-
<machine>
|
205
|
-
<group>public</group>
|
206
|
-
</machine>
|
207
|
-
</access>
|
208
|
-
<access type="edit">
|
209
|
-
<human></human>
|
210
|
-
<machine>
|
211
|
-
<person>researcher1</person>
|
212
|
-
<group>archivist</group>
|
213
|
-
</machine>
|
214
|
-
</access>
|
215
|
-
<access type="etc">
|
216
|
-
<!-- etc -->
|
217
|
-
</access>
|
218
|
-
<use>
|
219
|
-
<human>You are free to re-distribute this object, but you cannot change it or sell it. </human>
|
220
|
-
<machine><a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/us/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-nd/3.0/us/88x31.png" /></a><br />This <span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/Sound" rel="dc:type">work</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/us/">Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License</a>.</machine>
|
221
|
-
</use>
|
222
|
-
|
223
|
-
</rightsMetadata>
|
224
|
-
</foxml:xmlContent>
|
225
|
-
</foxml:datastreamVersion>
|
226
|
-
</foxml:datastream>
|
227
|
-
<foxml:datastream ID="properties" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
|
228
|
-
<foxml:datastreamVersion ID="properties.0" LABEL="" CREATED="2010-06-17T19:56:23.477Z" MIMETYPE="text/xml" SIZE="19">
|
229
|
-
<foxml:xmlContent>
|
230
|
-
<fields></fields>
|
231
|
-
</foxml:xmlContent>
|
232
|
-
</foxml:datastreamVersion>
|
233
|
-
</foxml:datastream>
|
234
|
-
</foxml:digitalObject>
|
@@ -1,58 +0,0 @@
|
|
1
|
-
namespace :hyhead do
|
2
|
-
desc "Call repo:delete from within the test app"
|
3
|
-
task :delete => :test_app_exists do
|
4
|
-
within_test_app do
|
5
|
-
puts %x[rake repo:delete]
|
6
|
-
end
|
7
|
-
end
|
8
|
-
|
9
|
-
desc "Call repo:export from within the test app"
|
10
|
-
task :export => :test_app_exists do
|
11
|
-
within_test_app do
|
12
|
-
puts %x[rake repo:export]
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
desc "Call repo:load from within the test app"
|
17
|
-
task :load => :test_app_exists do
|
18
|
-
within_test_app do
|
19
|
-
puts %x[rake repo:load]
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
desc "Call repo:refresh from within the test app"
|
24
|
-
task :refresh => :test_app_exists do
|
25
|
-
within_test_app do
|
26
|
-
puts %x[rake repo:refresh]
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
desc "Call repo:delete_range from within the test app"
|
31
|
-
task :delete_range => :test_app_exists do
|
32
|
-
within_test_app do
|
33
|
-
puts %x[rake repo:delete_range]
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
namespace :fixtures do
|
38
|
-
|
39
|
-
desc "Call hydra:fixtures:refresh from within the test app"
|
40
|
-
task :refresh => :test_app_exists do
|
41
|
-
within_test_app do
|
42
|
-
puts %x[rake hydra:fixtures:refresh]
|
43
|
-
end
|
44
|
-
end
|
45
|
-
desc "Call hydra:fixtures:load from within the test app"
|
46
|
-
task :load => :test_app_exists do
|
47
|
-
within_test_app do
|
48
|
-
puts %x[rake hydra:fixtures:load]
|
49
|
-
end
|
50
|
-
end
|
51
|
-
desc "Call hydra:fixtures:delete from within the test app"
|
52
|
-
task :delete => :test_app_exists do
|
53
|
-
within_test_app do
|
54
|
-
puts %x[rake hydra:fixtures:delete]
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|