enju_biblio 0.1.0.pre38 → 0.1.0.pre39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/manifestations_controller.rb +2 -2
  3. data/app/models/import_request.rb +6 -6
  4. data/app/models/item.rb +1 -1
  5. data/app/models/manifestation.rb +8 -5
  6. data/app/models/patron.rb +3 -5
  7. data/app/models/resource_import_file.rb +6 -6
  8. data/app/views/items/_form.html.erb +1 -0
  9. data/app/views/manifestations/_form.html.erb +6 -0
  10. data/app/views/manifestations/_pickup.html.erb +1 -1
  11. data/app/views/manifestations/_show.rdf.builder +80 -54
  12. data/app/views/manifestations/_title.html.erb +1 -0
  13. data/app/views/manifestations/_title.mobile.erb +1 -0
  14. data/app/views/patrons/_form.html.erb +0 -59
  15. data/app/views/patrons/show.html.erb +0 -52
  16. data/app/views/patrons/show.mobile.erb +0 -52
  17. data/app/views/series_statements/show.html.erb +0 -4
  18. data/config/locales/translation_en.yml +7 -0
  19. data/config/locales/translation_ja.yml +7 -0
  20. data/config/routes.rb +0 -3
  21. data/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb +5 -0
  22. data/lib/enju_biblio/version.rb +1 -1
  23. data/lib/generators/enju_biblio/setup/templates/db/fixtures/carrier_types.yml +35 -0
  24. data/lib/generators/enju_biblio/setup/templates/db/fixtures/identifier_types.yml +9 -0
  25. data/spec/dummy/db/development.sqlite3 +0 -0
  26. data/spec/dummy/db/schema.rb +2 -1
  27. data/spec/dummy/db/test.sqlite3 +0 -0
  28. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  29. data/spec/dummy/solr/data/test/index/segments_nq2 +0 -0
  30. data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
  31. data/spec/fixtures/identifier_types.yml +7 -0
  32. metadata +6 -22
  33. data/app/assets/javascripts/addresses.js +0 -2
  34. data/app/assets/stylesheets/addresses.css +0 -4
  35. data/app/controllers/addresses_controller.rb +0 -2
  36. data/app/controllers/identifiers_controller.rb +0 -14
  37. data/app/helpers/addresses_helper.rb +0 -2
  38. data/app/views/addresses/_form.html.erb +0 -57
  39. data/app/views/addresses/edit.html.erb +0 -6
  40. data/app/views/addresses/index.html.erb +0 -41
  41. data/app/views/addresses/new.html.erb +0 -5
  42. data/app/views/addresses/show.html.erb +0 -55
  43. data/app/views/identifiers/_form.html.erb +0 -30
  44. data/app/views/identifiers/edit.html.erb +0 -15
  45. data/app/views/identifiers/index.html.erb +0 -33
  46. data/app/views/identifiers/new.html.erb +0 -14
  47. data/app/views/identifiers/show.html.erb +0 -29
  48. data/db/migrate/20111009183423_add_ndc_to_manifestation.rb +0 -9
  49. data/spec/controllers/identifiers_controller_spec.rb +0 -446
  50. data/spec/dummy/solr/data/test/index/segments_myc +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb9c6c9ab4fa481e1cb90e3b084369e41fb93df9
4
- data.tar.gz: 5282c5b29fcdaa63b8d82c1d0b65835fa8f54252
3
+ metadata.gz: b3ada9d7dc55763e8ecb4e4d705aa35f26d6400d
4
+ data.tar.gz: 3487c8e06ade7e89488f1b7357da091cf42fcfcc
5
5
  SHA512:
6
- metadata.gz: f17f0fe34499283c96fa960afc2b320d354bb8de2e1d4add975f7da2ee955a82ebeec5742e276a833cdc11b78252eb1afd51bbf87e5ba5e6a3df163a8c6b0c7f
7
- data.tar.gz: 857cac540591576bcbffadf9ea8de65004566569f56955e0e4a1798f6fcd0eea4fbd9361f6213277341986c378200b509f2304cef2d5d1306c928e5b5eae44ea
6
+ metadata.gz: c1596e23591e2cea201fddabe10485567a55487795697f8411906bc0f4ffc71af1098aa0b8760bee566d281817878b099f71ecb8ba30c80d46ae049de6df9b99
7
+ data.tar.gz: bd10ea686c38fdac705bb5ccfe0b7ec4e648d7dffb9b098a93a81f95eef3181d883f30efa525156ed26bdb28cb5057df444476022781833501542a98b1d8b6bc
@@ -571,8 +571,8 @@ class ManifestationsController < ApplicationController
571
571
  query = "#{query} lccn_s:#{options[:lccn]}"
