sufia 3.7.0 → 3.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/SUFIA_VERSION +1 -1
- data/app/controllers/concerns/sufia/users_controller_behavior.rb +1 -1
- data/app/controllers/static_controller.rb +13 -0
- data/app/views/advanced/_advanced_search_form.html.erb +2 -26
- data/app/views/catalog/_search_form.html.erb +7 -11
- data/app/views/catalog/_sort_and_per_page.html.erb +5 -6
- data/app/views/dashboard/_search_form.html.erb +5 -22
- data/app/views/dashboard/_sort_and_per_page.html.erb +4 -21
- data/app/views/static/mendeley.html.erb +1 -1
- data/app/views/static/zotero.html.erb +1 -1
- data/app/views/users/_search_form.html.erb +5 -5
- data/app/views/users/index.html.erb +1 -1
- data/spec/controllers/batch_controller_spec.rb +6 -9
- data/spec/controllers/dashboard_controller_spec.rb +5 -8
- data/spec/controllers/generic_files_controller_spec.rb +0 -2
- data/spec/controllers/static_controller_spec.rb +30 -0
- data/spec/controllers/users_controller_spec.rb +31 -0
- data/spec/views/users/_notify_number.html.erb_spec.rb +13 -0
- data/spec/views/users/index.html.erb_spec.rb +26 -0
- data/sufia-models/sufia-models.gemspec +1 -1
- metadata +10 -6
- data/spec/controllers/_sort_and_per_page.html.erb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d9ca86c363c0d4e38d76b587a487b97f675c016
|
4
|
+
data.tar.gz: d1a9151de4fa4bb651ddee3b1aabf246c167cc56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f444ca293e68574e34d8defb7b82d9d57d360d3a3526f58e7b42ab86da48f66551e7b1769ce778e573f83b5efcda300e1e1325e0bf0968eaf991c33a7416f91
|
7
|
+
data.tar.gz: d6ad98fbb7809d6e828c740de33085e486016716a4329439300d29441a0bbea3969f7de606eca80cba9307ae083ca85281bc32538f821854e72873a355ed9d2f
|
data/SUFIA_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.7.
|
1
|
+
3.7.1
|
@@ -17,7 +17,7 @@ module Sufia::UsersControllerBehavior
|
|
17
17
|
unless query.blank?
|
18
18
|
base = base.where("#{Devise.authentication_keys.first} like lower(?) OR display_name like lower(?)", query, query)
|
19
19
|
end
|
20
|
-
@users = base.order(sort_val).page(params[:page]).per(10)
|
20
|
+
@users = base.references(:trophies).order(sort_val).page(params[:page]).per(10)
|
21
21
|
|
22
22
|
respond_to do |format|
|
23
23
|
format.html
|
@@ -1,3 +1,16 @@
|
|
1
1
|
class StaticController < ApplicationController
|
2
2
|
rescue_from AbstractController::ActionNotFound, :with => :render_404
|
3
|
+
|
4
|
+
def zotero
|
5
|
+
respond_to do |format|
|
6
|
+
format.html
|
7
|
+
format.js { render :layout => false }
|
8
|
+
end
|
9
|
+
end
|
10
|
+
def mendeley
|
11
|
+
respond_to do |format|
|
12
|
+
format.html
|
13
|
+
format.js { render :layout => false }
|
14
|
+
end
|
15
|
+
end
|
3
16
|
end
|
@@ -1,22 +1,6 @@
|
|
1
|
-
<%#
|
2
|
-
Copyright © 2012 The Pennsylvania State University
|
3
|
-
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
you may not use this file except in compliance with the License.
|
6
|
-
You may obtain a copy of the License at
|
7
|
-
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
See the License for the specific language governing permissions and
|
14
|
-
limitations under the License.
|
15
|
-
%>
|
16
|
-
|
17
1
|
<%= form_tag catalog_index_path, :class => 'form-horizontal', :method => :get do %>
|
18
2
|
|
19
|
-
<%=
|
3
|
+
<%= render_hash_as_hidden_fields(params_for_search(advanced_search_context)) %>
|
20
4
|
|
21
5
|
<div>
|
22
6
|
|
@@ -32,14 +16,6 @@ limitations under the License.
|
|
32
16
|
<%= render 'advanced/advanced_search_fields' %>
|
33
17
|
</div>
|
34
18
|
</div>
|
35
|
-
<!--
|
36
|
-
<div class="limit_column column">
|
37
|
-
<div class="alert alert-info"><strong>AND</strong> have these attributes:</div>
|
38
|
-
<div>
|
39
|
-
<%# render 'advanced_search_facets' %>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
-->
|
43
19
|
</div>
|
44
20
|
|
45
21
|
<% unless (search_context_str = render_search_to_s( advanced_search_context)).blank? %>
|
@@ -50,7 +26,7 @@ limitations under the License.
|
|
50
26
|
<% end %>
|
51
27
|
|
52
28
|
|
53
|
-
<div class="form-actions"
|
29
|
+
<div class="form-actions">
|
54
30
|
<%= label_tag(:sort, "Sort results by") %>
|
55
31
|
<%= select_tag(:sort, options_for_select(sort_fields, h(params[:sort]))) %>
|
56
32
|
<%= hidden_field_tag(:search_field, blacklight_config.advanced_search[:url_key]) %>
|
@@ -2,15 +2,11 @@
|
|
2
2
|
<% q = params[:controller] == 'dashboard' ? nil : params[:q] %>
|
3
3
|
|
4
4
|
<%= form_tag catalog_index_path, :method => :get, :id => "search-form-header" do %>
|
5
|
-
<%=
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<%# link_to 'more options', params.merge(:controller=>"advanced", :action=>"index") , :class=>"advanced_search" if ! current_page?(advanced_path)%>
|
13
|
-
<%# link_to 'less options', :back , :class=>"advanced_search" if current_page?(advanced_path)%>
|
14
|
-
</div>
|
15
|
-
</div>
|
5
|
+
<%= render_hash_as_hidden_fields(params_for_search().except(:q, :search_field, :qt, :page, :utf8)) %>
|
6
|
+
<div class="controls">
|
7
|
+
<div class="input-append">
|
8
|
+
<label class="accessible-hidden"><%= t('sufia.search.form.q.label') %></label>
|
9
|
+
<%= text_field_tag :q, q, :class => "q span50", :id => "search-field-header", :placeholder => t('sufia.search.form.q.placeholder') %><button type="submit" class="btn btn-info" id="search-submit-header"><i class="icon-search"></i> Go</button>
|
10
|
+
</div>
|
11
|
+
</div>
|
16
12
|
<% end %>
|
@@ -1,16 +1,15 @@
|
|
1
1
|
<% unless @response.response['numFound'] < 2 %>
|
2
|
-
|
3
|
-
|
4
|
-
<div class="sorting">
|
2
|
+
<%= form_tag catalog_index_path, :method => :get, :class => "well form-inline" do %>
|
3
|
+
<div class="sorting">
|
5
4
|
<%= label_tag(:sort, "<strong>Sort by</strong> ".html_safe) %>
|
6
5
|
<%= select_tag(:sort, options_for_select(sort_fields, h(params[:sort])), :class => "input-medium") %>
|
7
6
|
|
8
7
|
<%= label_tag(:per_page) do %>
|
9
8
|
<strong>Show</strong> <%= select_tag(:per_page, options_for_select(['10', '20', '50', '100'], h(params[:per_page])), :title => "Number of results to display per page", :class => "input-small") %> per page
|
10
9
|
<% end %>
|
11
|
-
<%=
|
10
|
+
<%= render_hash_as_hidden_fields(params_for_search().except(:per_page, :sort, :utf8)) %>
|
12
11
|
<button class="btn btn-primary"><i class="icon-refresh"></i> Refresh</button>
|
13
12
|
|
14
|
-
|
15
|
-
|
13
|
+
</div>
|
14
|
+
<% end %>
|
16
15
|
<% end %>
|
@@ -1,26 +1,9 @@
|
|
1
|
-
<%#
|
2
|
-
Copyright © 2012 The Pennsylvania State University
|
3
|
-
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
you may not use this file except in compliance with the License.
|
6
|
-
You may obtain a copy of the License at
|
7
|
-
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
See the License for the specific language governing permissions and
|
14
|
-
limitations under the License.
|
15
|
-
%>
|
16
|
-
|
17
1
|
<div style="float: right;" >
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
<%=
|
23
|
-
<%# submit_tag 'Go', {:class=>'btn btn-primary', :id => "dashboard_submit"} %>
|
2
|
+
<%= form_tag sufia.dashboard_index_path, :method => :get, :class => "well form-search" do %>
|
3
|
+
<label class="accessible-hidden">Search My Dashboard</label>
|
4
|
+
<%= text_field_tag :q, params[:q], :class => "q", :placeholder => "Search My Dashboard", :size => '30', :type => "search", :id => "dashboard_search" %>
|
5
|
+
<%= hidden_field_tag :search_field, 'all_fields' %>
|
6
|
+
<%= render_hash_as_hidden_fields(params_for_search().except(:q, :search_field, :qt, :page, :utf8)) %>
|
24
7
|
<button type="submit" class="btn btn-primary" id="dashboard_submit">
|
25
8
|
<i class="icon-search"></i> Go
|
26
9
|
</button>
|
@@ -1,32 +1,15 @@
|
|
1
|
-
<%#
|
2
|
-
Copyright © 2012 The Pennsylvania State University
|
3
|
-
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
you may not use this file except in compliance with the License.
|
6
|
-
You may obtain a copy of the License at
|
7
|
-
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
See the License for the specific language governing permissions and
|
14
|
-
limitations under the License.
|
15
|
-
%>
|
16
|
-
|
17
1
|
<div class="batch-info">
|
18
|
-
|
19
|
-
|
2
|
+
<% session[:batch_edit_state] = "on" %>
|
3
|
+
<%=batch_delete%> <%=batch_edit_continue("Edit Selected") %>
|
20
4
|
<% unless @response.response['numFound'] < 2 %>
|
21
|
-
|
22
|
-
<%= form_tag params[:controller] == "folder" ? sufia.folder_index_path : sufia.dashboard_index_path, :method=>:get, :class=>'per_page form-inline' do %>
|
5
|
+
<%= form_tag sufia.dashboard_index_path, :method=>:get, :class=>'per_page form-inline' do %>
|
23
6
|
<%= label_tag(:sort, "<span>Sort By:</span>".html_safe) %>
|
24
7
|
<%= select_tag(:sort, options_for_select(sort_fields, h(params[:sort])), :class => "span15") %>
|
25
8
|
|
26
9
|
<%= label_tag(:per_page) do %>
|
27
10
|
Show <%= select_tag(:per_page, options_for_select(['10', '20', '50', '100'], h(params[:per_page])), :title => "Number of results to display per page", :class => "span10") %> per page
|
28
11
|
<% end %>
|
29
|
-
<%=
|
12
|
+
<%= render_hash_as_hidden_fields(params_for_search().except(:per_page, :sort, :utf8)) %>
|
30
13
|
|
31
14
|
<button class="btn btn-primary"><i class="icon-refresh"></i> Refresh</button>
|
32
15
|
<% end unless sort_fields.empty? %>
|
@@ -18,5 +18,5 @@ limitations under the License.
|
|
18
18
|
<p>
|
19
19
|
Exporting to Mendeley is supported via embedded metadata. If Mendeley
|
20
20
|
does not automatically pick up metadata for deposited files, please
|
21
|
-
report the issue via the <%= link_to 'Contact Form', contact_form_index_path %>.
|
21
|
+
report the issue via the <%= link_to 'Contact Form', sufia.contact_form_index_path %>.
|
22
22
|
</p>
|
@@ -18,5 +18,5 @@ limitations under the License.
|
|
18
18
|
<p>
|
19
19
|
Exporting to Zotero is supported via embedded metadata. If Zotero
|
20
20
|
does not automatically pick up metadata for deposited files, please
|
21
|
-
report the issue via the <%= link_to 'Contact Form', contact_form_index_path %>.
|
21
|
+
report the issue via the <%= link_to 'Contact Form', sufia.contact_form_index_path %>.
|
22
22
|
</p>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<div style="float: right;" >
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<%= form_tag sufia.profiles_path, :method => :get, :class => "well form-search" do %>
|
3
|
+
<label class="accessible-hidden">Search Users</label>
|
4
|
+
<%= text_field_tag :uq, params[:uq], :class => "q", :placeholder => "Search Users", :size => '30', :type => "search", :id => "user_search" %>
|
5
|
+
<%= hidden_field_tag :sort, params[:sort], :id => 'user_sort' %>
|
6
|
+
<%= render_hash_as_hidden_fields(params_for_search().except(:uq, :sort, :qt, :page, :utf8)) %>
|
7
7
|
<button type="submit" class="btn btn-primary" id="user_submit">
|
8
8
|
<i class="icon-search"></i> Go
|
9
9
|
</button>
|
@@ -39,15 +39,12 @@ describe BatchController do
|
|
39
39
|
Sufia.queue.should_receive(:push).with(s1).once
|
40
40
|
post :update, :id=>@batch.pid, "generic_file"=>{"read_groups_string"=>"", "read_users_string"=>"archivist1, archivist2", "tag"=>[""]}
|
41
41
|
end
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
flash[:notice].should_not be_empty
|
49
|
-
flash[:notice].should include("Your files are being processed")
|
50
|
-
end
|
42
|
+
it "should show flash messages" do
|
43
|
+
post :update, :id=>@batch.pid, "generic_file"=>{"read_groups_string"=>"","read_users_string"=>"archivist1, archivist2", "tag"=>[""]}
|
44
|
+
response.should redirect_to @routes.url_helpers.dashboard_index_path
|
45
|
+
flash[:notice].should_not be_nil
|
46
|
+
flash[:notice].should_not be_empty
|
47
|
+
flash[:notice].should include("Your files are being processed")
|
51
48
|
end
|
52
49
|
|
53
50
|
describe "when user has edit permissions on a file" do
|
@@ -66,17 +66,14 @@ describe DashboardController do
|
|
66
66
|
response.should render_template('dashboard/index')
|
67
67
|
end
|
68
68
|
it "should return an array of documents I can edit" do
|
69
|
-
editable_docs_response =
|
69
|
+
editable_docs_response = ActiveFedora::SolrService.instance.conn.get "select", :params=>{:fq=>["edit_access_group_ssim:public OR edit_access_person_ssim:#{@user.user_key}"]}
|
70
70
|
assigns(:result_set_size).should eql(editable_docs_response["response"]["numFound"])
|
71
71
|
assigns(:document_list).each {|doc| doc.should be_kind_of SolrDocument}
|
72
72
|
end
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
response.should be_success
|
78
|
-
response.should render_template('dashboard/index')
|
79
|
-
end
|
73
|
+
it "should paginate" do
|
74
|
+
xhr :get, :index, per_page: 2
|
75
|
+
response.should be_success
|
76
|
+
response.should render_template('dashboard/index')
|
80
77
|
end
|
81
78
|
end
|
82
79
|
end
|
@@ -438,7 +438,6 @@ describe GenericFilesController do
|
|
438
438
|
flash[:alert].should be_nil
|
439
439
|
end
|
440
440
|
describe "failing audit" do
|
441
|
-
render_views
|
442
441
|
before do
|
443
442
|
ActiveFedora::RelsExtDatastream.any_instance.stub(:dsChecksumValid).and_return(false)
|
444
443
|
@archivist = FactoryGirl.find_or_create(:archivist)
|
@@ -449,7 +448,6 @@ describe GenericFilesController do
|
|
449
448
|
AuditJob.new(@file.pid, @ds[0], @ds[1].versionID).run
|
450
449
|
get :show, id:"test5"
|
451
450
|
assigns[:notify_number].should == 1
|
452
|
-
response.body.should include('<span id="notify_number" class="overlay"> 1</span>') # notify should be 1 for failing job
|
453
451
|
@archivist.mailbox.inbox[0].messages[0].subject.should == "Failing Audit Run"
|
454
452
|
end
|
455
453
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe StaticController do
|
4
|
+
routes { Sufia::Engine.routes }
|
5
|
+
describe "#mendeley" do
|
6
|
+
it "renders page" do
|
7
|
+
get "mendeley"
|
8
|
+
response.should be_success
|
9
|
+
response.should render_template "layouts/homepage"
|
10
|
+
end
|
11
|
+
it "renders no layout with javascript" do
|
12
|
+
get "mendeley" ,{format:"js"}
|
13
|
+
response.should be_success
|
14
|
+
response.should_not render_template "layouts/homepage"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "#zotero" do
|
19
|
+
it "renders page" do
|
20
|
+
get "zotero"
|
21
|
+
response.should be_success
|
22
|
+
response.should render_template "layouts/homepage"
|
23
|
+
end
|
24
|
+
it "renders no layout with javascript" do
|
25
|
+
get "zotero" ,{format:"js"}
|
26
|
+
response.should be_success
|
27
|
+
response.should_not render_template "layouts/homepage"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -65,6 +65,37 @@ describe UsersController do
|
|
65
65
|
json.map{|u| u['text']}.should include(@u1.email, @u2.email)
|
66
66
|
end
|
67
67
|
end
|
68
|
+
describe "query users" do
|
69
|
+
it "finds the expected user via email" do
|
70
|
+
get :index, uq: @u1.email
|
71
|
+
assigns[:users].should include(@u1)
|
72
|
+
assigns[:users].should_not include(@u2)
|
73
|
+
response.should be_successful
|
74
|
+
end
|
75
|
+
it "finds the expected user via display name" do
|
76
|
+
@u1.display_name = "Dr. Curator"
|
77
|
+
@u1.save
|
78
|
+
@u2.display_name = "Jr. Architect"
|
79
|
+
@u2.save
|
80
|
+
User.any_instance.stub(:display_name).and_return("Dr. Curator", "Jr.Archivist")
|
81
|
+
get :index, uq: @u1.display_name
|
82
|
+
assigns[:users].should include(@u1)
|
83
|
+
assigns[:users].should_not include(@u2)
|
84
|
+
response.should be_successful
|
85
|
+
@u1.display_name = nil
|
86
|
+
@u1.save
|
87
|
+
@u2.display_name = nil
|
88
|
+
@u2.save
|
89
|
+
end
|
90
|
+
it "uses the base query" do
|
91
|
+
u3 = FactoryGirl.find_or_create(:user)
|
92
|
+
controller.stub(:base_query).and_return(['email == "jilluser@example.com"'])
|
93
|
+
get :index
|
94
|
+
assigns[:users].should include(u3)
|
95
|
+
assigns[:users].should_not include(@u1, @u2)
|
96
|
+
u3.destroy
|
97
|
+
end
|
98
|
+
end
|
68
99
|
end
|
69
100
|
describe "#edit" do
|
70
101
|
it "show edit form when user edits own profile" do
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'users/_notify_number.html.erb' do
|
4
|
+
|
5
|
+
it "should draw user list" do
|
6
|
+
assign :notify_number, 8
|
7
|
+
render
|
8
|
+
page = Capybara::Node::Simple.new(rendered)
|
9
|
+
expect(page).to have_selector("span#notify_number.overlay", text: ' 8')
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'users/index.html.erb' do
|
4
|
+
|
5
|
+
let(:join_date) { 5.days.ago }
|
6
|
+
before do
|
7
|
+
users = []
|
8
|
+
(1..25).each {|i| users << stub_model(User, name: "name#{i}", user_key: "user#{i}", created_at: join_date)}
|
9
|
+
User.stub_chain(:all).and_return(users)
|
10
|
+
relation = User.all
|
11
|
+
allow(relation).to receive(:limit_value).and_return(10)
|
12
|
+
allow(relation).to receive(:current_page).and_return(1)
|
13
|
+
allow(relation).to receive(:total_pages).and_return(3)
|
14
|
+
assign(:users, relation)
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should draw user list" do
|
18
|
+
render
|
19
|
+
page = Capybara::Node::Simple.new(rendered)
|
20
|
+
expect(page).to have_content("ScholarSphere Users")
|
21
|
+
(1..10).each do |i|
|
22
|
+
expect(page).to have_content("user#{i}")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency 'activeresource' # No longer a dependency of rails 4.0
|
31
31
|
|
32
32
|
spec.add_dependency "blacklight", "~> 4.7.0"
|
33
|
-
spec.add_dependency "hydra-head", "~> 6.
|
33
|
+
spec.add_dependency "hydra-head", "~> 6.5.0"
|
34
34
|
spec.add_dependency "rubydora", "~> 1.7.0"
|
35
35
|
spec.add_dependency 'nest', '~> 1.1.1'
|
36
36
|
spec.add_dependency 'resque', '~> 1.23'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sufia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
4
|
+
version: 3.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sufia-models
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.7.
|
19
|
+
version: 3.7.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.7.
|
26
|
+
version: 3.7.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: blacklight_advanced_search
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -502,7 +502,6 @@ files:
|
|
502
502
|
- solr_conf/solr.xml
|
503
503
|
- spec/.gitignore
|
504
504
|
- spec/active_fedora/unsaved_digital_object_spec.rb
|
505
|
-
- spec/controllers/_sort_and_per_page.html.erb
|
506
505
|
- spec/controllers/authorities_controller_spec.rb
|
507
506
|
- spec/controllers/batch_controller_spec.rb
|
508
507
|
- spec/controllers/batch_edits_controller_spec.rb
|
@@ -513,6 +512,7 @@ files:
|
|
513
512
|
- spec/controllers/mailbox_controller_spec.rb
|
514
513
|
- spec/controllers/single_use_links_controller_spec.rb
|
515
514
|
- spec/controllers/single_use_links_viewer_controller_spec.rb
|
515
|
+
- spec/controllers/static_controller_spec.rb
|
516
516
|
- spec/controllers/users_controller_spec.rb
|
517
517
|
- spec/factories/checksum_audit_logs.rb
|
518
518
|
- spec/factories/generic_files.rb
|
@@ -592,6 +592,8 @@ files:
|
|
592
592
|
- spec/views/dashboard/facet_limit.html.erb_spec.rb
|
593
593
|
- spec/views/dashboard/index_partials/_thumbnail_display.html.erb_spec.rb
|
594
594
|
- spec/views/generic_file/edit.html.erb_spec.rb
|
595
|
+
- spec/views/users/_notify_number.html.erb_spec.rb
|
596
|
+
- spec/views/users/index.html.erb_spec.rb
|
595
597
|
- spec/views/users/show.html.erb_spec.rb
|
596
598
|
- sufia-models/.gitignore
|
597
599
|
- sufia-models/Gemfile
|
@@ -741,7 +743,6 @@ summary: Sufia was extracted from ScholarSphere developed by Penn State Universi
|
|
741
743
|
test_files:
|
742
744
|
- spec/.gitignore
|
743
745
|
- spec/active_fedora/unsaved_digital_object_spec.rb
|
744
|
-
- spec/controllers/_sort_and_per_page.html.erb
|
745
746
|
- spec/controllers/authorities_controller_spec.rb
|
746
747
|
- spec/controllers/batch_controller_spec.rb
|
747
748
|
- spec/controllers/batch_edits_controller_spec.rb
|
@@ -752,6 +753,7 @@ test_files:
|
|
752
753
|
- spec/controllers/mailbox_controller_spec.rb
|
753
754
|
- spec/controllers/single_use_links_controller_spec.rb
|
754
755
|
- spec/controllers/single_use_links_viewer_controller_spec.rb
|
756
|
+
- spec/controllers/static_controller_spec.rb
|
755
757
|
- spec/controllers/users_controller_spec.rb
|
756
758
|
- spec/factories/checksum_audit_logs.rb
|
757
759
|
- spec/factories/generic_files.rb
|
@@ -831,4 +833,6 @@ test_files:
|
|
831
833
|
- spec/views/dashboard/facet_limit.html.erb_spec.rb
|
832
834
|
- spec/views/dashboard/index_partials/_thumbnail_display.html.erb_spec.rb
|
833
835
|
- spec/views/generic_file/edit.html.erb_spec.rb
|
836
|
+
- spec/views/users/_notify_number.html.erb_spec.rb
|
837
|
+
- spec/views/users/index.html.erb_spec.rb
|
834
838
|
- spec/views/users/show.html.erb_spec.rb
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<% unless @response.response['numFound'] < 2 %>
|
2
|
-
<%-# 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 -%>
|
3
|
-
<%= form_tag params[:controller] == "folder" ? folder_index_path : catalog_index_path, :method => :get, :class => "well form-inline" do %>
|
4
|
-
<div class="sorting">
|
5
|
-
<%= label_tag(:sort, "<strong>Sort by</strong> ".html_safe) %>
|
6
|
-
<%= select_tag(:sort, options_for_select(sort_fields, h(params[:sort])), :class => "input-medium") %>
|
7
|
-
|
8
|
-
<%= label_tag(:per_page) do %>
|
9
|
-
<strong>Show</strong> <%= select_tag(:per_page, options_for_select(['10', '20', '50', '100'], h(params[:per_page])), :title => "Number of results to display per page", :class => "input-small") %> per page
|
10
|
-
<% end %>
|
11
|
-
<%= search_as_hidden_fields(:omit_keys => [:per_page, :sort]) %>
|
12
|
-
<button class="btn btn-primary"><i class="icon-refresh"></i> Update</button>
|
13
|
-
|
14
|
-
</div>
|
15
|
-
<% end %>
|
16
|
-
<% end %>
|