From 3347040c9ada760365e2ce96c494cd2425398eed Mon Sep 17 00:00:00 2001 From: Kosuke Tanabe Date: Sat, 18 Apr 2015 18:19:35 +0900 Subject: [PATCH] added link to classification next-l/enju_leaf#569 --- app/views/manifestations/_show_creators.html.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/views/manifestations/_show_creators.html.erb b/app/views/manifestations/_show_creators.html.erb index 1bb01c4..ce009ec 100644 --- a/app/views/manifestations/_show_creators.html.erb +++ b/app/views/manifestations/_show_creators.html.erb @@ -15,3 +15,8 @@ <%- if manifestation.pub_date.present? -%> (<%= manifestation.pub_date -%>) <%- end -%> + <% if defined?(EnjuSubject) %> + <% manifestation.classifications.each do |classification| %> + <%= link_to "#{classification.classification_type.display_name.localize}: #{classification.category}", manifestations_path(query: "classification_sm:#{classification.classification_type.name}_#{classification.category}") %> + <% end %> + <% end %>