572
572
  end
573
573
 
574
- if options[:nbn].present?
575
- query = "#{query} nbn_s:#{options[:nbn]}"
574
+ if options[:jpno].present?
575
+ query = "#{query} jpno_s:#{options[:jpno]}"
576
576
  end
577
577
 
578
578
  if options[:publisher].present?
@@ -48,12 +48,12 @@ class ImportRequest < ActiveRecord::Base
48
48
  else
49
49
  sm_fail!
50
50
  end
51
- #rescue ActiveRecord::RecordInvalid
52
- # sm_fail!
53
- #rescue NameError
54
- # sm_fail!
55
- #rescue EnjuNdl::RecordNotFound
56
- # sm_fail!
51
+ rescue ActiveRecord::RecordInvalid
52
+ sm_fail!
53
+ rescue NameError
54
+ sm_fail!
55
+ rescue EnjuNdl::RecordNotFound
56
+ sm_fail!
57
57
  #rescue EnjuNii::RecordNotFound
58
58
  # sm_fail!
59
59
  end
data/app/models/item.rb CHANGED
@@ -8,7 +8,7 @@ class Item < ActiveRecord::Base
8
8
  enju_inter_library_loan_item_model if defined?(EnjuInterLibraryLoan)
9
9
  attr_accessible :call_number, :item_identifier, :circulation_status_id,
10
10
  :checkout_type_id, :shelf_id, :include_supplements, :note, :url, :price,
11
- :acquired_at, :bookstore_id, :missing_since, :budget_type_id,
11
+ :acquired_at, :bookstore_id, :missing_since, :budget_type_id, :lock_version,
12
12
  :manifestation_id, :library_id, :required_role_id #,:exemplify_attributes
13
13
  scope :on_shelf, where('shelf_id != 1')
14
14
  scope :on_web, where(:shelf_id => 1)
@@ -19,8 +19,8 @@ class Manifestation < ActiveRecord::Base
19
19
  :title_alternative_transcription, :description, :abstract, :available_at,
20
20
  :valid_until, :date_submitted, :date_accepted, :date_captured, :ndl_bib_id,
21
21
  :pub_date, :edition_string, :volume_number, :issue_number, :serial_number,
22
- :ndc, :content_type_id, :attachment, :classification_number,
23
- :series_statements_attributes, :periodical,
22
+ :content_type_id, :attachment, :lock_version,
23
+ :series_statements_attributes, :periodical, :statement_of_responsibility,
24
24
  :creators_attributes, :contributors_attributes, :publishers_attributes,
25
25
  :identifiers_attributes
26
26
  attr_accessible :fulltext_content,
@@ -59,7 +59,8 @@ class Manifestation < ActiveRecord::Base
59
59
  text :title, :default_boost => 2 do
60
60
  titles
61
61
  end
62
- text :fulltext, :note, :creator, :contributor, :publisher, :description
62
+ text :fulltext, :note, :creator, :contributor, :publisher, :description,
63
+ :statement_of_responsibility
63
64
  text :item_identifier do
64
65
  if series_master?
65
66
  root_series_statement.root_manifestation.items.pluck(:item_identifier)
@@ -93,8 +94,8 @@ class Manifestation < ActiveRecord::Base
93
94
  string :lccn, :multiple => true do
94
95
  identifier_contents(:lccn)
95
96
  end
96
- string :nbn, :multiple => true do
97
- identifier_contents(:nbn)
97
+ string :jpno, :multiple => true do
98
+ identifier_contents(:jpno)
98
99
  end
99
100
  string :carrier_type do
100
101
  carrier_type.name
