hydra-head 3.1.4 → 3.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. data/Gemfile.lock +58 -55
  2. data/HISTORY.textile +4 -0
  3. data/README.textile +3 -3
  4. data/app/controllers/downloads_controller.rb +2 -1
  5. data/app/controllers/get_controller.rb +1 -5
  6. data/app/helpers/hydra/downloads_helper_behavior.rb +0 -3
  7. data/app/helpers/hydra/hydra_fedora_metadata_helper_behavior.rb +11 -13
  8. data/app/models/common_metadata_asset.rb +13 -0
  9. data/app/views/catalog/_edit_partials/_default.html.erb +0 -6
  10. data/app/views/file_assets/_asset_saved_flash.html.erb +2 -0
  11. data/app/views/file_assets/_index.html.erb +0 -1
  12. data/app/views/file_assets/_result.html.erb +1 -5
  13. data/assets/stylesheets/hydra/ie-styles.css +0 -91
  14. data/assets/stylesheets/hydra/styles.css +1 -523
  15. data/hydra-head.gemspec +4 -3
  16. data/lib/generators/hydra/assets_generator.rb +1 -1
  17. data/lib/hydra-head/version.rb +1 -1
  18. data/lib/hydra.rb +2 -1
  19. data/lib/hydra/assets_controller_helper.rb +3 -2
  20. data/lib/hydra/catalog.rb +1 -1
  21. data/lib/hydra/file_assets.rb +36 -28
  22. data/lib/hydra/file_assets_helper.rb +9 -2
  23. data/lib/hydra/generic_image.rb +1 -1
  24. data/lib/hydra/image.rb +1 -1
  25. data/lib/hydra/repository_controller.rb +4 -4
  26. data/test_support/etc/Gemfile +1 -1
  27. data/test_support/fixtures/hydra_test_default_partials.foxml.xml +2 -2
  28. data/test_support/spec/controllers/file_assets_controller_spec.rb +0 -1
  29. data/test_support/spec/helpers/assets_controller_helper_spec.rb +8 -0
  30. data/test_support/spec/helpers/file_assets_helper_spec.rb +12 -6
  31. data/test_support/spec/helpers/hydra_fedora_metadata_helper_spec.rb +1 -8
  32. data/vendor/cache/actionmailer-3.0.11.gem +0 -0
  33. data/vendor/cache/actionpack-3.0.11.gem +0 -0
  34. data/vendor/cache/{active-fedora-3.1.1.gem → active-fedora-3.1.4.gem} +0 -0
  35. data/vendor/cache/activemodel-3.0.11.gem +0 -0
  36. data/vendor/cache/activerecord-3.0.11.gem +0 -0
  37. data/vendor/cache/activeresource-3.0.11.gem +0 -0
  38. data/vendor/cache/activesupport-3.0.11.gem +0 -0
  39. data/vendor/cache/capybara-1.1.2.gem +0 -0
  40. data/vendor/cache/childprocess-0.2.3.gem +0 -0
  41. data/vendor/cache/columnize-0.3.5.gem +0 -0
  42. data/vendor/cache/cucumber-1.1.3.gem +0 -0
  43. data/vendor/cache/cucumber-rails-1.2.0.gem +0 -0
  44. data/vendor/cache/database_cleaner-0.7.0.gem +0 -0
  45. data/vendor/cache/factory_girl-2.3.2.gem +0 -0
  46. data/vendor/cache/ffi-1.0.11.gem +0 -0
  47. data/vendor/cache/gherkin-2.6.8.gem +0 -0
  48. data/vendor/cache/jettywrapper-1.1.0.gem +0 -0
  49. data/vendor/cache/json-1.6.2.gem +0 -0
  50. data/vendor/cache/json_pure-1.6.2.gem +0 -0
  51. data/vendor/cache/mime-types-1.17.2.gem +0 -0
  52. data/vendor/cache/multi_json-1.0.4.gem +0 -0
  53. data/vendor/cache/{rails-3.0.10.gem → rails-3.0.11.gem} +0 -0
  54. data/vendor/cache/railties-3.0.11.gem +0 -0
  55. data/vendor/cache/rake-0.9.2.2.gem +0 -0
  56. data/vendor/cache/rdoc-3.11.gem +0 -0
  57. data/vendor/cache/rubydora-0.2.6.gem +0 -0
  58. data/vendor/cache/rubyzip-0.9.5.gem +0 -0
  59. data/vendor/cache/selenium-webdriver-2.13.0.gem +0 -0
  60. data/vendor/cache/solrizer-fedora-1.2.0.gem +0 -0
  61. data/vendor/cache/tzinfo-0.3.31.gem +0 -0
  62. metadata +153 -138
  63. data/app/controllers/generic_content_objects_controller.rb +0 -37
  64. data/app/views/fluid_infusion/_uploader.html.erb +0 -79
  65. data/app/views/fluid_infusion/_uploader_generic_content_objects.js.erb +0 -38
  66. data/app/views/fluid_infusion/_uploader_js.erb +0 -45
  67. data/test_support/spec/views/uploader.html.erb_spec.rb +0 -30
  68. data/vendor/cache/actionmailer-3.0.10.gem +0 -0
  69. data/vendor/cache/actionpack-3.0.10.gem +0 -0
  70. data/vendor/cache/activemodel-3.0.10.gem +0 -0
  71. data/vendor/cache/activerecord-3.0.10.gem +0 -0
  72. data/vendor/cache/activeresource-3.0.10.gem +0 -0
  73. data/vendor/cache/activesupport-3.0.10.gem +0 -0
  74. data/vendor/cache/capybara-1.1.1.gem +0 -0
  75. data/vendor/cache/childprocess-0.2.2.gem +0 -0
  76. data/vendor/cache/columnize-0.3.4.gem +0 -0
  77. data/vendor/cache/cucumber-1.1.0.gem +0 -0
  78. data/vendor/cache/cucumber-rails-1.1.1.gem +0 -0
  79. data/vendor/cache/database_cleaner-0.6.7.gem +0 -0
  80. data/vendor/cache/factory_girl-2.1.2.gem +0 -0
  81. data/vendor/cache/ffi-1.0.9.gem +0 -0
  82. data/vendor/cache/gherkin-2.5.2.gem +0 -0
  83. data/vendor/cache/jettywrapper-1.0.4.gem +0 -0
  84. data/vendor/cache/json-1.6.1.gem +0 -0
  85. data/vendor/cache/json_pure-1.6.1.gem +0 -0
  86. data/vendor/cache/mime-types-1.16.gem +0 -0
  87. data/vendor/cache/multi_json-1.0.3.gem +0 -0
  88. data/vendor/cache/railties-3.0.10.gem +0 -0
  89. data/vendor/cache/rake-0.9.2.gem +0 -0
  90. data/vendor/cache/rdoc-3.10.gem +0 -0
  91. data/vendor/cache/rubydora-0.2.3.gem +0 -0
  92. data/vendor/cache/rubyzip-0.9.4.gem +0 -0
  93. data/vendor/cache/selenium-webdriver-2.8.0.gem +0 -0
  94. data/vendor/cache/solrizer-fedora-1.1.3.gem +0 -0
  95. data/vendor/cache/tzinfo-0.3.30.gem +0 -0
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hydra-head (3.1.0)
4
+ hydra-head (3.1.5)
5
5
  RedCloth (= 4.2.3)
