-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #198 from MITLibraries/gdt-246-ios-ol-bug
Fix iOS text wrap bug
- Loading branch information
Showing
3 changed files
with
77 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
<li class="result"> | ||
<h3 class="record-title"> | ||
<span class="sr">Title: </span><%= link_to(result['title'], record_path(result['timdexRecordId'])) %> | ||
</h3> | ||
<div class="result-content"> | ||
<h3 class="record-title"> | ||
<span class="sr">Title: </span><%= link_to(result['title'], record_path(result['timdexRecordId'])) %> | ||
</h3> | ||
|
||
<p class="pub-info"> | ||
<span><%= result['contentType']&.each { |type| type['value'] }&.join(' ; ') %></span> | ||
<span> | ||
<% result['dates']&.each do |date| %> | ||
<%= date['value'] if date['kind'] == 'Publication date' %> | ||
<% end %> | ||
</span> | ||
</p> | ||
<p class="pub-info"> | ||
<span><%= result['contentType']&.each { |type| type['value'] }&.join(' ; ') %></span> | ||
<span> | ||
<% result['dates']&.each do |date| %> | ||
<%= date['value'] if date['kind'] == 'Publication date' %> | ||
<% end %> | ||
</span> | ||
</p> | ||
|
||
<span class="sr">Contributors: </span> | ||
<ul class="list-inline truncate-list contributors"> | ||
<%= render partial: 'shared/contributors', locals: { contributors: result['contributors'] } %> | ||
</ul> | ||
<span class="sr">Contributors: </span> | ||
<ul class="list-inline truncate-list contributors"> | ||
<%= render partial: 'shared/contributors', locals: { contributors: result['contributors'] } %> | ||
</ul> | ||
|
||
<div class="result-highlights"> | ||
<%= render partial: 'search/highlights', locals: { result: result } %> | ||
</div> | ||
<div class="result-highlights"> | ||
<%= render partial: 'search/highlights', locals: { result: result } %> | ||
</div> | ||
|
||
<div class="result-get"> | ||
<%= view_online(result) %> | ||
<div class="result-get"> | ||
<%= view_online(result) %> | ||
</div> | ||
</div> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,34 @@ | ||
<li class="result"> | ||
<h3 class="record-title"> | ||
<span class="sr">Title: </span><%= link_to(result_geo['title'], record_path(result_geo['timdexRecordId'])) %> | ||
</h3> | ||
<div class="result-content"> | ||
<h3 class="record-title"> | ||
<span class="sr">Title: </span><%= link_to(result_geo['title'], record_path(result_geo['timdexRecordId'])) %> | ||
</h3> | ||
|
||
<div class="data-info"> | ||
<%= render partial: 'shared/geo_data_info', locals: { metadata: result_geo } %> | ||
</div> | ||
<div class="data-info"> | ||
<%= render partial: 'shared/geo_data_info', locals: { metadata: result_geo } %> | ||
</div> | ||
|
||
<% if result_geo['contributors'] %> | ||
<span class="sr">Contributors: </span> | ||
<ul class="list-inline truncate-list contributors"> | ||
<%= render partial: 'shared/contributors', locals: { contributors: result_geo['contributors'] } %> | ||
</ul> | ||
<% end %> | ||
<% if result_geo['contributors'] %> | ||
<span class="sr">Contributors: </span> | ||
<ul class="list-inline truncate-list contributors"> | ||
<%= render partial: 'shared/contributors', locals: { contributors: result_geo['contributors'] } %> | ||
</ul> | ||
<% end %> | ||
<% if result_geo['summary'] %> | ||
<p class="result-summary truncate-list"> | ||
<span class="sr">Summary: </span><%= result_geo['summary'].join(' ') %> | ||
</p> | ||
<% end %> | ||
<% if result_geo['summary'] %> | ||
<p class="result-summary truncate-list"> | ||
<span class="sr">Summary: </span><%= result_geo['summary'].join(' ') %> | ||
</p> | ||
<% end %> | ||
<% if result_geo['highlight'] %> | ||
<div class="result-highlights"> | ||
<%= render partial: 'search/highlights', locals: { result: result_geo } %> | ||
</div> | ||
<% end %> | ||
<% if result_geo['highlight'] %> | ||
<div class="result-highlights"> | ||
<%= render partial: 'search/highlights', locals: { result: result_geo } %> | ||
</div> | ||
<% end %> | ||
|
||
<div class="result-record"> | ||
<%= view_record(result_geo['timdexRecordId']) %> | ||
<div class="result-record"> | ||
<%= view_record(result_geo['timdexRecordId']) %> | ||
</div> | ||
</div> | ||
</li> |