@@ -476,6 +477,8 @@ class Manifestation < ActiveRecord::Base
476
477
  def identifier_contents(name)
477
478
  if IdentifierType.where(:name => name.to_s).exists?
478
479
  identifiers.where(:identifier_type_id => IdentifierType.where(:name => name).first.id).pluck(:body)
480
+ else
481
+ []
479
482
  end
480
483
  end
481
484
  end
data/app/models/patron.rb CHANGED
@@ -4,12 +4,10 @@ class Patron < ActiveRecord::Base
4
4
  attr_accessible :last_name, :middle_name, :first_name,
5
5
  :last_name_transcription, :middle_name_transcription,
6
6
  :first_name_transcription, :corporate_name, :corporate_name_transcription,
7
- :full_name, :full_name_transcription, :full_name_alternative, :zip_code_1,
8
- :zip_code_2, :address_1, :address_2, :address_1_note, :address_2_note,
9
- :telephone_number_1, :telephone_number_2, :fax_number_1, :fax_number_2,
10
- :other_designation, :place, :street, :locality, :region, :language_id,
7
+ :full_name, :full_name_transcription, :full_name_alternative,
8
+ :other_designation, :language_id,
11
9
  :country_id, :patron_type_id, :note, :required_role_id, :email, :url,
12
- :full_name_alternative_transcription, :title, :birth_date, :death_date,
10
+ :full_name_alternative_transcription, :title,
13
11
  :patron_identifier
14
12
 
15
13
  scope :readable_by, lambda{|user| {:conditions => ['required_role_id <= ?', user.try(:user_has_role).try(:role_id) || Role.where(:name => 'Guest').select(:id).first.id]}}
@@ -99,9 +99,9 @@ class ResourceImportFile < ActiveRecord::Base
99
99
  end
100
100
 
101
101
  unless manifestation
102
- if row['nbn'].present?
103
- nbn = row['nbn'].to_s.strip
104
- manifestation = Identifier.where(:body => 'nbn', :identifier_type_id => IdentifierType.where(:name => 'nbn').first_or_create.id).first.try(:manifestation)
102
+ if row['jpno'].present?
103
+ jpno = row['jpno'].to_s.strip
104
+ manifestation = Identifier.where(:body => 'jpno', :identifier_type_id => IdentifierType.where(:name => 'jpno').first_or_create.id).first.try(:manifestation)
105
105
  end
106
106
  end
107
107
 
@@ -483,9 +483,9 @@ class ResourceImportFile < ActiveRecord::Base
483
483
  identifier[:isbn] = Identifier.new(:body => row['isbn'])
484
484
  identifier[:isbn].identifier_type = IdentifierType.where(:name => 'isbn').first_or_create
485
485
  end
486
- if row['nbn']
487
- identifier[:nbn] = Identifier.new(:body => row['nbn'])
488
- identifier[:nbn].identifier_type = IdentifierType.where(:name => 'nbn').first_or_create
486
+ if row['jpno']
487
+ identifier[:jpno] = Identifier.new(:body => row['jpno'])
488
+ identifier[:jpno].identifier_type = IdentifierType.where(:name => 'jpno').first_or_create
489
489
  end
490
490
  if row['issn']
491
491
  identifier[:issn] = Identifier.new(:body => row['issn'])
@@ -80,6 +80,7 @@
80
80
  </div>
81
81
 
82
82
  <div class="actions">
83
+ <%= f.hidden_field :lock_version %>
83
84
  <%= f.submit %>
84
85
  </div>
85
86
  <%= javascript_tag("$(function(){$('#library_id').focus()})") %>
@@ -15,6 +15,11 @@
15
15
  <%= f.text_field :title_alternative, :class => 'resource_title' -%>
16
16
  </div>
17
17
 
18
+ <div class="field">
19
+ <%= f.label :statement_of_responsibility %><br />
20
+ <%= f.text_field :statement_of_responsibility, :class => 'resource_title' -%>
21
+ </div>
22
+
18
23
  <div class="field">
19
24
  <%= f.label :periodical %>
20
25
  <%= f.check_box :periodical %>
@@ -174,6 +179,7 @@
174
179
 
175
180
  <div class="actions">
176
181
  <%= f.hidden_field :parent_id %>