6
- active-fedora (~> 3.1.1)
6
+ active-fedora (~> 3.1.4)
7
7
  blacklight (= 3.0.0)
8
8
  block_helpers
9
- builder
9
+ builder (= 2.1.2)
10
10
  columnize
11
11
  crack
12
12
  curb (= 0.7.15)
@@ -28,10 +28,11 @@ PATH
28
28
  rack-test
29
29
  rails (~> 3.0.10)
30
30
  rake
31
+ rsolr (= 1.0.2)
31
32
  sanitize
32
33
  solr-ruby
33
34
  solrizer (>= 1.1.0)
34
- solrizer-fedora (>= 1.1.3)
35
+ solrizer-fedora (>= 1.2.0)
35
36
  term-ansicolor
36
37
  trollop
37
38
  will_paginate
@@ -42,12 +43,12 @@ GEM
42
43
  specs:
43
44
  RedCloth (4.2.3)
44
45
  abstract (1.0.0)
45
- actionmailer (3.0.10)
46
- actionpack (= 3.0.10)
46
+ actionmailer (3.0.11)
47
+ actionpack (= 3.0.11)
47
48
  mail (~> 2.2.19)
48
- actionpack (3.0.10)
49
- activemodel (= 3.0.10)
50
- activesupport (= 3.0.10)
49
+ actionpack (3.0.11)
50
+ activemodel (= 3.0.11)
51
+ activesupport (= 3.0.11)
51
52
  builder (~> 2.1.2)
