enju_biblio 0.1.0.pre66 → 0.1.0.pre67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/app/controllers/manifestations_controller.rb +3 -2
  4. data/app/models/identifier.rb +3 -0
  5. data/app/models/item.rb +5 -0
  6. data/app/models/manifestation.rb +25 -21
  7. data/app/views/agent_types/show.html.erb +3 -1
  8. data/app/views/carrier_types/show.html.erb +3 -1
  9. data/app/views/content_types/show.html.erb +3 -1
  10. data/app/views/countries/index.html.erb +3 -1
  11. data/app/views/countries/show.html.erb +3 -1
  12. data/app/views/form_of_works/show.html.erb +3 -1
  13. data/app/views/frequencies/show.html.erb +3 -1
  14. data/app/views/identifier_types/show.html.erb +3 -1
  15. data/app/views/languages/show.html.erb +6 -4
  16. data/app/views/manifestations/_all_facet.html.erb +8 -0
  17. data/app/views/manifestations/_carrier_type_facet.html.erb +9 -0
  18. data/app/views/manifestations/_classification_facet.html.erb +17 -0
  19. data/app/views/manifestations/_form.html.erb +5 -0
  20. data/app/views/manifestations/_holding.html.erb +15 -3
  21. data/app/views/manifestations/_language_facet.html.erb +16 -0
  22. data/app/views/manifestations/_library_facet.html.erb +11 -0
  23. data/app/views/manifestations/_manifestation.html.erb +2 -18
  24. data/app/views/manifestations/_pub_year_facet.html.erb +11 -0
  25. data/app/views/manifestations/_reservable_facet.html.erb +14 -0
  26. data/app/views/manifestations/_show_creators.html.erb +2 -2
  27. data/app/views/manifestations/_show_detail_librarian.html.erb +13 -4
  28. data/app/views/manifestations/_show_detail_user.html.erb +1 -1
  29. data/app/views/manifestations/_show_holding.html.erb +0 -9
  30. data/app/views/manifestations/_show_holding_toggle.html.erb +1 -0
  31. data/app/views/manifestations/show.html.erb +1 -1
  32. data/app/views/manifestations/show.js.erb +2 -0
  33. data/app/views/notifier/manifestation_info.en.text.erb +1 -1
  34. data/app/views/notifier/manifestation_info.ja.text.erb +1 -1
  35. data/app/views/picture_files/edit.html.erb +0 -10
  36. data/app/views/resource_export_files/_form.html.erb +1 -1
  37. data/config/locales/translation_en.yml +3 -1
  38. data/config/locales/translation_ja.yml +3 -1
  39. data/lib/enju_biblio/version.rb +1 -1
  40. data/spec/controllers/items_controller_spec.rb +1 -1
  41. data/spec/dummy/app/models/ability.rb +0 -4
  42. data/spec/dummy/app/models/user.rb +1 -1
  43. data/spec/dummy/db/schema.rb +0 -11
  44. data/spec/factories/user.rb +0 -3
  45. data/spec/models/item_spec.rb +2 -2
  46. data/spec/models/resource_import_file_spec.rb +1 -1
  47. metadata +29 -28
  48. data/app/models/exemplify.rb +0 -31
  49. data/db/migrate/20080830172106_create_exemplifies.rb +0 -13
  50. data/spec/factories/exemplify.rb +0 -6
  51. data/spec/fixtures/exemplifies.yml +0 -159
  52. data/spec/models/exemplify_spec.rb +0 -28
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1509aa40842f40dd4416c2f181b9e5ac6ddd18c
4
- data.tar.gz: f4109e7cf362bdba0cfd122c9736c4904397f9aa
3
+ metadata.gz: e7e9faf90d23891338d7804ceaa2b86045886e6c
4
+ data.tar.gz: 8a9bb0d6a8085690f585ccbc6e45cbf677bacd1a
5
5
  SHA512:
