curate 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +14 -0
- data/app/controllers/application_controller.rb +69 -0
- data/app/controllers/catalog_controller.rb +336 -0
- data/app/controllers/classify_concerns_controller.rb +29 -0
- data/app/controllers/common_objects_controller.rb +27 -0
- data/app/controllers/curation_concern/base_controller.rb +26 -0
- data/app/controllers/curation_concern/generic_files_controller.rb +82 -0
- data/app/controllers/dashboard_controller.rb +85 -0
- data/app/controllers/downloads_controller.rb +22 -0
- data/app/controllers/errors_controller.rb +19 -0
- data/app/controllers/help_requests_controller.rb +38 -0
- data/app/controllers/terms_of_service_agreements_controller.rb +44 -0
- data/app/controllers/welcome_controller.rb +14 -0
- data/app/helpers/application_helper.rb +89 -0
- data/app/helpers/blacklight_helper.rb +19 -0
- data/app/helpers/common_objects_helper.rb +5 -0
- data/app/inputs/multi_value_input.rb +71 -0
- data/app/models/access_right.rb +53 -0
- data/app/models/classify_concern.rb +30 -0
- data/app/models/contributor_agreement.rb +58 -0
- data/app/models/digital_object_identifier.rb +83 -0
- data/app/models/doi_config.rb +26 -0
- data/app/models/help_request.rb +34 -0
- data/app/models/mint_doi.rb +51 -0
- data/app/models/mint_purl.rb +40 -0
- data/app/models/object_access.rb +17 -0
- data/app/models/purl.rb +18 -0
- data/app/models/purl_config.rb +10 -0
- data/app/models/repo_object.rb +24 -0
- data/app/models/solr_document.rb +35 -0
- data/app/repository_datastreams/file_content_datastream.rb +36 -0
- data/app/repository_models/curation_concern/embargoable.rb +43 -0
- data/app/repository_models/curation_concern/with_access_right.rb +31 -0
- data/app/repository_models/generic_file.rb +36 -0
- data/app/services/anti_virus_scanner.rb +28 -0
- data/app/services/curation_concern.rb +22 -0
- data/app/services/curation_concern/base_actor.rb +48 -0
- data/app/services/curation_concern/generic_file_actor.rb +38 -0
- data/app/validators/future_date_validator.rb +19 -0
- data/app/views/_footer.html.erb +19 -0
- data/app/views/_ga.html.erb +6 -0
- data/app/views/_logo.html.erb +34 -0
- data/app/views/_masthead.html.erb +34 -0
- data/app/views/catalog/_bookmark_control.html.erb +25 -0
- data/app/views/catalog/_bookmark_form.html.erb +8 -0
- data/app/views/catalog/_citation.html.erb +11 -0
- data/app/views/catalog/_constraints.html.erb +6 -0
- data/app/views/catalog/_constraints_element.html.erb +20 -0
- data/app/views/catalog/_delete_partials/_default.html.erb +29 -0
- data/app/views/catalog/_did_you_mean.html.erb +10 -0
- data/app/views/catalog/_document.html.erb +19 -0
- data/app/views/catalog/_document_list.html.erb +2 -0
- data/app/views/catalog/_edit_partials/_default.html.erb +58 -0
- data/app/views/catalog/_edit_partials/_default_details.html.erb +13 -0
- data/app/views/catalog/_email_form.html.erb +11 -0
- data/app/views/catalog/_facet_layout.html.erb +12 -0
- data/app/views/catalog/_facet_limit.html.erb +19 -0
- data/app/views/catalog/_facet_selected.html.erb +12 -0
- data/app/views/catalog/_facets.html.erb +5 -0
- data/app/views/catalog/_folder_control.html.erb +12 -0
- data/app/views/catalog/_home.html.erb +2 -0
- data/app/views/catalog/_home_text.html.erb +10 -0
- data/app/views/catalog/_index_default.html.erb +11 -0
- data/app/views/catalog/_index_partials/_default_group.html.erb +37 -0
- data/app/views/catalog/_marc_view.html.erb +33 -0
- data/app/views/catalog/_opensearch_response_metadata.html.erb +2 -0
- data/app/views/catalog/_previous_next_doc.html.erb +6 -0
- data/app/views/catalog/_refworks_form.html.erb +7 -0
- data/app/views/catalog/_results_pagination.html.erb +6 -0
- data/app/views/catalog/_search_form.html.erb +20 -0
- data/app/views/catalog/_show_default.html.erb +9 -0
- data/app/views/catalog/_show_partials/_default.html.erb +22 -0
- data/app/views/catalog/_show_partials/_default_details.html.erb +15 -0
- data/app/views/catalog/_show_partials/_facets.html.erb +52 -0
- data/app/views/catalog/_show_sidebar.html.erb +1 -0
- data/app/views/catalog/_show_tools.html.erb +46 -0
- data/app/views/catalog/_sms_form.html.erb +21 -0
- data/app/views/catalog/_sort_and_per_page.html.erb +38 -0
- data/app/views/catalog/_uva_tabs.html.erb +10 -0
- data/app/views/catalog/about.html.erb +0 -0
- data/app/views/catalog/citation.html.erb +1 -0
- data/app/views/catalog/email.erb +1 -0
- data/app/views/catalog/endnote.endnote.erb +1 -0
- data/app/views/catalog/index.atom.builder +109 -0
- data/app/views/catalog/index.html.erb +55 -0
- data/app/views/catalog/index.rss.builder +19 -0
- data/app/views/catalog/librarian_view.html.erb +3 -0
- data/app/views/catalog/opensearch.json.erb +0 -0
- data/app/views/catalog/opensearch.xml.builder +10 -0
- data/app/views/catalog/send_email_record.erb +0 -0
- data/app/views/catalog/show.endnote.erb +1 -0
- data/app/views/catalog/show.html.erb +40 -0
- data/app/views/catalog/show.refworks.erb +1 -0
- data/app/views/catalog/sms.erb +1 -0
- data/app/views/classify_concerns/new.html.erb +24 -0
- data/app/views/common_objects/_generic_file.html.erb +0 -0
- data/app/views/common_objects/_senior_thesis.html.erb +2 -0
- data/app/views/common_objects/show.html.erb +11 -0
- data/app/views/common_objects/show_stub_information.html.erb +13 -0
- data/app/views/curation_concern/_content_license.html.erb +16 -0
- data/app/views/curation_concern/_contributor_agreement.html.erb +27 -0
- data/app/views/curation_concern/_doi.html.erb +43 -0
- data/app/views/curation_concern/_media_display.html.erb +1 -0
- data/app/views/curation_concern/_permission.html.erb +39 -0
- data/app/views/curation_concern/_related_files.html.erb +46 -0
- data/app/views/curation_concern/generic_files/_attributes.html.erb +63 -0
- data/app/views/curation_concern/generic_files/_form.html.erb +57 -0
- data/app/views/curation_concern/generic_files/edit.html.erb +5 -0
- data/app/views/curation_concern/generic_files/new.html.erb +5 -0
- data/app/views/curation_concern/generic_files/show.html.erb +12 -0
- data/app/views/curation_concern/senior_theses/_attributes.html.erb +13 -0
- data/app/views/curation_concern/senior_theses/_form.html.erb +88 -0
- data/app/views/curation_concern/senior_theses/edit.html.erb +15 -0
- data/app/views/curation_concern/senior_theses/new.html.erb +14 -0
- data/app/views/curation_concern/senior_theses/show.html.erb +18 -0
- data/app/views/dashboard/_constraints.html.erb +22 -0
- data/app/views/dashboard/_did_you_mean.html.erb +26 -0
- data/app/views/dashboard/_document_list.html.erb +20 -0
- data/app/views/dashboard/_facet_layout.html.erb +27 -0
- data/app/views/dashboard/_facet_limit.html.erb +35 -0
- data/app/views/dashboard/_facet_pagination.html.erb +25 -0
- data/app/views/dashboard/_facet_selected.html.erb +28 -0
- data/app/views/dashboard/_facets.html.erb +22 -0
- data/app/views/dashboard/_index_partials/_default_group.html.erb +37 -0
- data/app/views/dashboard/_index_partials/_list_files.html.erb +66 -0
- data/app/views/dashboard/_index_partials/_thumbnail_display.html.erb +0 -0
- data/app/views/dashboard/_results_pagination.html.erb +22 -0
- data/app/views/dashboard/_search_form.html.erb +36 -0
- data/app/views/dashboard/_show_partials/_default.html.erb +38 -0
- data/app/views/dashboard/_show_partials/_default_details.html.erb +31 -0
- data/app/views/dashboard/_show_partials/_facets.html.erb +103 -0
- data/app/views/dashboard/_sort_and_per_page.html.erb +18 -0
- data/app/views/dashboard/facet.html.erb +38 -0
- data/app/views/dashboard/get_related_file.html.erb +4 -0
- data/app/views/dashboard/index.html.erb +60 -0
- data/app/views/errors/401.html.erb +5 -0
- data/app/views/errors/404.html.erb +16 -0
- data/app/views/errors/500.html.erb +10 -0
- data/app/views/help_requests/new.html.erb +60 -0
- data/app/views/layouts/application.html.erb +14 -0
- data/app/views/layouts/boilerplate.html.erb +28 -0
- data/app/views/layouts/common_objects.html.erb +45 -0
- data/app/views/layouts/curate_nd.html.erb +55 -0
- data/app/views/layouts/curate_nd/1_column.html.erb +22 -0
- data/app/views/layouts/curate_nd/2_column.html.erb +26 -0
- data/app/views/layouts/curate_nd/catalog.html.erb +22 -0
- data/app/views/layouts/curate_nd/dashboard.html.erb +22 -0
- data/app/views/layouts/hydra-head.html.erb +95 -0
- data/app/views/shared/_action_bar.html.erb +30 -0
- data/app/views/shared/_flash_message.html.erb +9 -0
- data/app/views/shared/_site_search.html.erb +18 -0
- data/app/views/terms_of_service_agreements/new.html.erb +136 -0
- data/app/views/welcome/index.html.erb +21 -0
- data/app/workers/characterize_job.rb +4 -0
- data/app/workers/doi_worker.rb +16 -0
- data/config/routes.rb +35 -0
- data/lib/curate.rb +6 -0
- data/lib/curate/engine.rb +46 -0
- data/lib/curate/version.rb +1 -1
- data/spec/abilities/generic_file_abilities_spec.rb +55 -0
- data/spec/controllers/application_controller_spec.rb +38 -0
- data/spec/controllers/classify_concerns_controller_spec.rb +36 -0
- data/spec/controllers/common_objects_controller_spec.rb +112 -0
- data/spec/controllers/curation_concern/base_controller_spec.rb +14 -0
- data/spec/controllers/curation_concern/generic_files_controller_spec.rb +156 -0
- data/spec/controllers/dashboard_controller_spec.rb +85 -0
- data/spec/controllers/downloads_controller_spec.rb +42 -0
- data/spec/controllers/help_requests_controller_spec.rb +42 -0
- data/spec/controllers/terms_of_service_agreements_controller_spec.rb +30 -0
- data/spec/controllers/welcome_controller_spec.rb +10 -0
- data/spec/dummy/app/models/solr_document.rb +4 -0
- data/spec/dummy/app/models/user.rb +13 -0
- data/spec/dummy/config/application.rb +8 -1
- data/spec/dummy/config/database.yml +21 -22
- data/spec/dummy/config/doi.yml +11 -0
- data/spec/dummy/config/fedora.yml +20 -0
- data/spec/dummy/config/initializers/devise.rb +232 -0
- data/spec/dummy/config/initializers/hydra_config.rb +41 -0
- data/spec/dummy/config/initializers/mailboxer.rb +17 -0
- data/spec/dummy/config/initializers/redis_config.rb +45 -0
- data/spec/dummy/config/initializers/sufia.rb +66 -0
- data/spec/dummy/config/purl.yml +15 -0
- data/spec/dummy/config/redis.yml +6 -0
- data/spec/dummy/config/role_map_ci.yml +15 -0
- data/spec/dummy/config/role_map_cucumber.yml +10 -0
- data/spec/dummy/config/role_map_development.yml +12 -0
- data/spec/dummy/config/role_map_pre_production.yml +2 -0
- data/spec/dummy/config/role_map_production.yml +2 -0
- data/spec/dummy/config/role_map_test.yml +15 -0
- data/spec/dummy/config/routes.rb +4 -55
- data/spec/dummy/config/solr.yml +17 -0
- data/spec/dummy/db/migrate/20130130142162_create_purl.rb +55 -0
- data/spec/dummy/db/migrate/20130312135359_create_help_requests.rb +22 -0
- data/spec/dummy/db/migrate/20130408165008_create_users.rb +11 -0
- data/spec/dummy/db/migrate/20130408165009_acts_as_follower_migration.rb +31 -0
- data/spec/dummy/db/migrate/20130408165010_add_social_to_users.rb +27 -0
- data/spec/dummy/db/migrate/20130408165011_create_single_use_links.rb +12 -0
- data/spec/dummy/db/migrate/20130408165012_add_ldap_attrs_to_user.rb +41 -0
- data/spec/dummy/db/migrate/20130408165013_add_avatars_to_users.rb +23 -0
- data/spec/dummy/db/migrate/20130408165014_create_checksum_audit_logs.rb +34 -0
- data/spec/dummy/db/migrate/20130408165015_create_version_committers.rb +29 -0
- data/spec/dummy/db/migrate/20130408165016_add_groups_to_users.rb +25 -0
- data/spec/dummy/db/migrate/20130408165017_create_local_authorities.rb +64 -0
- data/spec/dummy/db/migrate/20130408165018_create_trophies.rb +10 -0
- data/spec/dummy/db/migrate/20130408165022_create_mailboxer.mailboxer_engine.rb +62 -0
- data/spec/dummy/db/migrate/20130408165023_add_notified_object.mailboxer_engine.rb +18 -0
- data/spec/dummy/db/migrate/20130408165024_add_notification_code.mailboxer_engine.rb +14 -0
- data/spec/dummy/db/migrate/20130408165025_add_attachments.mailboxer_engine.rb +10 -0
- data/spec/dummy/db/migrate/20130408165026_rename_receipts_read.mailboxer_engine.rb +10 -0
- data/spec/dummy/db/schema.rb +197 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/fedora_conf/conf/development/fedora.fcfg +953 -0
- data/spec/dummy/fedora_conf/conf/test/fedora.fcfg +953 -0
- data/spec/dummy/log/development.log +1791 -0
- data/spec/dummy/log/test.log +176333 -0
- data/spec/dummy/solr_conf/conf/schema.xml +692 -0
- data/spec/dummy/solr_conf/conf/solrconfig.xml +299 -0
- data/spec/dummy/solr_conf/solr.xml +35 -0
- data/spec/factories/create_curation_concern.rb +11 -0
- data/spec/factories/create_generic_file.rb +36 -0
- data/spec/factories/help_requests.rb +10 -0
- data/spec/factories/mock_curation_concerns.rb +4 -0
- data/spec/factories/users.rb +8 -0
- data/spec/helpers/application_helper_spec.rb +139 -0
- data/spec/helpers/common_objects_helper_spec.rb +9 -0
- data/spec/models/access_right_spec.rb +47 -0
- data/spec/models/classify_concern_spec.rb +30 -0
- data/spec/models/contributor_agreement_spec.rb +45 -0
- data/spec/models/digital_object_identifier_spec.rb +50 -0
- data/spec/models/help_request_spec.rb +5 -0
- data/spec/models/mint_doi_spec.rb +79 -0
- data/spec/models/mint_purl_spec.rb +38 -0
- data/spec/models/object_access_spec.rb +24 -0
- data/spec/models/purl_spec.rb +22 -0
- data/spec/models/repo_object_spec.rb +39 -0
- data/spec/repository_models/curation_concern/embargoable_spec.rb +69 -0
- data/spec/repository_models/generic_file_spec.rb +38 -0
- data/spec/services/anti_virus_scanner_spec.rb +26 -0
- data/spec/services/curation_concern/base_actor_spec.rb +28 -0
- data/spec/services/curation_concern/generic_file_actor_spec.rb +75 -0
- data/spec/services/curation_concern_spec.rb +34 -0
- data/spec/spec_helper.rb +54 -1
- data/spec/support/environment_override.rb +17 -0
- data/spec/support/matchers/raise_rescue_response_type_matcher.rb +42 -0
- data/spec/support/mock_curation_concern.rb +61 -0
- data/spec/support/shared/shared_examples_is_embargoable.rb +9 -0
- data/spec/support/shared/shared_examples_with_access_rights.rb +33 -0
- data/spec/workers/characterize_job_spec.rb +26 -0
- metadata +686 -10
- data/MIT-LICENSE +0 -20
@@ -0,0 +1,12 @@
|
|
1
|
+
<% content_for :page_title, curation_concern_page_title(curation_concern) %>
|
2
|
+
<% content_for :page_header do %>
|
3
|
+
<h1>File Details</h1>
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<%= render "attributes", curation_concern: curation_concern %>
|
7
|
+
|
8
|
+
<% if can? :edit, curation_concern %>
|
9
|
+
<div class="form-actions">
|
10
|
+
<%= link_to "Edit This File", edit_polymorphic_path([:curation_concern, curation_concern]), class: 'btn btn-primary' %>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<dl class="<%= dom_class(curation_concern) %> attributes">
|
2
|
+
<%= curation_concern_attribute_to_html(curation_concern, :identifier, "Digital Object Identifier (DOI)") %>
|
3
|
+
<%= curation_concern_attribute_to_html(curation_concern, :description, 'Abstract') %>
|
4
|
+
<%= curation_concern_attribute_to_html(curation_concern, :contributor, "Contributor") %>
|
5
|
+
<%= curation_concern_attribute_to_html(curation_concern, :subject, "Subject") %>
|
6
|
+
<%= curation_concern_attribute_to_html(curation_concern, :publisher, "Publisher") %>
|
7
|
+
<%= curation_concern_attribute_to_html(curation_concern, :bibliographic_citation, "Bibliographic Citation") %>
|
8
|
+
<%= curation_concern_attribute_to_html(curation_concern, :source, "Source") %>
|
9
|
+
<%= curation_concern_attribute_to_html(curation_concern, :language, "Language") %>
|
10
|
+
<dt>Access Rights</dt>
|
11
|
+
<dd class="attribute permission"><%= link_to_edit_permissions(curation_concern) %></dd>
|
12
|
+
<%= curation_concern_attribute_to_html(curation_concern, :embargo_release_date, "Embargo Release Date") %>
|
13
|
+
</dl>
|
@@ -0,0 +1,88 @@
|
|
1
|
+
<%= simple_form_for [:curation_concern, curation_concern] do |f| %>
|
2
|
+
<% if f.error_notification -%>
|
3
|
+
<div class="alert alert-error fade in">
|
4
|
+
<strong>Wait don't go!</strong> There was a problem with your submission. Please review the errors below:
|
5
|
+
<a class="close" data-dismiss="alert" href="#">×</a>
|
6
|
+
</div>
|
7
|
+
<% end -%>
|
8
|
+
|
9
|
+
<div class="row">
|
10
|
+
|
11
|
+
<div class="span6">
|
12
|
+
<fieldset class="required">
|
13
|
+
<legend>Required Information</legend>
|
14
|
+
|
15
|
+
<%= f.input :title,
|
16
|
+
input_html: { class: 'input-xlarge' }
|
17
|
+
%>
|
18
|
+
|
19
|
+
<%= f.input :description,
|
20
|
+
as: :text,
|
21
|
+
hint: 'Please keep your abstract to 300 words or less.',
|
22
|
+
input_html: {
|
23
|
+
class: 'input-xxxlarge',
|
24
|
+
rows: '14'
|
25
|
+
},
|
26
|
+
label: 'Abstract'
|
27
|
+
%>
|
28
|
+
</fieldset>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div class="span6">
|
32
|
+
<fieldset class="optional prompt">
|
33
|
+
<legend>Additional Information</legend>
|
34
|
+
<%= f.input :contributor, as: :multi_value, input_html: { class: 'input-xlarge' }, hint: 'Be sure to add your name because <em>you</em> are a contributor to your own thesis.'.html_safe %>
|
35
|
+
<%= f.input :subject, as: :multi_value, input_html: { class: 'input-xlarge' } %>
|
36
|
+
<%= f.input :publisher, as: :multi_value, input_html: { class: 'input-xlarge' } %>
|
37
|
+
<%= f.input :bibliographic_citation, as: :multi_value, input_html: { class: 'input-xlarge' } %>
|
38
|
+
<%= f.input :source, as: :multi_value, input_html: { class: 'input-xlarge' } %>
|
39
|
+
<%= f.input :language, as: :multi_value, input_html: { class: 'input-xlarge' } %>
|
40
|
+
</fieldset>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<% unless curation_concern.persisted? %>
|
46
|
+
<div class="row with-headroom">
|
47
|
+
<div class="span6">
|
48
|
+
<fieldset class="required">
|
49
|
+
<legend>
|
50
|
+
Attach Your Thesis
|
51
|
+
<small>A PDF copy is preferred.</small>
|
52
|
+
</legend>
|
53
|
+
<%= f.input :thesis_file,
|
54
|
+
as: :file,
|
55
|
+
label: 'Upload your thesis'
|
56
|
+
%>
|
57
|
+
</fieldset>
|
58
|
+
</div>
|
59
|
+
</div>
|
60
|
+
<% end %>
|
61
|
+
|
62
|
+
<div class="row with-headroom">
|
63
|
+
<div class="span6">
|
64
|
+
<%= render "/curation_concern/doi", curation_concern: curation_concern, f: f %>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
<div class="span6">
|
68
|
+
<%= render "/curation_concern/permission", curation_concern: curation_concern, f: f %>
|
69
|
+
</div>
|
70
|
+
</div>
|
71
|
+
|
72
|
+
<div class="row with-headroom">
|
73
|
+
<div class="span6">
|
74
|
+
<%= render "/curation_concern/content_license", curation_concern: curation_concern, f: f %>
|
75
|
+
</div>
|
76
|
+
</div>
|
77
|
+
|
78
|
+
<%= render '/curation_concern/contributor_agreement', curation_concern: curation_concern, contributor_agreement: contributor_agreement %>
|
79
|
+
|
80
|
+
<div class="row">
|
81
|
+
<div class="span12 form-actions">
|
82
|
+
<%= f.submit class: 'btn btn-primary' %>
|
83
|
+
<%= f.submit value: save_and_add_related_files_submit_value, class: 'btn btn-primary' %>
|
84
|
+
<%= link_to 'Cancel', dashboard_index_path, class: 'btn btn-link' %>
|
85
|
+
</div>
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<% end %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<% content_for :page_title, curation_concern_page_title(curation_concern) %>
|
2
|
+
<% content_for :page_header do %>
|
3
|
+
|
4
|
+
<h2>Manage Your Thesis</h2>
|
5
|
+
<p>
|
6
|
+
You can enrich the metadata describing your thesis at any time.
|
7
|
+
The more complete the description the easier it will be to find by yourself and others.
|
8
|
+
</p>
|
9
|
+
<p>
|
10
|
+
Please consider releasing your thesis as an Open Access work.
|
11
|
+
</p>
|
12
|
+
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<%= render 'form' %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<% content_for :page_title, curation_concern_page_title(curation_concern) %>
|
2
|
+
<% content_for :page_header do %>
|
3
|
+
|
4
|
+
<h2>Describe Your Thesis</h2>
|
5
|
+
<p>
|
6
|
+
The more descriptive information you provide the better we can serve your needs.
|
7
|
+
</p>
|
8
|
+
<p>
|
9
|
+
Please consider releasing your thesis as an Open Access work.
|
10
|
+
</p>
|
11
|
+
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<%= render 'form' %>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<% content_for :page_title, curation_concern_page_title(curation_concern) %>
|
2
|
+
<% content_for :page_header do %>
|
3
|
+
<h1><%= curation_concern %> <span class="human_readable_type">(<%= curation_concern.human_readable_type %>)</span></h1>
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<%= render 'attributes', curation_concern: curation_concern %>
|
7
|
+
|
8
|
+
<%= render '/curation_concern/related_files', curation_concern: curation_concern, with_actions: true %>
|
9
|
+
|
10
|
+
<% content_for :second_row do %>
|
11
|
+
<% if can?(:edit, curation_concern) %>
|
12
|
+
<div class="form-actions">
|
13
|
+
<%= link_to "Edit This #{curation_concern.human_readable_type}", edit_polymorphic_path([:curation_concern, curation_concern]), class: 'btn btn-primary' %>
|
14
|
+
<%= link_to "Attach a File", new_curation_concern_generic_file_path(curation_concern), class: 'btn btn-primary' %>
|
15
|
+
<%= link_to "Back to Dashboard", dashboard_index_path, class: 'btn btn-info pull-right' %>
|
16
|
+
</div>
|
17
|
+
<% end %>
|
18
|
+
<% end %>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<%#
|
2
|
+
Copyright © 2012 The Pennsylvania State University
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
%>
|
16
|
+
|
17
|
+
<!--
|
18
|
+
<div id="appliedParams">
|
19
|
+
<h3 class="label">You searched for:</h3>
|
20
|
+
<%# render_constraints(localized_params) %>
|
21
|
+
</div>
|
22
|
+
-->
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<%#
|
2
|
+
Copyright © 2012 The Pennsylvania State University
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
%>
|
16
|
+
|
17
|
+
<% if @response.response[:numFound] <= spell_check_max and @response.spelling.words.size > 0 %>
|
18
|
+
<div id="spell">
|
19
|
+
<h4 class="suggest"><i>Did you mean to type
|
20
|
+
<% @response.spelling.words.each_with_index do |word,index| -%>
|
21
|
+
<% if index > 0 -%>, or <% end -%>
|
22
|
+
<%= link_to_query(word) -%>
|
23
|
+
<% end -%>
|
24
|
+
?</i></h4>
|
25
|
+
</div>
|
26
|
+
<% end %>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<%#
|
2
|
+
Copyright © 2012 The Pennsylvania State University
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
%>
|
16
|
+
|
17
|
+
<% # container for all documents in index view -%>
|
18
|
+
<div id="documents" class="clear">
|
19
|
+
<%= render :partial => 'dashboard/_index_partials/default_group', :locals => {:docs => @response.docs.map { |x| SolrDocument.new(x) }, :facet_value => nil} %>
|
20
|
+
</div>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<%#
|
2
|
+
Copyright © 2012 The Pennsylvania State University
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
%>
|
16
|
+
|
17
|
+
<li class="expandable_new grey">
|
18
|
+
<% id = facet_field.label.sub(" ","_")+"_db" %>
|
19
|
+
|
20
|
+
<a class="accordion-toggle grey" data-toggle="collapse" data-parent="#facet_group" data-target="#collapse_<%= id%>">
|
21
|
+
<%= facet_field.label %><i class="icon-chevron-right grey"></i>
|
22
|
+
</a>
|
23
|
+
|
24
|
+
<div id="collapse_<%= id%>" class="accordion-body collapse">
|
25
|
+
<%= yield %>
|
26
|
+
</div>
|
27
|
+
</li>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<%#
|
2
|
+
Copyright © 2012 The Pennsylvania State University
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
%>
|
16
|
+
|
17
|
+
<% paginator =
|
18
|
+
Blacklight::Solr::FacetPaginator.new(display_facet.items,
|
19
|
+
:limit => facet_limit_for(solr_field))
|
20
|
+
%>
|
21
|
+
<ul class="slide-list">
|
22
|
+
<% paginator.items.each do |item| -%>
|
23
|
+
<li>
|
24
|
+
<% if facet_in_params?( solr_field, item.value ) %>
|
25
|
+
<%= render_selected_facet_value(solr_field, item).split("(").join('(<small>').split(")").join("</small>)").html_safe %>
|
26
|
+
<% else %>
|
27
|
+
<%= render_facet_value(solr_field, item).split("(").join('(<small>').split(")").join("</small>)").html_safe %>
|
28
|
+
<% end -%>
|
29
|
+
</li>
|
30
|
+
<% end %>
|
31
|
+
|
32
|
+
<% if(paginator.has_next?) %>
|
33
|
+
<li class="more_facets_link"><%= link_to 'more ' + facet_field.label.pluralize + '»', url_for(params.merge(:id => solr_field, :action=>"facet", :path_only=>true)), :class => "more_facets_link" %></li>
|
34
|
+
<% end %>
|
35
|
+
</ul> <!-- /slide-list -->
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!-- This was copied from https://github.com/projectblacklight/blacklight/blob/master/app/views/catalog/_facet_pagination.html.erb
|
2
|
+
It implements the facets in the same manner as blacklight does for the main catalog for the individual's dashbord
|
3
|
+
-->
|
4
|
+
<div class="prev_next_links btn-group pull-left">
|
5
|
+
<%= link_to_previous_page @pagination, raw(t('views.pagination.previous')), :params => params, :param_name => Blacklight::Solr::FacetPaginator.request_keys[:page], :class => 'btn' do %>
|
6
|
+
<span class="disabled btn"><%= raw(t('views.pagination.previous')) %></span>
|
7
|
+
<% end %>
|
8
|
+
<%= link_to_next_page @pagination, raw(t('views.pagination.next')), :params => params, :param_name => Blacklight::Solr::FacetPaginator.request_keys[:page], :class => 'btn' do %>
|
9
|
+
|
10
|
+
<span class="disabled btn"><%= raw(t('views.pagination.next')) %></span>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="sort_options btn-group pull-right">
|
16
|
+
<% if @pagination.sort == 'index' -%>
|
17
|
+
<span class="active az btn"><%= t('blacklight.search.facets.sort.index') %></span><%= link_to_unless(@pagination.sort == 'count', t('blacklight.search.facets.sort.count'),
|
18
|
+
Sufia::Engine.routes.url_for(@pagination.params_for_resort_url('count', params).symbolize_keys.merge(:only_path=>true)),
|
19
|
+
:class => "sort_change numeric btn") %>
|
20
|
+
<% elsif @pagination.sort == 'count' -%>
|
21
|
+
<%= link_to(t('blacklight.search.facets.sort.index'),
|
22
|
+
Sufia::Engine.routes.url_for(@pagination.params_for_resort_url('index', params).symbolize_keys.merge(:only_path=>true)),
|
23
|
+
:class => "sort_change az btn") %><span class="active numeric btn"><%= t('blacklight.search.facets.sort.count') %></span>
|
24
|
+
<% end -%>
|
25
|
+
</div>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<%#
|
2
|
+
Copyright © 2012 The Pennsylvania State University
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
%>
|
16
|
+
|
17
|
+
<%# there has got to be a hipster ruby way to do this better %>
|
18
|
+
<% if params[:f] %>
|
19
|
+
<% params[:f].each do |k,v| %>
|
20
|
+
<% v.each do |selected_facet| %>
|
21
|
+
<% link_options = remove_facet_params(k, selected_facet, params).merge!Hash["controller" => "dashboard", :action=> "index"] %>
|
22
|
+
<div class="alert alert-warning">
|
23
|
+
<%= link_to 'X', sufia.url_for(link_options), {:class=>'close', :'data-dismiss' => "alert" } %>
|
24
|
+
<i class="icon-ok icon-large"></i> <strong><%= selected_facet %></strong>
|
25
|
+
</div>
|
26
|
+
<% end %>
|
27
|
+
<% end %>
|
28
|
+
<% end %>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<%#
|
2
|
+
Copyright © 2012 The Pennsylvania State University
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
%>
|
16
|
+
|
17
|
+
<div>
|
18
|
+
<h3>Browse By</h3>
|
19
|
+
<ul class="nav nav-list" id="facets">
|
20
|
+
<%= render_facet_partials %>
|
21
|
+
</ul>
|
22
|
+
</div>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<%#
|
2
|
+
Copyright © 2012 The Pennsylvania State University
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
%>
|
16
|
+
|
17
|
+
<table class="table table-striped">
|
18
|
+
<caption class="accessible-hidden">Listing of files you have deposited in <%= t('sufia.product_name') %></caption>
|
19
|
+
<% unless params[:display_type] == 'list' %>
|
20
|
+
<thead>
|
21
|
+
<tr>
|
22
|
+
<th>Title</th>
|
23
|
+
<th>Type</th>
|
24
|
+
<th class="sorts-dash"><i id="desc_metadata__date_uploaded_dt" class="<%=params[:sort]== "desc_metadata__date_uploaded_dt desc" ? 'icon-caret-down' : params[:sort]== "desc_metadata__date_uploaded_dt asc" ? 'icon-caret-up' : ''%>"></i>Date Uploaded</th>
|
25
|
+
<th>Visibility</th>
|
26
|
+
<% if current_user %>
|
27
|
+
<th>Actions</th>
|
28
|
+
<% end %>
|
29
|
+
</tr>
|
30
|
+
</thead>
|
31
|
+
<% end %>
|
32
|
+
<tbody>
|
33
|
+
<% docs.each_with_index do |document,counter| %>
|
34
|
+
<%= render :partial => 'dashboard/_index_partials/list_files', :locals => {:document => document, :counter => counter} %>
|
35
|
+
<% end %>
|
36
|
+
</tbody>
|
37
|
+
</table>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<%#
|
2
|
+
Copyright © 2012 The Pennsylvania State University
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
%>
|
16
|
+
|
17
|
+
<!-- scholarsphere over ride -->
|
18
|
+
<!-- the sub on ':' is b.c. jQuery has trouble with '.' or ':'
|
19
|
+
on element ids -->
|
20
|
+
<% if document.has_key?(:noid_s) %>
|
21
|
+
<% noid = document[:noid_s].first %>
|
22
|
+
<tr id="document_<%= noid.gsub(":", "_") %>" class="<%= cycle("","zebra") %>">
|
23
|
+
<% gf = ActiveFedora::Base.find(document.id, cast: true) %>
|
24
|
+
<td>
|
25
|
+
<a href="" title="Click for more details"><i id="expand_<%= noid.gsub(":", "_") %>" class="icon-plus icon-large fleft show-details"></i></a>
|
26
|
+
<%= render :partial => 'dashboard/_index_partials/thumbnail_display', :locals => {:document=>document} %>
|
27
|
+
<span class="center"><%= link_to render_document_show_field_value(:document=>document, :field=>document.title_or_label), polymorphic_path([:curation_concern, gf]), :id => "src_copy_link#{noid}" %> <br /></span>
|
28
|
+
</td>
|
29
|
+
<td><%= gf.human_readable_type %></td>
|
30
|
+
<td width="17%"><%= document.fetch(:desc_metadata__date_uploaded_dt,'').to_time.strftime("%m/%d/%Y") unless document.fetch(:desc_metadata__date_uploaded_dt,'').blank? %> </td>
|
31
|
+
<td width="5%">
|
32
|
+
<%= link_to_edit_permissions(gf, document) %>
|
33
|
+
</td>
|
34
|
+
<% if current_user -%>
|
35
|
+
<td width="23%" class="inline-item-actions">
|
36
|
+
<%= link_to(
|
37
|
+
raw('<i class="icon-pencil icon-large"></i>'),
|
38
|
+
edit_polymorphic_path([:curation_concern, gf]),
|
39
|
+
:class=> 'itemicon itemedit',
|
40
|
+
:title => 'Edit File'
|
41
|
+
) if can? :edit, gf %>
|
42
|
+
<%= link_to(
|
43
|
+
raw('<i class="icon-trash icon-large"></i>'),
|
44
|
+
polymorphic_path([:curation_concern, gf]),
|
45
|
+
:class=> 'itemicon itemtrash',
|
46
|
+
:title => %(Delete #{gf.to_s.inspect}),
|
47
|
+
:method => :delete,
|
48
|
+
:confirm => "Deleting #{gf.to_s.inspect} from #{t('sufia.product_name')} is permanent. Click OK to delete this from #{t('sufia.product_name')}, or Cancel to cancel this operation"
|
49
|
+
) if can? :destroy, gf %>
|
50
|
+
</td>
|
51
|
+
<% end -%>
|
52
|
+
</tr>
|
53
|
+
<tr class="hide" id="detail_<%= noid.gsub(":", "_") %>"> <!-- document detail"> -->
|
54
|
+
<td colspan="6">
|
55
|
+
<dl class="expanded-details">
|
56
|
+
<% index_fields.each do |solr_fname, field| -%>
|
57
|
+
<% if should_render_index_field? document, field %>
|
58
|
+
<dt class="blacklight-<%= solr_fname.parameterize %>"><%= render_index_field_label :field => solr_fname %></dt>
|
59
|
+
<dd class="blacklight-<%= solr_fname.parameterize %>"><%= render_index_field_value :document=>document, :field => solr_fname %></dd>
|
60
|
+
<% end -%>
|
61
|
+
<% end -%>
|
62
|
+
|
63
|
+
</dl>
|
64
|
+
</td>
|
65
|
+
</tr>
|
66
|
+
<% end %>
|