52
53
  erubis (~> 2.6.6)
53
54
  i18n (~> 0.5.0)
@@ -55,7 +56,7 @@ GEM
55
56
  rack-mount (~> 0.6.14)
56
57
  rack-test (~> 0.5.7)
57
58
  tzinfo (~> 0.3.23)
58
- active-fedora (3.1.1)
59
+ active-fedora (3.1.4)
59
60
  activeresource (~> 3.0.0)
60
61
  activesupport (~> 3.0.0)
61
62
  equivalent-xml
@@ -67,23 +68,23 @@ GEM
67
68
  om (>= 1.4.3)
68
69
  rdf
69
70
  rdf-rdfxml
70
- rubydora (= 0.2.3)
71
+ rubydora (~> 0.2.6)
71
72
  solr-ruby (>= 0.0.6)
72
73
  solrizer (> 1.0.0)
73
74
  xml-simple (>= 1.0.12)
74
- activemodel (3.0.10)
75
- activesupport (= 3.0.10)
75
+ activemodel (3.0.11)
76
+ activesupport (= 3.0.11)
76
77
  builder (~> 2.1.2)
77
78
  i18n (~> 0.5.0)
78
- activerecord (3.0.10)
79
- activemodel (= 3.0.10)
80
- activesupport (= 3.0.10)
79
+ activerecord (3.0.11)
80
+ activemodel (= 3.0.11)
81
+ activesupport (= 3.0.11)
81
82
  arel (~> 2.0.10)
82
83
  tzinfo (~> 0.3.23)
83
- activeresource (3.0.10)
84
- activemodel (= 3.0.10)
85
- activesupport (= 3.0.10)
86
- activesupport (3.0.10)
84
+ activeresource (3.0.11)
85
+ activemodel (= 3.0.11)
86
+ activesupport (= 3.0.11)
87
+ activesupport (3.0.11)
87
88
  addressable (2.2.6)
88
89
  akami (1.0.0)
89
90
  gyoku (>= 0.4.0)
@@ -99,41 +100,41 @@ GEM
99
100
  block_helpers (0.3.3)
100
101
  activesupport (>= 2.0)
101
102
  builder (2.1.2)
102
- capybara (1.1.1)
103
+ capybara (1.1.2)
103
104
  mime-types (>= 1.16)
104
105
  nokogiri (>= 1.3.3)
105
106
  rack (>= 1.0.0)
106
107
  rack-test (>= 0.5.4)
107
108
  selenium-webdriver (~> 2.0)
108
109
  xpath (~> 0.1.4)
109
- childprocess (0.2.2)
110
+ childprocess (0.2.3)
110
111
  ffi (~> 1.0.6)
111
- columnize (0.3.4)
112
+ columnize (0.3.5)
112
113
  crack (0.3.1)
113
- cucumber (1.1.0)
114
+ cucumber (1.1.3)
114
115
  builder (>= 2.1.2)
115
116
  diff-lcs (>= 1.1.2)
116
- gherkin (~> 2.5.0)
117
+ gherkin (~> 2.6.7)
117
118
  json (>= 1.4.6)
