sufia 4.0.0.beta4 → 4.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/Gemfile +1 -1
- data/History.md +325 -0
- data/RELEASING.md +1 -0
- data/SUFIA_VERSION +1 -1
- data/app/assets/javascripts/sufia.js +2 -2
- data/app/assets/javascripts/sufia/batch_edit.js +2 -2
- data/app/assets/javascripts/sufia/batch_select_all.js +7 -7
- data/app/assets/stylesheets/{dashboard.css.scss → file-listing.css.scss} +7 -1
- data/app/assets/stylesheets/styles.css.scss +23 -0
- data/app/assets/stylesheets/sufia.css.scss +5 -1
- data/app/controllers/concerns/sufia/catalog.rb +4 -4
- data/app/controllers/concerns/sufia/controller.rb +0 -4
- data/app/controllers/concerns/sufia/my_controller_behavior.rb +1 -5
- data/app/controllers/my/collections_controller.rb +7 -0
- data/app/controllers/my/files_controller.rb +7 -0
- data/app/controllers/my/highlights_controller.rb +7 -0
- data/app/controllers/my/shares_controller.rb +7 -0
- data/app/helpers/sufia/records_helper_behavior.rb +1 -1
- data/app/helpers/sufia/sufia_helper_behavior.rb +2 -2
- data/app/models/concerns/sufia/solr_document_behavior.rb +10 -0
- data/app/views/_user_util_links.html.erb +1 -1
- data/app/views/advanced/index.html.erb +10 -13
- data/app/views/batch/_edit.js.erb +15 -0
- data/app/views/batch/_metadata.html.erb +1 -1
- data/app/views/batch/edit.html.erb +10 -25
- data/app/views/batch_edits/_batch_edits_actions.html.erb +1 -1
- data/app/views/batch_edits/_check_all.html.erb +1 -1
- data/app/views/batch_edits/edit.html.erb +3 -3
- data/app/views/catalog/_document_list.html.erb +6 -1
- data/app/views/catalog/index.html.erb +34 -21
- data/app/views/collections/_action_menu.html.erb +5 -5
- data/app/views/collections/_batch_edits_actions.html.erb +1 -1
- data/app/views/collections/_collection.html.erb +36 -0
- data/app/views/collections/_document_list.html.erb +2 -2
- data/app/views/collections/_edit_descriptions.html.erb +1 -1
- data/app/views/collections/_form.html.erb +11 -8
- data/app/views/collections/_search_collection_dashboard_form.html.erb +1 -1
- data/app/views/collections/_sort_and_per_page.html.erb +1 -1
- data/app/views/dashboard/index.html.erb +1 -1
- data/app/views/generic_files/_descriptions.html.erb +1 -1
- data/app/views/generic_files/_edit.js.erb +22 -0
- data/app/views/generic_files/_extra_fields_modal.html.erb +18 -14
- data/app/views/generic_files/_generic_file.html.erb +36 -0
- data/app/views/generic_files/_media_display.html.erb +4 -0
- data/app/views/generic_files/_permission.html.erb +1 -1
- data/app/views/generic_files/_permission_form.html.erb +40 -36
- data/app/views/generic_files/_rights_modal.html.erb +37 -33
- data/app/views/generic_files/edit.html.erb +13 -30
- data/app/views/generic_files/new.html.erb +3 -3
- data/app/views/generic_files/show.html.erb +3 -7
- data/app/views/generic_files/stats.html.erb +1 -1
- data/app/views/generic_files/upload/_form_fields.html.erb +4 -4
- data/app/views/generic_files/upload/_local_file_import_chooser.html.erb +2 -2
- data/app/views/generic_files/upload/_script_templates.html.erb +2 -2
- data/app/views/homepage/_home_content.html.erb +2 -2
- data/app/views/homepage/_home_header.html.erb +1 -1
- data/app/views/homepage/_sortable_featured.html.erb +1 -1
- data/app/views/layouts/_head_tag_content.html.erb +1 -10
- data/app/views/layouts/error.html.erb +0 -9
- data/app/views/layouts/homepage.html.erb +1 -1
- data/app/views/layouts/sufia-dashboard.html.erb +6 -6
- data/app/views/layouts/sufia-one-column.html.erb +2 -2
- data/app/views/layouts/sufia-two-column.html.erb +2 -2
- data/app/views/mailbox/_notifications.html.erb +1 -1
- data/app/views/mailbox/index.html.erb +1 -1
- data/app/views/my/_batch_edits_actions.html.erb +1 -1
- data/app/views/my/_collection_action_menu.html.erb +4 -4
- data/app/views/my/_did_you_mean.html.erb +2 -7
- data/app/views/my/_document_list.html.erb +1 -1
- data/app/views/my/_facet_layout.html.erb +10 -9
- data/app/views/my/_facet_limit.html.erb +9 -9
- data/app/views/my/_facet_pagination.html.erb +14 -17
- data/app/views/my/_facet_selected.html.erb +1 -1
- data/app/views/my/_facets.html.erb +20 -7
- data/app/views/my/_index_partials/_default_group.html.erb +4 -4
- data/app/views/my/_index_partials/_list_collections.html.erb +1 -1
- data/app/views/my/_index_partials/_list_files.html.erb +2 -2
- data/app/views/my/_results_pagination.html.erb +7 -4
- data/app/views/my/_sort_and_per_page.html.erb +5 -8
- data/app/views/my/facet.html.erb +2 -5
- data/app/views/my/index.html.erb +1 -1
- data/app/views/single_use_links/new_download.html.erb +1 -1
- data/app/views/users/_contributions.html.erb +3 -3
- data/app/views/users/_profile_tabs.html.erb +3 -3
- data/app/views/users/_social_media_info.html.erb +3 -3
- data/app/views/users/_trophy_edit.html.erb +2 -2
- data/app/views/users/_user_info.html.erb +4 -4
- data/app/views/users/edit.html.erb +5 -10
- data/app/views/users/show.html.erb +16 -21
- data/config/locales/sufia.en.yml +7 -6
- data/config/routes.rb +25 -32
- data/lib/generators/sufia/sufia_generator.rb +1 -1
- data/lib/generators/sufia/upgrade400_generator.rb +87 -0
- data/lib/sufia/version.rb +1 -1
- data/spec/controllers/catalog_controller_spec.rb +22 -0
- data/spec/features/browse_dashboard_files_spec.rb +22 -11
- data/spec/features/catalog_search_spec.rb +99 -0
- data/spec/features/collection_spec.rb +1 -1
- data/spec/helpers/records_helper_spec.rb +1 -1
- data/spec/helpers/sufia_helper_spec.rb +4 -3
- data/spec/models/generic_file_spec.rb +7 -3
- data/spec/models/solr_document_spec.rb +27 -9
- data/spec/services/noid_spec.rb +16 -0
- data/spec/spec_helper.rb +1 -1
- data/spec/views/batch/edit.html.erb_spec.rb +34 -0
- data/spec/views/my/facet.html.erb_spec.rb +34 -0
- data/sufia-models/app/models/concerns/sufia/generic_file/mime_types.rb +1 -1
- data/sufia-models/app/services/sufia/noid.rb +2 -5
- data/sufia-models/lib/generators/sufia/models/upgrade400_generator.rb +78 -0
- data/sufia-models/lib/sufia/models/engine.rb +1 -1
- data/sufia-models/lib/sufia/models/version.rb +1 -1
- data/sufia-models/sufia-models.gemspec +3 -3
- data/sufia.gemspec +1 -1
- data/tasks/sufia-dev.rake +1 -1
- metadata +24 -54
- data/.gitmodules +0 -4
- data/Releasing_sufia.md +0 -6
- data/UpgradeGuide.md +0 -3
- data/app/views/catalog/_bookmark_control.html.erb +0 -24
- data/app/views/catalog/_citation.html.erb +0 -11
- data/app/views/catalog/_constraints.html.erb +0 -6
- data/app/views/catalog/_constraints_element.html.erb +0 -20
- data/app/views/catalog/_did_you_mean.html.erb +0 -10
- data/app/views/catalog/_document.html.erb +0 -19
- data/app/views/catalog/_email_form.html.erb +0 -11
- data/app/views/catalog/_facet_layout.html.erb +0 -12
- data/app/views/catalog/_facet_selected.html.erb +0 -12
- data/app/views/catalog/_facets.html.erb +0 -7
- data/app/views/catalog/_folder_control.html.erb +0 -11
- data/app/views/catalog/_index_default.html.erb +0 -11
- data/app/views/catalog/_index_header_default.html.erb +0 -20
- data/app/views/catalog/_index_partials/_default_group.html.erb +0 -7
- data/app/views/catalog/_index_partials/_list_files.html.erb +0 -37
- data/app/views/catalog/_marc_view.html.erb +0 -33
- data/app/views/catalog/_opensearch_response_metadata.html.erb +0 -2
- data/app/views/catalog/_previous_next_doc.html.erb +0 -6
- data/app/views/catalog/_refworks_form.html.erb +0 -7
- data/app/views/catalog/_results_pagination.html.erb +0 -6
- data/app/views/catalog/_show_default.html.erb +0 -9
- data/app/views/catalog/_show_sidebar.html.erb +0 -1
- data/app/views/catalog/_show_tools.html.erb +0 -46
- data/app/views/catalog/_sms_form.html.erb +0 -21
- data/app/views/catalog/_sort_and_per_page.html.erb +0 -9
- data/app/views/catalog/about.html.erb +0 -0
- data/app/views/catalog/citation.html.erb +0 -1
- data/app/views/catalog/email.erb +0 -1
- data/app/views/catalog/endnote.endnote.erb +0 -1
- data/app/views/catalog/index.atom.builder +0 -109
- data/app/views/catalog/index.rss.builder +0 -19
- data/app/views/catalog/librarian_view.html.erb +0 -3
- data/app/views/catalog/opensearch.json.erb +0 -0
- data/app/views/catalog/opensearch.xml.builder +0 -10
- data/app/views/catalog/send_email_record.erb +0 -0
- data/app/views/catalog/show.endnote.erb +0 -1
- data/app/views/catalog/show.html.erb +0 -40
- data/app/views/catalog/show.refworks.erb +0 -1
- data/app/views/catalog/sms.erb +0 -1
- data/app/views/collections/_button_for_creating_empty_collection.html.erb +0 -3
- data/spec/views/my/facet_limit.html.erb_spec.rb +0 -15
@@ -16,11 +16,8 @@ module Sufia
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def namespaceize(identifier)
|
19
|
-
if identifier.
|
20
|
-
|
21
|
-
else
|
22
|
-
"#{namespace}:#{identifier}"
|
23
|
-
end
|
19
|
+
return identifier if identifier.include?(':')
|
20
|
+
"#{namespace}:#{identifier}"
|
24
21
|
end
|
25
22
|
|
26
23
|
protected
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
require 'rails/generators'
|
3
|
+
require 'rails/generators/migration'
|
4
|
+
|
5
|
+
class Sufia::Models::Upgrade400Generator < Rails::Generators::Base
|
6
|
+
include Rails::Generators::Migration
|
7
|
+
|
8
|
+
source_root File.expand_path('../templates', __FILE__)
|
9
|
+
|
10
|
+
argument :model_name, type: :string , default: "user"
|
11
|
+
desc """
|
12
|
+
This generator for upgrading sufia-models from 3.7.2 to 4.0 makes the following changes to your application:
|
13
|
+
1. Creates several database migrations if they do not exist in /db/migrate
|
14
|
+
2. Runs the mailboxer upgrade generator
|
15
|
+
3. Adds analytics to the sufia.rb configuration file
|
16
|
+
"""
|
17
|
+
|
18
|
+
# Implement the required interface for Rails::Generators::Migration.
|
19
|
+
# taken from http://github.com/rails/rails/blob/master/activerecord/lib/generators/active_record.rb
|
20
|
+
def self.next_migration_number(path)
|
21
|
+
if @prev_migration_nr
|
22
|
+
@prev_migration_nr += 1
|
23
|
+
else
|
24
|
+
if last_migration = Dir[File.join(path, '*.rb')].sort.last
|
25
|
+
@prev_migration_nr = last_migration.sub(File.join(path, '/'), '').to_i + 1
|
26
|
+
else
|
27
|
+
@prev_migration_nr = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i
|
28
|
+
end
|
29
|
+
end
|
30
|
+
@prev_migration_nr.to_s
|
31
|
+
end
|
32
|
+
|
33
|
+
def banner
|
34
|
+
say_status("warning", "UPGRADING SUFIA MODELS", :yellow)
|
35
|
+
end
|
36
|
+
|
37
|
+
# Setup the database migrations
|
38
|
+
def copy_migrations
|
39
|
+
# Can't get this any more DRY, because we need this order.
|
40
|
+
[
|
41
|
+
'create_tinymce_assets.rb',
|
42
|
+
'create_content_blocks.rb',
|
43
|
+
'create_featured_works.rb'
|
44
|
+
].each do |file|
|
45
|
+
better_migration_template file
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# Upgrade mailboxer
|
50
|
+
def install_mailboxer
|
51
|
+
generate "mailboxer:namespacing_compatibility"
|
52
|
+
end
|
53
|
+
|
54
|
+
# Add config file for Google Analytics
|
55
|
+
def add_analytics_config
|
56
|
+
copy_file 'config/analytics.yml', 'config/analytics.yml'
|
57
|
+
end
|
58
|
+
|
59
|
+
# Add Google Analytics option to Sufia config
|
60
|
+
def inject_analytics_initializer
|
61
|
+
inject_into_file 'config/initializers/sufia.rb', after: /^Sufia\.config do.*$/ do
|
62
|
+
"\n # Enable displaying usage statistics in the UI\n" +
|
63
|
+
" # Defaults to FALSE\n" +
|
64
|
+
" # Requires a Google Analytics id and OAuth2 keyfile. See README for more info\n" +
|
65
|
+
" #config.analytics = false\n"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
private
|
70
|
+
|
71
|
+
def better_migration_template(file)
|
72
|
+
begin
|
73
|
+
migration_template "migrations/#{file}", "db/migrate/#{file}"
|
74
|
+
rescue Rails::Generators::Error => e
|
75
|
+
say_status("warning", e.message, :yellow)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -23,7 +23,7 @@ module Sufia
|
|
23
23
|
config.enable_contact_form_delivery = false
|
24
24
|
config.browse_everything = nil
|
25
25
|
config.enable_local_ingest = nil
|
26
|
-
config.
|
26
|
+
config.analytics = false
|
27
27
|
config.queue = Sufia::Resque::Queue
|
28
28
|
|
29
29
|
config.autoload_paths += %W(
|
@@ -29,12 +29,12 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_dependency 'rails', '~> 4.0', '< 5.0.0'
|
30
30
|
spec.add_dependency 'activeresource', "~>4.0.0" # No longer a dependency of rails 4.0
|
31
31
|
|
32
|
-
spec.add_dependency "hydra-head", "~> 7.0
|
32
|
+
spec.add_dependency "hydra-head", "~> 7.0"
|
33
33
|
spec.add_dependency 'nest', '~> 1.1.1'
|
34
34
|
spec.add_dependency 'resque', '~> 1.23'
|
35
|
-
spec.add_dependency 'resque-pool', '0.3.0'
|
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'
|
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'
|
data/sufia.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |gem|
|
|
36
36
|
gem.add_dependency 'rails_autolink', '~> 1.1.0'
|
37
37
|
gem.add_dependency 'yaml_db', '0.2.3'
|
38
38
|
gem.add_dependency 'font-awesome-sass-rails', '~> 3.0'
|
39
|
-
gem.add_dependency 'hydra-editor'
|
39
|
+
gem.add_dependency 'hydra-editor', '~> 0.3.0'
|
40
40
|
gem.add_dependency 'hydra-collections', '~> 2.0.2'
|
41
41
|
gem.add_dependency 'bootstrap_form', '~> 2.1.1'
|
42
42
|
gem.add_dependency 'blacklight-gallery'
|
data/tasks/sufia-dev.rake
CHANGED
@@ -5,7 +5,7 @@ require 'jettywrapper'
|
|
5
5
|
#ENV["RAILS_ROOT"] ||= 'spec/internal'
|
6
6
|
|
7
7
|
desc 'Spin up hydra-jetty and run specs'
|
8
|
-
task ci: ['jetty:config'] do
|
8
|
+
task ci: ['jetty:clean', 'jetty:config'] do
|
9
9
|
puts 'running continuous integration'
|
10
10
|
jetty_params = Jettywrapper.load_config
|
11
11
|
error = Jettywrapper.wrap(jetty_params) do
|
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.rc1
|
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-
|
12
|
+
date: 2014-06-06 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.rc1
|
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.rc1
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: blacklight_advanced_search
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,16 +203,16 @@ dependencies:
|
|
203
203
|
name: hydra-editor
|
204
204
|
requirement: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- - "
|
206
|
+
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
208
|
+
version: 0.3.0
|
209
209
|
type: :runtime
|
210
210
|
prerelease: false
|
211
211
|
version_requirements: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- - "
|
213
|
+
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version:
|
215
|
+
version: 0.3.0
|
216
216
|
- !ruby/object:Gem::Dependency
|
217
217
|
name: hydra-collections
|
218
218
|
requirement: !ruby/object:Gem::Requirement
|
@@ -265,7 +265,6 @@ extensions: []
|
|
265
265
|
extra_rdoc_files: []
|
266
266
|
files:
|
267
267
|
- ".gitignore"
|
268
|
-
- ".gitmodules"
|
269
268
|
- ".rspec"
|
270
269
|
- ".travis.yml"
|
271
270
|
- CONTRIBUTING.md
|
@@ -273,10 +272,9 @@ files:
|
|
273
272
|
- History.md
|
274
273
|
- LICENSE.md
|
275
274
|
- README.md
|
275
|
+
- RELEASING.md
|
276
276
|
- Rakefile
|
277
|
-
- Releasing_sufia.md
|
278
277
|
- SUFIA_VERSION
|
279
|
-
- UpgradeGuide.md
|
280
278
|
- app/assets/images/audio.png
|
281
279
|
- app/assets/images/blacklight/bg.png
|
282
280
|
- app/assets/images/blacklight/border.png
|
@@ -356,8 +354,8 @@ files:
|
|
356
354
|
- app/assets/javascripts/sufia/trophy.js
|
357
355
|
- app/assets/javascripts/sufia/uploader.js
|
358
356
|
- app/assets/javascripts/terms_of_service.js
|
359
|
-
- app/assets/stylesheets/dashboard.css.scss
|
360
357
|
- app/assets/stylesheets/featured.css.scss
|
358
|
+
- app/assets/stylesheets/file-listing.css.scss
|
361
359
|
- app/assets/stylesheets/fileupload/application.css
|
362
360
|
- app/assets/stylesheets/fileupload/jquery.fileupload-ui.css.erb
|
363
361
|
- app/assets/stylesheets/fileupload/pbar-ani.gif
|
@@ -454,6 +452,7 @@ files:
|
|
454
452
|
- app/views/advanced/_facet_layout.html.erb
|
455
453
|
- app/views/advanced/_facet_limit.html.erb
|
456
454
|
- app/views/advanced/index.html.erb
|
455
|
+
- app/views/batch/_edit.js.erb
|
457
456
|
- app/views/batch/_metadata.html.erb
|
458
457
|
- app/views/batch/_more_metadata.html.erb
|
459
458
|
- app/views/batch/edit.html.erb
|
@@ -462,59 +461,20 @@ files:
|
|
462
461
|
- app/views/batch_edits/_delete_selected.html.erb
|
463
462
|
- app/views/batch_edits/edit.html.erb
|
464
463
|
- app/views/batch_edits/update_edit.js.erb
|
465
|
-
- app/views/catalog/_bookmark_control.html.erb
|
466
|
-
- app/views/catalog/_citation.html.erb
|
467
|
-
- app/views/catalog/_constraints.html.erb
|
468
|
-
- app/views/catalog/_constraints_element.html.erb
|
469
464
|
- app/views/catalog/_delete_partials/_default.html.erb
|
470
|
-
- app/views/catalog/_did_you_mean.html.erb
|
471
|
-
- app/views/catalog/_document.html.erb
|
472
465
|
- app/views/catalog/_document_list.html.erb
|
473
466
|
- app/views/catalog/_edit_partials/_default.html.erb
|
474
467
|
- app/views/catalog/_edit_partials/_default_details.html.erb
|
475
|
-
- app/views/catalog/_email_form.html.erb
|
476
|
-
- app/views/catalog/_facet_layout.html.erb
|
477
468
|
- app/views/catalog/_facet_limit.html.erb
|
478
|
-
- app/views/catalog/_facet_selected.html.erb
|
479
|
-
- app/views/catalog/_facets.html.erb
|
480
|
-
- app/views/catalog/_folder_control.html.erb
|
481
|
-
- app/views/catalog/_index_default.html.erb
|
482
|
-
- app/views/catalog/_index_header_default.html.erb
|
483
|
-
- app/views/catalog/_index_partials/_default_group.html.erb
|
484
|
-
- app/views/catalog/_index_partials/_list_files.html.erb
|
485
|
-
- app/views/catalog/_marc_view.html.erb
|
486
|
-
- app/views/catalog/_opensearch_response_metadata.html.erb
|
487
|
-
- app/views/catalog/_previous_next_doc.html.erb
|
488
|
-
- app/views/catalog/_refworks_form.html.erb
|
489
|
-
- app/views/catalog/_results_pagination.html.erb
|
490
469
|
- app/views/catalog/_search_form.html.erb
|
491
|
-
- app/views/catalog/_show_default.html.erb
|
492
470
|
- app/views/catalog/_show_partials/_default.html.erb
|
493
471
|
- app/views/catalog/_show_partials/_default_details.html.erb
|
494
472
|
- app/views/catalog/_show_partials/_facets.html.erb
|
495
|
-
- app/views/catalog/_show_sidebar.html.erb
|
496
|
-
- app/views/catalog/_show_tools.html.erb
|
497
|
-
- app/views/catalog/_sms_form.html.erb
|
498
|
-
- app/views/catalog/_sort_and_per_page.html.erb
|
499
|
-
- app/views/catalog/about.html.erb
|
500
|
-
- app/views/catalog/citation.html.erb
|
501
|
-
- app/views/catalog/email.erb
|
502
|
-
- app/views/catalog/endnote.endnote.erb
|
503
|
-
- app/views/catalog/index.atom.builder
|
504
473
|
- app/views/catalog/index.html.erb
|
505
|
-
- app/views/catalog/index.rss.builder
|
506
|
-
- app/views/catalog/librarian_view.html.erb
|
507
|
-
- app/views/catalog/opensearch.json.erb
|
508
|
-
- app/views/catalog/opensearch.xml.builder
|
509
474
|
- app/views/catalog/recent.js.erb
|
510
|
-
- app/views/catalog/send_email_record.erb
|
511
|
-
- app/views/catalog/show.endnote.erb
|
512
|
-
- app/views/catalog/show.html.erb
|
513
|
-
- app/views/catalog/show.refworks.erb
|
514
|
-
- app/views/catalog/sms.erb
|
515
475
|
- app/views/collections/_action_menu.html.erb
|
516
476
|
- app/views/collections/_batch_edits_actions.html.erb
|
517
|
-
- app/views/collections/
|
477
|
+
- app/views/collections/_collection.html.erb
|
518
478
|
- app/views/collections/_dashboard_document_list.html.erb
|
519
479
|
- app/views/collections/_document_list.html.erb
|
520
480
|
- app/views/collections/_edit_actions.html.erb
|
@@ -552,9 +512,11 @@ files:
|
|
552
512
|
- app/views/generic_files/_breadcrumbs.html.erb
|
553
513
|
- app/views/generic_files/_browse_everything.html.erb
|
554
514
|
- app/views/generic_files/_descriptions.html.erb
|
515
|
+
- app/views/generic_files/_edit.js.erb
|
555
516
|
- app/views/generic_files/_extra_fields_modal.html.erb
|
556
517
|
- app/views/generic_files/_field_form.html.erb
|
557
518
|
- app/views/generic_files/_flot_stats.js.erb
|
519
|
+
- app/views/generic_files/_generic_file.html.erb
|
558
520
|
- app/views/generic_files/_groups_description.html.erb
|
559
521
|
- app/views/generic_files/_local_file_import.html.erb
|
560
522
|
- app/views/generic_files/_media_display.html.erb
|
@@ -694,6 +656,7 @@ files:
|
|
694
656
|
- lib/generators/sufia/templates/config/action_dispatch_http_upload_monkey_patch.rb
|
695
657
|
- lib/generators/sufia/templates/config/tinymce.yml
|
696
658
|
- lib/generators/sufia/templates/sufia_helper.rb
|
659
|
+
- lib/generators/sufia/upgrade400_generator.rb
|
697
660
|
- lib/sufia.rb
|
698
661
|
- lib/sufia/role_mapper.rb
|
699
662
|
- lib/sufia/single_use_error.rb
|
@@ -738,6 +701,7 @@ files:
|
|
738
701
|
- spec/factories/users.rb
|
739
702
|
- spec/features/browse_dashboard_files_spec.rb
|
740
703
|
- spec/features/browse_files_spec.rb
|
704
|
+
- spec/features/catalog_search_spec.rb
|
741
705
|
- spec/features/cloud_upload_spec.rb
|
742
706
|
- spec/features/collection_spec.rb
|
743
707
|
- spec/features/contact_form_spec.rb
|
@@ -816,6 +780,7 @@ files:
|
|
816
780
|
- spec/models/user_spec.rb
|
817
781
|
- spec/routing/featured_works_route_spec.rb
|
818
782
|
- spec/routing/route_spec.rb
|
783
|
+
- spec/services/noid_spec.rb
|
819
784
|
- spec/spec_helper.rb
|
820
785
|
- spec/support/features.rb
|
821
786
|
- spec/support/features/session_helpers.rb
|
@@ -823,13 +788,14 @@ files:
|
|
823
788
|
- spec/support/fixture_helpers.rb
|
824
789
|
- spec/support/lib/generators/test_app_generator.rb
|
825
790
|
- spec/support/uploaded_file_monkeypatch.rb
|
791
|
+
- spec/views/batch/edit.html.erb_spec.rb
|
826
792
|
- spec/views/batch_edits/check_all_spec.rb
|
827
793
|
- spec/views/catalog/sort_and_per_pange.html.erb_spec.rb
|
828
794
|
- spec/views/dashboard/index_spec.rb
|
829
795
|
- spec/views/generic_file/edit.html.erb_spec.rb
|
830
796
|
- spec/views/generic_file/show.html.erb_spec.rb
|
831
797
|
- spec/views/generic_file/stats.html.erb_spec.rb
|
832
|
-
- spec/views/my/
|
798
|
+
- spec/views/my/facet.html.erb_spec.rb
|
833
799
|
- spec/views/users/_follower_modal.html.erb_spec.rb
|
834
800
|
- spec/views/users/_following_modal.html.erb_spec.rb
|
835
801
|
- spec/views/users/_notify_number.html.erb_spec.rb
|
@@ -913,6 +879,7 @@ files:
|
|
913
879
|
- sufia-models/lib/generators/sufia/models/templates/migrations/create_tinymce_assets.rb
|
914
880
|
- sufia-models/lib/generators/sufia/models/templates/migrations/create_trophies.rb
|
915
881
|
- sufia-models/lib/generators/sufia/models/templates/migrations/create_version_committers.rb
|
882
|
+
- sufia-models/lib/generators/sufia/models/upgrade400_generator.rb
|
916
883
|
- sufia-models/lib/generators/sufia/models/usagestats_generator.rb
|
917
884
|
- sufia-models/lib/sufia/ability.rb
|
918
885
|
- sufia-models/lib/sufia/models.rb
|
@@ -1040,6 +1007,7 @@ test_files:
|
|
1040
1007
|
- spec/factories/users.rb
|
1041
1008
|
- spec/features/browse_dashboard_files_spec.rb
|
1042
1009
|
- spec/features/browse_files_spec.rb
|
1010
|
+
- spec/features/catalog_search_spec.rb
|
1043
1011
|
- spec/features/cloud_upload_spec.rb
|
1044
1012
|
- spec/features/collection_spec.rb
|
1045
1013
|
- spec/features/contact_form_spec.rb
|
@@ -1118,6 +1086,7 @@ test_files:
|
|
1118
1086
|
- spec/models/user_spec.rb
|
1119
1087
|
- spec/routing/featured_works_route_spec.rb
|
1120
1088
|
- spec/routing/route_spec.rb
|
1089
|
+
- spec/services/noid_spec.rb
|
1121
1090
|
- spec/spec_helper.rb
|
1122
1091
|
- spec/support/features.rb
|
1123
1092
|
- spec/support/features/session_helpers.rb
|
@@ -1125,13 +1094,14 @@ test_files:
|
|
1125
1094
|
- spec/support/fixture_helpers.rb
|
1126
1095
|
- spec/support/lib/generators/test_app_generator.rb
|
1127
1096
|
- spec/support/uploaded_file_monkeypatch.rb
|
1097
|
+
- spec/views/batch/edit.html.erb_spec.rb
|
1128
1098
|
- spec/views/batch_edits/check_all_spec.rb
|
1129
1099
|
- spec/views/catalog/sort_and_per_pange.html.erb_spec.rb
|
1130
1100
|
- spec/views/dashboard/index_spec.rb
|
1131
1101
|
- spec/views/generic_file/edit.html.erb_spec.rb
|
1132
1102
|
- spec/views/generic_file/show.html.erb_spec.rb
|
1133
1103
|
- spec/views/generic_file/stats.html.erb_spec.rb
|
1134
|
-
- spec/views/my/
|
1104
|
+
- spec/views/my/facet.html.erb_spec.rb
|
1135
1105
|
- spec/views/users/_follower_modal.html.erb_spec.rb
|
1136
1106
|
- spec/views/users/_following_modal.html.erb_spec.rb
|
1137
1107
|
- spec/views/users/_notify_number.html.erb_spec.rb
|
data/.gitmodules
DELETED
data/Releasing_sufia.md
DELETED
data/UpgradeGuide.md
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
<% if has_user_authentication_provider? and current_user %>
|
2
|
-
<%-
|
3
|
-
# Note these two forms are pretty similar but for different :methods, classes, and labels.
|
4
|
-
# but it was simpler to leave them separate instead of DRYing them, got confusing trying that.
|
5
|
-
# the data-doc-id attribute is used by our JS that converts to a checkbox/label.
|
6
|
-
-%>
|
7
|
-
<% if current_user.document_is_bookmarked? document %>
|
8
|
-
|
9
|
-
<%= form_tag( bookmark_path( document ), method: :put, class: "bookmark_toggle", "data-doc-id" => document.id, title: document[document_show_link_field] ) do %>
|
10
|
-
<%= hidden_field(:bookmark, :title, value: document[document_show_link_field] ) %>
|
11
|
-
<%= submit_tag("Bookmark", id: "bookmark_toggle_#{document.id.to_s.parameterize}", class: "bookmark_add") %>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<% else %>
|
15
|
-
|
16
|
-
<%= form_tag( bookmark_path( document ), method: :delete, class: "bookmark_toggle", "data-doc-id" => document.id, title: document[document_show_link_field]) do %>
|
17
|
-
<%= hidden_field(:bookmark, :title, value: document[document_show_link_field] ) %>
|
18
|
-
<%= submit_tag("Remove bookmark", id: "bookmark_toggle_#{document.id.to_s.parameterize}", class: "bookmark_remove") %>
|
19
|
-
<% end %>
|
20
|
-
|
21
|
-
<% end %>
|
22
|
-
<% else %>
|
23
|
-
|
24
|
-
<% end %>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<h1><%= document_show_html_title %></h1>
|
2
|
-
|
3
|
-
<% if @document.respond_to?(:export_as_mla_citation_txt) %>
|
4
|
-
<h4>MLA</h4>
|
5
|
-
<%= @document.send(:export_as_mla_citation_txt) %><br/><br/>
|
6
|
-
<% end %>
|
7
|
-
|
8
|
-
<% if @document.respond_to?(:export_as_apa_citation_txt) %>
|
9
|
-
<h4>APA</h4>
|
10
|
-
<%= @document.send(:export_as_apa_citation_txt) %>
|
11
|
-
<% end %>
|