6
- metadata.gz: c1a84d6f9a2b744ad46b9bb9f3f75274a5218c348e1f5a5aeec7e4024475442095b8f4b4eef5653356aead060887a81f5753f7d569a8cadebe3555e2b5eeb8d7
7
- data.tar.gz: bc7d2d4b5e80e629d77e3546d4965990f5d81899dd5a6217d7b438590403a846095473565c1dcfd36e3faaff39624a768aaa5b35aace80970261c7fc8f1acfe6
6
+ metadata.gz: 55176d5e1130eee8b75c8efd03f42a98178ea342562972387edf4a46571581518fa93aa136809f29d6458709f16b4b14e62f398552dbf6c62d0eaa60e72b3875
7
+ data.tar.gz: 2f560a2ada3c29ccabb09cce58a823d33ea36ff2cb5c3c383a64b510fe46ffe03c5c4e0b037613191029ef283787b01dd915308a8871ffab557d937e7b24f257
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2012 Kosuke Tanabe
1
+ Copyright 2015 Project Next-L
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -96,7 +96,8 @@ class ManifestationsController < ApplicationController
96
96
  @query = query.dup
97
97
  query = query.gsub(' ', ' ')
98
98
 
99
- includes = [:items, :root_series_statement]
99
+ includes = [:root_series_statement]
100
+ includes << :classifications if defined?(EnjuSubject)
100
101
  includes << :bookmarks if defined?(EnjuBookmark)
101
102
  search = Manifestation.search(include: includes)
102
103
  case @reservable
@@ -419,7 +420,7 @@ class ManifestationsController < ApplicationController
419
420
  format.mods
420
421
  format.json { render json: @manifestation }
421
422
  #format.atom { render template: 'manifestations/oai_ore' }
422
- #format.js
423
+ format.js
423
424
  format.download {
424
425
  if @manifestation.attachment.path
425
426
  if ENV['ENJU_STORAGE'] == 's3'
@@ -8,6 +8,9 @@ class Identifier < ActiveRecord::Base
8
8
  validate :check_identifier
9
9
  before_validation :normalize
10
10
  before_save :convert_isbn
11
+ scope :id_type, -> type {
12
+ where(identifier_type: IdentifierType.where(name: type).first)
13
+ }
11
14
 
12
15
  acts_as_list scope: :manifestation_id
13
16
  normalize_attributes :body
data/app/models/item.rb CHANGED
@@ -8,6 +8,11 @@ class Item < ActiveRecord::Base
8
8
  enju_inter_library_loan_item_model if defined?(EnjuInterLibraryLoan)
9
9
  scope :on_shelf, -> { where('shelf_id != 1') }
10
10
  scope :on_web, -> { where(shelf_id: 1) }
11
+ scope :available_for, -> user {
12
+ unless user.try(:has_role?, 'Librarian')
13
+ on_shelf
14
+ end
15
+ }
11
16
  delegate :display_name, to: :shelf, prefix: true
12
17
  has_many :owns
13
18
  has_many :agents, through: :owns
@@ -377,7 +377,7 @@ class Manifestation < ActiveRecord::Base
377
377
  else
378
378
  body = File.open(attachment.path).read
379
379
  end
380
- client = Faraday.new(url: ENV['SOLR_URL']) do |conn|
380
+ client = Faraday.new(url: ENV['SOLR_URL'] || Sunspot.config.solr.url) do |conn|
381
381
  conn.request :multipart
382
382
  conn.adapter :net_http
383
383
  end
@@ -513,10 +513,15 @@ class Manifestation < ActiveRecord::Base
513
513
  end
514
514
 
515
515
  def identifier_contents(name)
516
- if IdentifierType.where(name: name.to_s).exists?
517
- identifiers.where(identifier_type_id: IdentifierType.where(name: name).first.id).order(:position).pluck(:body)
516
+ if Rails::VERSION::MAJOR > 3
517
+ identifiers.id_type(name).order(:position).pluck(:body)
518
518
  else
519
- []
519
+ identifier_type = IdentifierType.where(name: name).first
520
+ if identifier_type
521
+ identifiers.where(identifier_type_id: identifier_type.id).order(:position).pluck(:body)
522
+ else
523
+ []
524
+ end
520
525
  end
521
526
  end
522
527
 
@@ -540,10 +545,10 @@ class Manifestation < ActiveRecord::Base
540
545
  shelf
541
546
  library
542
547
  ).join("\t")
