enju_biblio 0.1.0.pre37 → 0.1.0.pre38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/addresses.js +2 -0
- data/app/assets/javascripts/identifier_types.js +2 -0
- data/app/assets/javascripts/identifiers.js +2 -0
- data/app/assets/stylesheets/addresses.css +4 -0
- data/app/assets/stylesheets/identifier_types.css +4 -0
- data/app/assets/stylesheets/identifiers.css +4 -0
- data/app/controllers/addresses_controller.rb +2 -0
- data/app/controllers/carrier_types_controller.rb +85 -5
- data/app/controllers/identifier_types_controller.rb +84 -0
- data/app/controllers/identifiers_controller.rb +14 -0
- data/app/controllers/manifestations_controller.rb +14 -21
- data/app/helpers/addresses_helper.rb +2 -0
- data/app/helpers/identifier_types_helper.rb +2 -0
- data/app/helpers/identifiers_helper.rb +2 -0
- data/app/models/carrier_type.rb +2 -0
- data/app/models/enju_biblio/ability.rb +12 -0
- data/app/models/identifier.rb +65 -0
- data/app/models/identifier_type.rb +21 -0
- data/app/models/import_request.rb +1 -0
- data/app/models/manifestation.rb +28 -87
- data/app/models/page_sweeper.rb +0 -2
- data/app/models/resource_import_file.rb +34 -18
- data/app/views/addresses/_form.html.erb +57 -0
- data/app/views/addresses/edit.html.erb +6 -0
- data/app/views/addresses/index.html.erb +41 -0
- data/app/views/addresses/new.html.erb +5 -0
- data/app/views/addresses/show.html.erb +55 -0
- data/app/views/carrier_types/_form.html.erb +4 -1
- data/app/views/carrier_types/index.html.erb +1 -1
- data/app/views/identifier_types/_form.html.erb +22 -0
- data/app/views/identifier_types/edit.html.erb +13 -0
- data/app/views/identifier_types/index.html.erb +45 -0
- data/app/views/identifier_types/new.html.erb +12 -0
- data/app/views/identifier_types/show.html.erb +24 -0
- data/app/views/identifiers/_form.html.erb +30 -0
- data/app/views/identifiers/edit.html.erb +15 -0
- data/app/views/identifiers/index.html.erb +33 -0
- data/app/views/identifiers/new.html.erb +14 -0
- data/app/views/identifiers/show.html.erb +29 -0
- data/app/views/items/index.csv.erb +1 -1
- data/app/views/items/index.html.erb +2 -1
- data/app/views/manifestations/_form.html.erb +17 -36
- data/app/views/manifestations/_show.mods.builder +6 -2
- data/app/views/manifestations/_show.rdf.builder +7 -6
- data/app/views/manifestations/_show_detail_librarian.html.erb +5 -15
- data/app/views/manifestations/_show_detail_user.html.erb +5 -15
- data/app/views/manifestations/_show_index.html.erb +1 -1
- data/app/views/manifestations/index.csv.erb +1 -1
- data/app/views/manifestations/index.rss.builder +3 -1
- data/app/views/manifestations/show.mobile.erb +1 -1
- data/config/locales/translation_en.yml +14 -7
- data/config/locales/translation_ja.yml +15 -8
- data/config/routes.rb +6 -8
- data/db/migrate/005_create_manifestations.rb +0 -12
- data/db/migrate/20130506175303_create_identifier_types.rb +12 -0
- data/db/migrate/20130506175834_create_identifiers.rb +14 -0
- data/lib/enju_biblio/version.rb +1 -1
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/identifier_types.yml +27 -0
- data/spec/controllers/identifier_types_controller_spec.rb +167 -0
- data/spec/controllers/identifiers_controller_spec.rb +446 -0
- data/spec/controllers/import_requests_controller_spec.rb +1 -1
- data/spec/controllers/manifestations_controller_spec.rb +12 -10
- data/spec/dummy/app/models/ability.rb +12 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20130504195916_add_subject_heading_type_id_to_subject.rb +5 -0
- data/spec/dummy/db/schema.rb +26 -16
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_myc +0 -0
- data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
- data/spec/factories/identifier.rb +6 -0
- data/spec/factories/identifier_type.rb +5 -0
- data/spec/fixtures/identifier_types.yml +29 -0
- data/spec/fixtures/identifiers.yml +113 -0
- data/spec/fixtures/manifestations.yml +0 -137
- data/spec/fixtures/subject_heading_types.yml +39 -0
- data/spec/fixtures/subject_types.yml +4 -4
- data/spec/models/identifier_spec.rb +22 -0
- data/spec/models/identifier_type_spec.rb +21 -0
- data/spec/models/manifestation_spec.rb +0 -11
- data/spec/models/resource_import_file_spec.rb +7 -7
- data/spec/routing/manifestations_routing_spec.rb +1 -1
- metadata +66 -16
- data/app/views/manifestations/_show_periodical_master.html.erb +0 -23
- data/app/views/manifestations/_show_series_statement.html.erb +0 -30
- data/spec/dummy/solr/data/test/index/segments_l8s +0 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
<p id="notice"><%= notice %></p>
|
2
|
+
|
3
|
+
<p>
|
4
|
+
<b>Patron:</b>
|
5
|
+
<%= @address.patron_id %>
|
6
|
+
</p>
|
7
|
+
|
8
|
+
<p>
|
9
|
+
<b>Place:</b>
|
10
|
+
<%= @address.place %>
|
11
|
+
</p>
|
12
|
+
|
13
|
+
<p>
|
14
|
+
<b>Street:</b>
|
15
|
+
<%= @address.street %>
|
16
|
+
</p>
|
17
|
+
|
18
|
+
<p>
|
19
|
+
<b>Locality:</b>
|
20
|
+
<%= @address.locality %>
|
21
|
+
</p>
|
22
|
+
|
23
|
+
<p>
|
24
|
+
<b>Region:</b>
|
25
|
+
<%= @address.region %>
|
26
|
+
</p>
|
27
|
+
|
28
|
+
<p>
|
29
|
+
<b>Zip code:</b>
|
30
|
+
<%= @address.zip_code %>
|
31
|
+
</p>
|
32
|
+
|
33
|
+
<p>
|
34
|
+
<b>Country:</b>
|
35
|
+
<%= @address.country_id %>
|
36
|
+
</p>
|
37
|
+
|
38
|
+
<p>
|
39
|
+
<b>Telephone number:</b>
|
40
|
+
<%= @address.telephone_number %>
|
41
|
+
</p>
|
42
|
+
|
43
|
+
<p>
|
44
|
+
<b>Fax number:</b>
|
45
|
+
<%= @address.fax_number %>
|
46
|
+
</p>
|
47
|
+
|
48
|
+
<p>
|
49
|
+
<b>Note:</b>
|
50
|
+
<%= @address.note %>
|
51
|
+
</p>
|
52
|
+
|
53
|
+
|
54
|
+
<%= link_to 'Edit', edit_address_path(@address) %> |
|
55
|
+
<%= link_to 'Back', addresses_path %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%=
|
1
|
+
<%= simple_nested_form_for(@carrier_type) do |f| %>
|
2
2
|
<%= f.error_notification %>
|
3
3
|
|
4
4
|
<div class="field">
|
@@ -9,6 +9,9 @@
|
|
9
9
|
<%= f.label :display_name %><br />
|
10
10
|
<%= f.text_area :display_name %>
|
11
11
|
</div>
|
12
|
+
<% if defined?(EnjuCirculation) %>
|
13
|
+
<%= render 'carrier_types/checkout_form', :f => f %>
|
14
|
+
<% end %>
|
12
15
|
<div class="field">
|
13
16
|
<%= f.label :note %><br />
|
14
17
|
<%= f.text_area :note %>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<%= simple_form_for(@identifier_type, :validate => true) do |f| -%>
|
2
|
+
<%= f.error_notification -%>
|
3
|
+
|
4
|
+
<div class="field">
|
5
|
+
<%= f.label :name -%><br />
|
6
|
+
<%= f.text_field :name, :class => 'resource_title' -%>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="field">
|
10
|
+
<%= f.label :display_name -%><br />
|
11
|
+
<%= f.text_area :display_name, :class => 'resource_textarea' -%>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<div class="field">
|
15
|
+
<%= f.label :note -%><br />
|
16
|
+
<%= f.text_area :note, :class => 'resource_textarea' -%>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div class="actions">
|
20
|
+
<%= f.submit %>
|
21
|
+
</div>
|
22
|
+
<% end %>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.editing', :model => t('activerecord.models.identifier_type')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<%= render 'form' %>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div id="submenu" class="ui-corner-all">
|
9
|
+
<ul>
|
10
|
+
<li><%= link_to t('page.show'), identifier_type_path(@identifier_type) -%></li>
|
11
|
+
<li><%= link_to t('page.back'), identifier_types_path -%></li>
|
12
|
+
</ul>
|
13
|
+
</div>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.identifier_type')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
|
5
|
+
<table class="table table-striped index">
|
6
|
+
<tr>
|
7
|
+
<th id="position"></th>
|
8
|
+
<th><%= t('activerecord.attributes.identifier_type.name') -%></th>
|
9
|
+
<th><%= t('activerecord.attributes.identifier_type.display_name') -%></th>
|
10
|
+
<th><%= t('activerecord.attributes.identifier_type.note') -%></th>
|
11
|
+
<th></th>
|
12
|
+
</tr>
|
13
|
+
|
14
|
+
<%- @identifier_types.each do |identifier_type| -%>
|
15
|
+
<tr class="line<%= cycle("0", "1") -%>">
|
16
|
+
<td>
|
17
|
+
<%- if can? :update, identifier_type -%>
|
18
|
+
<%= move_position(identifier_type) -%>
|
19
|
+
<%- end -%>
|
20
|
+
</td>
|
21
|
+
<td><%= link_to identifier_type.name, identifier_type -%></td>
|
22
|
+
<td><%= link_to identifier_type.display_name.localize, identifier_type -%></td>
|
23
|
+
<td><%= identifier_type.note -%></td>
|
24
|
+
<td>
|
25
|
+
<%- if can? :update, identifier_type -%>
|
26
|
+
<%= link_to t('page.edit'), edit_identifier_type_path(identifier_type) -%>
|
27
|
+
<% end %>
|
28
|
+
<%- if can? :delete, identifier_type -%>
|
29
|
+
<%= link_to t('page.destroy'), identifier_type_path(identifier_type), :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
|
30
|
+
<%- end -%>
|
31
|
+
</td>
|
32
|
+
</tr>
|
33
|
+
<%- end -%>
|
34
|
+
</table>
|
35
|
+
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="submenu" class="ui-corner-all">
|
40
|
+
<ul>
|
41
|
+
<%- if can? :create, CarrierType -%>
|
42
|
+
<li><%= link_to t('page.new', :model => t('activerecord.models.identifier_type')), new_identifier_type_path -%></li>
|
43
|
+
<%- end -%>
|
44
|
+
</ul>
|
45
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.new', :model => t('activerecord.models.identifier_type')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<%= render 'form' %>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div id="submenu" class="ui-corner-all">
|
9
|
+
<ul>
|
10
|
+
<li><%= link_to t('page.back'), identifier_types_path -%></li>
|
11
|
+
</ul>
|
12
|
+
</div>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.identifier_type')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
<p id="notice"><%= notice %></p>
|
5
|
+
|
6
|
+
<p>
|
7
|
+
<strong><%= t('activerecord.attributes.identifier_type.display_name') -%>:</strong>
|
8
|
+
<%= @identifier_type.display_name.localize -%>
|
9
|
+
</p>
|
10
|
+
|
11
|
+
<p>
|
12
|
+
<strong><%= t('activerecord.attributes.identifier_type.note') -%>:</strong>
|
13
|
+
<%= @identifier_type.note -%>
|
14
|
+
</p>
|
15
|
+
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div id="submenu" class="ui-corner-all">
|
20
|
+
<ul>
|
21
|
+
<li><%= link_to t('page.edit'), edit_identifier_type_path(@identifier_type) -%></li>
|
22
|
+
<li><%= back_to_index(flash[:page_info]) -%></li>
|
23
|
+
</ul>
|
24
|
+
</div>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<%= form_for(@identifier) do |f| %>
|
2
|
+
<% if @identifier.errors.any? %>
|
3
|
+
<div id="error_explanation">
|
4
|
+
<h2><%= pluralize(@identifier.errors.count, "error") %> prohibited this identifier from being saved:</h2>
|
5
|
+
|
6
|
+
<ul>
|
7
|
+
<% @identifier.errors.full_messages.each do |msg| %>
|
8
|
+
<li><%= msg %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="field">
|
15
|
+
<%= f.label :body %><br />
|
16
|
+
<%= f.text_field :body %>
|
17
|
+
</div>
|
18
|
+
<div class="field">
|
19
|
+
<%= f.label :manifestation_id %><br />
|
20
|
+
<%= f.hidden_field :manifestation_id %>
|
21
|
+
<%= link_to @identifier.manifestation.original_title, @identifier.manifestation %>
|
22
|
+
</div>
|
23
|
+
<div class="field">
|
24
|
+
<%= f.label :primary %><br />
|
25
|
+
<%= f.check_box :primary %>
|
26
|
+
</div>
|
27
|
+
<div class="actions">
|
28
|
+
<%= f.submit %>
|
29
|
+
</div>
|
30
|
+
<% end %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.editing', :model => t('activerecord.models.identifier')) -%></h1>
|
3
|
+
<div id="content_list" class="ui-corner-all">
|
4
|
+
|
5
|
+
<%= render 'form' %>
|
6
|
+
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<div id="submenu" class="ui-corner-all">
|
11
|
+
<ul>
|
12
|
+
<li><%= link_to t('page.show'), @identifier %></li>
|
13
|
+
<li><%= link_to t('page.back'), identifiers_path %></li>
|
14
|
+
</ul>
|
15
|
+
</div>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.identifier')) -%></h1>
|
3
|
+
<div id="content_list">
|
4
|
+
|
5
|
+
<table class="index">
|
6
|
+
<tr>
|
7
|
+
<th><%= t('activerecord.attributes.identifier.body') %></th>
|
8
|
+
<th><%= t('activerecord.attributes.identifier.manifestation_id') %></th>
|
9
|
+
<th></th>
|
10
|
+
</tr>
|
11
|
+
|
12
|
+
<% @identifiers.each do |identifier| %>
|
13
|
+
<tr class="line<%= cycle("0", "1") -%>">
|
14
|
+
<td><%= link_to identifier.body, identifier %></td>
|
15
|
+
<td><%= link_to identifier.manifestation.original_title, identifier.manifestation if identifier.manifestation %></td>
|
16
|
+
<td>
|
17
|
+
<%= link_to t('page.edit'), edit_identifier_path(identifier) %>
|
18
|
+
<%= link_to t('page.destroy'), identifier, method: :delete, data: { confirm: 'Are you sure?' } %>
|
19
|
+
</td>
|
20
|
+
</tr>
|
21
|
+
<% end %>
|
22
|
+
</table>
|
23
|
+
|
24
|
+
<%= paginate(@identifiers) %>
|
25
|
+
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div id="submenu">
|
30
|
+
<ul>
|
31
|
+
<li><%= link_to 'New Identifier', new_identifier_path %></li>
|
32
|
+
</ul>
|
33
|
+
</div>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.new', :model => t('activerecord.models.identifier')) -%></h1>
|
3
|
+
<div id="content_list" class="ui-corner-all">
|
4
|
+
|
5
|
+
<%= render 'form' %>
|
6
|
+
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<div id="submenu">
|
11
|
+
<ul>
|
12
|
+
<li><%= link_to t('page.back'), identifiers_path %></li>
|
13
|
+
</ul>
|
14
|
+
</div>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<div id="content_detail" class="ui-corner-all">
|
2
|
+
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.identifier')) -%></h1>
|
3
|
+
<div id="content_list" class="ui-corner-all">
|
4
|
+
<p id="notice"><%= notice %></p>
|
5
|
+
|
6
|
+
<p>
|
7
|
+
<b>Body:</b>
|
8
|
+
<%= @identifier.body %>
|
9
|
+
</p>
|
10
|
+
|
11
|
+
<p>
|
12
|
+
<b>Manifestation:</b>
|
13
|
+
<%= @identifier.manifestation_id %>
|
14
|
+
</p>
|
15
|
+
|
16
|
+
<p>
|
17
|
+
<b>Primary:</b>
|
18
|
+
<%= @identifier.primary %>
|
19
|
+
</p>
|
20
|
+
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div id="submenu">
|
25
|
+
<ul>
|
26
|
+
<li><%= link_to t('page.edit'), edit_identifier_path(@identifier) %></li>
|
27
|
+
<li><%= link_to t('page.back'), identifiers_path %></li>
|
28
|
+
</ul>
|
29
|
+
</div>
|
@@ -1,4 +1,4 @@
|
|
1
1
|
title,isbn,item_identifier,call_number,created_at
|
2
2
|
<%- @items.each do |item| -%>
|
3
|
-
"<%=h item.manifestation.original_title.gsub(/"/, '""') if item.manifestation -%>",<%=h item.manifestation.isbn %>,<%=h item.item_identifier -%>,<%=h item.call_number -%>,<%=h item.created_at %><%= "\n" -%>
|
3
|
+
"<%=h item.manifestation.original_title.gsub(/"/, '""') if item.manifestation -%>",<%=h item.manifestation.identifier_contents(:isbn).join("; ") %>,<%=h item.item_identifier -%>,<%=h item.call_number -%>,<%=h item.created_at %><%= "\n" -%>
|
4
4
|
<%- end -%>
|
@@ -14,8 +14,9 @@
|
|
14
14
|
<%= set_focus_on_search_form -%>
|
15
15
|
<br />
|
16
16
|
<%= t('activerecord.attributes.item.acquired_at') %>:
|
17
|
+
<%= t('advanced_search.from') %>
|
17
18
|
<%= text_field_tag 'acquired_from', @acquired_from, {:class => 'date_field', :placeholder => "#{t('page.example')}: 2012-04-12"} -%>
|
18
|
-
<%= t('advanced_search.
|
19
|
+
<%= t('advanced_search.to') %> <%= text_field_tag 'acquired_to', @acquired_to, {:class => 'date_field', :placeholder => "#{t('page.example')}: 2012-05-11"} -%>
|
19
20
|
</p>
|
20
21
|
<%- end -%>
|
21
22
|
</div>
|
@@ -43,16 +43,16 @@
|
|
43
43
|
<div class="field">
|
44
44
|
<%= f.label :series_statement_string -%><br />
|
45
45
|
<%= f.fields_for :series_statements do |series_form| %>
|
46
|
-
<%=
|
46
|
+
<%= series_form.label :original_title %><br />
|
47
47
|
<%= series_form.text_field :original_title, :class => 'resource_title' %>
|
48
48
|
<%= series_form.link_to_remove t('page.remove'), :confirm => t('page.are_you_sure') %><br />
|
49
|
-
<%=
|
49
|
+
<%= series_form.label :title_transcription %><br />
|
50
50
|
<%= series_form.text_field :title_transcription, :class => 'resource_title' %><br />
|
51
|
-
<%=
|
51
|
+
<%= series_form.label :volume_number_string %><br />
|
52
52
|
<%= series_form.text_field :volume_number_string %><br />
|
53
|
-
<%=
|
53
|
+
<%= series_form.label :creator_string %><br />
|
54
54
|
<%= series_form.text_field :creator_string %><br />
|
55
|
-
<%=
|
55
|
+
<%= series_form.label :series_master %>
|
56
56
|
<%= series_form.check_box :series_master %>
|
57
57
|
<% end %>
|
58
58
|
<p><%= f.link_to_add t('page.add'), :series_statements %></p>
|
@@ -62,7 +62,7 @@
|
|
62
62
|
<%= f.label :creator_string -%><br />
|
63
63
|
<%= f.fields_for :creators do |creator_form| %>
|
64
64
|
<%= creator_form.text_field :full_name %>
|
65
|
-
<%= creator_form.link_to_remove t('page.remove') %>
|
65
|
+
<%= creator_form.link_to_remove t('page.remove'), :confirm => t('page.are_you_sure') %>
|
66
66
|
<% end %>
|
67
67
|
<p><%= f.link_to_add t('page.add'), :creators %></p>
|
68
68
|
</div>
|
@@ -71,7 +71,7 @@
|
|
71
71
|
<%= f.label :contributor_string -%><br />
|
72
72
|
<%= f.fields_for :contributors do |contributor_form| %>
|
73
73
|
<%= contributor_form.text_field :full_name %>
|
74
|
-
<%= contributor_form.link_to_remove t('page.remove') %>
|
74
|
+
<%= contributor_form.link_to_remove t('page.remove'), :confirm => t('page.are_you_sure') %>
|
75
75
|
<% end %>
|
76
76
|
<p><%= f.link_to_add t('page.add'), :contributors %></p>
|
77
77
|
</div>
|
@@ -80,7 +80,7 @@
|
|
80
80
|
<%= f.label :publisher_string -%><br />
|
81
81
|
<%= f.fields_for :publishers do |publisher_form| %>
|
82
82
|
<%= publisher_form.text_field :full_name %>
|
83
|
-
<%= publisher_form.link_to_remove t('page.remove') %>
|
83
|
+
<%= publisher_form.link_to_remove t('page.remove'), :confirm => t('page.are_you_sure') %>
|
84
84
|
<% end %>
|
85
85
|
<p><%= f.link_to_add t('page.add'), :publishers %></p>
|
86
86
|
</div>
|
@@ -113,37 +113,18 @@
|
|
113
113
|
</div>
|
114
114
|
|
115
115
|
<div class="field">
|
116
|
-
<%= f.label :
|
117
|
-
<%= f.
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
<div class="field">
|
122
|
-
<%= f.label :lccn -%>
|
123
|
-
<%= f.text_field :lccn, :class => 'resource_isbn_issn', :style => 'ime-mode: disabled' -%>
|
124
|
-
<%= f.label :issn -%>
|
125
|
-
<%= f.text_field :issn, :class => 'resource_isbn_issn', :style => 'ime-mode: disabled' -%>
|
126
|
-
</div>
|
127
|
-
|
128
|
-
<div class="field">
|
129
|
-
<%= f.label :subject -%><br />
|
130
|
-
<%= f.fields_for :subjects do |subject_form| %>
|
131
|
-
<%= subject_form.text_field :term %>
|
132
|
-
<%= subject_form.select(:subject_type_id, @subject_types.collect{|s| [s.display_name.localize, s.id]}) %>
|
133
|
-
<%= subject_form.link_to_remove t('page.remove'), :confirm => t('page.are_you_sure') %>
|
116
|
+
<%= f.label :identifier -%><br />
|
117
|
+
<%= f.fields_for :identifiers do |identifier_form| %>
|
118
|
+
<%= identifier_form.select(:identifier_type_id, @identifier_types.collect{|i| [i.display_name.localize, i.id]}) %>
|
119
|
+
<%= identifier_form.text_field :body, :class => 'resource_isbn_issn', :style => 'ime-mode: disabled' -%>
|
120
|
+
<%= identifier_form.link_to_remove t('page.remove'), :confirm => t('page.are_you_sure') %>
|
134
121
|
<% end %>
|
135
|
-
<p><%= f.link_to_add t('page.add'), :
|
122
|
+
<p><%= f.link_to_add t('page.add'), :identifiers %></p>
|
136
123
|
</div>
|
137
124
|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
<%= classification_form.select(:classification_type_id, @classification_types.collect{|c| [c.display_name.localize, c.id]}) %>
|
142
|
-
<%= classification_form.text_field :category %>
|
143
|
-
<%= classification_form.link_to_remove t('page.remove'), :confirm => t('page.are_you_sure') %>
|
144
|
-
<% end %>
|
145
|
-
<p><%= f.link_to_add t('page.add'), :classifications %></p>
|
146
|
-
</div>
|
125
|
+
<% if defined?(EnjuSubject) %>
|
126
|
+
<%= render 'manifestations/subject_form', :f => f %>
|
127
|
+
<% end %>
|
147
128
|
|
148
129
|
<div class="field">
|
149
130
|
<%= f.label :start_page -%>
|