182
+ <%= f.hidden_field :lock_version %>
177
183
  <%= f.submit %>
178
184
  </div>
179
185
  <%= javascript_tag("$(function(){$('#query').focus()})") %>
@@ -8,7 +8,7 @@
8
8
  <p>
9
9
  <strong><%= t('activerecord.models.subject') -%>:</strong>
10
10
  <%- manifestation.subjects.each do |subject| -%>
11
- <%= link_to subject.term, manifestations_path(:query => "subject_sm:#{h(subject.term)}") -%>
11
+ <%= link_to subject.term, manifestations_path(:query => "subject_sm:\"#{h(subject.term)}\"") -%>
12
12
  <%- end -%>
13
13
  </p>
14
14
  <% end %>
@@ -1,64 +1,90 @@
1
- xml.dcndl :BibResource do
2
- xml.rdf :Description, 'rdf:about' => manifestation_url(manifestation) do
3
- if manifestation.identifier_contents(:nbn).first
4
- xml.dcterms :identifier, manifestation.identifier_contents(:nbn).first, 'rdf:datatype' => 'http://ndl.go.jp/dcndl/terms/JPNO'
5
-
6
- xml.rdfs :seeAlso, 'rdf:resource' => "http://id.ndl.go.jp/jpno/#{manifestation.identifier_contents(:nbn).first}"
7
- end
8
- manifestation.identifier_contents(:isbn).each do |i|
9
- xml.dcterms :identifier, i, 'rdf:datatype' => 'http://ndl.go.jp/dcndl/terms/ISBN'
10
- xml.rdfs :seeAlso, 'rdf:resource' => "http://iss.ndl.go.jp/isbn/#{i}"
11
- end
12
- xml.dcterms :title, manifestation.original_title
13
- xml.dc :title do
14
- xml.rdf :Description do
15
- xml.rdf :value, manifestation.original_title
16
- xml.dcndl :transcription, manifestation.title_transcription
1
+ xml.titleInfo{
2
+ xml.title manifestation.original_title
3
+ }
4
+ xml.titleInfo('type' => 'alternative'){
5
+ xml.title manifestation.title_alternative
6
+ }
7
+ manifestation.creators.readable_by(current_user).each do |creator|
8
+ case creator.patron_type.name
9
+ when "Person"
10
+ xml.name('type' => 'personal'){
11
+ xml.namePart creator.full_name
12
+ xml.namePart creator.date if creator.date
13
+ xml.role do
14
+ xml.roleTerm "creator", 'type' => 'text', 'authority' => 'marcrelator'
15
+ end
16
+ }
17
+ when "CorporateBody"
18
+ xml.name('type' => 'corporate'){
19
+ xml.namePart creator.full_name
20
+ xml.role do
21
+ xml.roleTerm "creator", 'type' => 'text', 'authority' => 'marcrelator'
22
+ end
23
+ }
24
+ when "Conference"
25
+ xml.name('type' => 'conference'){
26
+ xml.namePart creator.full_name
27
+ xml.role do
28
+ xml.roleTerm "creator", 'type' => 'text', 'authority' => 'marcrelator'
29
+ end
30
+ }
17
31
  end
18
32
  end
19
- if manifestation.title_alternative
20
- xml.dcndl :alternative do
21
- xml.rdf :Description do
22
- xml.rdf :value, manifestation.title_alternative
23
- end
33
+ manifestation.contributors.readable_by(current_user).each do |contributor|
34
+ case contributor.patron_type.name
35
+ when "Person"
36
+ xml.name('type' => 'personal'){
37
+ xml.namePart contributor.full_name
38
+ xml.namePart contributor.date if contributor.date
39
+ }
40
+ when "CorporateBody"
41
+ xml.name('type' => 'corporate'){
42
+ xml.namePart contributor.full_name
43
+ }
44
+ when "Conference"
45
+ xml.name('type' => 'conference'){
46
+ xml.namePart contributor.full_name
47
+ }
24
48
  end
25
49
  end
