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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddd7181cafb3b120aefffbbde8d170b1e2149ec5
4
- data.tar.gz: 3f255cafe12f0e78f81fad2f8651adfb10f49404
3
+ metadata.gz: 9001bbed49080440dc23d1a376a52dbc5fa4c49e
4
+ data.tar.gz: b4c22cdeecc807ed793f537c061b1f1855e334b2
5
5
  SHA512:
6
- metadata.gz: 9bb4039d4dd6ce49c74193559605ca2fccee547861654f4963ca664238656ae8fa78b03efefa09fddcab81da0d1f21780a6b775de95bb048c948f9fcf2acb928
7
- data.tar.gz: bb7584fe3c1bb62f8f17390665df49f55c71e3dd2bd1c82dfef199435d5cf3f541c8c68e9d968204e98ceee05a027d0264337498ee2b5ad034a8c920e832c46a
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
@@ -1,4 +1,6 @@
1
1
  en:
2
2
  sufia:
3
3
  product_name: "ScholarSphere"
4
- institution_name: "Penn State"
4
+ institution_name: "Penn State"
5
+ institution_name_full: "The Pennsylvania State University"
6
+
@@ -11,6 +11,7 @@ module Sufia
11
11
  class Engine < ::Rails::Engine
12
12
  config.autoload_paths += %W(
13
13
  #{config.root}/lib/sufia/models/jobs
14
+ #{config.root}/app/models/datastreams
14
15
  )
15
16
 
16
17
  rake_tasks do
@@ -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
@@ -1,4 +1,3 @@
1
- require 'datastreams/fits_datastream'
2
1
  module Sufia
3
2
  module GenericFile
4
3
  module Characterization
@@ -1,4 +1,3 @@
1
- require 'datastreams/paranoid_rights_datastream'
2
1
  module Sufia
3
2
  module GenericFile
4
3
  module Permissions
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Sufia
2
2
  module Models
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
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.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-05-29 00:00:00.000000000 Z
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: