Skip to content

Commit

Permalink
Merge pull request #545 from pulibrary/breadcrumbs-without-html
Browse files Browse the repository at this point in the history
Fixing display problems
  • Loading branch information
christinach committed Mar 5, 2019
2 parents 62df2d1 + ecde2d6 commit ca65378
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ li[dir=rtl] {
.search-query-form {
margin-top: 7px;
.btn-primary {
height: 35px;
margin-top: -1px;
height: 34px;
}
}

Expand Down
2 changes: 1 addition & 1 deletion app/presenters/rtl_show_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def override_title_field
end

def html_title
super.split("<br />").map(&:html_safe).join(", ")
super.split("<br />").map(&:html_safe).join(", ").gsub(/<.*?>/, "")
end

def field_config(field)
Expand Down
2 changes: 1 addition & 1 deletion spec/presenters/rtl_show_presenter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
field: ["بي"],
special: ["Traité sur l'art de la charpente : théorique et pratique"],
title: ["بي", "Traité sur l'art de la charpente : théorique et pratique"],
"override-title_ssim": ["Test"]
"override-title_ssim": ["<i>Test</i>"]
)
end

Expand Down

0 comments on commit ca65378

Please sign in to comment.