26
- if manifestation.volume_number_string?
27
- xml.dcndl :volume do
28
- xml.rdf :Description do
29
- xml.rdf :value, manifestation.volume_number_string
30
- end
50
+ xml.typeOfResource manifestation.carrier_type.mods_type
51
+ xml.originInfo{
52
+ manifestation.publishers.readable_by(current_user).each do |patron|
53
+ xml.publisher patron.full_name
31
54
  end
32
- end
33
- if manifestation.edition_string?
34
- xml.dcndl :edition do
35
- xml.rdf :Description do
36
- xml.rdf :value, manifestation.edition_string
55
+ xml.dateIssued manifestation.date_of_publication
56
+ xml.frequency manifestation.frequency.name
57
+ }
58
+ xml.language{
59
+ xml.languageTerm manifestation.language.iso_639_2, 'authority' => 'iso639-2b', 'type' => 'code' if manifestation.language
60
+ }
61
+ xml.physicalDescription{
62
+ xml.form manifestation.carrier_type.name, 'authority' => 'marcform'
63
+ extent = []
64
+ extent << manifestation.number_of_pages if manifestation.number_of_pages
65
+ extent << manifestation.height if manifestation.height
66
+ xml.extent extent.join("; ")
67
+ }
68
+ if defined?(EnjuSubject)
69
+ xml.subject{
70
+ manifestation.subjects.each do |subject|
71
+ xml.topic subject.term
37
72
  end
73
+ }
74
+ manifestation.subjects.collect(&:classifications).flatten.each do |classification|
75
+ xml.classification classification.category, 'authority' => classification.classification_type.name
38
76
  end
39
77
  end
40
- manifestation.creators.each do |creator|
41
- xml.dcterms :creator do
42
- xml.foaf :Agent do
43
- xml.foaf :name, creator.full_name
44
- xml.dcndl :transcription, creator.full_name_transcription
45
- end
46
- end
47
- xml.dc :creator, creator.full_name
78
+ xml.abstract manifestation.description
79
+ xml.note manifestation.note
80
+ manifestation.identifier_content(:isbn).each do |i|
81
+ xml.identifier i, :type => 'isbn'
48
82
  end
49
- manifestation.publishers.each do |publisher|
50
- xml.dcterms :publisher do
51
- xml.foaf :Agent do
52
- xml.foaf :name, publisher.full_name
53
- xml.dcndl :transcription, publisher.full_name_transcription
54
- xml.dcndl :location, publisher.address_1
55
- end
56
- end
57
- xml.dcndl :publicationPlace, publisher.country.alpha_2.downcase, 'rdf:datatype' => 'http://purl.org/dc/terms/ISO3166'
83
+ manifestation.identifier_content(:lccn).each do |l|
84
+ xml.identifier l, :type => 'lccn'
58
85
  end
59
- xml.dcterms :language, manifestation.language.iso_639_2, 'rdf:datatype' => "http://purl.org/dc/terms/ISO639-2" if manifestation.language
60
- xml.dcterms :date, manifestation.pub_date
61
- xml.dcterms :issued, manifestation.date_of_publication.try(:year), 'rdf:datatype' => "http://purl.org/dc/terms/W3CDTF"
62
- xml.dcndl :price, manifestation.price
63
- end
64
- end
86
+ xml.recordInfo{
87
+ xml.recordCreationDate manifestation.created_at
88
+ xml.recordChangeDate manifestation.updated_at
89
+ xml.recordIdentifier manifestation_url(manifestation)
90
+ }
@@ -5,6 +5,7 @@
5
5
  <%= link_to form_icon(manifestation.carrier_type), manifestation -%>
6
6
  </h2>
7
7
  <p>
8
+ <%= manifestation.statement_of_responsibility %><br />
8
9
  <%- unless manifestation.creators.readable_by(current_user).empty? -%>
9
10
  <%= t('patron.creator') -%>: <%= patrons_list(manifestation.creators.readable_by(current_user), :itemprop => 'author') -%>
10
11
  <%- end -%>
@@ -5,6 +5,7 @@
5
5
  <%= link_to form_icon(manifestation.carrier_type), manifestation -%>
6
6
  </h2>
7
7
  <p>
8
+ <%= manifestation.statement_of_responsibility %><br />
8
9
  <%- unless manifestation.creators.readable_by(current_user).empty? -%>
