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
@@ -102,5 +102,28 @@ button {
|
|
102
102
|
}
|
103
103
|
}
|
104
104
|
|
105
|
+
.large-icon {
|
106
|
+
font-size: 1.5em;
|
107
|
+
}
|
105
108
|
|
109
|
+
.btn.collection-remove {
|
110
|
+
background:none;
|
111
|
+
border:none;
|
112
|
+
/* padding:0!important;
|
113
|
+
padding: 6px 12px;*/
|
106
114
|
|
115
|
+
cursor:pointer;
|
116
|
+
clear: both;
|
117
|
+
color: #333333;
|
118
|
+
display: block;
|
119
|
+
width: 100%;
|
120
|
+
font-weight: normal;
|
121
|
+
line-height: 18px;
|
122
|
+
padding: 3px 15px;
|
123
|
+
white-space: nowrap;
|
124
|
+
border-radius:0px
|
125
|
+
}
|
126
|
+
.btn.collection-remove:hover{
|
127
|
+
text-decoration:underline;
|
128
|
+
background-color:#0088CC;
|
129
|
+
}
|
@@ -9,7 +9,7 @@
|
|
9
9
|
*= require home-page
|
10
10
|
*= require tagcloud
|
11
11
|
*= require featured
|
12
|
-
*= require
|
12
|
+
*= require file-listing
|
13
13
|
*= require usage-stats
|
14
14
|
*= require nestable
|
15
15
|
*/
|
@@ -31,3 +31,7 @@
|
|
31
31
|
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
|
32
32
|
clip: rect(1px, 1px, 1px, 1px);
|
33
33
|
}
|
34
|
+
|
35
|
+
#content {
|
36
|
+
padding-top: 10px;
|
37
|
+
}
|
@@ -2,17 +2,17 @@ module Sufia
|
|
2
2
|
module Catalog
|
3
3
|
extend ActiveSupport::Concern
|
4
4
|
included do
|
5
|
-
self.solr_search_params_logic += [:
|
5
|
+
self.solr_search_params_logic += [:only_generic_files_and_collections]
|
6
6
|
end
|
7
7
|
|
8
8
|
protected
|
9
9
|
|
10
|
-
# Limits search results just to GenericFiles
|
10
|
+
# Limits search results just to GenericFiles and collections
|
11
11
|
# @param solr_parameters the current solr parameters
|
12
12
|
# @param user_parameters the current user-subitted parameters
|
13
|
-
def
|
13
|
+
def only_generic_files_and_collections(solr_parameters, user_parameters)
|
14
14
|
solr_parameters[:fq] ||= []
|
15
|
-
solr_parameters[:fq] << "#{Solrizer.solr_name("has_model", :symbol)}
|
15
|
+
solr_parameters[:fq] << "#{Solrizer.solr_name("has_model", :symbol)}:(\"info:fedora/afmodel:GenericFile\" \"info:fedora/afmodel:Collection\")"
|
16
16
|
end
|
17
17
|
|
18
18
|
end
|
@@ -58,12 +58,8 @@ module Sufia
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
-
def search_action_url opts={}
|
62
|
-
sufia.url_for(opts)
|
63
|
-
end
|
64
|
-
|
65
61
|
protected
|
66
|
-
|
62
|
+
|
67
63
|
# show only files with edit permissions in lib/hydra/access_controls_enforcement.rb apply_gated_discovery
|
68
64
|
def discovery_permissions
|
69
65
|
["edit"]
|
@@ -12,7 +12,7 @@ module Sufia
|
|
12
12
|
link_to '#', id: "generic_file_#{key.to_s}_help", rel: 'popover',
|
13
13
|
'data-content' => metadata_help(key),
|
14
14
|
'data-original-title' => get_label(key) do
|
15
|
-
content_tag 'i', '', class: "glyphicon glyphicon-question-sign icon
|
15
|
+
content_tag 'i', '', class: "glyphicon glyphicon-question-sign large-icon"
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
@@ -5,7 +5,7 @@ module Sufia
|
|
5
5
|
# example:
|
6
6
|
# config.index.thumbnail_method = :sufia_thumbnail_tag
|
7
7
|
def sufia_thumbnail_tag(document, options)
|
8
|
-
path = if document.image? || document.pdf? || document.video?
|
8
|
+
path = if document.image? || document.pdf? || document.video? || document.office_document?
|
9
9
|
sufia.download_path document.noid, datastream_id: 'thumbnail'
|
10
10
|
elsif document.audio?
|
11
11
|
"audio.png"
|
@@ -69,7 +69,7 @@ module Sufia
|
|
69
69
|
|
70
70
|
def iconify_auto_link(text, showLink = true)
|
71
71
|
auto_link(text) do |value|
|
72
|
-
"<i class='
|
72
|
+
"<i class='glyphicon glyphicon-new-window'></i> #{value if showLink}<br />"
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
@@ -124,5 +124,15 @@ module Sufia
|
|
124
124
|
# audio/mpeg is the mime type that fits 0.6.0 returns for an mp3 file.
|
125
125
|
['audio/mp3', 'audio/mpeg', 'audio/x-wave', 'audio/x-wav', 'audio/ogg'].include? self.mime_type
|
126
126
|
end
|
127
|
+
|
128
|
+
def office_document?
|
129
|
+
['text/rtf',
|
130
|
+
'application/msword',
|
131
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
132
|
+
'application/vnd.ms-excel',
|
133
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
134
|
+
'application/vnd.ms-powerpoint',
|
135
|
+
'application/vnd.openxmlformats-officedocument.presentationml.presentation'].include? self.mime_type
|
136
|
+
end
|
127
137
|
end
|
128
138
|
end
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<li><%= link_to raw('<span class="glyphicon glyphicon-upload"></span> upload'), sufia.new_generic_file_path, id: 'upload_nav_link' %></li>
|
10
10
|
<li><%= link_to raw('<span class="glyphicon glyphicon-cog"></span> edit profile'), sufia.edit_profile_path(current_user), id: 'upload_nav_link' %></li>
|
11
11
|
<li class="divider"></li>
|
12
|
-
<li><%= link_to raw('<span class="glyphicon glyphicon-
|
12
|
+
<li><%= link_to raw('<span class="glyphicon glyphicon-log-out"></span> log out'), destroy_user_session_path, id: 'logout_nav_link' %></li>
|
13
13
|
</ul>
|
14
14
|
</div><!-- /.btn-group -->
|
15
15
|
<% else %>
|
@@ -1,25 +1,22 @@
|
|
1
1
|
<% @page_title = "More Search Options - #{application_name}" %>
|
2
|
-
<% content_for :local_js do %>
|
3
|
-
$(document).ready(function(){$("form.advanced input:first").focus();});
|
4
|
-
<% end %>
|
5
2
|
<div class="span55">
|
6
3
|
<h1>More Search Options</h1>
|
7
4
|
<%= render 'advanced_search_form' %>
|
8
5
|
</div> <!-- /.span65 -->
|
9
6
|
|
10
7
|
<div class="span50">
|
11
|
-
<h2><i class=
|
8
|
+
<h2><i class=glyphicon glyphicon-pushpin"></i> Search tips</h2>
|
12
9
|
<div class="well">
|
13
10
|
<ul id="advanced_search_tips">
|
14
|
-
<li><i class="
|
15
|
-
<li><i class="
|
16
|
-
<li><i class="
|
17
|
-
<li><i class="
|
18
|
-
<li><i class="
|
19
|
-
<li><i class="
|
20
|
-
<li><i class="
|
21
|
-
<li><i class="
|
22
|
-
<li><i class="
|
11
|
+
<li><i class="glyphicon glyphicon-chevron-right"></i> Select "match all" to require all fields.</li>
|
12
|
+
<li><i class="glyphicon glyphicon-chevron-right"></i> Select "match any" to find at least one field.</li>
|
13
|
+
<li><i class="glyphicon glyphicon-chevron-right"></i> Combine keywords and attributes to find specific items.</li>
|
14
|
+
<li><i class="glyphicon glyphicon-chevron-right"></i> Use quotation marks to search as a phrase. </li>
|
15
|
+
<li><i class="glyphicon glyphicon-chevron-right"></i> Use "+" before a term to make it required. (Otherwise results matching only some of your terms may be included).</li>
|
16
|
+
<li><i class="glyphicon glyphicon-chevron-right"></i> Use "-" before a word or phrase to exclude. </li>
|
17
|
+
<li><i class="glyphicon glyphicon-chevron-right"></i> Use "OR", "AND", and "NOT" to create complex Boolean logic. You can use parentheses in your complex expressions.</li>
|
18
|
+
<li><i class="glyphicon glyphicon-chevron-right"></i> Truncation and wildcards are not supported - word-stemming is done automatically. </li>
|
19
|
+
<li><i class="glyphicon glyphicon-chevron-right"></i> Truncation and wildcards are not supported - word-stemming is done automatically. </li>
|
23
20
|
</ul>
|
24
21
|
</div>
|
25
22
|
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
if (navigator.userAgent.match("MSIE"))
|
2
|
+
$("#new_generic_file").validate();
|
3
|
+
|
4
|
+
$('#permissions_display').show();
|
5
|
+
|
6
|
+
confirmation_needed = true;
|
7
|
+
window.onbeforeunload = confirmExit;
|
8
|
+
|
9
|
+
function confirmExit(){
|
10
|
+
if(confirmation_needed){
|
11
|
+
// if you return a string it will be displayed in between "don't navigate away"
|
12
|
+
// and "click Ok to navigate away or cancel to stay put" in the confirm dialog
|
13
|
+
return "Your metadata has not been saved.";
|
14
|
+
}
|
15
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<h2>Individual Titles <small>(applied to individual files uploaded)</small><small class="pull-right"><span class="error">*</span> indicates required fields</small> </h2>
|
2
2
|
<div id="" class="well">
|
3
3
|
<p>
|
4
|
-
<i class="
|
4
|
+
<i class="glyphicon glyphicon-info-sign"></i> Filename will be the default title. Please provide a more meaningful title, and filenames will still be preserved by the system.
|
5
5
|
</p>
|
6
6
|
<div class="row">
|
7
7
|
<div class="span60">
|
@@ -1,30 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
$("#new_generic_file").validate();
|
4
|
-
}
|
5
|
-
|
6
|
-
$('#permissions_display').show();
|
7
|
-
|
8
|
-
// initialize popover helpers
|
9
|
-
$("a[rel=popover]").popover({ html: true });
|
10
|
-
|
11
|
-
confirmation_needed = true;
|
12
|
-
window.onbeforeunload = confirmExit;
|
13
|
-
function confirmExit(){
|
14
|
-
if(confirmation_needed){
|
15
|
-
// if you return a string it will be displayed in between "don't navigate away"
|
16
|
-
// and "click Ok to navigate away or cancel to stay put" in the confirm dialog
|
17
|
-
return "Your metadata has not been saved.";
|
18
|
-
}
|
19
|
-
}
|
1
|
+
<%= javascript_tag do %>
|
2
|
+
<%= render partial: "edit", formats: [:js] %>
|
20
3
|
<% end %>
|
21
4
|
|
22
5
|
<h1>Apply Metadata</h1>
|
23
|
-
<
|
24
|
-
|
25
|
-
information you provide will be applied <em>to the entire batch of files</em> you have just
|
26
|
-
|
27
|
-
|
6
|
+
<div class="alert">
|
7
|
+
The information you provide for Title will be applied to the corresponding file only; however all other
|
8
|
+
information you provide will be applied <em>to the entire batch of files</em> you have just
|
9
|
+
deposited into <%= t('sufia.product_name') %>. You may edit individual files from
|
10
|
+
<%= link_to "<i class='glyphicon glyphicon-dashboard'></i> #{t('sufia.bread_crumb.file_list')}".html_safe, sufia.dashboard_files_path %>
|
11
|
+
once this step is finished.
|
28
12
|
</div>
|
29
13
|
<%= form_for([@batch, @generic_file], url: sufia.batch_generic_files_path, html: { multipart: true, class: 'form-horizontal' }) do |f| %>
|
30
14
|
|
@@ -33,7 +17,8 @@ function confirmExit(){
|
|
33
17
|
<%= render partial: 'generic_files/permission_form', formats: [:html], locals: { gf: @generic_file, batch: @batch } %>
|
34
18
|
|
35
19
|
<div class="row form-actions" id="permissions_submit">
|
36
|
-
|
20
|
+
<%= button_tag '<i class="glyphicon glyphicon-floppy-disk"></i> Save'.html_safe, type: 'submit', class: 'btn-primary btn-large',
|
21
|
+
onclick: "confirmation_needed = false;", id: "upload_submit", name: "update_permission" %>
|
37
22
|
</div>
|
38
23
|
|
39
24
|
<% end %>
|
@@ -1 +1 @@
|
|
1
|
-
<li data-behavior="batch-edit-select-abc" data-state="on"><a href="#"><i class="
|
1
|
+
<li data-behavior="batch-edit-select-abc" data-state="on"><a href="#"><i class="glyphicon glyphicon-ok"></i> Select ABC</a></li>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% if !@disable_select_all %>
|
2
2
|
<div class="dropdown" >
|
3
3
|
<%= check_box_tag 'check_all', 'yes', @all_checked, disabled: ((@batch_size_on_other_page + @document_list.count) > @max_batch_size) %>
|
4
|
-
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="
|
4
|
+
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-cog" title="click for selection options"></span></a>
|
5
5
|
<ul class="dropdown-menu">
|
6
6
|
<%= render partial: "#{controller_name}/batch_edits_actions" %>
|
7
7
|
</ul>
|
@@ -9,8 +9,8 @@
|
|
9
9
|
<h3> Descriptions:</h3>
|
10
10
|
|
11
11
|
<ul class="nav nav-tabs">
|
12
|
-
<li id="edit_descriptions_link" class="active"><a href="#descriptions_display" data-toggle="tab"><i class="
|
13
|
-
<li id="edit_permissions_link"><a href="#permissions_display" data-toggle="tab"><i class="
|
12
|
+
<li id="edit_descriptions_link" class="active"><a href="#descriptions_display" data-toggle="tab"><i class="glyphicon glyphicon-tags"></i> Descriptions</a></li>
|
13
|
+
<li id="edit_permissions_link"><a href="#permissions_display" data-toggle="tab"><i class="glyphicon glyphicon-lock"></i> Permissions</a></li>
|
14
14
|
</ul>
|
15
15
|
<div class="tab-content">
|
16
16
|
<div class="well tab-pane active" id="descriptions_display">
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<tr id='row_<%= term.to_s %>' class="expandable">
|
22
22
|
<th width="20%">
|
23
23
|
<a class="accordion-toggle grey" data-toggle="collapse" data-parent="#row_<%= term.to_s %>" href="#collapse_<%=term.to_s%>">
|
24
|
-
<%= get_label(term) %> <i class="toggle
|
24
|
+
<%= get_label(term) %> <i class="toggle glyphicon glyphicon-chevron-right grey"></i>
|
25
25
|
</a>
|
26
26
|
</th>
|
27
27
|
<td width="50%" class="scrolly">
|
@@ -1,2 +1,7 @@
|
|
1
1
|
<%# container for all documents in index view -%>
|
2
|
-
|
2
|
+
<div id="search-results">
|
3
|
+
<ol class="catalog" start="<%= document_counter_with_offset(0) %>">
|
4
|
+
<%= render documents, as: :document %>
|
5
|
+
</ol>
|
6
|
+
</div>
|
7
|
+
|
@@ -1,21 +1,34 @@
|
|
1
|
-
|
2
|
-
<%= render
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
<%=
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
<%=
|
21
|
-
|
1
|
+
<div id="sidebar" class="col-md-3">
|
2
|
+
<%= render 'search_sidebar' %>
|
3
|
+
</div>
|
4
|
+
|
5
|
+
<div id="content" class="col-md-9">
|
6
|
+
|
7
|
+
|
8
|
+
<h2 class="sr-only top-content-title"><%= t('blacklight.search.search_results_header') %></h2>
|
9
|
+
|
10
|
+
<% @page_title = t('blacklight.search.title', :application_name => application_name) %>
|
11
|
+
|
12
|
+
|
13
|
+
<% content_for(:head) do -%>
|
14
|
+
<%= render_opensearch_response_metadata %>
|
15
|
+
<%= auto_discovery_link_tag(:rss, url_for(params.merge(:format => 'rss')), :title => t('blacklight.search.rss_feed') ) %>
|
16
|
+
<%= auto_discovery_link_tag(:atom, url_for(params.merge(:format => 'atom')), :title => t('blacklight.search.atom_feed') ) %>
|
17
|
+
<% end -%>
|
18
|
+
|
19
|
+
|
20
|
+
<%= render 'search_header' %>
|
21
|
+
|
22
|
+
<h2 class="sr-only"><%= t('blacklight.search.search_results') %></h2>
|
23
|
+
|
24
|
+
<%- if @response.empty? %>
|
25
|
+
<%= render "zero_results" %>
|
26
|
+
<%- elsif render_grouped_response? %>
|
27
|
+
<%= render_grouped_document_index %>
|
28
|
+
<%- else %>
|
29
|
+
<%= render_document_index %>
|
30
|
+
<%- end %>
|
31
|
+
|
32
|
+
<%= render 'results_pagination' %>
|
33
|
+
|
34
|
+
</div>
|
@@ -1,18 +1,18 @@
|
|
1
1
|
<div class="btn-group">
|
2
|
-
<button class="btn btn-small" href="#"><i class="
|
3
|
-
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#"><span class="
|
2
|
+
<button class="btn btn-small" href="#"><i class="glyphicon glyphicon-wrench"></i> Select an action</button>
|
3
|
+
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-chevron-down"></span></button>
|
4
4
|
<ul class="dropdown-menu">
|
5
5
|
<li>
|
6
6
|
<%= button_for_remove_from_collection(gf, 'Remove from Collection') %>
|
7
7
|
</li>
|
8
8
|
<li>
|
9
|
-
<%= link_to raw('<i class="
|
9
|
+
<%= link_to raw('<i class="glyphicon glyphicon-link over"></i> Single-Use Link to File'), '#', class: "copypaste itemicon itemcode", title: "Single-Use Link to File", id: "copy_link_#{noid}" %>
|
10
10
|
</li>
|
11
11
|
<li>
|
12
|
-
<%= link_to raw('<i class="
|
12
|
+
<%= link_to raw('<i class="glyphicon glyphicon-pencil"></i> Edit File'), sufia.edit_generic_file_path(noid), class: 'itemicon itemedit', title: 'Edit File' %>
|
13
13
|
</li>
|
14
14
|
<li>
|
15
|
-
<%= link_to raw('<i class="
|
15
|
+
<%= link_to raw('<i class="glyphicon glyphicon-download-alt"></i> Download File'), sufia.download_path(noid), class: 'itemicon itemdownload', title: 'Download File', target: '_new' %>
|
16
16
|
</li>
|
17
17
|
<li>
|
18
18
|
<%= display_trophy_link(@user, noid) do |text| %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<li data-behavior="batch-edit-select-none" data-state="on"><a href="#"><i class="
|
1
|
+
<li data-behavior="batch-edit-select-none" data-state="on"><a href="#"><i class="glyphicon glyphicon-ok"></i> Select None</a></li>
|
2
2
|
<li data-behavior="batch-edit-select-page" data-state="off"><a href="#"><i class=""></i> Select Current Page</a></li>
|
3
3
|
<li><%= button_for_remove_selected_from_collection @collection %></li>
|