543
- items = Manifestation.all.map{|m|
548
+ lines = []
549
+ Manifestation.includes(:items, :identifiers => :identifier_type).find_each do |m|
544
550
  if m.items.exists?
545
- lines = []
546
- m.items.each do |i|
551
+ m.items.includes(:shelf => :library).each do |i|
547
552
  item_lines = []
548
553
  item_lines << m.id
549
554
  item_lines << m.original_title
@@ -562,25 +567,24 @@ class Manifestation < ActiveRecord::Base
562
567
  item_lines << i.circulation_status.try(:name)
563
568
  item_lines << i.shelf.name
564
569
  item_lines << i.shelf.library.name
565
- lines << item_lines
570
+ lines << item_lines
566
571
  end
567
- lines
568
572
  else
569
- lines = []
570
- lines << m.id
571
- lines << m.original_title
572
- lines << m.creators.pluck(:full_name).join("//")
573
- lines << m.publishers.pluck(:full_name).join("//")
574
- lines << m.pub_date
575
- lines << m.price
576
- lines << m.identifier_contents(:isbn).first
577
- [lines]
573
+ line = []
574
+ line << m.id
575
+ line << m.original_title
576
+ line << m.creators.pluck(:full_name).join("//")
577
+ line << m.publishers.pluck(:full_name).join("//")
578
+ line << m.pub_date
579
+ line << m.price
580
+ line << m.identifier_contents(:isbn).first
581
+ lines << line
578
582
  end
579
- }
583
+ end
580
584
  if options[:format] == :txt
581
- items.map{|m| m.map{|i| i.join("\t")}}.flatten.unshift(header).join("\r\n")
585
+ lines.map{|i| i.join("\t")}.join("\r\n")
582
586
  else
583
- items
587
+ lines
584
588
  end
585
589
  end
586
590
  end
@@ -23,7 +23,9 @@
23
23
 
24
24
  <div id="submenu" class="ui-corner-all ui-widget-content">
25
25
  <ul>
26
- <li><%= link_to t('page.edit'), edit_agent_type_path(@agent_type) -%></li>
26
+ <%- if can? :update, @agent_type -%>
27
+ <li><%= link_to t('page.edit'), edit_agent_type_path(@agent_type) -%></li>
28
+ <%- end -%>
27
29
  <li><%= back_to_index(flash[:page_info]) -%></li>
28
30
  </ul>
29
31
  </div>
@@ -34,7 +34,9 @@
34
34
 
35
35
  <div id="submenu" class="ui-corner-all ui-widget-content">
36
36
  <ul>
37
- <li><%= link_to t('page.edit'), edit_carrier_type_path(@carrier_type) -%></li>
37
+ <%- if can? :update, @carrier_type -%>
38
+ <li><%= link_to t('page.edit'), edit_carrier_type_path(@carrier_type) -%></li>
39
+ <%- end -%>
38
40
  <li><%= back_to_index(flash[:page_info]) -%></li>
39
41
  </ul>
40
42
  </div>
@@ -23,7 +23,9 @@
23
23
 
24
24
  <div id="submenu" class="ui-corner-all ui-widget-content">
25
25
  <ul>
26
- <li><%= link_to t('page.edit'), edit_content_type_path(@content_type) -%></li>
26
+ <%- if can? :update, @content_type -%>
27
+ <li><%= link_to t('page.edit'), edit_content_type_path(@content_type) -%></li>
28
+ <%- end -%>
27
29
  <li><%= back_to_index(flash[:page_info]) -%></li>
28
30
  </ul>
29
31
  </div>
@@ -40,6 +40,8 @@
40
40
 
41
41
  <div id="submenu" class="ui-corner-all ui-widget-content">
42
42
  <ul>
43
- <li><%= link_to t('page.new', model: t('activerecord.models.country')), new_country_path -%></li>
43
+ <%- if can? :create, Country -%>
44
+ <li><%= link_to t('page.new', model: t('activerecord.models.country')), new_country_path -%></li>
45
+ <%- end -%>
44
46
  </ul>
45
47
  </div>
@@ -23,7 +23,9 @@
23
23
 
24
24
  <div id="submenu" class="ui-corner-all ui-widget-content">
25
25
  <ul>
26
- <li><%= link_to t('page.edit'), edit_country_path(@country) %></li>
26
+ <%- if can? :update, @country %>
27
+ <li><%= link_to t('page.edit'), edit_country_path(@country) %></li>
28
+ <%- end -%>
27
29
  <li><%= back_to_index(flash[:page_info]) -%></li>
28
30
  </ul>
29
31
  </div>
@@ -23,7 +23,9 @@
23
23
 
24
24
  <div id="submenu" class="ui-corner-all ui-widget-content">