9
10
  <%= t('patron.creator') -%>: <%= patrons_list(manifestation.creators.readable_by(current_user), :itemprop => 'author') -%>
10
11
  <%- end -%>
@@ -79,65 +79,6 @@
79
79
  <%= f.submit %>
80
80
  </div>
81
81
 
82
- <hr />
83
-
84
- <div id="address_1">
85
- <div class="field">
86
- <%= f.label :zip_code_1 -%><br />
87
- <%= f.text_field :zip_code_1, :class => 'resource_zip_code' -%>
88
- </div>
89
-
90
- <div class="field">
91
- <%= f.label :address_1 -%><br />
92
- <%= f.text_area :address_1, :class => 'resource_textarea' -%>
93
- </div>
94
-
95
- <div class="field">
96
- <%= f.label :telephone_number_1 -%><br />
97
- <%= f.phone_field :telephone_number_1, :class => 'resource_telephone_number' -%>
98
- </div>
99
-
100
- <div class="field">
101
- <%= f.label :fax_number_1 -%><br />
102
- <%= f.phone_field :fax_number_1, :class => 'resource_telephone_number' -%>
103
- </div>
104
-
105
- <div class="field">
106
- <%= f.label :address_1_note -%><br />
107
- <%= f.text_area :address_1_note, :class => 'resource_textarea' -%>
108
- </div>
109
- <div class="field"><%= link_to_function t('patron.other_address'), "$('#address_2').toggle()" -%></div>
110
- </div>
111
-
112
- <div id="address_2" style="display: none">
113
- <hr />
114
- <div class="field">
115
- <%= f.label :zip_code_2 -%><br />
116
- <%= f.text_field :zip_code_2, :class => 'resource_zip_code' -%>
117
- </div>
118
-
119
- <div class="field">
120
- <%= f.label :address_2 -%><br />
121
- <%= f.text_area :address_2, :class => 'resource_textarea' -%>
122
- </div>
123
-
124
- <div class="field">
125
- <%= f.label :telephone_number_2 -%><br />
126
- <%= f.phone_field :telephone_number_2, :class => 'resource_telephone_number' -%>
127
- </div>
128
-
129
- <div class="field">
130
- <%= f.label :fax_number_2 -%><br />
131
- <%= f.phone_field :fax_number_2, :class => 'resource_telephone_number' -%>
132
- </div>
133
-
134
- <div class="field">
135
- <%= f.label :address_2_note -%><br />
136
- <%= f.text_area :address_2_note, :class => 'resource_textarea' -%>
137
- </div>
138
- </div>
139
-
140
- <hr />
141
82
  <div class="field">
142
83
  <%= f.label :note -%><br />
143
84
  <%= f.text_area :note, :class => 'resource_textarea' -%>
@@ -78,58 +78,6 @@
78
78
  <td><strong><%= t('activerecord.models.language') -%>:</strong></td>
79
79
  <td><%= @patron.language.display_name.localize -%></td>
80
80
  </tr>
