bento_search 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,14 +29,20 @@
29
29
  <% if item.any_present?(:authors, :year) %>
30
30
  <p class="bento_item_row first_about">
31
31
 
32
- <% if item.authors.length > 0 %>
32
+ <% if item.authors.present? %>
33
33
  <span class="authors">
34
34
  <%= item.render_authors_list %>
35
35
  </span>
36
36
  <% end %>
37
37
 
38
+ <% if item.authors.present? && item.year.present? %>
39
+ <span class="seperator"><%= I18n.t("bento_search.author_date_seperator", :default=>"—") %></span>
40
+ <% end %>
41
+
38
42
  <% if item.year.present? %>
39
- <span class="date"> — <%= item.year %> </span>
43
+ <span class="date">
44
+ <%= item.year %>
45
+ </span>
40
46
  <% end %>
41
47
 
42
48
  </p>
@@ -11,6 +11,7 @@ en:
11
11
  issue: "Issue"
12
12
  page: "p."
13
13
  pages: "pp."
14
+ author_date_seperator: "—"
14
15
  format:
15
16
  # Schema.org formats
16
17
  Article: Article
@@ -1,3 +1,3 @@
1
1
  module BentoSearch
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end