25
25
  <ul>
26
- <li<%= link_to t('page.edit'), edit_form_of_work_path(@form_of_work) -%></li>
26
+ <%- if can? :update, @form_of_work -%>
27
+ <li><%= link_to t('page.edit'), edit_form_of_work_path(@form_of_work) -%></li>
28
+ <%- end -%>
27
29
  <li><%= back_to_index(flash[:page_info]) -%></li>
28
30
  </ul>
29
31
  </div>
@@ -23,7 +23,9 @@
23
23
 
24
24
  <div id="submenu" class="ui-corner-all ui-widget-content">
25
25
  <ul>
26
- <li><%= link_to t('page.edit'), edit_frequency_path(@frequency) -%></li>
26
+ <%- if can? :update, @frequency -%>
27
+ <li><%= link_to t('page.edit'), edit_frequency_path(@frequency) -%></li>
28
+ <%- end -%>
27
29
  <li><%= back_to_index(flash[:page_info]) -%></li>
28
30
  </ul>
29
31
  </div>
@@ -23,7 +23,9 @@
23
23
 
24
24
  <div id="submenu" class="ui-corner-all ui-widget-content">
25
25
  <ul>
26
- <li><%= link_to t('page.edit'), edit_identifier_type_path(@identifier_type) -%></li>
26
+ <%- if can? :update, @identifier_type -%>
27
+ <li><%= link_to t('page.edit'), edit_identifier_type_path(@identifier_type) -%></li>
28
+ <%- end -%>
27
29
  <li><%= back_to_index(flash[:page_info]) -%></li>
28
30
  </ul>
29
31
  </div>
@@ -20,17 +20,17 @@
20
20
 
21
21
  <p>
22
22
  <strong>ISO 639-1:</strong>
23
- <td><%= language.iso_639_1 -%></td>
23
+ <td><%= @language.iso_639_1 -%></td>
24
24
  </p>
25
25
 
26
26
  <p>
27
27
  <strong>ISO 639-2:</strong>
28
- <td><%= language.iso_639_2 -%></td>
28
+ <td><%= @language.iso_639_2 -%></td>
29
29
  </p>
30
30
 
31
31
  <p>
32
32
  <strong>ISO 639-3:</strong>
33
- <td><%= language.iso_639_3 -%></td>
33
+ <td><%= @language.iso_639_3 -%></td>
34
34
  </p>
35
35
 
36
36
  <p>
@@ -43,7 +43,9 @@
43
43
 
44
44
  <div id="submenu" class="ui-corner-all ui-widget-content">
45
45
  <ul>
46
- <li><%= link_to t('page.edit'), edit_language_path(@language) -%></li>
46
+ <%- if can? :update, @language -%>
47
+ <li><%= link_to t('page.edit'), edit_language_path(@language) -%></li>
48
+ <%- end -%>
47
49
  <li><%= back_to_index(flash[:page_info]) -%></li>
48
50
  </ul>
49
51
  </div>
@@ -0,0 +1,8 @@
1
+ <%= render 'manifestations/carrier_type_facet' -%>
2
+ <%= render 'manifestations/library_facet' -%>
3
+ <%= render 'manifestations/language_facet' -%>
4
+ <%= render 'manifestations/pub_year_facet' -%>
5
+ <%=
6
+ #render 'manifestations/classification_facet'
7
+ -%>
8
+ <%= render 'manifestations/reservable_facet' if defined?(EnjuCirculation) -%>
@@ -0,0 +1,9 @@
1
+ <h4><%= t('activerecord.models.carrier_type') -%></h4>
2
+ <ul>
3
+ <%- @carrier_type_facet.each do |facet| -%>
4
+ <li><%= carrier_type_facet(facet) %></li>
5
+ <%- end -%>
6
+ <%- if params[:carrier_type] -%>
7
+ <li><%= link_to t('page.remove_this_facet'), url_for(params.merge(carrier_type: nil, page: nil, view: nil, only_path: true)) -%></li>
8
+ <%- end -%>
9
+ </ul>
@@ -0,0 +1,17 @@
1
+ <h4><%= t('activerecord.models.classification') -%></h4>
2
+ <%- unless @classification_facet.blank? -%>
3
+ <ul>
4
+ <% @classification_facet.each do |category| %>
5
+ <li>
6
+ <% if category.value == params[:classification].to_s.downcase %><strong><% end %>
7
+ <%= link_to "#{t('classification.category', number: category.value)} #{category_name(category.value)} (#{category.count})", url_for(params.merge(classification: category.value, page: nil, view: nil, only_path: true)) %>
8
+ <% if category.value == params[:classification].to_s.downcase %></strong><% end %>
9
+ </li>
10
+ <% end %>
11
+ <%- if params[:classification] -%>
12
+ <li><%= link_to t('page.remove_this_facet'), url_for(params.merge(classification: nil, page: nil, view: nil, only_path: true)) -%></li>
13
+ <%- end -%>
14
+ </ul>
15
+ <%- else -%>
16
+ <p><%= t('page.no_subject') -%></p>
17
+ <%- end -%>
@@ -146,6 +146,11 @@
146
146
  <p><%= f.link_to_add t('page.add'), :identifiers %></p>
