sufia 4.0.0.beta3 → 4.0.0.beta4
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/README.md +7 -0
- data/SUFIA_VERSION +1 -1
- data/app/assets/javascripts/sufia/search.js +4 -6
- data/app/assets/stylesheets/dashboard.css.scss +26 -0
- data/app/assets/stylesheets/header.css.scss +21 -12
- data/app/controllers/batch_controller.rb +0 -1
- data/app/controllers/collections_controller.rb +0 -1
- data/app/controllers/concerns/sufia/catalog.rb +0 -9
- data/app/controllers/concerns/sufia/controller.rb +4 -0
- data/app/controllers/concerns/sufia/dashboard_controller_behavior.rb +24 -74
- data/app/controllers/concerns/sufia/downloads_controller_behavior.rb +0 -3
- data/app/controllers/concerns/sufia/files_controller_behavior.rb +4 -13
- data/app/controllers/concerns/sufia/my_controller_behavior.rb +87 -0
- data/app/controllers/{dashboard → my}/collections_controller.rb +3 -2
- data/app/controllers/{dashboard → my}/files_controller.rb +3 -2
- data/app/controllers/{dashboard → my}/highlights_controller.rb +3 -2
- data/app/controllers/{dashboard → my}/shares_controller.rb +3 -2
- data/app/controllers/my_controller.rb +3 -0
- data/app/controllers/single_use_links_controller.rb +0 -2
- data/app/helpers/dashboard_helper.rb +3 -0
- data/app/helpers/generic_file_helper.rb +4 -4
- data/app/helpers/sufia/dashboard_helper_behavior.rb +25 -0
- data/app/helpers/sufia/sufia_helper_behavior.rb +44 -0
- data/app/jobs/content_delete_event_job.rb +2 -2
- data/app/models/concerns/sufia/solr_document_behavior.rb +5 -0
- data/app/views/_user_util_links.html.erb +5 -5
- data/app/views/catalog/_results_pagination.html.erb +1 -1
- data/app/views/catalog/_search_form.html.erb +56 -28
- data/app/views/collections/_dashboard_document_list.html.erb +1 -1
- data/app/views/collections/_document_list.html.erb +1 -1
- data/app/views/collections/edit.html.erb +8 -11
- data/app/views/collections/show.html.erb +2 -2
- data/app/views/collections/show_fields/_creator.html.erb +11 -0
- data/app/views/collections/show_fields/_description.html.erb +8 -0
- data/app/views/collections/show_fields/_title.html.erb +8 -0
- data/app/views/dashboard/_index_partials/_stats.html.erb +16 -0
- data/app/views/dashboard/_index_partials/_user_info.html.erb +18 -0
- data/app/views/dashboard/index.html.erb +51 -19
- data/app/views/generic_files/_show_descriptions.html.erb +11 -10
- data/app/views/generic_files/show.html.erb +1 -1
- data/app/views/generic_files/show_fields/_based_near.html.erb +7 -0
- data/app/views/generic_files/show_fields/_contributor.html.erb +7 -0
- data/app/views/generic_files/show_fields/_creator.html.erb +7 -0
- data/app/views/generic_files/show_fields/_date_created.html.erb +7 -0
- data/app/views/generic_files/show_fields/_default.html.erb +6 -12
- data/app/views/generic_files/show_fields/_description.html.erb +7 -0
- data/app/views/generic_files/show_fields/_identifier.html.erb +4 -0
- data/app/views/generic_files/show_fields/_language.html.erb +4 -0
- data/app/views/generic_files/show_fields/_publisher.html.erb +7 -0
- data/app/views/generic_files/show_fields/_related_url.html.erb +6 -0
- data/app/views/generic_files/show_fields/_resource_type.html.erb +4 -0
- data/app/views/generic_files/show_fields/_rights.html.erb +4 -0
- data/app/views/generic_files/show_fields/_subject.html.erb +7 -0
- data/app/views/generic_files/show_fields/_tag.html.erb +4 -0
- data/app/views/generic_files/show_fields/_title.html.erb +7 -0
- data/app/views/generic_files/upload/_form_fields.html.erb +4 -5
- data/app/views/generic_files/upload/_script_templates.html.erb +1 -2
- data/app/views/layouts/sufia-dashboard.html.erb +16 -30
- data/app/views/mailbox/_notifications.html.erb +21 -0
- data/app/views/mailbox/index.html.erb +2 -23
- data/app/views/{dashboard → my}/_action_menu.html.erb +0 -0
- data/app/views/{dashboard → my}/_batch_edits_actions.html.erb +0 -0
- data/app/views/{dashboard → my}/_collection_action_menu.html.erb +0 -0
- data/app/views/{dashboard → my}/_did_you_mean.html.erb +0 -0
- data/app/views/my/_document_list.html.erb +4 -0
- data/app/views/{dashboard → my}/_facet_layout.html.erb +0 -0
- data/app/views/{dashboard → my}/_facet_limit.html.erb +0 -0
- data/app/views/{dashboard → my}/_facet_pagination.html.erb +0 -0
- data/app/views/{dashboard → my}/_facet_selected.html.erb +0 -0
- data/app/views/{dashboard → my}/_facets.html.erb +0 -0
- data/app/views/{dashboard → my}/_index_partials/_default_group.html.erb +2 -2
- data/app/views/{dashboard → my}/_index_partials/_list_collections.html.erb +0 -0
- data/app/views/{dashboard → my}/_index_partials/_list_files.html.erb +0 -0
- data/app/views/{dashboard → my}/_results_pagination.html.erb +0 -0
- data/app/views/my/_scripts.js.erb +11 -0
- data/app/views/{dashboard → my}/_sort_and_per_page.html.erb +0 -0
- data/app/views/{dashboard → my}/facet.html.erb +0 -0
- data/app/views/{dashboard/lists → my}/index.html.erb +4 -20
- data/app/views/users/_user_info.html.erb +1 -1
- data/config/initializers/sufia_events.rb +19 -2
- data/config/locales/sufia.en.yml +27 -2
- data/config/routes.rb +7 -11
- data/lib/generators/sufia/sufia_generator.rb +15 -0
- data/lib/generators/sufia/templates/catalog_controller.rb +14 -14
- data/lib/sufia.rb +1 -0
- data/lib/sufia/version.rb +1 -1
- data/spec/controllers/catalog_controller_spec.rb +7 -16
- data/spec/controllers/dashboard_controller_spec.rb +63 -30
- data/spec/controllers/generic_files_controller_spec.rb +1 -1
- data/spec/controllers/{dashboard → my}/collections_controller_spec.rb +1 -15
- data/spec/controllers/my/files_controller_spec.rb +68 -0
- data/spec/controllers/{dashboard → my}/highlights_controller_spec.rb +1 -15
- data/spec/controllers/{dashboard → my}/shares_controller_spec.rb +1 -15
- data/spec/controllers/my_controller_spec.rb +9 -0
- data/spec/features/browse_dashboard_files_spec.rb +72 -26
- data/spec/features/collection_spec.rb +2 -4
- data/spec/features/display_dashboard_spec.rb +20 -26
- data/spec/features/search_spec.rb +25 -13
- data/spec/helpers/dashboard_helper_spec.rb +41 -0
- data/spec/helpers/sufia_helper_spec.rb +104 -3
- data/spec/jobs/event_jobs_spec.rb +1 -1
- data/spec/models/generic_file/web_form_spec.rb +3 -4
- data/spec/models/generic_file_spec.rb +47 -43
- data/spec/routing/route_spec.rb +10 -14
- data/spec/views/batch_edits/check_all_spec.rb +4 -4
- data/spec/views/catalog/sort_and_per_pange.html.erb_spec.rb +27 -0
- data/spec/views/dashboard/index_spec.rb +105 -0
- data/spec/views/{dashboard → my}/facet_limit.html.erb_spec.rb +2 -2
- data/sufia-models/app/actors/sufia/generic_file/actor.rb +23 -3
- data/sufia-models/app/models/concerns/sufia/generic_file.rb +0 -5
- data/sufia-models/app/models/concerns/sufia/generic_file/metadata.rb +9 -2
- data/sufia-models/app/models/concerns/sufia/generic_file/web_form.rb +2 -2
- data/sufia-models/app/models/datastreams/generic_file_rdf_datastream.rb +1 -1
- data/sufia-models/app/services/sufia/noid.rb +21 -16
- data/sufia-models/lib/generators/sufia/models/install_generator.rb +2 -16
- data/sufia-models/lib/generators/sufia/models/templates/config/sufia.rb +23 -0
- data/sufia-models/lib/sufia/models/version.rb +1 -1
- data/sufia-models/sufia-models.gemspec +1 -1
- data/vendor/assets/javascripts/fileupload/jquery.fileupload-ui.js +18 -10
- metadata +68 -45
- data/app/assets/images/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/glyphicons-halflings.png +0 -0
- data/app/controllers/dashboard/lists_controller.rb +0 -13
- data/app/views/dashboard/_constraints.html.erb +0 -6
- data/app/views/dashboard/_document_list.html.erb +0 -4
- data/app/views/dashboard/_heading.html.erb +0 -1
- data/app/views/dashboard/_search_form.html.erb +0 -14
- data/app/views/dashboard/_show_partials/_default.html.erb +0 -20
- data/app/views/dashboard/_show_partials/_default_details.html.erb +0 -15
- data/app/views/dashboard/_show_partials/_facets.html.erb +0 -87
- data/app/views/generic_files/_field_display.html.erb +0 -12
- data/spec/controllers/dashboard/files_controller_spec.rb +0 -71
|
@@ -13,9 +13,8 @@ This generator makes the following changes to your application:
|
|
|
13
13
|
1. Creates several database migrations if they do not exist in /db/migrate
|
|
14
14
|
2. Adds user behavior to the user model
|
|
15
15
|
3. Creates the sufia.rb configuration file
|
|
16
|
-
4.
|
|
17
|
-
5. Generates
|
|
18
|
-
6. Generates usage stats config
|
|
16
|
+
4. Generates mailboxer
|
|
17
|
+
5. Generates usage stats config
|
|
19
18
|
"""
|
|
20
19
|
|
|
21
20
|
# Implement the required interface for Rails::Generators::Migration.
|
|
@@ -83,19 +82,6 @@ This generator makes the following changes to your application:
|
|
|
83
82
|
copy_file 'config/resque_config.rb', 'config/initializers/resque_config.rb'
|
|
84
83
|
end
|
|
85
84
|
|
|
86
|
-
# Add behaviors to the SolrDocument model
|
|
87
|
-
def inject_sufia_solr_document_behavior
|
|
88
|
-
file_path = "app/models/solr_document.rb"
|
|
89
|
-
if File.exists?(file_path)
|
|
90
|
-
inject_into_file file_path, after: /include Blacklight::Solr::Document.*$/ do
|
|
91
|
-
"\n # Adds Sufia behaviors to the SolrDocument.\n" +
|
|
92
|
-
" include Sufia::SolrDocumentBehavior\n"
|
|
93
|
-
end
|
|
94
|
-
else
|
|
95
|
-
puts " \e[31mFailure\e[0m Sufia requires a SolrDocument object. This generators assumes that the model is defined in the file #{file_path}, which does not exist."
|
|
96
|
-
end
|
|
97
|
-
end
|
|
98
|
-
|
|
99
85
|
def install_mailboxer
|
|
100
86
|
generate "mailboxer:install"
|
|
101
87
|
end
|
|
@@ -48,6 +48,29 @@ Sufia.config do |config|
|
|
|
48
48
|
"Other" => "Other",
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
config.resource_types_to_schema = {
|
|
52
|
+
"Article" => "http://schema.org/Article",
|
|
53
|
+
"Audio" => "http://schema.org/AudioObject",
|
|
54
|
+
"Book" => "http://schema.org/Book",
|
|
55
|
+
"Capstone Project" => "http://schema.org/CreativeWork",
|
|
56
|
+
"Conference Proceeding" => "http://schema.org/ScholarlyArticle",
|
|
57
|
+
"Dataset" => "http://schema.org/Dataset",
|
|
58
|
+
"Dissertation" => "http://schema.org/ScholarlyArticle",
|
|
59
|
+
"Image" => "http://schema.org/ImageObject",
|
|
60
|
+
"Journal" => "http://schema.org/CreativeWork",
|
|
61
|
+
"Map or Cartographic Material" => "http://schema.org/Map",
|
|
62
|
+
"Masters Thesis" => "http://schema.org/ScholarlyArticle",
|
|
63
|
+
"Part of Book" => "http://schema.org/Book",
|
|
64
|
+
"Poster" => "http://schema.org/CreativeWork",
|
|
65
|
+
"Presentation" => "http://schema.org/CreativeWork",
|
|
66
|
+
"Project" => "http://schema.org/CreativeWork",
|
|
67
|
+
"Report" => "http://schema.org/CreativeWork",
|
|
68
|
+
"Research Paper" => "http://schema.org/ScholarlyArticle",
|
|
69
|
+
"Software or Program Code" => "http://schema.org/Code",
|
|
70
|
+
"Video" => "http://schema.org/VideoObject",
|
|
71
|
+
"Other" => "http://schema.org/CreativeWork",
|
|
72
|
+
}
|
|
73
|
+
|
|
51
74
|
config.permission_levels = {
|
|
52
75
|
"Choose Access"=>"none",
|
|
53
76
|
"View/Download" => "read",
|
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
spec.add_dependency 'resque', '~> 1.23'
|
|
35
35
|
spec.add_dependency 'resque-pool', '0.3.0'
|
|
36
36
|
spec.add_dependency 'noid', '~> 0.6.6'
|
|
37
|
-
spec.add_dependency 'mailboxer', '~> 0.12.0.
|
|
37
|
+
spec.add_dependency 'mailboxer', '~> 0.12.0.rc2'
|
|
38
38
|
spec.add_dependency 'acts_as_follower', '>= 0.1.1', '< 0.3'
|
|
39
39
|
spec.add_dependency 'carrierwave', '~> 0.9.0'
|
|
40
40
|
spec.add_dependency 'hydra-derivatives', '~> 0.1'
|
|
@@ -220,18 +220,27 @@
|
|
|
220
220
|
},
|
|
221
221
|
// Callback for upload progress events:
|
|
222
222
|
progress: function (e, data) {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
223
|
+
var progress = Math.floor(data.loaded / data.total * 100);
|
|
224
|
+
if (data.context) {
|
|
225
|
+
data.context.find('.progress')
|
|
226
|
+
.attr('aria-valuenow', progress)
|
|
227
|
+
.children().first().css(
|
|
228
|
+
'width',
|
|
229
|
+
progress + '%'
|
|
230
|
+
);
|
|
231
|
+
}
|
|
229
232
|
},
|
|
230
233
|
// Callback for global upload progress events:
|
|
231
234
|
progressall: function (e, data) {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
+
var $this = $(this),
|
|
236
|
+
progress = Math.floor(data.loaded / data.total * 100),
|
|
237
|
+
globalProgressNode = $this.find('.fileupload-progress');
|
|
238
|
+
|
|
239
|
+
globalProgressNode.find('.progress')
|
|
240
|
+
.attr('aria-valuenow', progress)
|
|
241
|
+
.children().first().css(
|
|
242
|
+
'width',
|
|
243
|
+
progress + '%'
|
|
235
244
|
);
|
|
236
245
|
},
|
|
237
246
|
// Callback for uploads start, equivalent to the global ajaxStart event:
|
|
@@ -633,4 +642,3 @@
|
|
|
633
642
|
});
|
|
634
643
|
|
|
635
644
|
}));
|
|
636
|
-
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sufia
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.0.
|
|
4
|
+
version: 4.0.0.beta4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Coyne
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-05-
|
|
12
|
+
date: 2014-05-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: sufia-models
|
|
@@ -17,14 +17,14 @@ dependencies:
|
|
|
17
17
|
requirements:
|
|
18
18
|
- - '='
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: 4.0.0.
|
|
20
|
+
version: 4.0.0.beta4
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
25
|
- - '='
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: 4.0.0.
|
|
27
|
+
version: 4.0.0.beta4
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: blacklight_advanced_search
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -290,8 +290,6 @@ files:
|
|
|
290
290
|
- app/assets/images/default.png
|
|
291
291
|
- app/assets/images/favicon.ico
|
|
292
292
|
- app/assets/images/folder.png
|
|
293
|
-
- app/assets/images/glyphicons-halflings-white.png
|
|
294
|
-
- app/assets/images/glyphicons-halflings.png
|
|
295
293
|
- app/assets/images/hydra/powered_by_hydra.png
|
|
296
294
|
- app/assets/images/hydra/search-button.png
|
|
297
295
|
- app/assets/images/loading.gif
|
|
@@ -390,14 +388,10 @@ files:
|
|
|
390
388
|
- app/controllers/concerns/sufia/files_controller/upload_complete_behavior.rb
|
|
391
389
|
- app/controllers/concerns/sufia/files_controller_behavior.rb
|
|
392
390
|
- app/controllers/concerns/sufia/homepage_controller.rb
|
|
391
|
+
- app/controllers/concerns/sufia/my_controller_behavior.rb
|
|
393
392
|
- app/controllers/concerns/sufia/users_controller_behavior.rb
|
|
394
393
|
- app/controllers/contact_form_controller.rb
|
|
395
394
|
- app/controllers/content_blocks_controller.rb
|
|
396
|
-
- app/controllers/dashboard/collections_controller.rb
|
|
397
|
-
- app/controllers/dashboard/files_controller.rb
|
|
398
|
-
- app/controllers/dashboard/highlights_controller.rb
|
|
399
|
-
- app/controllers/dashboard/lists_controller.rb
|
|
400
|
-
- app/controllers/dashboard/shares_controller.rb
|
|
401
395
|
- app/controllers/dashboard_controller.rb
|
|
402
396
|
- app/controllers/directory_controller.rb
|
|
403
397
|
- app/controllers/downloads_controller.rb
|
|
@@ -407,6 +401,11 @@ files:
|
|
|
407
401
|
- app/controllers/generic_files_controller.rb
|
|
408
402
|
- app/controllers/homepage_controller.rb
|
|
409
403
|
- app/controllers/mailbox_controller.rb
|
|
404
|
+
- app/controllers/my/collections_controller.rb
|
|
405
|
+
- app/controllers/my/files_controller.rb
|
|
406
|
+
- app/controllers/my/highlights_controller.rb
|
|
407
|
+
- app/controllers/my/shares_controller.rb
|
|
408
|
+
- app/controllers/my_controller.rb
|
|
410
409
|
- app/controllers/pages_controller.rb
|
|
411
410
|
- app/controllers/single_use_links_controller.rb
|
|
412
411
|
- app/controllers/single_use_links_viewer_controller.rb
|
|
@@ -416,9 +415,11 @@ files:
|
|
|
416
415
|
- app/helpers/batch_edits_helper.rb
|
|
417
416
|
- app/helpers/contact_form_helper.rb
|
|
418
417
|
- app/helpers/content_block_helper.rb
|
|
418
|
+
- app/helpers/dashboard_helper.rb
|
|
419
419
|
- app/helpers/generic_file_helper.rb
|
|
420
420
|
- app/helpers/records_helper.rb
|
|
421
421
|
- app/helpers/sufia/blacklight_override.rb
|
|
422
|
+
- app/helpers/sufia/dashboard_helper_behavior.rb
|
|
422
423
|
- app/helpers/sufia/records_helper_behavior.rb
|
|
423
424
|
- app/helpers/sufia/sufia_helper_behavior.rb
|
|
424
425
|
- app/helpers/trophy_helper.rb
|
|
@@ -531,33 +532,15 @@ files:
|
|
|
531
532
|
- app/views/collections/_view_type_group.html.erb
|
|
532
533
|
- app/views/collections/edit.html.erb
|
|
533
534
|
- app/views/collections/show.html.erb
|
|
535
|
+
- app/views/collections/show_fields/_creator.html.erb
|
|
536
|
+
- app/views/collections/show_fields/_description.html.erb
|
|
537
|
+
- app/views/collections/show_fields/_title.html.erb
|
|
534
538
|
- app/views/contact_form/_directions.html.erb
|
|
535
539
|
- app/views/contact_form/create.html.erb
|
|
536
540
|
- app/views/contact_form/new.html.erb
|
|
537
|
-
- app/views/dashboard/
|
|
538
|
-
- app/views/dashboard/
|
|
539
|
-
- app/views/dashboard/_collection_action_menu.html.erb
|
|
540
|
-
- app/views/dashboard/_constraints.html.erb
|
|
541
|
-
- app/views/dashboard/_did_you_mean.html.erb
|
|
542
|
-
- app/views/dashboard/_document_list.html.erb
|
|
543
|
-
- app/views/dashboard/_facet_layout.html.erb
|
|
544
|
-
- app/views/dashboard/_facet_limit.html.erb
|
|
545
|
-
- app/views/dashboard/_facet_pagination.html.erb
|
|
546
|
-
- app/views/dashboard/_facet_selected.html.erb
|
|
547
|
-
- app/views/dashboard/_facets.html.erb
|
|
548
|
-
- app/views/dashboard/_heading.html.erb
|
|
549
|
-
- app/views/dashboard/_index_partials/_default_group.html.erb
|
|
550
|
-
- app/views/dashboard/_index_partials/_list_collections.html.erb
|
|
551
|
-
- app/views/dashboard/_index_partials/_list_files.html.erb
|
|
552
|
-
- app/views/dashboard/_results_pagination.html.erb
|
|
553
|
-
- app/views/dashboard/_search_form.html.erb
|
|
554
|
-
- app/views/dashboard/_show_partials/_default.html.erb
|
|
555
|
-
- app/views/dashboard/_show_partials/_default_details.html.erb
|
|
556
|
-
- app/views/dashboard/_show_partials/_facets.html.erb
|
|
557
|
-
- app/views/dashboard/_sort_and_per_page.html.erb
|
|
558
|
-
- app/views/dashboard/facet.html.erb
|
|
541
|
+
- app/views/dashboard/_index_partials/_stats.html.erb
|
|
542
|
+
- app/views/dashboard/_index_partials/_user_info.html.erb
|
|
559
543
|
- app/views/dashboard/index.html.erb
|
|
560
|
-
- app/views/dashboard/lists/index.html.erb
|
|
561
544
|
- app/views/error/401.html.erb
|
|
562
545
|
- app/views/error/404.html.erb
|
|
563
546
|
- app/views/error/500.html.erb
|
|
@@ -570,7 +553,6 @@ files:
|
|
|
570
553
|
- app/views/generic_files/_browse_everything.html.erb
|
|
571
554
|
- app/views/generic_files/_descriptions.html.erb
|
|
572
555
|
- app/views/generic_files/_extra_fields_modal.html.erb
|
|
573
|
-
- app/views/generic_files/_field_display.html.erb
|
|
574
556
|
- app/views/generic_files/_field_form.html.erb
|
|
575
557
|
- app/views/generic_files/_flot_stats.js.erb
|
|
576
558
|
- app/views/generic_files/_groups_description.html.erb
|
|
@@ -593,7 +575,21 @@ files:
|
|
|
593
575
|
- app/views/generic_files/edit_fields/_suffix.html.erb
|
|
594
576
|
- app/views/generic_files/new.html.erb
|
|
595
577
|
- app/views/generic_files/show.html.erb
|
|
578
|
+
- app/views/generic_files/show_fields/_based_near.html.erb
|
|
579
|
+
- app/views/generic_files/show_fields/_contributor.html.erb
|
|
580
|
+
- app/views/generic_files/show_fields/_creator.html.erb
|
|
581
|
+
- app/views/generic_files/show_fields/_date_created.html.erb
|
|
596
582
|
- app/views/generic_files/show_fields/_default.html.erb
|
|
583
|
+
- app/views/generic_files/show_fields/_description.html.erb
|
|
584
|
+
- app/views/generic_files/show_fields/_identifier.html.erb
|
|
585
|
+
- app/views/generic_files/show_fields/_language.html.erb
|
|
586
|
+
- app/views/generic_files/show_fields/_publisher.html.erb
|
|
587
|
+
- app/views/generic_files/show_fields/_related_url.html.erb
|
|
588
|
+
- app/views/generic_files/show_fields/_resource_type.html.erb
|
|
589
|
+
- app/views/generic_files/show_fields/_rights.html.erb
|
|
590
|
+
- app/views/generic_files/show_fields/_subject.html.erb
|
|
591
|
+
- app/views/generic_files/show_fields/_tag.html.erb
|
|
592
|
+
- app/views/generic_files/show_fields/_title.html.erb
|
|
597
593
|
- app/views/generic_files/stats.html.erb
|
|
598
594
|
- app/views/generic_files/upload/_agreement.html.erb
|
|
599
595
|
- app/views/generic_files/upload/_alerts.html.erb
|
|
@@ -628,7 +624,26 @@ files:
|
|
|
628
624
|
- app/views/layouts/sufia-dashboard.html.erb
|
|
629
625
|
- app/views/layouts/sufia-one-column.html.erb
|
|
630
626
|
- app/views/layouts/sufia-two-column.html.erb
|
|
627
|
+
- app/views/mailbox/_notifications.html.erb
|
|
631
628
|
- app/views/mailbox/index.html.erb
|
|
629
|
+
- app/views/my/_action_menu.html.erb
|
|
630
|
+
- app/views/my/_batch_edits_actions.html.erb
|
|
631
|
+
- app/views/my/_collection_action_menu.html.erb
|
|
632
|
+
- app/views/my/_did_you_mean.html.erb
|
|
633
|
+
- app/views/my/_document_list.html.erb
|
|
634
|
+
- app/views/my/_facet_layout.html.erb
|
|
635
|
+
- app/views/my/_facet_limit.html.erb
|
|
636
|
+
- app/views/my/_facet_pagination.html.erb
|
|
637
|
+
- app/views/my/_facet_selected.html.erb
|
|
638
|
+
- app/views/my/_facets.html.erb
|
|
639
|
+
- app/views/my/_index_partials/_default_group.html.erb
|
|
640
|
+
- app/views/my/_index_partials/_list_collections.html.erb
|
|
641
|
+
- app/views/my/_index_partials/_list_files.html.erb
|
|
642
|
+
- app/views/my/_results_pagination.html.erb
|
|
643
|
+
- app/views/my/_scripts.js.erb
|
|
644
|
+
- app/views/my/_sort_and_per_page.html.erb
|
|
645
|
+
- app/views/my/facet.html.erb
|
|
646
|
+
- app/views/my/index.html.erb
|
|
632
647
|
- app/views/pages/show.html.erb
|
|
633
648
|
- app/views/records/_edit_field.html.erb
|
|
634
649
|
- app/views/records/edit_fields/_description.html.erb
|
|
@@ -697,10 +712,6 @@ files:
|
|
|
697
712
|
- spec/controllers/catalog_controller_spec.rb
|
|
698
713
|
- spec/controllers/collections_controller_spec.rb
|
|
699
714
|
- spec/controllers/content_blocks_controller_spec.rb
|
|
700
|
-
- spec/controllers/dashboard/collections_controller_spec.rb
|
|
701
|
-
- spec/controllers/dashboard/files_controller_spec.rb
|
|
702
|
-
- spec/controllers/dashboard/highlights_controller_spec.rb
|
|
703
|
-
- spec/controllers/dashboard/shares_controller_spec.rb
|
|
704
715
|
- spec/controllers/dashboard_controller_spec.rb
|
|
705
716
|
- spec/controllers/downloads_controller_spec.rb
|
|
706
717
|
- spec/controllers/featured_work_lists_controller_spec.rb
|
|
@@ -708,6 +719,11 @@ files:
|
|
|
708
719
|
- spec/controllers/generic_files_controller_spec.rb
|
|
709
720
|
- spec/controllers/homepage_controller_spec.rb
|
|
710
721
|
- spec/controllers/mailbox_controller_spec.rb
|
|
722
|
+
- spec/controllers/my/collections_controller_spec.rb
|
|
723
|
+
- spec/controllers/my/files_controller_spec.rb
|
|
724
|
+
- spec/controllers/my/highlights_controller_spec.rb
|
|
725
|
+
- spec/controllers/my/shares_controller_spec.rb
|
|
726
|
+
- spec/controllers/my_controller_spec.rb
|
|
711
727
|
- spec/controllers/pages_controller_spec.rb
|
|
712
728
|
- spec/controllers/single_use_links_controller_spec.rb
|
|
713
729
|
- spec/controllers/single_use_links_viewer_controller_spec.rb
|
|
@@ -760,6 +776,7 @@ files:
|
|
|
760
776
|
- spec/fixtures/xls_fits.xml
|
|
761
777
|
- spec/fixtures/xml_fits.xml
|
|
762
778
|
- spec/helpers/content_block_helper_spec.rb
|
|
779
|
+
- spec/helpers/dashboard_helper_spec.rb
|
|
763
780
|
- spec/helpers/records_helper_spec.rb
|
|
764
781
|
- spec/helpers/sufia_helper_spec.rb
|
|
765
782
|
- spec/helpers/trophy_helper_spec.rb
|
|
@@ -807,10 +824,12 @@ files:
|
|
|
807
824
|
- spec/support/lib/generators/test_app_generator.rb
|
|
808
825
|
- spec/support/uploaded_file_monkeypatch.rb
|
|
809
826
|
- spec/views/batch_edits/check_all_spec.rb
|
|
810
|
-
- spec/views/
|
|
827
|
+
- spec/views/catalog/sort_and_per_pange.html.erb_spec.rb
|
|
828
|
+
- spec/views/dashboard/index_spec.rb
|
|
811
829
|
- spec/views/generic_file/edit.html.erb_spec.rb
|
|
812
830
|
- spec/views/generic_file/show.html.erb_spec.rb
|
|
813
831
|
- spec/views/generic_file/stats.html.erb_spec.rb
|
|
832
|
+
- spec/views/my/facet_limit.html.erb_spec.rb
|
|
814
833
|
- spec/views/users/_follower_modal.html.erb_spec.rb
|
|
815
834
|
- spec/views/users/_following_modal.html.erb_spec.rb
|
|
816
835
|
- spec/views/users/_notify_number.html.erb_spec.rb
|
|
@@ -995,10 +1014,6 @@ test_files:
|
|
|
995
1014
|
- spec/controllers/catalog_controller_spec.rb
|
|
996
1015
|
- spec/controllers/collections_controller_spec.rb
|
|
997
1016
|
- spec/controllers/content_blocks_controller_spec.rb
|
|
998
|
-
- spec/controllers/dashboard/collections_controller_spec.rb
|
|
999
|
-
- spec/controllers/dashboard/files_controller_spec.rb
|
|
1000
|
-
- spec/controllers/dashboard/highlights_controller_spec.rb
|
|
1001
|
-
- spec/controllers/dashboard/shares_controller_spec.rb
|
|
1002
1017
|
- spec/controllers/dashboard_controller_spec.rb
|
|
1003
1018
|
- spec/controllers/downloads_controller_spec.rb
|
|
1004
1019
|
- spec/controllers/featured_work_lists_controller_spec.rb
|
|
@@ -1006,6 +1021,11 @@ test_files:
|
|
|
1006
1021
|
- spec/controllers/generic_files_controller_spec.rb
|
|
1007
1022
|
- spec/controllers/homepage_controller_spec.rb
|
|
1008
1023
|
- spec/controllers/mailbox_controller_spec.rb
|
|
1024
|
+
- spec/controllers/my/collections_controller_spec.rb
|
|
1025
|
+
- spec/controllers/my/files_controller_spec.rb
|
|
1026
|
+
- spec/controllers/my/highlights_controller_spec.rb
|
|
1027
|
+
- spec/controllers/my/shares_controller_spec.rb
|
|
1028
|
+
- spec/controllers/my_controller_spec.rb
|
|
1009
1029
|
- spec/controllers/pages_controller_spec.rb
|
|
1010
1030
|
- spec/controllers/single_use_links_controller_spec.rb
|
|
1011
1031
|
- spec/controllers/single_use_links_viewer_controller_spec.rb
|
|
@@ -1058,6 +1078,7 @@ test_files:
|
|
|
1058
1078
|
- spec/fixtures/xls_fits.xml
|
|
1059
1079
|
- spec/fixtures/xml_fits.xml
|
|
1060
1080
|
- spec/helpers/content_block_helper_spec.rb
|
|
1081
|
+
- spec/helpers/dashboard_helper_spec.rb
|
|
1061
1082
|
- spec/helpers/records_helper_spec.rb
|
|
1062
1083
|
- spec/helpers/sufia_helper_spec.rb
|
|
1063
1084
|
- spec/helpers/trophy_helper_spec.rb
|
|
@@ -1105,10 +1126,12 @@ test_files:
|
|
|
1105
1126
|
- spec/support/lib/generators/test_app_generator.rb
|
|
1106
1127
|
- spec/support/uploaded_file_monkeypatch.rb
|
|
1107
1128
|
- spec/views/batch_edits/check_all_spec.rb
|
|
1108
|
-
- spec/views/
|
|
1129
|
+
- spec/views/catalog/sort_and_per_pange.html.erb_spec.rb
|
|
1130
|
+
- spec/views/dashboard/index_spec.rb
|
|
1109
1131
|
- spec/views/generic_file/edit.html.erb_spec.rb
|
|
1110
1132
|
- spec/views/generic_file/show.html.erb_spec.rb
|
|
1111
1133
|
- spec/views/generic_file/stats.html.erb_spec.rb
|
|
1134
|
+
- spec/views/my/facet_limit.html.erb_spec.rb
|
|
1112
1135
|
- spec/views/users/_follower_modal.html.erb_spec.rb
|
|
1113
1136
|
- spec/views/users/_following_modal.html.erb_spec.rb
|
|
1114
1137
|
- spec/views/users/_notify_number.html.erb_spec.rb
|
|
Binary file
|
|
Binary file
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
module Dashboard
|
|
2
|
-
class ListsController < DashboardController
|
|
3
|
-
# specify the controller_name here to specify where we should look for
|
|
4
|
-
# the batch_edit menu options (_batch_edits_actions.html.erb)
|
|
5
|
-
def controller_name
|
|
6
|
-
:dashboard
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
def search_action_url(opts={})
|
|
10
|
-
sufia.url_for(opts)
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
end
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<div class="col-sm-12 col-md-6 col-lg-6"><h1>My Dashboard</h1></div>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<div class="col-xs-12 col-md-6">
|
|
2
|
-
<%= form_tag search_action_url, method: :get, role: "search" do %>
|
|
3
|
-
<label for="dashboard_search" class="sr-only">Search My Dashboard</label>
|
|
4
|
-
<%= hidden_field_tag :search_field, 'all_fields' %>
|
|
5
|
-
<%= render_hash_as_hidden_fields(params_for_search().except(:q, :search_field, :qt, :page, :utf8)) %>
|
|
6
|
-
<div class="input-group">
|
|
7
|
-
<%= text_field_tag :q, params[:q], class: "q form-control", placeholder: "Search My Dashboard", id: "dashboard_search" %>
|
|
8
|
-
<span class="input-group-btn">
|
|
9
|
-
<button type="submit" class="btn btn-default" id="dashboard_submit"><i class="glyphicon glyphicon-search"></i> Go</button>
|
|
10
|
-
</span><!-- / .input-group-btn -->
|
|
11
|
-
</div> <!-- /.input-group -->
|
|
12
|
-
|
|
13
|
-
<% end %>
|
|
14
|
-
</div>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<%# default partial to display solr document fields in catalog show view -%>
|
|
2
|
-
<div class="document_viewer" id="cover_container">
|
|
3
|
-
<dl class="defList">
|
|
4
|
-
<dt>ID: </dt>
|
|
5
|
-
<dd><%= render_document_show_field_value(document: document, field: "id") %></dd>
|
|
6
|
-
<dt>Download:</dt>
|
|
7
|
-
<dd id="downloads">
|
|
8
|
-
<ul>
|
|
9
|
-
<% %>
|
|
10
|
-
</ul>
|
|
11
|
-
</dd>
|
|
12
|
-
<dt>Copyright: </dt>
|
|
13
|
-
<dd><%= render_document_show_field_value(document: document, field: "rights_t") %></dd>
|
|
14
|
-
</dl>
|
|
15
|
-
</div>
|
|
16
|
-
<div class="<%= params[:action]%>_details">
|
|
17
|
-
<%= render partial: "#{params[:controller]}/_#{params[:action]}_partials/default_details", locals: {document: document}%>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<%= async_load_tag(hydra_asset_downloads_path(params[:id]), 'downloads') %>
|