sufia 0.0.1.pre2 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -5
- data/README.md +44 -12
- data/app/assets/javascripts/{scholarsphere.js → sufia.js} +0 -0
- data/app/assets/stylesheets/{scholarsphere.css → sufia.css} +0 -0
- data/app/controllers/batch_controller.rb +2 -3
- data/app/controllers/batch_edits_controller.rb +4 -4
- data/app/controllers/dashboard_controller.rb +5 -3
- data/app/controllers/generic_files_controller.rb +77 -41
- data/app/controllers/users_controller.rb +9 -21
- data/app/helpers/blacklight/render_constraints_helper_behavior.rb +2 -2
- data/app/helpers/sufia_helper.rb +23 -2
- data/app/models/datastreams/file_content_datastream.rb +17 -9
- data/app/models/generic_file.rb +1 -809
- data/app/views/_add_assets_links.html.erb +1 -1
- data/app/views/_user_util_links.html.erb +2 -2
- data/app/views/batch/_metadata.html.erb +16 -16
- data/app/views/batch/edit.html.erb +16 -10
- data/app/views/batch_edits/_metadata.html.erb +16 -16
- data/app/views/catalog/_index_partials/_list_files.html.erb +2 -2
- data/app/views/catalog/index.html.erb +5 -0
- data/app/views/dashboard/_facet_limit.html.erb +1 -1
- data/app/views/dashboard/_facet_pagination.html.erb +4 -4
- data/app/views/dashboard/_facet_selected.html.erb +1 -1
- data/app/views/dashboard/_index_partials/_list_files.html.erb +8 -8
- data/app/views/dashboard/_search_form.html.erb +1 -1
- data/app/views/dashboard/_sort_and_per_page.html.erb +1 -1
- data/app/views/dashboard/index.html.erb +0 -1
- data/app/views/generic_files/_breadcrumbs.html.erb +1 -1
- data/app/views/generic_files/_descriptions.html.erb +3 -3
- data/app/views/generic_files/_field_form +3 -3
- data/app/views/generic_files/_media_display.html.erb +5 -4
- data/app/views/generic_files/_permission.html.erb +5 -5
- data/app/views/generic_files/_versioning.html.erb +1 -1
- data/app/views/generic_files/edit.html.erb +2 -2
- data/app/views/generic_files/show.html.erb +3 -3
- data/app/views/static/versions.html.erb +1 -1
- data/app/views/users/edit.html.erb +5 -3
- data/app/views/users/index.html.erb +3 -3
- data/app/views/users/show.html.erb +6 -6
- data/config/jetty.yml +6 -0
- data/config/routes.rb +8 -4
- data/features/browse_dashboard_files.feature +11 -1
- data/features/browse_files.feature +6 -5
- data/features/contact_form.feature +4 -0
- data/features/display_dashboard.feature +6 -3
- data/features/ingest_upload_files.feature +2 -2
- data/features/step_definitions/fixture_steps.rb +6 -5
- data/features/step_definitions/scholarsphere.rb +24 -1
- data/features/step_definitions/user_steps.rb +2 -2
- data/features/step_definitions/web_steps.rb +1 -1
- data/features/support/env.rb +26 -0
- data/features/users.feature +18 -0
- data/lib/active_support/core_ext/marshal.rb +22 -0
- data/lib/generators/sufia/sufia_generator.rb +18 -2
- data/lib/generators/sufia/templates/catalog_controller.rb +3 -4
- data/{spec/support → lib/generators/sufia/templates}/config/redis.yml +0 -0
- data/lib/generators/sufia/templates/config/sufia.rb +68 -0
- data/lib/generators/sufia/templates/migrations/add_ldap_attrs_to_user.rb +41 -0
- data/lib/kaminari/helpers/tag.rb +11 -0
- data/lib/sufia.rb +30 -7
- data/lib/sufia/controller.rb +1 -5
- data/lib/sufia/generic_file.rb +200 -0
- data/lib/sufia/generic_file/audit.rb +119 -0
- data/lib/sufia/generic_file/characterization.rb +82 -0
- data/lib/sufia/generic_file/export.rb +339 -0
- data/lib/sufia/generic_file/permissions.rb +64 -0
- data/lib/sufia/generic_file/thumbnail.rb +68 -0
- data/{app/models → lib/sufia/jobs}/audit_job.rb +13 -3
- data/lib/sufia/jobs/batch_update_job.rb +86 -0
- data/lib/sufia/jobs/characterize_job.rb +35 -0
- data/{app/models → lib/sufia/jobs}/content_delete_event_job.rb +3 -1
- data/{app/models → lib/sufia/jobs}/content_deposit_event_job.rb +1 -1
- data/{app/models → lib/sufia/jobs}/content_new_version_event_job.rb +1 -1
- data/{app/models → lib/sufia/jobs}/content_restored_version_event_job.rb +8 -0
- data/{app/models → lib/sufia/jobs}/content_update_event_job.rb +1 -1
- data/{app/models → lib/sufia/jobs}/event_job.rb +7 -3
- data/{app/models → lib/sufia/jobs}/resolrize_job.rb +4 -2
- data/lib/sufia/jobs/transcode_video_job.rb +79 -0
- data/{app/models → lib/sufia/jobs}/unzip_job.rb +11 -3
- data/{app/models → lib/sufia/jobs}/user_edit_profile_event_job.rb +6 -0
- data/{app/models → lib/sufia/jobs}/user_follow_event_job.rb +9 -4
- data/{app/models → lib/sufia/jobs}/user_unfollow_event_job.rb +6 -0
- data/lib/sufia/queue/resque.rb +30 -0
- data/lib/sufia/role_mapper.rb +0 -1
- data/{app/models/characterize_job.rb → lib/sufia/solr_document_behavior.rb} +6 -7
- data/lib/sufia/user.rb +3 -3
- data/lib/sufia/version.rb +1 -1
- data/lib/tasks/fixtures.rake +38 -38
- data/lib/tasks/resque.rake +1 -0
- data/solr_conf/conf/solrconfig.xml +32 -1615
- data/solr_conf/solr.xml +1 -1
- data/spec/active_fedora/unsaved_digital_object_spec.rb +4 -4
- data/spec/config/host_to_vhost_spec.rb +4 -4
- data/spec/controllers/authorities_controller_spec.rb +1 -1
- data/spec/controllers/batch_controller_spec.rb +12 -10
- data/spec/controllers/catalog_controller_spec.rb +13 -13
- data/spec/controllers/dashboard_controller_spec.rb +15 -15
- data/spec/controllers/downloads_controller_spec.rb +14 -14
- data/spec/controllers/generic_files_controller_spec.rb +88 -46
- data/spec/controllers/mailbox_controller_spec.rb +2 -2
- data/spec/controllers/sessions_controller_spec.rb +1 -1
- data/spec/controllers/single_use_link_controller_spec.rb +18 -18
- data/spec/controllers/users_controller_spec.rb +47 -31
- data/spec/fixtures/countdown.avi +0 -0
- data/spec/fixtures/sufia/.gitignore +1 -0
- data/spec/fixtures/{scholarsphere → sufia}/bg_header.jpg +0 -0
- data/spec/fixtures/sufia/sufia_test1.descMeta.txt +12 -0
- data/spec/fixtures/{scholarsphere → sufia}/sufia_test1.foxml.erb +2 -2
- data/spec/fixtures/{scholarsphere/scholarsphere_test1.txt → sufia/sufia_test1.txt} +0 -0
- data/spec/fixtures/sufia/sufia_test2.descMeta.txt +12 -0
- data/spec/fixtures/{scholarsphere/scholarsphere_test2.docx → sufia/sufia_test2.docx} +0 -0
- data/spec/fixtures/{scholarsphere/scholarsphere_test2.foxml.erb → sufia/sufia_test2.foxml.erb} +6 -6
- data/spec/fixtures/sufia/sufia_test3.descMeta.txt +12 -0
- data/spec/fixtures/{scholarsphere/scholarsphere_test3.foxml.erb → sufia/sufia_test3.foxml.erb} +6 -6
- data/spec/fixtures/{scholarsphere/scholarsphere_test3.xls → sufia/sufia_test3.xls} +0 -0
- data/spec/fixtures/sufia/sufia_test4.descMeta.txt +12 -0
- data/spec/fixtures/{scholarsphere/scholarsphere_test4.foxml.erb → sufia/sufia_test4.foxml.erb} +6 -6
- data/spec/fixtures/{scholarsphere/scholarsphere_test4.pdf → sufia/sufia_test4.pdf} +0 -0
- data/spec/fixtures/sufia/sufia_test5.descMeta.txt +19 -0
- data/spec/fixtures/{scholarsphere → sufia}/sufia_test5.foxml.erb +3 -3
- data/spec/fixtures/{scholarsphere/scholarsphere_test5.mp3 → sufia/sufia_test5.mp3} +0 -0
- data/spec/fixtures/sufia/sufia_test5.txt +1 -0
- data/spec/fixtures/sufia/sufia_test6.descMeta.txt +12 -0
- data/spec/fixtures/{scholarsphere/scholarsphere_test6.foxml.erb → sufia/sufia_test6.foxml.erb} +6 -6
- data/spec/fixtures/{scholarsphere/scholarsphere_test6.jp2 → sufia/sufia_test6.jp2} +0 -0
- data/spec/fixtures/sufia/sufia_test6.txt +1 -0
- data/spec/fixtures/sufia_generic_stub.descMeta.txt +12 -0
- data/spec/fixtures/{scholarsphere_generic_stub.foxml.erb → sufia_generic_stub.foxml.erb} +3 -3
- data/spec/fixtures/sufia_generic_stub.txt +1 -0
- data/spec/lib/sufia/role_mapper_spec.rb +1 -1
- data/spec/models/audit_job_spec.rb +8 -11
- data/spec/models/batch_spec.rb +5 -5
- data/spec/models/batch_update_job_spec.rb +18 -15
- data/spec/models/checksum_audit_log_spec.rb +6 -19
- data/spec/models/event_jobs_spec.rb +23 -23
- data/spec/models/file_content_datastream_spec.rb +14 -14
- data/spec/models/fits_datastream_spec.rb +1 -1
- data/spec/models/generic_file_spec.rb +88 -41
- data/spec/models/single_use_link_spec.rb +3 -3
- data/spec/models/transcode_video_job_spec.rb +30 -0
- data/spec/models/unzip_job_spec.rb +6 -4
- data/spec/rake/{scholarsphere_fixtures_spec.rb → sufia_fixtures_spec.rb} +16 -16
- data/spec/routing/route_spec.rb +4 -8
- data/spec/spec_helper.rb +0 -7
- data/spec/support/Gemfile +4 -2
- data/spec/support/fedora_conf/fedora.fcfg +953 -0
- data/spec/support/lib/generators/test_app_generator.rb +1 -11
- data/sufia.gemspec +5 -3
- data/tasks/{scholarsphere-db.rake → sufia-db.rake} +1 -1
- data/tasks/{scholarsphere-dev.rake → sufia-dev.rake} +7 -3
- data/tasks/{scholarsphere-fixtures.rake → sufia-fixtures.rake} +43 -43
- data/tasks/{scholarsphere.rake → sufia.rake} +2 -2
- metadata +126 -95
- data/app/models/batch_update_job.rb +0 -82
- data/app/models/solr_document.rb +0 -50
- data/lib/sufia/permissions.rb +0 -43
- data/spec/fixtures/scholarsphere/scholarsphere_test1.descMeta.txt +0 -12
- data/spec/fixtures/scholarsphere/scholarsphere_test2.descMeta.txt +0 -12
- data/spec/fixtures/scholarsphere/scholarsphere_test3.descMeta.txt +0 -12
- data/spec/fixtures/scholarsphere/scholarsphere_test4.descMeta.txt +0 -12
- data/spec/fixtures/scholarsphere/scholarsphere_test5.descMeta.txt +0 -19
- data/spec/fixtures/scholarsphere/scholarsphere_test5.txt +0 -1
- data/spec/fixtures/scholarsphere/scholarsphere_test6.descMeta.txt +0 -12
- data/spec/fixtures/scholarsphere/scholarsphere_test6.txt +0 -1
- data/spec/fixtures/scholarsphere/sufia_scholarsphere1.descMeta.txt +0 -12
- data/spec/fixtures/scholarsphere/sufia_scholarsphere1.foxml.erb +0 -79
- data/spec/fixtures/scholarsphere/sufia_scholarsphere1.txt +0 -1
- data/spec/fixtures/scholarsphere_generic_stub.descMeta.txt +0 -12
- data/spec/fixtures/scholarsphere_generic_stub.txt +0 -1
@@ -15,10 +15,10 @@ limitations under the License.
|
|
15
15
|
%>
|
16
16
|
<% if current_user %>
|
17
17
|
<%= render :partial => 'users/notify_link' %>
|
18
|
-
<a href="<%= sufia.profile_path(current_user.to_s) %>" class="btn btn-small " title="click for User Profile"><i class="icon-user"> </i><%= current_user.name %></a>
|
18
|
+
<a href="<%= sufia.profile_path(URI.escape(current_user.to_s, '@.')) %>" class="btn btn-small " title="click for User Profile"><i class="icon-user"> </i><%= current_user.name %></a>
|
19
19
|
<a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#"><span class="icon-caret-down" title="click for additional menu options"></span></a>
|
20
20
|
<ul class="dropdown-menu">
|
21
|
-
<li><%= link_to raw('<i class="icon-dashboard"></i> my dashboard'), sufia.
|
21
|
+
<li><%= link_to raw('<i class="icon-dashboard"></i> my dashboard'), sufia.dashboard_index_path, :id => 'dashboard_nav_link' %></li>
|
22
22
|
<li><%= link_to raw('<i class="icon-upload-alt"></i> upload'), sufia.new_generic_file_path, :id => 'upload_nav_link' %></li>
|
23
23
|
<li><%= link_to raw('<i class="icon-cog"></i> edit profile'), sufia.edit_profile_path(current_user.user_key), :id => 'upload_nav_link' %></li>
|
24
24
|
<li class="divider"></li>
|
@@ -26,7 +26,7 @@ limitations under the License.
|
|
26
26
|
<%= f.label :title, "<span class='error'>*</span> Title #{index+1}".html_safe, :class=>"control-label" %>
|
27
27
|
<div class="controls" id="additional_title_clone">
|
28
28
|
<%= f.text_field :title, :name=>"title[#{gen_f.id}][]", :value=>gen_f.label, :required=> true %>
|
29
|
-
<a href="#" id="generic_file_title_help" rel="popover" data-content="<%=
|
29
|
+
<a href="#" id="generic_file_title_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_title"] %>" data-original-title="Title"><i class="icon-question-sign icon-large"></i></a>
|
30
30
|
</div>
|
31
31
|
</div>
|
32
32
|
<% end %>
|
@@ -47,8 +47,8 @@ limitations under the License.
|
|
47
47
|
<%= f.label :resource_type, "Resource Types", :class=>"control-label", :for=>"resource_type" %>
|
48
48
|
<div class="controls">
|
49
49
|
<p class="help-block">You may select multiple types to apply to all files<p>
|
50
|
-
<%= f.select "resource_type",
|
51
|
-
<a href="#" id="generic_file_resource_type_help" rel="popover" data-content="<%=
|
50
|
+
<%= f.select "resource_type", Sufia::Engine::config.resource_types, {}, {:multiple=>true, :size=>7} %>
|
51
|
+
<a href="#" id="generic_file_resource_type_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_resource_type"] %>" data-original-title="Resource Type"><i class="icon-question-sign icon-large"></i></a>
|
52
52
|
</div>
|
53
53
|
</div>
|
54
54
|
|
@@ -58,7 +58,7 @@ limitations under the License.
|
|
58
58
|
<%= f.text_field :tag, :name=>"generic_file[tag][]", :value=>"", :required=> true %>
|
59
59
|
<button class="adder btn" name="additional_tag" id="additional_tag_submit">+<span class="accessible-hidden">add another Tag</span></button>
|
60
60
|
|
61
|
-
<a href="#" id="generic_file_tag_help" rel="popover" data-content="<%=
|
61
|
+
<a href="#" id="generic_file_tag_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_tag"] %>" data-original-title="Keyword"><i class="icon-question-sign icon-large"></i></a>
|
62
62
|
</div>
|
63
63
|
<div id="additional_tag_elements"></div>
|
64
64
|
</div>
|
@@ -69,7 +69,7 @@ limitations under the License.
|
|
69
69
|
<%= f.text_field :creator, :name=>"generic_file[creator][]", :value=>"", :required=> true %>
|
70
70
|
<button class="adder btn" name="additional_creator" id="additional_creator_submit">+<span class="accessible-hidden">add another Creator</span></button>
|
71
71
|
|
72
|
-
<a href="#" id="generic_file_creator_help" rel="popover" data-content="<%=
|
72
|
+
<a href="#" id="generic_file_creator_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_creator"] %>" data-original-title="Creator"><i class="icon-question-sign icon-large"></i></a>
|
73
73
|
</div>
|
74
74
|
<div id="additional_creator_elements"></div>
|
75
75
|
</div>
|
@@ -77,10 +77,10 @@ limitations under the License.
|
|
77
77
|
<div class="control-group">
|
78
78
|
<%= f.label :rights, '<span class="error">*</span> Rights'.html_safe, :class=>"control-label" %>
|
79
79
|
<div class="controls" id="additional_rights_clone">
|
80
|
-
<%= f.select "rights", options_for_select(
|
80
|
+
<%= f.select "rights", options_for_select(Sufia::Engine::config.cc_licenses, 'http://creativecommons.org/licenses/by-nc-nd/3.0/us/'), :required => true %>
|
81
81
|
<button class="adder btn" name="additional_rights" id="additional_rights_submit">+<span class="accessible-hidden">add another Rights</span></button>
|
82
82
|
|
83
|
-
<a href="#" id="generic_file_rights_help" rel="popover" data-content="<%=
|
83
|
+
<a href="#" id="generic_file_rights_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_rights"] %>" data-original-title="Rights"><i class="icon-question-sign icon-large"></i></a>
|
84
84
|
<%= render :partial => "generic_files/rights_modal" %>
|
85
85
|
|
86
86
|
</div>
|
@@ -99,7 +99,7 @@ limitations under the License.
|
|
99
99
|
<%= f.text_field :related_url, :name=>"generic_file[related_url][]", :value=>"" %>
|
100
100
|
<button class="adder btn" name="additional_related_url" id="additional_related_url_submit">+<span class="accessible-hidden">add another Related URL</span></button>
|
101
101
|
|
102
|
-
<a href="#" id="generic_file_related_url_help" rel="popover" data-content="<%=
|
102
|
+
<a href="#" id="generic_file_related_url_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_related_url"] %>" data-original-title="Related URL"><i class="icon-question-sign icon-large"></i></a>
|
103
103
|
</div>
|
104
104
|
<div id="additional_related_url_elements"></div>
|
105
105
|
</div>
|
@@ -110,7 +110,7 @@ limitations under the License.
|
|
110
110
|
<%= f.text_field :based_near, :name=>"generic_file[based_near][]", :value=>"" %>
|
111
111
|
<button class="adder btn" name="additional_based_near" id="additional_based_near_submit">+<span class="accessible-hidden">add another Location</span></button>
|
112
112
|
|
113
|
-
<a href="#" id="generic_file_based_near_help" rel="popover" data-content="<%=
|
113
|
+
<a href="#" id="generic_file_based_near_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_based_near"] %>" data-original-title="Location"><i class="icon-question-sign icon-large"></i></a>
|
114
114
|
</div>
|
115
115
|
<div id="additional_based_near_elements"></div>
|
116
116
|
</div>
|
@@ -121,7 +121,7 @@ limitations under the License.
|
|
121
121
|
<%= f.text_field :contributor, :name=>"generic_file[contributor][]", :value=>gf.contributor[0] %>
|
122
122
|
<button class="adder btn" name="additional_contributor" id="additional_contributor_submit">+<span class="accessible-hidden">add another Contributor</span></button>
|
123
123
|
|
124
|
-
<a href="#" id="generic_file_contributor_help" rel="popover" data-content="<%=
|
124
|
+
<a href="#" id="generic_file_contributor_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_contributor"] %>" data-original-title="Contributor"><i class="icon-question-sign icon-large"></i></a>
|
125
125
|
</div>
|
126
126
|
<div id="additional_contributor_elements"></div>
|
127
127
|
</div>
|
@@ -132,7 +132,7 @@ limitations under the License.
|
|
132
132
|
<%= f.text_field :date_created, :name=>"generic_file[date_created][]", :value=>"" %>
|
133
133
|
<button class="adder btn" name="additional_date_created" id="additional_date_created_submit">+<span class="accessible-hidden">add another Date Created</span></button>
|
134
134
|
|
135
|
-
<a href="#" id="generic_file_date_created_help" rel="popover" data-content="<%=
|
135
|
+
<a href="#" id="generic_file_date_created_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_date_created"] %>" data-original-title="Date Created"><i class="icon-question-sign icon-large"></i></a>
|
136
136
|
</div>
|
137
137
|
<div id="additional_date_created_elements"></div>
|
138
138
|
</div>
|
@@ -143,7 +143,7 @@ limitations under the License.
|
|
143
143
|
<%= f.text_area :description, :name=>"generic_file[description][]", :value=>"" %>
|
144
144
|
<button class="adder btn" name="additional_description" id="additional_description_submit">+<span class="accessible-hidden">add another Abstract or Summary</span></button>
|
145
145
|
|
146
|
-
<a href="#" id="generic_file_description_help" rel="popover" data-content="<%=
|
146
|
+
<a href="#" id="generic_file_description_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_description"] %>" data-original-title="Abstract or Summary"><i class="icon-question-sign icon-large"></i></a>
|
147
147
|
</div>
|
148
148
|
<div id="additional_description_elements"></div>
|
149
149
|
</div>
|
@@ -154,7 +154,7 @@ limitations under the License.
|
|
154
154
|
<%= f.text_field :identifier, :name=>"generic_file[identifier][]", :value=>"" %>
|
155
155
|
<button class="adder btn" name="additional_identifier" id="additional_identifier_submit">+<span class="accessible-hidden">add another Identifier</span></button>
|
156
156
|
|
157
|
-
<a href="#" id="generic_file_identifier_help" rel="popover" data-content="<%=
|
157
|
+
<a href="#" id="generic_file_identifier_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_identifier"] %>" data-original-title="Identifier"><i class="icon-question-sign icon-large"></i></a>
|
158
158
|
</div>
|
159
159
|
<div id="additional_identifier_elements"></div>
|
160
160
|
</div>
|
@@ -165,7 +165,7 @@ limitations under the License.
|
|
165
165
|
<%= f.text_field :language, :name=>"generic_file[language][]", :value=>"" %>
|
166
166
|
<button class="adder btn" name="additional_language" id="additional_language_submit">+<span class="accessible-hidden">add another Language</span></button>
|
167
167
|
|
168
|
-
<a href="#" id="generic_file_language_help" rel="popover" data-content="<%=
|
168
|
+
<a href="#" id="generic_file_language_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_language"] %>" data-original-title="Language"><i class="icon-question-sign icon-large"></i></a>
|
169
169
|
</div>
|
170
170
|
<div id="additional_language_elements"></div>
|
171
171
|
</div>
|
@@ -176,7 +176,7 @@ limitations under the License.
|
|
176
176
|
<%= f.text_field :publisher, :name=>"generic_file[publisher][]", :value=>"" %>
|
177
177
|
<button class="adder btn" name="additional_publisher" id="additional_publisher_submit">+<span class="accessible-hidden">add another Publisher</span></button>
|
178
178
|
|
179
|
-
<a href="#" id="generic_file_publisher_help" rel="popover" data-content="<%=
|
179
|
+
<a href="#" id="generic_file_publisher_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_publisher"] %>" data-original-title="Publisher"><i class="icon-question-sign icon-large"></i></a>
|
180
180
|
</div>
|
181
181
|
<div id="additional_publisher_elements"></div>
|
182
182
|
</div>
|
@@ -187,7 +187,7 @@ limitations under the License.
|
|
187
187
|
<%= f.text_field :subject, :name=>"generic_file[subject][]", :value=>"" %>
|
188
188
|
<button class="adder btn" name="additional_subject" id="additional_subject_submit">+<span class="accessible-hidden">add another Subject</span></button>
|
189
189
|
|
190
|
-
<a href="#" id="generic_file_subject_help" rel="popover" data-content="<%=
|
190
|
+
<a href="#" id="generic_file_subject_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_subject"] %>" data-original-title="Subject"><i class="icon-question-sign icon-large"></i></a>
|
191
191
|
</div>
|
192
192
|
<div id="additional_subject_elements"></div>
|
193
193
|
</div>
|
@@ -14,17 +14,23 @@ See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
15
15
|
%>
|
16
16
|
|
17
|
-
<% javascript 'bootstrap-tooltip.js' %>
|
18
|
-
<% javascript 'bootstrap-popover.js' %>
|
19
|
-
<% javascript 'bootstrap-modal.js'%>
|
20
|
-
<% javascript 'batch.js' %>
|
21
17
|
|
22
|
-
<% javascript 'jquery.validate.js' %>
|
23
18
|
|
24
|
-
|
25
|
-
|
19
|
+
<% content_for :head do %>
|
20
|
+
<% javascript_include_tag 'bootstrap-tooltip.js'%>
|
21
|
+
<% javascript_include_tag 'bootstrap-popover.js'%>
|
22
|
+
<% javascript_include_tag 'bootstrap-modal.js'%>
|
23
|
+
|
24
|
+
<% javascript_include_tag 'batch.js' %>
|
25
|
+
|
26
|
+
<% javascript_include_tag 'jquery.validate.js' %>
|
27
|
+
<style type="text/css">
|
28
|
+
label.error { float: left; color: red; padding-left: .5em; vertical-align: top; }
|
29
|
+
|
30
|
+
</style>
|
31
|
+
<% end %>
|
32
|
+
|
26
33
|
|
27
|
-
</style>
|
28
34
|
|
29
35
|
|
30
36
|
<% content_for :local_js do %>
|
@@ -53,10 +59,10 @@ function confirmExit(){
|
|
53
59
|
<br />
|
54
60
|
<div class="alert">The information you provide for Title will be applied to the corresponding file only; however all other
|
55
61
|
information you provide will be applied <em>to the entire batch of files</em> you have just deposited into ScholarSphere.
|
56
|
-
You may edit individual files from <%= link_to '<i class="icon-dashboard"></i> my dashboard'.html_safe,
|
62
|
+
You may edit individual files from <%= link_to '<i class="icon-dashboard"></i> my dashboard'.html_safe, sufia.dashboard_index_path %> once
|
57
63
|
this step is finished.
|
58
64
|
</div>
|
59
|
-
<%= form_for([@batch, @generic_file], :url => batch_generic_files_path, :html => {:multipart => true, :class => 'form-horizontal'}) do |f| %>
|
65
|
+
<%= form_for([@batch, @generic_file], :url => sufia.batch_generic_files_path, :html => {:multipart => true, :class => 'form-horizontal'}) do |f| %>
|
60
66
|
|
61
67
|
<%= render :partial => 'metadata', :formats => [:html], :locals => {:f => f, :gf => @generic_file} %>
|
62
68
|
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<%= f.label :title, "<span class='error'>*</span> Title #{index+1}".html_safe, :class=>"control-label" %>
|
11
11
|
<div class="controls" id="additional_title_clone">
|
12
12
|
<%= f.text_field :title, :name=>"title[#{gen_f.id}][]", :value=>gen_f.label, :required=> true %>
|
13
|
-
<a href="#" id="generic_file_title_help" rel="popover" data-content="<%=
|
13
|
+
<a href="#" id="generic_file_title_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_title"] %>" data-original-title="Title"><i class="icon-question-sign icon-large"></i></a>
|
14
14
|
</div>
|
15
15
|
</div>
|
16
16
|
<% end %>
|
@@ -31,8 +31,8 @@
|
|
31
31
|
<%= f.label :resource_type, "Resource Types", :class=>"control-label", :for=>"resource_type" %>
|
32
32
|
<div class="controls">
|
33
33
|
<p class="help-block">You may select multiple types to apply to all files<p>
|
34
|
-
<%= f.select "resource_type",
|
35
|
-
<a href="#" id="generic_file_resource_type_help" rel="popover" data-content="<%=
|
34
|
+
<%= f.select "resource_type", Sufia::Engine::config.resource_types, {}, {:multiple=>true, :size=>7} %>
|
35
|
+
<a href="#" id="generic_file_resource_type_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_resource_type"] %>" data-original-title="Resource Type"><i class="icon-question-sign icon-large"></i></a>
|
36
36
|
</div>
|
37
37
|
</div>
|
38
38
|
|
@@ -42,7 +42,7 @@
|
|
42
42
|
<%= f.text_field :tag, :name=>"generic_file[tag][]", :value=>"", :required=> true %>
|
43
43
|
<button class="adder btn" name="additional_tag" id="additional_tag_submit">+<span class="accessible-hidden">add another Tag</span></button>
|
44
44
|
|
45
|
-
<a href="#" id="generic_file_tag_help" rel="popover" data-content="<%=
|
45
|
+
<a href="#" id="generic_file_tag_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_tag"] %>" data-original-title="Keyword"><i class="icon-question-sign icon-large"></i></a>
|
46
46
|
</div>
|
47
47
|
<div id="additional_tag_elements"></div>
|
48
48
|
</div>
|
@@ -53,7 +53,7 @@
|
|
53
53
|
<%= f.text_field :creator, :name=>"generic_file[creator][]", :value=>"", :required=> true %>
|
54
54
|
<button class="adder btn" name="additional_creator" id="additional_creator_submit">+<span class="accessible-hidden">add another Creator</span></button>
|
55
55
|
|
56
|
-
<a href="#" id="generic_file_creator_help" rel="popover" data-content="<%=
|
56
|
+
<a href="#" id="generic_file_creator_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_creator"] %>" data-original-title="Creator"><i class="icon-question-sign icon-large"></i></a>
|
57
57
|
</div>
|
58
58
|
<div id="additional_creator_elements"></div>
|
59
59
|
</div>
|
@@ -61,10 +61,10 @@
|
|
61
61
|
<div class="control-group">
|
62
62
|
<%= f.label :rights, '<span class="error">*</span> Rights'.html_safe, :class=>"control-label" %>
|
63
63
|
<div class="controls" id="additional_rights_clone">
|
64
|
-
<%= f.select "rights", options_for_select(
|
64
|
+
<%= f.select "rights", options_for_select(Sufia::Engine::config.cc_licenses, 'http://creativecommons.org/licenses/by-nc-nd/3.0/us/'), :required => true %>
|
65
65
|
<button class="adder btn" name="additional_rights" id="additional_rights_submit">+<span class="accessible-hidden">add another Rights</span></button>
|
66
66
|
|
67
|
-
<a href="#" id="generic_file_rights_help" rel="popover" data-content="<%=
|
67
|
+
<a href="#" id="generic_file_rights_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_rights"] %>" data-original-title="Rights"><i class="icon-question-sign icon-large"></i></a>
|
68
68
|
<%= render :partial => "generic_files/rights_modal" %>
|
69
69
|
|
70
70
|
</div>
|
@@ -83,7 +83,7 @@
|
|
83
83
|
<%= f.text_field :related_url, :name=>"generic_file[related_url][]", :value=>"" %>
|
84
84
|
<button class="adder btn" name="additional_related_url" id="additional_related_url_submit">+<span class="accessible-hidden">add another Related URL</span></button>
|
85
85
|
|
86
|
-
<a href="#" id="generic_file_related_url_help" rel="popover" data-content="<%=
|
86
|
+
<a href="#" id="generic_file_related_url_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_related_url"] %>" data-original-title="Related URL"><i class="icon-question-sign icon-large"></i></a>
|
87
87
|
</div>
|
88
88
|
<div id="additional_related_url_elements"></div>
|
89
89
|
</div>
|
@@ -94,7 +94,7 @@
|
|
94
94
|
<%= f.text_field :based_near, :name=>"generic_file[based_near][]", :value=>"" %>
|
95
95
|
<button class="adder btn" name="additional_based_near" id="additional_based_near_submit">+<span class="accessible-hidden">add another Location</span></button>
|
96
96
|
|
97
|
-
<a href="#" id="generic_file_based_near_help" rel="popover" data-content="<%=
|
97
|
+
<a href="#" id="generic_file_based_near_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_based_near"] %>" data-original-title="Location"><i class="icon-question-sign icon-large"></i></a>
|
98
98
|
</div>
|
99
99
|
<div id="additional_based_near_elements"></div>
|
100
100
|
</div>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
<%= f.text_field :contributor, :name=>"generic_file[contributor][]", :value=>gf.contributor[0] %>
|
106
106
|
<button class="adder btn" name="additional_contributor" id="additional_contributor_submit">+<span class="accessible-hidden">add another Contributor</span></button>
|
107
107
|
|
108
|
-
<a href="#" id="generic_file_contributor_help" rel="popover" data-content="<%=
|
108
|
+
<a href="#" id="generic_file_contributor_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_contributor"] %>" data-original-title="Contributor"><i class="icon-question-sign icon-large"></i></a>
|
109
109
|
</div>
|
110
110
|
<div id="additional_contributor_elements"></div>
|
111
111
|
</div>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
<%= f.text_field :date_created, :name=>"generic_file[date_created][]", :value=>"" %>
|
117
117
|
<button class="adder btn" name="additional_date_created" id="additional_date_created_submit">+<span class="accessible-hidden">add another Date Created</span></button>
|
118
118
|
|
119
|
-
<a href="#" id="generic_file_date_created_help" rel="popover" data-content="<%=
|
119
|
+
<a href="#" id="generic_file_date_created_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_date_created"] %>" data-original-title="Date Created"><i class="icon-question-sign icon-large"></i></a>
|
120
120
|
</div>
|
121
121
|
<div id="additional_date_created_elements"></div>
|
122
122
|
</div>
|
@@ -127,7 +127,7 @@
|
|
127
127
|
<%= f.text_area :description, :name=>"generic_file[description][]", :value=>"" %>
|
128
128
|
<button class="adder btn" name="additional_description" id="additional_description_submit">+<span class="accessible-hidden">add another Abstract or Summary</span></button>
|
129
129
|
|
130
|
-
<a href="#" id="generic_file_description_help" rel="popover" data-content="<%=
|
130
|
+
<a href="#" id="generic_file_description_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_description"] %>" data-original-title="Abstract or Summary"><i class="icon-question-sign icon-large"></i></a>
|
131
131
|
</div>
|
132
132
|
<div id="additional_description_elements"></div>
|
133
133
|
</div>
|
@@ -138,7 +138,7 @@
|
|
138
138
|
<%= f.text_field :identifier, :name=>"generic_file[identifier][]", :value=>"" %>
|
139
139
|
<button class="adder btn" name="additional_identifier" id="additional_identifier_submit">+<span class="accessible-hidden">add another Identifier</span></button>
|
140
140
|
|
141
|
-
<a href="#" id="generic_file_identifier_help" rel="popover" data-content="<%=
|
141
|
+
<a href="#" id="generic_file_identifier_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_identifier"] %>" data-original-title="Identifier"><i class="icon-question-sign icon-large"></i></a>
|
142
142
|
</div>
|
143
143
|
<div id="additional_identifier_elements"></div>
|
144
144
|
</div>
|
@@ -149,7 +149,7 @@
|
|
149
149
|
<%= f.text_field :language, :name=>"generic_file[language][]", :value=>"" %>
|
150
150
|
<button class="adder btn" name="additional_language" id="additional_language_submit">+<span class="accessible-hidden">add another Language</span></button>
|
151
151
|
|
152
|
-
<a href="#" id="generic_file_language_help" rel="popover" data-content="<%=
|
152
|
+
<a href="#" id="generic_file_language_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_language"] %>" data-original-title="Language"><i class="icon-question-sign icon-large"></i></a>
|
153
153
|
</div>
|
154
154
|
<div id="additional_language_elements"></div>
|
155
155
|
</div>
|
@@ -160,7 +160,7 @@
|
|
160
160
|
<%= f.text_field :publisher, :name=>"generic_file[publisher][]", :value=>"" %>
|
161
161
|
<button class="adder btn" name="additional_publisher" id="additional_publisher_submit">+<span class="accessible-hidden">add another Publisher</span></button>
|
162
162
|
|
163
|
-
<a href="#" id="generic_file_publisher_help" rel="popover" data-content="<%=
|
163
|
+
<a href="#" id="generic_file_publisher_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_publisher"] %>" data-original-title="Publisher"><i class="icon-question-sign icon-large"></i></a>
|
164
164
|
</div>
|
165
165
|
<div id="additional_publisher_elements"></div>
|
166
166
|
</div>
|
@@ -171,7 +171,7 @@
|
|
171
171
|
<%= f.text_field :subject, :name=>"generic_file[subject][]", :value=>"" %>
|
172
172
|
<button class="adder btn" name="additional_subject" id="additional_subject_submit">+<span class="accessible-hidden">add another Subject</span></button>
|
173
173
|
|
174
|
-
<a href="#" id="generic_file_subject_help" rel="popover" data-content="<%=
|
174
|
+
<a href="#" id="generic_file_subject_help" rel="popover" data-content="<%= Sufia::Engine.config.metadata_help["generic_file_subject"] %>" data-original-title="Subject"><i class="icon-question-sign icon-large"></i></a>
|
175
175
|
</div>
|
176
176
|
<div id="additional_subject_elements"></div>
|
177
177
|
</div>
|
@@ -2,8 +2,8 @@
|
|
2
2
|
<%# logger.info document[:generic_file__creator_t].inspect %>
|
3
3
|
<li>
|
4
4
|
<h2>
|
5
|
-
<%= link_to render_document_show_field_value(:document=>document, :field=>document.title_or_label), generic_file_path(document[:noid_s].first) %>
|
6
|
-
<small>[<%= link_to 'Download', download_path(document[:noid_s].first), :target => '_new' %>]</small>
|
5
|
+
<%= link_to render_document_show_field_value(:document=>document, :field=>document.title_or_label), sufia.generic_file_path(document[:noid_s].first) %>
|
6
|
+
<small>[<%= link_to 'Download', sufia.download_path(document[:noid_s].first), :target => '_new' %>]</small>
|
7
7
|
</h2>
|
8
8
|
<table class="table">
|
9
9
|
<tr>
|
@@ -3,6 +3,11 @@
|
|
3
3
|
$.ui.dialog.prototype.options["height"]=window.innerHeight *0.75
|
4
4
|
<% end %>
|
5
5
|
|
6
|
+
<!--div id="sidebar" class="span3">
|
7
|
+
<%#= render :partial=>'facets' %>
|
8
|
+
</div--><!--/well -->
|
9
|
+
|
10
|
+
|
6
11
|
<% unless has_search_parameters? %>
|
7
12
|
<%# if there are no input/search related params, display the "home" partial -%>
|
8
13
|
<%= render 'home' %>
|
@@ -30,6 +30,6 @@ limitations under the License.
|
|
30
30
|
<% end %>
|
31
31
|
|
32
32
|
<% if(paginator.has_next?) %>
|
33
|
-
<li class="more_facets_link"><%= link_to 'more ' + facet_field.label.pluralize + '»', params.merge(:id => solr_field, :action=>"facet"), :class => "more_facets_link" %></li>
|
33
|
+
<li class="more_facets_link"><%= link_to 'more ' + facet_field.label.pluralize + '»', sufia.url_for(params.merge(:id => solr_field, :action=>"facet", :path_only=>true)), :class => "more_facets_link" %></li>
|
34
34
|
<% end %>
|
35
35
|
</ul> <!-- /slide-list -->
|
@@ -17,13 +17,13 @@ limitations under the License.
|
|
17
17
|
<% if @pagination.has_previous? || @pagination.has_next? %>
|
18
18
|
<div class="prev_next_links">
|
19
19
|
<% if @pagination.has_previous? -%>
|
20
|
-
<%= link_to('« Previous', catalog_facet_path( @pagination.params_for_previous_url( params) ) , :class=>:prev_page) %>
|
20
|
+
<%= link_to('« Previous', sufia.catalog_facet_path( @pagination.params_for_previous_url( params) ) , :class=>:prev_page) %>
|
21
21
|
<% else -%>
|
22
22
|
<span class="disabled ui-state-active prev_page">« Previous</span>
|
23
23
|
<% end -%>
|
24
24
|
|
25
25
|
<% if @pagination.has_next? -%>
|
26
|
-
<%= link_to('Next »', catalog_facet_path( @pagination.params_for_next_url(params)), :class => :next_page ) %>
|
26
|
+
<%= link_to('Next »', sufia.catalog_facet_path( @pagination.params_for_next_url(params)), :class => :next_page ) %>
|
27
27
|
<% else -%>
|
28
28
|
<span class="disabled ui-state-active next_page">Next »</span>
|
29
29
|
<% end -%>
|
@@ -34,9 +34,9 @@ limitations under the License.
|
|
34
34
|
<div class="sort_options">
|
35
35
|
<% if @pagination.sort == 'index' -%>
|
36
36
|
<span class="disabled az">A-Z Sort</span><%= link_to_unless(@pagination.sort == 'count', "Numerical Sort",
|
37
|
-
@pagination.params_for_resort_url('count', params), :class => "sort_change numeric") %>
|
37
|
+
sufia.url_for(@pagination.params_for_resort_url('count', params)), :class => "sort_change numeric") %>
|
38
38
|
<% elsif @pagination.sort == 'count' -%>
|
39
|
-
<%= link_to("A-Z Sort", @pagination.params_for_resort_url('index', params),
|
39
|
+
<%= link_to("A-Z Sort", sufia.url_for(@pagination.params_for_resort_url('index', params)),
|
40
40
|
:class => "sort_change az") %><span class="disabled numeric">Numerical Sort</span>
|
41
41
|
<% end -%>
|
42
42
|
</div>
|
@@ -20,7 +20,7 @@ limitations under the License.
|
|
20
20
|
<% v.each do |selected_facet| %>
|
21
21
|
<% link_options = remove_facet_params(k, selected_facet, params).merge!Hash["controller" => "dashboard", :action=> "index"] %>
|
22
22
|
<div class="alert alert-warning">
|
23
|
-
<%= link_to 'X', url_for(link_options), {:class=>'close', :'data-dismiss' => "alert" } %>
|
23
|
+
<%= link_to 'X', sufia.url_for(link_options), {:class=>'close', :'data-dismiss' => "alert" } %>
|
24
24
|
<i class="icon-ok icon-large"></i> <strong><%= selected_facet %></strong>
|
25
25
|
</div>
|
26
26
|
<% end %>
|
@@ -30,32 +30,32 @@ on element ids -->
|
|
30
30
|
<td width="37%">
|
31
31
|
<a href="" title="Click for more details"><i id="expand_<%= noid.gsub(":", "_") %>" class="icon-plus icon-large fleft"></i></a>
|
32
32
|
<%= render :partial => 'dashboard/_index_partials/thumbnail_display', :locals => {:document=>document} %>
|
33
|
-
<span class=center><%= link_to render_document_show_field_value(:document=>document, :field=>document.title_or_label), generic_file_path(noid), :id => "src_copy_link#{noid}" %> <br /></span>
|
33
|
+
<span class=center><%= link_to render_document_show_field_value(:document=>document, :field=>document.title_or_label), sufia.generic_file_path(noid), :id => "src_copy_link#{noid}" %> <br /></span>
|
34
34
|
</td>
|
35
35
|
<td width="17%"><%= document.fetch(:generic_file__date_uploaded_dt,'').to_time.strftime("%m/%d/%Y") unless document.fetch(:generic_file__date_uploaded_dt,'').blank? %> </td>
|
36
36
|
<td width="5%" align="center">
|
37
37
|
<% if !document[:read_access_group_t].blank? and document[:read_access_group_t].include?('registered') %>
|
38
|
-
<a href="<%= generic_file_path(noid) %>/edit/?tab=permissions" id="permission_<%= noid %>"><span class="label label-info" title="<%=t('sufia.institution_name') %>"><%=t('sufia.institution_name') %></span></a>
|
38
|
+
<a href="<%= sufia.generic_file_path(noid) %>/edit/?tab=permissions" id="permission_<%= noid %>"><span class="label label-info" title="<%=t('sufia.institution_name') %>"><%=t('sufia.institution_name') %></span></a>
|
39
39
|
<% elsif !document[:read_access_group_t].blank? and document[:read_access_group_t].include?('public') %>
|
40
|
-
<a href="<%= generic_file_path(noid) %>/edit/?tab=permissions" id="permission_<%= noid %>"><span class="label label-success" title="Open Access">Open Access</span></a>
|
40
|
+
<a href="<%= sufia.generic_file_path(noid) %>/edit/?tab=permissions" id="permission_<%= noid %>"><span class="label label-success" title="Open Access">Open Access</span></a>
|
41
41
|
<% else %>
|
42
|
-
<a href="<%= generic_file_path(noid) %>/edit/?tab=permissions" id="permission_<%= noid %>"><span class="label label-important" title="Private">Private</span></a>
|
42
|
+
<a href="<%= sufia.generic_file_path(noid) %>/edit/?tab=permissions" id="permission_<%= noid %>"><span class="label label-important" title="Private">Private</span></a>
|
43
43
|
<% end %>
|
44
44
|
</td>
|
45
45
|
<td width="23%" class="center">
|
46
46
|
<span style="position: relative; display: inline-block">
|
47
47
|
<%= link_to raw('<!--i class="icon-unlock under"></i--><i class="icon-link icon-large over"></i>'), '#', :class => 'copypaste itemicon itemcode', :title => 'Single Use Link to File', :id => "copy_link_#{noid}" %>
|
48
48
|
</span>
|
49
|
-
<%= link_to raw('<i class="icon-pencil icon-large"></i>'), edit_generic_file_path(noid), :class=> 'itemicon itemedit', :title => 'Edit File' %>
|
50
|
-
<%= link_to raw('<i class="icon-download-alt icon-large"></i>'), download_path(noid), :class=> 'itemicon itemdownload', :title => 'Download File', :target => '_new' %>
|
51
|
-
<%= link_to raw('<i class="icon-trash icon-large"></i>'), generic_file_path(noid), :class=> 'itemicon itemtrash', :title => 'Delete File', :method => :delete, :data => { :confirm => 'Deleting a file from ScholarSphere is permanent. Click OK to delete this file from ScholarSphere, or Cancel to cancel this operation'} %>
|
49
|
+
<%= link_to raw('<i class="icon-pencil icon-large"></i>'), sufia.edit_generic_file_path(noid), :class=> 'itemicon itemedit', :title => 'Edit File' %>
|
50
|
+
<%= link_to raw('<i class="icon-download-alt icon-large"></i>'), sufia.download_path(noid), :class=> 'itemicon itemdownload', :title => 'Download File', :target => '_new' %>
|
51
|
+
<%= link_to raw('<i class="icon-trash icon-large"></i>'), sufia.generic_file_path(noid), :class=> 'itemicon itemtrash', :title => 'Delete File', :method => :delete, :data => { :confirm => 'Deleting a file from ScholarSphere is permanent. Click OK to delete this file from ScholarSphere, or Cancel to cancel this operation'} %>
|
52
52
|
</td>
|
53
53
|
</tr>
|
54
54
|
<tr class="hide" id="detail_<%= noid.gsub(":", "_") %>"> <!-- document detail"> -->
|
55
55
|
<td colspan="6">
|
56
56
|
<table class="expanded-details">
|
57
57
|
<tr>
|
58
|
-
<td><strong>File Name: </strong> <%= link_to render_document_show_field_value(:document=>document, :field=>"label_t"), generic_file_path(noid) %> </td>
|
58
|
+
<td><strong>File Name: </strong> <%= link_to render_document_show_field_value(:document=>document, :field=>"label_t"), sufia.generic_file_path(noid) %> </td>
|
59
59
|
<td><strong>File Format: </strong> <%= render_document_show_field_value(:document=>document, :field=>"file_format_t") %> </td>
|
60
60
|
</tr>
|
61
61
|
<tr>
|
@@ -15,7 +15,7 @@ limitations under the License.
|
|
15
15
|
%>
|
16
16
|
|
17
17
|
<div style="float: right;" >
|
18
|
-
<%= form_tag sufia.
|
18
|
+
<%= form_tag sufia.dashboard_index_path, :method => :get, :class => "well form-search" do %>
|
19
19
|
<label class="accessible-hidden">Search My Dashboard</label>
|
20
20
|
<%= text_field_tag :q, params[:q], :class => "q", :placeholder => "Search My Dashboard", :size => '30', :type => "search", :id => "dashboard_search" %>
|
21
21
|
<%= hidden_field_tag :search_field, 'all_fields' %>
|
@@ -19,7 +19,7 @@ limitations under the License.
|
|
19
19
|
<%=batch_delete%> <%=batch_edit_continue("Edit Selected") %>
|
20
20
|
<% unless @response.response['numFound'] < 2 %>
|
21
21
|
<%-# kind of hacky way to get this to work on catalog and folder controllers. May be able to simple do {:action=>"index"} but I'm not sure -%>
|
22
|
-
<%= form_tag params[:controller] == "folder" ? folder_index_path :
|
22
|
+
<%= form_tag params[:controller] == "folder" ? sufia.folder_index_path : sufia.dashboard_index_path, :method=>:get, :class=>'per_page form-inline' do %>
|
23
23
|
<%= label_tag(:sort, "<span>Sort By:</span>".html_safe) %>
|
24
24
|
<%= select_tag(:sort, options_for_select(sort_fields, h(params[:sort])), :class => "span15") %>
|
25
25
|
|