147
147
  </div>
148
148
 
149
+ <div class="field">
150
+ <%= f.label :manifestation_identifier -%><br />
151
+ <%= f.text_field :manifestation_identifier, class: 'resource_identifier_body', style: 'ime-mode: disabled' -%>
152
+ </div>
153
+
149
154
  <% if defined?(EnjuSubject) %>
150
155
  <%= render 'manifestations/subject_form', f: f %>
151
156
  <% end %>
@@ -1,3 +1,15 @@
1
- <div class="holding_index" id="holding_<%= manifestation.id -%>" style="display: none">
2
- <%= render 'manifestations/show_holding', manifestation: manifestation -%>
3
- </div>
1
+ <% if manifestation.items.available_for(current_user).count >= 1 %>
2
+ <div id="holding_link_<%= manifestation.id %>">
3
+ (<%= link_to t('page.holding'), manifestation_path(manifestation), remote: true %>)
4
+ </div>
5
+ <% end %>
6
+ <% if defined?(EnjuBookmark) %>
7
+ <%- if manifestation.tags.first -%>
8
+ (<%= link_to "#", { onclick: "$('#tag_#{manifestation.id}').toggle(); return false;" } do t('activerecord.models.tag') end %>)
9
+ <%- end -%>
10
+ <%= render 'manifestations/show_tag', manifestation: manifestation -%>
11
+ <% end %>
12
+ <div id="holding_<%= manifestation.id -%>"></div>
13
+ <%- if can? :create, Item -%>
14
+ <p><%= link_to t('page.new', model: t('activerecord.models.item')), new_item_path(manifestation_id: manifestation.id) -%></p>
15
+ <%- end -%>
@@ -0,0 +1,16 @@
1
+ <h4><%= t('activerecord.models.language') -%></h4>
2
+ <ul>
3
+ <%- languages = params[:language].to_s.split -%>
4
+ <%- current_languages = languages.dup -%>
5
+ <%- @language_facet.each do |facet| -%>
6
+ <%- language = Language.where(name: facet.value).select([:name, :display_name]).first -%>
7
+ <%- if language -%>
8
+ <li>
9
+ <%= language_facet(language, current_languages, facet) %>
10
+ </li>
11
+ <%- end -%>
12
+ <%- end -%>
13
+ <%- if params[:language] -%>
14
+ <li><%= link_to t('page.remove_this_facet'), url_for(params.merge(language: nil, page: nil, view: nil, only_path: true)) -%></li>
15
+ <%- end -%>
16
+ </ul>
@@ -0,0 +1,11 @@
1
+ <h4><%= t('activerecord.models.library') -%></h4>
2
+ <ul>
3
+ <%- libraries = params[:library].to_s.split -%>
4
+ <%- @library_facet.each do |facet| -%>
5
+ <%- current_libraries = libraries.dup -%>
6
+ <%= library_facet(current_libraries, facet) %>
7
+ <%- end -%>
8
+ <%- if params[:library] -%>
9
+ <li><%= link_to t('page.remove_this_facet'), url_for(params.merge(library: nil, page: nil, view: nil, only_path: true)) -%></li>
10
+ <%- end -%>
11
+ </ul>
@@ -9,21 +9,6 @@
9
9
  <div class="access_address">
10
10
  <%= link_to manifestation.access_address, manifestation.access_address if manifestation.access_address.present? -%>
11
11
  </div>