118
119
  term-ansicolor (>= 1.0.6)
119
- cucumber-rails (1.1.1)
120
+ cucumber-rails (1.2.0)
120
121
  capybara (>= 1.1.1)
121
- cucumber (>= 1.1.0)
122
+ cucumber (>= 1.1.1)
122
123
  nokogiri (>= 1.5.0)
123
124
  curb (0.7.15)
124
125
  daemons (1.1.4)
125
- database_cleaner (0.6.7)
126
+ database_cleaner (0.7.0)
126
127
  diff-lcs (1.1.3)
127
128
  equivalent-xml (0.2.8)
128
129
  nokogiri (>= 1.4.3)
129
130
  erubis (2.6.6)
130
131
  abstract (>= 1.0.0)
131
132
  facets (2.8.4)
132
- factory_girl (2.1.2)
133
+ factory_girl (2.3.2)
133
134
  activesupport
134
135
  fastercsv (1.5.4)
135
- ffi (1.0.9)
136
- gherkin (2.5.2)
136
+ ffi (1.0.11)
137
+ gherkin (2.6.8)
137
138
  json (>= 1.4.6)
138
139
  gyoku (0.4.4)
139
140
  builder (>= 2.1.2)
@@ -144,14 +145,14 @@ GEM
144
145
  httpi (0.9.5)
145
146
  rack
146
147
  i18n (0.5.0)
147
- jettywrapper (1.0.4)
148
+ jettywrapper (1.1.0)
148
149
  activesupport (>= 3.0.0)
149
150
  childprocess
150
151
  i18n
151
152
  logger
152
153
  mediashelf-loggable
153
- json (1.6.1)
154
- json_pure (1.6.1)
154
+ json (1.6.2)
155
+ json_pure (1.6.2)
155
156
  kaminari (0.12.4)
156
157
  rails (>= 3.0.0)
157
158
  launchy (2.0.5)
@@ -167,10 +168,10 @@ GEM
167
168
  marc (0.4.3)
168
169
  mediashelf-loggable (0.4.7)
169
170
  metaclass (0.0.1)
170
- mime-types (1.16)
171
+ mime-types (1.17.2)
171
172
  mocha (0.10.0)
172
173
  metaclass (~> 0.0.1)
173
- multi_json (1.0.3)
174
+ multi_json (1.0.4)
174
175
  multi_xml (0.4.1)
175
176
  multipart-post (1.1.2)
176
177
  nokogiri (1.5.0)
@@ -184,28 +185,28 @@ GEM
184
185
  rack (>= 1.0.0)
185
186
  rack-test (0.5.7)
186
187
  rack (>= 1.0)
187
- rails (3.0.10)
188
- actionmailer (= 3.0.10)
189
- actionpack (= 3.0.10)
190
- activerecord (= 3.0.10)
191
- activeresource (= 3.0.10)
192
- activesupport (= 3.0.10)
188
+ rails (3.0.11)
189
+ actionmailer (= 3.0.11)
190
+ actionpack (= 3.0.11)
191
+ activerecord (= 3.0.11)
192
+ activeresource (= 3.0.11)
193
+ activesupport (= 3.0.11)
193
194
  bundler (~> 1.0)
194
- railties (= 3.0.10)
195
- railties (3.0.10)
196
- actionpack (= 3.0.10)
197
- activesupport (= 3.0.10)
195
+ railties (= 3.0.11)
196
+ railties (3.0.11)
197
+ actionpack (= 3.0.11)
198
+ activesupport (= 3.0.11)
198
199
  rake (>= 0.8.7)
199
200
  rdoc (~> 3.4)
200
201
  thor (~> 0.14.4)
201
- rake (0.9.2)
202
+ rake (0.9.2.2)
202
203
  rbx-require-relative (0.0.5)
203
204
  rdf (0.3.4.1)
204
205
  addressable (>= 2.2.6)
205
206
  rdf-rdfxml (0.3.5)
206
207
  nokogiri (>= 1.4.4)
207
208
  rdf (>= 0.3.4)
