hydra-head 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hydra-head (3.1.0.pre2)
4
+ hydra-head (3.1.0)
5
5
  RedCloth (= 4.2.3)
6
6
  active-fedora (~> 3.1.1)
7
7
  blacklight (= 3.0.0)
@@ -9,7 +9,7 @@ PATH
9
9
  builder
10
10
  columnize
11
11
  crack
12
- curb
12
+ curb (= 0.7.15)
13
13
  database_cleaner
14
14
  diff-lcs
15
15
  facets (= 2.8.4)
@@ -120,7 +120,7 @@ GEM
120
120
  capybara (>= 1.1.1)
121
121
  cucumber (>= 1.1.0)
122
122
  nokogiri (>= 1.5.0)
123
- curb (0.7.16)
123
+ curb (0.7.15)
124
124
  daemons (1.1.4)
125
125
  database_cleaner (0.6.7)
126
126
  diff-lcs (1.1.3)
data/HISTORY.textile CHANGED
@@ -1,3 +1,9 @@
1
+ h3. 3.1.1
2
+ * Fixed bug where selected facet was not html_safe
3
+ * Fixed document_list, called when sorting by object_type_facet
4
+ * Don't issue two notice messags when saving document.
5
+
6
+
1
7
  h3. 3.1.0
2
8
  * Updated to ActiveFedora 3.1.1
3
9
  * Update rake tasks to leverage jettywrapper
@@ -72,9 +72,7 @@ module Hydra
72
72
 
73
73
  # Removing the [remove] link from the default selected facet display
74
74
  def render_selected_facet_value(facet_solr_field, item)
75
- '<span class="selected">' +
76
- render_facet_value(facet_solr_field, item, :suppress_link => true) +
77
- '</span>'
75
+ content_tag(:span, render_facet_value(facet_solr_field, item, :suppress_link => true), :class => "selected")
78
76
  end
79
77
 
80
78
 
@@ -2,10 +2,10 @@
2
2
  <div id="documents">
3
3
  <% facet_name = grouping_facet %>
4
4
  <%- if facet_name -%>
5
- <%- @response.docs.group_by {|d| d.get(facet_name)}.each do |grouping| -%>
5
+ <%- @response.docs.group_by {|d| d[facet_name]}.each do |grouping| -%>
6
6
  <%= render :partial => 'catalog/_index_partials/default_group', :locals => {:docs => grouping[1], :facet_name => facet_name, :facet_value => grouping[0].to_s} %>
7
7
  <%- end -%>
8
8
  <%- else -%>
9
9
  <%= render :partial => 'catalog/_index_partials/default_group', :locals => {:docs => @response.docs, :facet_name => nil, :facet_value => nil} %>
10
10
  <%- end -%>
11
- </div>
11
+ </div>
data/hydra-head.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.add_dependency 'builder'
19
19
  s.add_dependency 'columnize'
20
20
  s.add_dependency 'crack'
21
- s.add_dependency 'curb'
21
+ s.add_dependency 'curb', '0.7.15' ##Locked here because centos 5.2 (Hudson) doesn't support curl 7.16
22
22
  s.add_dependency 'database_cleaner'
23
23
  s.add_dependency 'diff-lcs'
24
24
  s.add_dependency 'facets', '2.8.4'
@@ -1,4 +1,4 @@
1
1
  module HydraHead
2
- VERSION = "3.1.0"
2
+ VERSION = "3.1.1"
3
3
  end
4
4
 
@@ -48,7 +48,6 @@ module Hydra::SubmissionWorkflow
48
48
  return_params[:new_asset] = true
49
49
  end
50
50
  if params[:wf_step] == last_step_in_workflow or params.has_key?(:finish)
51
- flash[:notice] << "<br/>Your object has been saved and you have been redirected to the display view."
52
51
  return_params[:viewing_context] = "browse"
53
52
  return_params[:action] = "show"
54
53
  return_params[:wf_step] = nil
@@ -134,4 +133,4 @@ module Hydra::SubmissionWorkflow
134
133
  Hydra.config[:submission_workflow]
135
134
  end
136
135
 
137
- end
136
+ end
@@ -50,7 +50,7 @@ Feature: Edit a ModsAsset object
50
50
  When I am on the edit additional_info page for hydrangea:fixture_mods_article1
51
51
  When I press "Save and Finish"
52
52
  Then I should see "Switch to edit view"
53
- And I should see "Your object has been saved"
53
+ And I should see "Your changes have been saved"
54
54
 
55
55
  Scenario: html5 valid
56
56
  Given I am logged in as "archivist1@example.com"
@@ -18,6 +18,15 @@ describe BlacklightHelper do
18
18
  helper.document_partial_name('has_model_s' => ["info:fedora/hull-cModel:genericContent"]).should == "generic_contents"
19
19
  end
20
20
  end
21
+ describe "render_selected_facet_value" do
22
+ it "should be html_safe and not have the remove link" do
23
+ item = stub("item", :value=>'two', :hits=>9)
24
+
25
+ ret_val = helper.render_selected_facet_value("one", item)
26
+ ret_val.should == "<span class=\"selected\">two (9)</span>"
27
+ ret_val.should be_html_safe
28
+ end
29
+ end
21
30
  describe "render_head_content" do
22
31
  before (:each) do
23
32
  helper.expects(:content_for).with(:head).returns("My added content")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-head
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 1
9
- - 0
10
- version: 3.1.0
9
+ - 1
10
+ version: 3.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Zumwalt, Bess Sadler, Julie Meloni, Naomi Dushay, Jessie Keck, John Scofield, Justin Coyne & many more. See https://github.com/projecthydra/hydra-head/contributors
@@ -114,12 +114,14 @@ dependencies:
114
114
  requirement: &id007 !ruby/object:Gem::Requirement
115
115
  none: false
116
116
  requirements:
117
- - - ">="
117
+ - - "="
118
118
  - !ruby/object:Gem::Version
119
- hash: 3
119
+ hash: 29
120
120
  segments:
121
121
  - 0
122
- version: "0"
122
+ - 7
123
+ - 15
124
+ version: 0.7.15
123
125
  type: :runtime
124
126
  version_requirements: *id007
125
127
  - !ruby/object:Gem::Dependency
@@ -1152,7 +1154,6 @@ files:
1152
1154
  - vendor/cache/crack-0.3.1.gem
1153
1155
  - vendor/cache/cucumber-1.1.0.gem
1154
1156
  - vendor/cache/cucumber-rails-1.1.1.gem
1155
- - vendor/cache/curb-0.7.16.gem
1156
1157
  - vendor/cache/daemons-1.1.4.gem
1157
1158
  - vendor/cache/database_cleaner-0.6.7.gem
1158
1159
  - vendor/cache/diff-lcs-1.1.3.gem
Binary file