12
- <% if current_user.try(:has_role?, 'Librarian') %>
13
- <%- unless manifestation.items.empty? -%>
14
- (<%= link_to "#", { onclick: "$('#holding_#{manifestation.id}').toggle(); return false;"} do t('page.holding') end %>)
15
- <% end %>
16
- <% else %>
17
- <%- unless manifestation.items.for_checkout.on_shelf.empty? -%>
18
- (<%= link_to "#", { onclick: "$('#holding_#{manifestation.id}').toggle(); return false;"} do t('page.holding') end %>)
19
- <%- end -%>
20
- <%- end -%>
21
- <% if defined?(EnjuBookmark) %>
22
- <%- if manifestation.tags.first -%>
23
- (<%= link_to "#", { onclick: "$('#tag_#{manifestation.id}').toggle(); return false;" } do t('activerecord.models.tag') end %>)
24
- <%- end -%>
25
- <%= render 'manifestations/show_tag', manifestation: manifestation -%>
26
- <% end %>
27
12
  <% end %>
28
13
  <%= render 'manifestations/holding', manifestation: manifestation -%>
29
14
  </td>
@@ -34,12 +19,11 @@
34
19
  <% if manifestation.is_reservable_by?(current_user) %>
35
20
  <%- reserve = manifestation.is_reserved_by?(current_user) -%>
36
21
  <%- if reserve -%>
37
- <%= link_to t('reserve.show'), reserve -%>
22
+ <%= link_to t('reserve.show'), reserve -%><br />
38
23
  <%- else -%>
39
- <%= link_to t('activerecord.models.reserve'), new_reserve_path(manifestation_id: manifestation.id) if can? :create, Reserve -%>
24
+ <%= link_to t('activerecord.models.reserve'), new_reserve_path(manifestation_id: manifestation.id) if can? :create, Reserve -%><br />
40
25
  <%- end -%>
41
26
  <% end %>
42
- <br />
43
27
  <% end %>
44
28
  <% end %>
45
29
  <%- if can? :update, manifestation -%>
@@ -0,0 +1,11 @@
1
+ <h4><%= t('activerecord.attributes.manifestation.date_of_publication') -%></h4>
2
+ <ul>
3
+ <%- @pub_year_facet.each do |facet| -%>
4
+ <li>
5
+ <%= pub_year_facet(params[:pub_date_from].to_s, params[:pub_date_until].to_s, facet) %>
6
+ </li>
7
+ <%- end -%>
8
+ <%- if params[:pub_date_from] and params[:pub_date_until] -%>
9
+ <li><%= link_to t('page.remove_this_facet'), url_for(params.merge(pub_date_from: nil, pub_date_until: nil, page: nil, view: nil, only_path: true)) -%></li>
10
+ <%- end -%>
11
+ </ul>
@@ -0,0 +1,14 @@
1
+ <h4><%= t('manifestation.reservable') -%></h4>
2
+ <ul>
3
+ <%- @reservable_facet.each do |facet| -%>
4
+ <% facet.value ? facet_reservable = true : facet_reservable = false %>
5
+ <li>
6
+ <%- if @reservable == facet_reservable -%><strong><%- end -%>
7
+ <%= link_to "#{localized_boolean(facet.value)} (#{facet.count})", url_for(params.merge(page: nil, reservable: facet.value.to_s, view: nil, only_path: true)) -%>
8
+ <%- if @reservable == facet_reservable -%></strong><%- end -%>
9
+ </li>
10
+ <%- end -%>
11
+ <%- unless @reservable.nil? -%>
12
+ <li><%= link_to t('page.remove_this_facet'), url_for(params.merge(reservable: nil, page: nil, view: nil, only_path: true)) -%></li>
13
+ <%- end -%>
14
+ </ul>
@@ -16,8 +16,8 @@
16
16
  (<%= manifestation.pub_date -%>)
17
17
  <%- end -%>
18
18
  <% if defined?(EnjuSubject) %>
19
- ;
20
- <% manifestation.classifications.each do |classification| %>
19
+ <%= ';' if manifestation.classifications.count >= 1 %>
20
+ <% manifestation.classifications.each_with_index do |classification| %>
21
21
  <%= link_to "#{classification.classification_type.display_name.localize}: #{classification.category}", manifestations_path(query: "classification_sm:#{classification.classification_type.name}_#{classification.category}") %>
22
22
  <% end %>
23
23
  <% end %>