208
- rdoc (3.10)
209
+ rdoc (3.11)
209
210
  json (~> 1.4)
210
211
  rest-client (1.6.7)
211
212
  mime-types (>= 1.16)
@@ -231,7 +232,7 @@ GEM
231
232
  ruby-debug-base (~> 0.10.4.0)
232
233
  ruby-debug-base (0.10.4)
233
234
  linecache (>= 0.3)
234
- rubydora (0.2.3)
235
+ rubydora (0.2.6)
235
236
  activemodel
236
237
  activesupport
237
238
  fastercsv
@@ -239,7 +240,7 @@ GEM
239
240
  nokogiri
240
241
  rest-client
241
242
  savon
242
- rubyzip (0.9.4)
243
+ rubyzip (0.9.5)
243
244
  sanitize (2.0.3)
244
245
  nokogiri (>= 1.4.4, < 1.6)
245
246
  savon (0.9.7)
@@ -250,9 +251,9 @@ GEM
250
251
  nokogiri (>= 1.4.0)
251
252
  nori (~> 1.0)
252
253
  wasabi (~> 2.0)
253
- selenium-webdriver (2.8.0)
254
+ selenium-webdriver (2.13.0)
254
255
  childprocess (>= 0.2.1)
255
- ffi (>= 1.0.7)
256
+ ffi (~> 1.0.9)
256
257
  json_pure
257
258
  rubyzip
258
259
  solr-ruby (0.0.8)
@@ -263,9 +264,11 @@ GEM
263
264
  om (>= 1.4.0)
264
265
  stomp
265
266
  xml-simple
266
- solrizer-fedora (1.1.3)
267
- active-fedora (>= 2.3.0)
267
+ solrizer-fedora (1.2.0)
268
+ active-fedora (~> 3.1.0)
269
+ activesupport
268
270
  fastercsv
271
+ jettywrapper (~> 1.1.0)
269
272
  rsolr
270
273
  solr-ruby (>= 0.0.6)
271
274
  solrizer (>= 1.0.0)
@@ -276,7 +279,7 @@ GEM
276
279
  polyglot
277
280
  polyglot (>= 0.3.1)
278
281
  trollop (1.16.2)
279
- tzinfo (0.3.30)
282
+ tzinfo (0.3.31)
280
283
  unicode (0.4.0)
281
284
  wasabi (2.0.0)
282
285
  nokogiri (>= 1.4.0)
@@ -1,3 +1,7 @@
1
+ h3. 3.1.5
2
+ * Update to ActiveFedora 3.1.4
3
+
4
+
1
5
  h3. 3.1.4
2
6
  * Removed unnecessary require of jettywrapper
3
7
 
@@ -74,7 +74,7 @@ First, add them to the "Gemfile":http://gembundler.com/gemfile.html of your appl
74
74
  gem 'rails', '~>3.0.10'
75
75
 
76
76
  gem 'blacklight', '~> 3.0.0'
77
- gem 'hydra-head', '3.0.0.rc2'
77
+ gem 'hydra-head', '~> 3.1.0'
78
78
 
79
79
  # We will assume that you're using sqlite3 for testing/demo,
80
80
  # but in a production setup you probably want to use a real sql database like mysql or postgres
@@ -96,7 +96,7 @@ First, add them to the "Gemfile":http://gembundler.com/gemfile.html of your appl
96
96
  gem 'capybara'
97
97
  gem 'bcrypt-ruby'
98
98
  gem "jettywrapper"
99
- end
99
+ end # (leave this comment here to catch a stray line inserted by blacklight!)
100
100
  </pre>
101
101
 
102
102
  To install all of the dependencies, run:
@@ -111,7 +111,7 @@ Even if all of the dependencies are satisfied, this will take a _very_ long time
111
111
 
112
112
  <pre>
113
113
  gem install blacklight
114
- gem install hydra-head -v 3.0.0.rc2
114
+ gem install hydra-head -v 3.1.4
115
115
  </pre>
116
116
 
117
117
  Then re-run bundle install and it will run slightly faster.
