sufia-models 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/batch.rb +0 -2
- data/config/locales/sufia.en.yml +3 -1
- data/lib/sufia/models/engine.rb +1 -0
- data/lib/sufia/models/generic_file.rb +1 -5
- data/lib/sufia/models/generic_file/characterization.rb +0 -1
- data/lib/sufia/models/generic_file/permissions.rb +0 -1
- data/lib/sufia/models/generic_file/web_form.rb +15 -0
- data/lib/sufia/models/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9001bbed49080440dc23d1a376a52dbc5fa4c49e
|
4
|
+
data.tar.gz: b4c22cdeecc807ed793f537c061b1f1855e334b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48a20122f05113657812172339c8890a7ac478d35f21501a85640e069e33acf1bed6a983c27f092cab4b16ce97875311190f9b05e004a7f261cf3596c96325ad
|
7
|
+
data.tar.gz: 07b4084bccb3c38b6674d09cb6334ab0d0ef246fe634a3fdf1638f905b0705334520ee151aa10e46f28aa4927e74502116c52ce07b3f55c265a1e38898d1d92b
|
data/app/models/batch.rb
CHANGED
@@ -12,8 +12,6 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
-
require 'datastreams/batch_rdf_datastream'
|
16
|
-
|
17
15
|
class Batch < ActiveFedora::Base
|
18
16
|
include Hydra::ModelMixins::CommonMetadata
|
19
17
|
include Hydra::ModelMixins::RightsMetadata
|
data/config/locales/sufia.en.yml
CHANGED
data/lib/sufia/models/engine.rb
CHANGED
@@ -1,7 +1,3 @@
|
|
1
|
-
require 'datastreams/generic_file_rdf_datastream'
|
2
|
-
require 'datastreams/properties_datastream'
|
3
|
-
require 'datastreams/file_content_datastream'
|
4
|
-
|
5
1
|
module Sufia
|
6
2
|
module GenericFile
|
7
3
|
extend ActiveSupport::Concern
|
@@ -12,7 +8,7 @@ module Sufia
|
|
12
8
|
autoload :Audit
|
13
9
|
autoload :Actions
|
14
10
|
autoload :Permissions
|
15
|
-
autoload :WebForm
|
11
|
+
autoload :WebForm, 'sufia/models/generic_file/web_form'
|
16
12
|
include Sufia::ModelMethods
|
17
13
|
include Sufia::Noid
|
18
14
|
include Sufia::GenericFile::Thumbnail
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Sufia
|
2
|
+
module GenericFile
|
3
|
+
module WebForm
|
4
|
+
|
5
|
+
# override this method if you need to initialize more complex RDF assertions (b-nodes)
|
6
|
+
def initialize_fields
|
7
|
+
terms_for_editing.each do |key|
|
8
|
+
# if value is empty, we create an one element array to loop over for output
|
9
|
+
self[key] = [''] if self[key].empty?
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/sufia/models/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sufia-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Friesen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -267,6 +267,7 @@ files:
|
|
267
267
|
- lib/sufia/models/generic_file/export.rb
|
268
268
|
- lib/sufia/models/generic_file/permissions.rb
|
269
269
|
- lib/sufia/models/generic_file/thumbnail.rb
|
270
|
+
- lib/sufia/models/generic_file/web_form.rb
|
270
271
|
- lib/sufia/models/id_service.rb
|
271
272
|
- lib/sufia/models/jobs/audit_job.rb
|
272
273
|
- lib/sufia/models/jobs/batch_update_job.rb
|
@@ -310,3 +311,4 @@ signing_key:
|
|
310
311
|
specification_version: 4
|
311
312
|
summary: Models and services for sufia
|
312
313
|
test_files: []
|
314
|
+
has_rdoc:
|