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.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -1
  3. data/Gemfile +1 -1
  4. data/History.md +325 -0
  5. data/RELEASING.md +1 -0
  6. data/SUFIA_VERSION +1 -1
  7. data/app/assets/javascripts/sufia.js +2 -2
  8. data/app/assets/javascripts/sufia/batch_edit.js +2 -2
  9. data/app/assets/javascripts/sufia/batch_select_all.js +7 -7
  10. data/app/assets/stylesheets/{dashboard.css.scss → file-listing.css.scss} +7 -1
  11. data/app/assets/stylesheets/styles.css.scss +23 -0
  12. data/app/assets/stylesheets/sufia.css.scss +5 -1
  13. data/app/controllers/concerns/sufia/catalog.rb +4 -4
  14. data/app/controllers/concerns/sufia/controller.rb +0 -4
  15. data/app/controllers/concerns/sufia/my_controller_behavior.rb +1 -5
  16. data/app/controllers/my/collections_controller.rb +7 -0
  17. data/app/controllers/my/files_controller.rb +7 -0
  18. data/app/controllers/my/highlights_controller.rb +7 -0
  19. data/app/controllers/my/shares_controller.rb +7 -0
  20. data/app/helpers/sufia/records_helper_behavior.rb +1 -1
  21. data/app/helpers/sufia/sufia_helper_behavior.rb +2 -2
  22. data/app/models/concerns/sufia/solr_document_behavior.rb +10 -0
  23. data/app/views/_user_util_links.html.erb +1 -1
  24. data/app/views/advanced/index.html.erb +10 -13
  25. data/app/views/batch/_edit.js.erb +15 -0
  26. data/app/views/batch/_metadata.html.erb +1 -1
  27. data/app/views/batch/edit.html.erb +10 -25
  28. data/app/views/batch_edits/_batch_edits_actions.html.erb +1 -1
  29. data/app/views/batch_edits/_check_all.html.erb +1 -1
  30. data/app/views/batch_edits/edit.html.erb +3 -3
  31. data/app/views/catalog/_document_list.html.erb +6 -1
  32. data/app/views/catalog/index.html.erb +34 -21
  33. data/app/views/collections/_action_menu.html.erb +5 -5
  34. data/app/views/collections/_batch_edits_actions.html.erb +1 -1
  35. data/app/views/collections/_collection.html.erb +36 -0
  36. data/app/views/collections/_document_list.html.erb +2 -2
  37. data/app/views/collections/_edit_descriptions.html.erb +1 -1
  38. data/app/views/collections/_form.html.erb +11 -8
  39. data/app/views/collections/_search_collection_dashboard_form.html.erb +1 -1
  40. data/app/views/collections/_sort_and_per_page.html.erb +1 -1
  41. data/app/views/dashboard/index.html.erb +1 -1
  42. data/app/views/generic_files/_descriptions.html.erb +1 -1
  43. data/app/views/generic_files/_edit.js.erb +22 -0
  44. data/app/views/generic_files/_extra_fields_modal.html.erb +18 -14
  45. data/app/views/generic_files/_generic_file.html.erb +36 -0
  46. data/app/views/generic_files/_media_display.html.erb +4 -0
  47. data/app/views/generic_files/_permission.html.erb +1 -1
  48. data/app/views/generic_files/_permission_form.html.erb +40 -36
  49. data/app/views/generic_files/_rights_modal.html.erb +37 -33
  50. data/app/views/generic_files/edit.html.erb +13 -30
  51. data/app/views/generic_files/new.html.erb +3 -3
  52. data/app/views/generic_files/show.html.erb +3 -7
  53. data/app/views/generic_files/stats.html.erb +1 -1
  54. data/app/views/generic_files/upload/_form_fields.html.erb +4 -4
  55. data/app/views/generic_files/upload/_local_file_import_chooser.html.erb +2 -2
  56. data/app/views/generic_files/upload/_script_templates.html.erb +2 -2
  57. data/app/views/homepage/_home_content.html.erb +2 -2
  58. data/app/views/homepage/_home_header.html.erb +1 -1
  59. data/app/views/homepage/_sortable_featured.html.erb +1 -1
  60. data/app/views/layouts/_head_tag_content.html.erb +1 -10
  61. data/app/views/layouts/error.html.erb +0 -9
  62. data/app/views/layouts/homepage.html.erb +1 -1
  63. data/app/views/layouts/sufia-dashboard.html.erb +6 -6
  64. data/app/views/layouts/sufia-one-column.html.erb +2 -2
  65. data/app/views/layouts/sufia-two-column.html.erb +2 -2
  66. data/app/views/mailbox/_notifications.html.erb +1 -1
  67. data/app/views/mailbox/index.html.erb +1 -1
  68. data/app/views/my/_batch_edits_actions.html.erb +1 -1
  69. data/app/views/my/_collection_action_menu.html.erb +4 -4
  70. data/app/views/my/_did_you_mean.html.erb +2 -7
  71. data/app/views/my/_document_list.html.erb +1 -1
  72. data/app/views/my/_facet_layout.html.erb +10 -9
  73. data/app/views/my/_facet_limit.html.erb +9 -9
  74. data/app/views/my/_facet_pagination.html.erb +14 -17
  75. data/app/views/my/_facet_selected.html.erb +1 -1
  76. data/app/views/my/_facets.html.erb +20 -7
  77. data/app/views/my/_index_partials/_default_group.html.erb +4 -4
  78. data/app/views/my/_index_partials/_list_collections.html.erb +1 -1
  79. data/app/views/my/_index_partials/_list_files.html.erb +2 -2
  80. data/app/views/my/_results_pagination.html.erb +7 -4
  81. data/app/views/my/_sort_and_per_page.html.erb +5 -8
  82. data/app/views/my/facet.html.erb +2 -5
  83. data/app/views/my/index.html.erb +1 -1
  84. data/app/views/single_use_links/new_download.html.erb +1 -1
  85. data/app/views/users/_contributions.html.erb +3 -3
  86. data/app/views/users/_profile_tabs.html.erb +3 -3
  87. data/app/views/users/_social_media_info.html.erb +3 -3
  88. data/app/views/users/_trophy_edit.html.erb +2 -2
  89. data/app/views/users/_user_info.html.erb +4 -4
  90. data/app/views/users/edit.html.erb +5 -10
  91. data/app/views/users/show.html.erb +16 -21
  92. data/config/locales/sufia.en.yml +7 -6
  93. data/config/routes.rb +25 -32
  94. data/lib/generators/sufia/sufia_generator.rb +1 -1
  95. data/lib/generators/sufia/upgrade400_generator.rb +87 -0
  96. data/lib/sufia/version.rb +1 -1
  97. data/spec/controllers/catalog_controller_spec.rb +22 -0
  98. data/spec/features/browse_dashboard_files_spec.rb +22 -11
  99. data/spec/features/catalog_search_spec.rb +99 -0
  100. data/spec/features/collection_spec.rb +1 -1
  101. data/spec/helpers/records_helper_spec.rb +1 -1
  102. data/spec/helpers/sufia_helper_spec.rb +4 -3
  103. data/spec/models/generic_file_spec.rb +7 -3
  104. data/spec/models/solr_document_spec.rb +27 -9
  105. data/spec/services/noid_spec.rb +16 -0
  106. data/spec/spec_helper.rb +1 -1
  107. data/spec/views/batch/edit.html.erb_spec.rb +34 -0
  108. data/spec/views/my/facet.html.erb_spec.rb +34 -0
  109. data/sufia-models/app/models/concerns/sufia/generic_file/mime_types.rb +1 -1
  110. data/sufia-models/app/services/sufia/noid.rb +2 -5
  111. data/sufia-models/lib/generators/sufia/models/upgrade400_generator.rb +78 -0
  112. data/sufia-models/lib/sufia/models/engine.rb +1 -1
  113. data/sufia-models/lib/sufia/models/version.rb +1 -1
  114. data/sufia-models/sufia-models.gemspec +3 -3
  115. data/sufia.gemspec +1 -1
  116. data/tasks/sufia-dev.rake +1 -1
  117. metadata +24 -54
  118. data/.gitmodules +0 -4
  119. data/Releasing_sufia.md +0 -6
  120. data/UpgradeGuide.md +0 -3
  121. data/app/views/catalog/_bookmark_control.html.erb +0 -24
  122. data/app/views/catalog/_citation.html.erb +0 -11
  123. data/app/views/catalog/_constraints.html.erb +0 -6
  124. data/app/views/catalog/_constraints_element.html.erb +0 -20
  125. data/app/views/catalog/_did_you_mean.html.erb +0 -10
  126. data/app/views/catalog/_document.html.erb +0 -19
  127. data/app/views/catalog/_email_form.html.erb +0 -11
  128. data/app/views/catalog/_facet_layout.html.erb +0 -12
  129. data/app/views/catalog/_facet_selected.html.erb +0 -12
  130. data/app/views/catalog/_facets.html.erb +0 -7
  131. data/app/views/catalog/_folder_control.html.erb +0 -11
  132. data/app/views/catalog/_index_default.html.erb +0 -11
  133. data/app/views/catalog/_index_header_default.html.erb +0 -20
  134. data/app/views/catalog/_index_partials/_default_group.html.erb +0 -7
  135. data/app/views/catalog/_index_partials/_list_files.html.erb +0 -37
  136. data/app/views/catalog/_marc_view.html.erb +0 -33
  137. data/app/views/catalog/_opensearch_response_metadata.html.erb +0 -2
  138. data/app/views/catalog/_previous_next_doc.html.erb +0 -6
  139. data/app/views/catalog/_refworks_form.html.erb +0 -7
  140. data/app/views/catalog/_results_pagination.html.erb +0 -6
  141. data/app/views/catalog/_show_default.html.erb +0 -9
  142. data/app/views/catalog/_show_sidebar.html.erb +0 -1
  143. data/app/views/catalog/_show_tools.html.erb +0 -46
  144. data/app/views/catalog/_sms_form.html.erb +0 -21
  145. data/app/views/catalog/_sort_and_per_page.html.erb +0 -9
  146. data/app/views/catalog/about.html.erb +0 -0
  147. data/app/views/catalog/citation.html.erb +0 -1
  148. data/app/views/catalog/email.erb +0 -1
  149. data/app/views/catalog/endnote.endnote.erb +0 -1
  150. data/app/views/catalog/index.atom.builder +0 -109
  151. data/app/views/catalog/index.rss.builder +0 -19
  152. data/app/views/catalog/librarian_view.html.erb +0 -3
  153. data/app/views/catalog/opensearch.json.erb +0 -0
  154. data/app/views/catalog/opensearch.xml.builder +0 -10
  155. data/app/views/catalog/send_email_record.erb +0 -0
  156. data/app/views/catalog/show.endnote.erb +0 -1
  157. data/app/views/catalog/show.html.erb +0 -40
  158. data/app/views/catalog/show.refworks.erb +0 -1
  159. data/app/views/catalog/sms.erb +0 -1
  160. data/app/views/collections/_button_for_creating_empty_collection.html.erb +0 -3
  161. 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 dashboard
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 += [:only_generic_files]
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 only_generic_files(solr_parameters, user_parameters)
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)}:\"info:fedora/afmodel:GenericFile\""
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
@@ -41,10 +41,6 @@ module Sufia::Controller
41
41
  end
42
42
  end
43
43
 
44
- def search_layout
45
- "sufia-two-column"
46
- end
47
-
48
44
  protected
49
45
 
50
46
  ### Hook which is overridden in Sufia::Ldap::Controller
@@ -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"]
@@ -16,5 +16,12 @@ module My
16
16
  super
17
17
  @selected_tab = :collections
18
18
  end
19
+
20
+ protected
21
+
22
+ def search_action_url *args
23
+ sufia.dashboard_collections_url *args
24
+ end
25
+
19
26
  end
20
27
  end
@@ -10,5 +10,12 @@ module My
10
10
  super
11
11
  @selected_tab = :files
12
12
  end
13
+
14
+ protected
15
+
16
+ def search_action_url *args
17
+ sufia.dashboard_files_url *args
18
+ end
19
+
13
20
  end
14
21
  end
@@ -17,5 +17,12 @@ module My
17
17
  super
18
18
  @selected_tab = :highlighted
19
19
  end
20
+
21
+ protected
22
+
23
+ def search_action_url *args
24
+ sufia.dashboard_highlights_url *args
25
+ end
26
+
20
27
  end
21
28
  end
@@ -16,5 +16,12 @@ module My
16
16
  super
17
17
  @selected_tab = :shared
18
18
  end
19
+
20
+ protected
21
+
22
+ def search_action_url *args
23
+ sufia.dashboard_shares_url *args
24
+ end
25
+
19
26
  end
20
27
  end
@@ -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-large"
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='icon-external-link'></i>&nbsp;#{value if showLink}<br />"
72
+ "<i class='glyphicon glyphicon-new-window'></i>&nbsp;#{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-signout"></span> log out'), destroy_user_session_path, id: 'logout_nav_link' %></li>
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="icon-pushpin"></i> Search tips</h2>
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="icon-caret-right"></i> Select "match all" to require all fields.</li>
15
- <li><i class="icon-caret-right"></i> Select "match any" to find at least one field.</li>
16
- <li><i class="icon-caret-right"></i> Combine keywords and attributes to find specific items.</li>
17
- <li><i class="icon-caret-right"></i> Use quotation marks to search as a phrase. </li>
18
- <li><i class="icon-caret-right"></i> Use "+" before a term to make it required. (Otherwise results matching only some of your terms may be included).</li>
19
- <li><i class="icon-caret-right"></i> Use "-" before a word or phrase to exclude. </li>
20
- <li><i class="icon-caret-right"></i> Use "OR", "AND", and "NOT" to create complex Boolean logic. You can use parentheses in your complex expressions.</li>
21
- <li><i class="icon-caret-right"></i> Truncation and wildcards are not supported - word-stemming is done automatically. </li>
22
- <li><i class="icon-caret-right"></i> Truncation and wildcards are not supported - word-stemming is done automatically. </li>
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="icon-info-sign"></i> Filename will be the default title. Please provide a more meaningful title, and filenames will still be preserved by the system.
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
- <% content_for :local_js do %>
2
- if (navigator.userAgent.match("MSIE")){
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
- <br />
24
- <div class="alert">The information you provide for Title will be applied to the corresponding file only; however all other
25
- information you provide will be applied <em>to the entire batch of files</em> you have just deposited into <%= t('sufia.product_name') %>.
26
- You may edit individual files from <%= link_to "<i class='icon-dashboard'></i> #{t('sufia.bread_crumb.file_list')}".html_safe, sufia.dashboard_files_path %> once
27
- this step is finished.
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
- <%= button_tag '<i class="icon-save"></i> Save'.html_safe, type: 'submit', class: 'btn-primary btn-large', onclick: "confirmation_needed = false;", id: "upload_submit", name: "update_permission" %>
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="icon-ok"></i> Select ABC</a></li>
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="icon-cog" title="click for selection options"></span></a>
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="icon-tags"></i> Descriptions</a></li>
13
- <li id="edit_permissions_link"><a href="#permissions_display" data-toggle="tab"><i class="icon-key"></i> Permissions</a></li>
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) %>&nbsp;<i class="toggle icon-chevron-right grey"></i>
24
+ <%= get_label(term) %>&nbsp;<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
- <%= render partial: 'catalog/_index_partials/default_group', locals: { docs: @response.docs.map { |x| SolrDocument.new(x) }, facet_name: nil, facet_value: nil } %>
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
- <% content_for :sidebar do %>
2
- <%= render partial: 'facets' %>
3
- <% end %>
4
-
5
- <% @page_title = application_name + " Search Results" %>
6
-
7
- <h3>Search Results</h3>
8
- <% if query_has_constraints? %>
9
- <div class="alert alert-info">
10
- <div class="pull-right">
11
- <%=link_to t('blacklight.search.start_over'), start_over_path, class: "catalog_startOverLink btn btn-sm btn-text", id: "startOverLink" %>
12
- </div>
13
- <i class="icon-search icon-large"></i> You searched for: <strong><%= render_constraints(params) %></strong></div>
14
- </div>
15
- <% end %>
16
- <%= render 'did_you_mean' %>
17
- <%= render 'facet_selected' %>
18
- <%= render 'sort_and_per_page' %>
19
- <%= render 'results_pagination' %>
20
- <%= render_document_index %>
21
- <%= render 'results_pagination' %>
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="icon-wrench"></i> Select an action</button>
3
- <button class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#"><span class="icon-caret-down"></span></button>
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="icon-link over"></i> Single-Use Link to File'), '#', class: "copypaste itemicon itemcode", title: "Single-Use Link to File", id: "copy_link_#{noid}" %>
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="icon-pencil"></i> Edit File'), sufia.edit_generic_file_path(noid), class: 'itemicon itemedit', title: 'Edit File' %>
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="icon-download-alt"></i> Download File'), sufia.download_path(noid), class: 'itemicon itemdownload', title: 'Download File', target: '_new' %>
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="icon-ok"></i> Select None</a></li>
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>