81
- <%- if can? :delete, @patron -%>
82
- <tr>
83
- <td><strong><%= t('activerecord.attributes.patron.zip_code_1') -%>:</strong></td>
84
- <td><%= @patron.zip_code_1 -%></td>
85
- </tr>
86
- <tr>
87
- <td><strong><%= t('activerecord.attributes.patron.address_1') -%>:</strong></td>
88
- <td><%= @patron.address_1 -%></td>
89
- </tr>
90
- <tr>
91
- <td><strong><%= t('activerecord.attributes.patron.telephone_number_1') -%>:</strong></td>
92
- <td><%= @patron.telephone_number_1 -%></td>
93
- </tr>
94
- <tr>
95
- <td><strong><%= t('activerecord.attributes.patron.fax_number_1') -%>:</strong></td>
96
- <td><%= @patron.fax_number_1 -%></td>
97
- </tr>
98
- <tr>
99
- <td><strong><%= t('activerecord.attributes.patron.address_1_note') -%>:</strong></td>
100
- <td><%= @patron.address_1_note -%></td>
101
- </tr>
102
- <tr>
103
- <td><strong><%= t('activerecord.attributes.patron.zip_code_2') -%>:</strong></td>
104
- <td><%= @patron.zip_code_2 -%></td>
105
- </tr>
106
- <tr>
107
- <td><strong><%= t('activerecord.attributes.patron.address_2') -%>:</strong></td>
108
- <td><%= @patron.address_2 -%></td>
109
- </tr>
110
- <tr>
111
- <td><strong><%= t('activerecord.attributes.patron.telephone_number_2') -%>:</strong></td>
112
- <td><%= @patron.telephone_number_2 -%></td>
113
- </tr>
114
- <tr>
115
- <td><strong><%= t('activerecord.attributes.patron.fax_number_2') -%>:</strong></td>
116
- <td><%= @patron.fax_number_2 -%></td>
117
- </tr>
118
- <tr>
119
- <td><strong><%= t('activerecord.attributes.patron.address_2_note') -%>:</strong></td>
120
- <td><%= @patron.address_2_note -%></td>
121
- </tr>
122
- <%- if !@patron.user or (@patron.user and current_user.try(:has_role?, 'Administrator')) %>
123
- <tr>
124
- <td><strong><%= t('activerecord.attributes.patron.date_of_birth') -%>:</strong></td>
125
- <td><%= l(@patron.date_of_birth, :format => :only_date) if @patron.date_of_birth -%></td>
126
- </tr>
127
- <tr>
128
- <td><strong><%= t('activerecord.attributes.patron.date_of_death') -%>:</strong></td>
129
- <td><%= l(@patron.date_of_death, :format => :only_date) if @patron.date_of_death -%></td>
130
- </tr>
131
- <% end %>
132
- <%- end -%>
133
81
  <tr>
134
82
  <td><strong><%= t('activerecord.attributes.patron.note') -%>:</strong></td>
135
83
  <td><%= @patron.note -%></td>
@@ -52,58 +52,6 @@
52
52
  <td><strong><%= t('activerecord.models.language') -%>:</strong></td>
53
53
  <td><%= @patron.language.display_name.localize -%></td>
54
54
  </tr>
55
- <%- if can? :delete, @patron -%>
56
- <tr>
57
- <td><strong><%= t('activerecord.attributes.patron.zip_code_1') -%>:</strong></td>
58
- <td><%= @patron.zip_code_1 -%></td>
59
- </tr>
60
- <tr>
61
- <td><strong><%= t('activerecord.attributes.patron.address_1') -%>:</strong></td>
62
- <td><%= @patron.address_1 -%></td>
63
- </tr>
64
- <tr>
65
- <td><strong><%= t('activerecord.attributes.patron.telephone_number_1') -%>:</strong></td>
66
- <td><%= @patron.telephone_number_1 -%></td>
67
- </tr>
68
- <tr>
69
- <td><strong><%= t('activerecord.attributes.patron.fax_number_1') -%>:</strong></td>
70
- <td><%= @patron.fax_number_1 -%></td>
71
- </tr>
72
- <tr>
73
- <td><strong><%= t('activerecord.attributes.patron.address_1_note') -%>:</strong></td>
74
- <td><%= @patron.address_1_note -%></td>
75
- </tr>
76
- <tr>
77
- <td><strong><%= t('activerecord.attributes.patron.zip_code_2') -%>:</strong></td>
78
- <td><%= @patron.zip_code_2 -%></td>
79
- </tr>
80
- <tr>
81
- <td><strong><%= t('activerecord.attributes.patron.address_2') -%>:</strong></td>
82
- <td><%= @patron.address_2 -%></td>
83
- </tr>
84
- <tr>
85
- <td><strong><%= t('activerecord.attributes.patron.telephone_number_2') -%>:</strong></td>
86
- <td><%= @patron.telephone_number_2 -%></td>
87
- </tr>
88
- <tr>
89
- <td><strong><%= t('activerecord.attributes.patron.fax_number_2') -%>:</strong></td>
90
- <td><%= @patron.fax_number_2 -%></td>
91
- </tr>
92
- <tr>
93
- <td><strong><%= t('activerecord.attributes.patron.address_2_note') -%>:</strong></td>
94
- <td><%= @patron.address_2_note -%></td>
95
- </tr>
96
- <tr>
97
- <td><strong><%= t('activerecord.attributes.patron.date_of_birth') -%>:</strong></td>
98
- <td><%= l(@patron.date_of_birth) if @patron.date_of_birth -%></td>
99
- </tr>
100
- <%- if @patron.user and current_user.try(:has_role?, 'Administrator') %>
101
- <tr>
102
- <td><strong><%= t('activerecord.attributes.patron.date_of_death') -%>:</strong></td>
103
- <td><%= l(@patron.date_of_death) if @patron.date_of_death -%></td>
104
- </tr>
105
- <% end %>
106
- <%- end -%>
107
55
  <tr>