@@ -2,6 +2,7 @@ require 'mediashelf/active_fedora_helper'
2
2
  class DownloadsController < ApplicationController
3
3
  include MediaShelf::ActiveFedoraHelper
4
4
  include Hydra::RepositoryController
5
+ include Hydra::AssetsControllerHelper
5
6
  helper :downloads
6
7
 
7
8
  # Note: Actual downloads are handled by the index method insead of the show method
@@ -11,7 +12,7 @@ class DownloadsController < ApplicationController
11
12
  fedora_object = ActiveFedora::Base.load_instance(params[:asset_id])
12
13
  if params[:download_id]
13
14
  @datastream = fedora_object.datastreams[params[:download_id]]
14
- send_data @datastream.content, :filename=>@datastream.label, :type=>@datastream.attributes["mimeType"]
15
+ send_datastream @datastream
15
16
  #send_data( Fedora::Repository.instance.fetch_custom(params[:document_id], "datastreams/#{datastream_id}/content") )
16
17
  else
17
18
  @datastreams = downloadables( fedora_object )
@@ -2,6 +2,7 @@ require 'mediashelf/active_fedora_helper'
2
2
  class GetController < ApplicationController
3
3
  include MediaShelf::ActiveFedoraHelper
4
4
  include Hydra::RepositoryController
5
+ include Hydra::AssetsControllerHelper
5
6
  helper :downloads
6
7
 
7
8
  def show
@@ -19,9 +20,4 @@ class GetController < ApplicationController
19
20
 
20
21
  end
21
22
 
22
- private
23
- def send_datastream(datastream)
24
- send_data datastream.content, :filename=>datastream.label, :type=>datastream.attributes["mimeType"]
25
- end
26
-
27
23
  end
@@ -7,9 +7,6 @@ module Hydra
7
7
  datastreams.each_value do |ds|
8
8
  result << "<li>"
9
9
  result << link_to(ds.label, asset_downloads_path(ds.pid, :download_id=>ds.dsid))
10
- # if editor?
11
- # result << " <span>#{ds.attributes["mimeType"]}</span>"
12
- # end
13
10
  result << "</li>"
14
11
  end
15
12
 
@@ -18,14 +18,14 @@ module Hydra::HydraFedoraMetadataHelperBehavior
18
18
  field_values.each_with_index do |current_value, z|
19
19
  base_id = generate_base_id(field_name, current_value, field_values, opts)
20
20
  name = "asset[#{datastream_name}][#{field_name}][#{z}]"
21
- body << "<input class=\"editable-edit edit\" id=\"#{base_id}\" data-datastream-name=\"#{datastream_name}\" name=\"#{name}\" value=\"#{h(current_value.strip)}\" #{required} type=\"text\" />"
22
- body << "<a href=\"\" title=\"Delete '#{h(current_value)}'\" class=\"destructive field\">Delete</a>" if opts.fetch(:multiple, true) && !current_value.empty?
21
+ body << "<input class=\"editable-edit edit\" id=\"#{base_id}\" data-datastream-name=\"#{datastream_name}\" name=\"#{name}\" value=\"#{sanitize(current_value.strip)}\" #{required} type=\"text\" />"
22
+ body << "<a href=\"\" title=\"Delete '#{sanitize(current_value)}'\" class=\"destructive field\">Delete</a>" if opts.fetch(:multiple, true) && !current_value.empty?
23
23
  end
24
24
 
25
25
  result = field_selectors_for(datastream_name, field_key)
26
- result << body
26
+ result << body.html_safe
27
27
 
28
- return result.html_safe
28
+ result
29
29
  end
30
30
 
31
31
  def fedora_text_area(resource, datastream_name, field_key, opts={})
@@ -56,10 +56,8 @@ module Hydra::HydraFedoraMetadataHelperBehavior
56
56
  end
57
57
 
58
58
  result = field_selectors_for(datastream_name, field_key)
59
- result << body
60
-
61
- return result.html_safe
62
-
59
+ result << body.html_safe
60
+ result
63
61
  end