108
56
  <td><strong><%= t('activerecord.attributes.patron.note') -%>:</strong></td>
109
57
  <td><%= @patron.note -%></td>
@@ -8,7 +8,6 @@
8
8
 
9
9
  <h2 class="resource_title">
10
10
  <%= @series_statement.original_title %>
11
- <%= image_tag('icons/newspaper.png', :size => '16x16', :alt => t('manifestation.serial')) if @series_statement.periodical -%>
12
11
  </h2>
13
12
 
14
13
  <table id="resource_detail">
@@ -34,9 +33,6 @@
34
33
 
35
34
  <div id="submenu" class="ui-corner-all">
36
35
  <ul>
37
- <% if can? :create, Manifestation %>
38
- <li><%= link_to t('page.new', :model => t('activerecord.models.manifestation')), new_series_statement_manifestation_path(@series_statement) %></li>
39
- <% end %>
40
36
  <% if can? :update, @series_statement %>
41
37
  <li><%= link_to t('page.edit'), edit_series_statement_path(@series_statement) %></li>
42
38
  <% end %>
@@ -85,6 +85,13 @@ en:
85
85
  subject: Subject
86
86
  classification: Classification
87
87
  identifier: Identifier
88
+ statement_of_responsibility: Statement of responsibility
89
+ manifestation/subjects:
90
+ term: Subject
91
+ manifestation/classifications:
92
+ category: Classification
93
+ manifestation/identifiers:
94
+ body: Identifier
88
95
  item:
89
96
  call_number: Call number
90
97
  item_identifier: Item identifier
@@ -85,6 +85,13 @@ ja:
85
85
  subject: 件名
86
86
  classification: 分類
87
87
  identifier: 識別子
88
+ statement_of_responsibility: 責任表示
89
+ manifestation/subjects:
90
+ term: 件名
91
+ manifestation/classifications:
92
+ category: 分類
93
+ manifestation/identifiers:
94
+ body: 識別子
88
95
  item:
89
96
  call_number: 請求記号
90
97
  item_identifier: 所蔵情報ID
data/config/routes.rb CHANGED
@@ -1,7 +1,4 @@
1
1
  Rails.application.routes.draw do
2
-
3
- resources :identifiers
4
-
5
2
  resources :identifier_types
6
3
 
7
4
  resources :manifestations do
@@ -0,0 +1,5 @@
1
+ class AddStatementOfResponsibilityToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :statement_of_responsibility, :text
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module EnjuBiblio
2
- VERSION = "0.1.0.pre38"
2
+ VERSION = "0.1.0.pre39"
3
3
  end
@@ -0,0 +1,35 @@
1
+ ---
2
+ carrier_type_00001:
3
+ name: print
4
+ display_name: print
5
+ id: 1
6
+ position: 1
7
+ carrier_type_00002:
8
+ name: CD
9
+ display_name: CD
10
+ id: 2
11
+ position: 2
12
+ carrier_type_00003:
13
+ name: DVD
14
+ display_name: DVD
15
+ id: 3
16
+ position: 3
17
+ carrier_type_00004:
18
+ name: file
19
+ display_name: file
20
+ id: 4
21
+ position: 4
22
+
23
+ # == Schema Information
24
+ #
25
+ # Table name: carrier_types
26
+ #
27
+ # id :integer not null, primary key
28
+ # name :string(255) not null
29
+ # display_name :text
30
+ # note :text
31
+ # position :integer
32
+ # created_at :datetime not null
33
+ # updated_at :datetime not null
34
+ #
35
+