64
62
 
65
63
  # Expects :choices option. Option tags for the select are generated from the :choices option using Rails "options_for_select":http://apidock.com/rails/ActionView/Helpers/FormOptionsHelper/options_for_select helper
@@ -82,9 +80,9 @@ module Hydra::HydraFedoraMetadataHelperBehavior
82
80
  body << "</select>"
83
81
 
84
82
  result = field_selectors_for(datastream_name, field_key)
85
- result << body
83
+ result << body.html_safe
86
84
  end
87
- return result.html_safe
85
+ result
88
86
  end
89
87
 
90
88
  def fedora_date_select(resource, datastream_name, field_key, opts={})
@@ -135,8 +133,8 @@ module Hydra::HydraFedoraMetadataHelperBehavior
135
133
  EOF
136
134
 
137
135
  result = field_selectors_for(datastream_name, field_key)
138
- result << body
139
- return result.html_safe
136
+ result << body.html_safe
137
+ result
140
138
  end
141
139
 
142
140
  def fedora_submit(resource, datastream_name, field_key, opts={})
@@ -258,7 +256,7 @@ module Hydra::HydraFedoraMetadataHelperBehavior
258
256
  end
259
257
  end
260
258
  end
261
- return result
259
+ result.html_safe
262
260
  end
263
261
 
264
262
  # hydra_form_for block helper
@@ -0,0 +1,13 @@
1
+ # A Basic Model for Assets that conform to Hydra commonMetadata cModel and have basic MODS metadata (currently "Article" is the MODS exemplar)
2
+ class CommonMetadataAsset < ActiveFedora::Base
3
+
4
+ # declares a rightsMetadata datastream with type Hydra::RightsMetadata
5
+ # basically, it is another expression of
6
+ # has_metadata :name => "rightsMetadata", :type => Hydra::RightsMetadata
7
+ include Hydra::ModelMixins::CommonMetadata
8
+
9
+ # adds helpful methods for basic hydra objects
10
+ include Hydra::ModelMethods
11
+
12
+ end
13
+
@@ -56,9 +56,3 @@
56
56
 
57
57
  </div>
58
58
 
59
-
60
- <% sidebar_items << capture do %>
61
- <%#= render :partial=>"catalog/_show_partials/facets", :locals=>{:document=>document, :facets_display_heading => "This document refers to:"} %>
62
- <%#= render :partial=>'facets' %>
63
- <% end %>
64
-
@@ -0,0 +1,2 @@
1
+ The file <%=file_asset.label%> has been saved in <%= link_to(file_asset.pid, asset_url(file_asset.pid)) %>.
2
+
@@ -11,7 +11,6 @@
11
11
  <%- container_content_type_param = defined?(container_content_type) ? "?container_content_type=#{container_content_type}" : "" %>
12
12
  <fieldset id='uploader'>
13
13
  <legend>File Upload</legend>
14
- <!-- This form will be progressively enhanced by the Fluid Uploader component. -->
15
14
  <%= form_tag(upload_url,:method=>"post",:enctype=>"multipart/form-data", :class=>"uploader-form step") do -%>
16
15
  <input type="hidden" name="container_id" value="<%=h container_id %>"/>
17
16
  <%= hidden_field_tag("container_content_type", container_content_type, :id => "file_upload_content_type") if defined?(container_content_type) %>
@@ -5,12 +5,8 @@
5
5
  <td>
6
6
 
7
7
  <% if editor? %>
8
- <% if @container.nil? %>
9
- <% file_asset_url = file_asset_path(result["id"]) %>
10
- <% else %>
11
- <% file_asset_url = asset_file_asset_path(@container.pid, result["id"]) %>
12
- <% end %>
13
8
  <%= button_to("Delete", "/file_assets/" + result["id"] + "?container_id=" + @document[:id], :confirm => "Are you sure you want to delete this file?", :method => :delete, :class => "delete-button") %>
9
+
14
10
  <% end %>
15
11
  </td>
16
12
  </tr>