enju_flower 0.1.0.pre7 → 0.1.0.pre8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- 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 +2 -5
- data/app/views/manifestations/show.mobile.erb +1 -1
- data/lib/enju_flower/version.rb +1 -1
- data/spec/controllers/manifestations_controller_spec.rb +12 -10
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20130506175303_create_identifier_types.rb +12 -0
- data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +14 -0
- data/spec/dummy/db/schema.rb +22 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/{_ux.fdt → _149.fdt} +0 -0
- data/spec/dummy/solr/data/test/index/{_ux.fdx → _149.fdx} +0 -0
- data/spec/dummy/solr/data/test/index/{_ux.fnm → _149.fnm} +2 -2
- data/spec/dummy/solr/data/test/index/{_ux.frq → _149.frq} +0 -0
- data/spec/dummy/solr/data/test/index/{_ux.nrm → _149.nrm} +1 -1
- data/spec/dummy/solr/data/test/index/{_ux.prx → _149.prx} +0 -0
- data/spec/dummy/solr/data/test/index/_149.tii +0 -0
- data/spec/dummy/solr/data/test/index/{_ux.tis → _149.tis} +0 -0
- data/spec/dummy/solr/data/test/index/{_uy.fdt → _14a.fdt} +0 -0
- data/spec/dummy/solr/data/test/index/{_uy.fdx → _14a.fdx} +0 -0
- data/spec/dummy/solr/data/test/index/{_uy.fnm → _14a.fnm} +2 -2
- data/spec/dummy/solr/data/test/index/{_uy.frq → _14a.frq} +0 -0
- data/spec/dummy/solr/data/test/index/{_uy.nrm → _14a.nrm} +1 -1
- data/spec/dummy/solr/data/test/index/{_uy.prx → _14a.prx} +0 -0
- data/spec/dummy/solr/data/test/index/_14a.tii +0 -0
- data/spec/dummy/solr/data/test/index/{_uy.tis → _14a.tis} +0 -0
- data/spec/dummy/solr/data/test/index/{_uz.fdt → _14b.fdt} +0 -0
- data/spec/dummy/solr/data/test/index/{_uz.fdx → _14b.fdx} +0 -0
- data/spec/dummy/solr/data/test/index/{_uz.fnm → _14b.fnm} +2 -2
- data/spec/dummy/solr/data/test/index/_14b.frq +0 -0
- data/spec/dummy/solr/data/test/index/{_uz.nrm → _14b.nrm} +1 -1
- data/spec/dummy/solr/data/test/index/_14b.prx +0 -0
- data/spec/dummy/solr/data/test/index/_14b.tii +0 -0
- data/spec/dummy/solr/data/test/index/_14b.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/{segments_161 → segments_1in} +0 -0
- data/spec/fixtures/identifier_types.yml +29 -0
- data/spec/fixtures/identifiers.yml +113 -0
- data/spec/fixtures/manifestations.yml +22 -161
- metadata +64 -58
- data/app/views/manifestations/_show.mods.builder +0 -86
- data/app/views/manifestations/_show.rdf.builder +0 -63
- 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/_ux.tii +0 -0
- data/spec/dummy/solr/data/test/index/_uy.tii +0 -0
- data/spec/dummy/solr/data/test/index/_uz.frq +0 -0
- data/spec/dummy/solr/data/test/index/_uz.prx +0 -0
- data/spec/dummy/solr/data/test/index/_uz.tii +0 -0
- data/spec/dummy/solr/data/test/index/_uz.tis +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 13cfdbaeabf732a60a51167adb7ace795059298d
|
|
4
|
+
data.tar.gz: 12f7288448433264f5c3ce84750488a43b0827db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c04aad383057b917253ad028b91b0df5c1c4ba4e4b88c514917c83d20e467e82589df4e47a1d33d7b60b97c01cb90269eaf3aec5b3ceebeb5efe70125748ed75
|
|
7
|
+
data.tar.gz: bb434e4d227cae10044b1eae16b281461818c8d4bb3ba3cb7d28772013b6cf875510259db22fc810ce9d981c04969d8812133ece6b9f57882546d0b1317cc660
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
<td style="width: 200px"><%= t('activerecord.models.series_statement') -%>:</td>
|
|
15
15
|
<td style="width: 500px">
|
|
16
16
|
<%= render 'show_series_detail', :manifestation => manifestation %>
|
|
17
|
-
<%-
|
|
18
|
-
(<%= t('activerecord.attributes.manifestation.issn') -%>: <%= manifestation.issn -%>)
|
|
17
|
+
<%- unless manifestation.identifier_contents(:issn).empty? -%>
|
|
18
|
+
(<%= t('activerecord.attributes.manifestation.issn') -%>: <%= manifestation.identifier_contents(:issn).join(" ") -%>)
|
|
19
19
|
<%- end -%>
|
|
20
20
|
</td>
|
|
21
21
|
</tr>
|
|
@@ -64,19 +64,9 @@
|
|
|
64
64
|
<tr>
|
|
65
65
|
<td><%= t('page.identifier') -%>:</td>
|
|
66
66
|
<td>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
( <%= manifestation.isbn10 -%> )
|
|
71
|
-
<%- end -%>
|
|
72
|
-
<%- end -%>
|
|
73
|
-
<%- if manifestation.nbn.present? -%>
|
|
74
|
-
NBN: <%= manifestation.nbn -%>
|
|
75
|
-
<%- end -%>
|
|
76
|
-
<%- if manifestation.lccn.present? -%>
|
|
77
|
-
<br />
|
|
78
|
-
LCCN: <%= manifestation.lccn -%>
|
|
79
|
-
<%- end -%>
|
|
67
|
+
<% manifestation.identifiers.each do |identifier| %>
|
|
68
|
+
<%= "#{identifier.identifier_type.display_name.localize}: #{identifier.body}" %>
|
|
69
|
+
<% end %>
|
|
80
70
|
</td>
|
|
81
71
|
</tr>
|
|
82
72
|
<%- end -%>
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
<td style="width: 200px"><%= t('activerecord.models.series_statement') -%>:</td>
|
|
15
15
|
<td style="width: 500px">
|
|
16
16
|
<%= render 'show_series_detail', :manifestation => manifestation %>
|
|
17
|
-
<%-
|
|
18
|
-
(<%= t('activerecord.attributes.manifestation.issn') -%>: <%= manifestation.issn -%>)
|
|
17
|
+
<%- unless manifestation.identifier_contents(:issn).empty? -%>
|
|
18
|
+
(<%= t('activerecord.attributes.manifestation.issn') -%>: <%= manifestation.identifier_contents(:issn).join(" ") -%>)
|
|
19
19
|
<%- end -%>
|
|
20
20
|
</td>
|
|
21
21
|
</tr>
|
|
@@ -66,19 +66,9 @@
|
|
|
66
66
|
<tr>
|
|
67
67
|
<td><%= t('page.identifier') -%>:</td>
|
|
68
68
|
<td>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
( <%= manifestation.isbn10 -%> )
|
|
73
|
-
<%- end -%>
|
|
74
|
-
<%- end -%>
|
|
75
|
-
<%- if manifestation.nbn.present? -%>
|
|
76
|
-
NBN: <%= manifestation.nbn -%>
|
|
77
|
-
<%- end -%>
|
|
78
|
-
<%- if manifestation.lccn.present? -%>
|
|
79
|
-
<br />
|
|
80
|
-
LCCN: <%= manifestation.lccn -%>
|
|
81
|
-
<%- end -%>
|
|
69
|
+
<% manifestation.identifiers.each do |identifier| %>
|
|
70
|
+
<%= "#{identifier.identifier_type.display_name.localize}: #{identifier.body}" %>
|
|
71
|
+
<% end %>
|
|
82
72
|
</td>
|
|
83
73
|
</tr>
|
|
84
74
|
<%- end -%>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<strong>
|
|
2
2
|
<% if manifestation.root_series_statement %>
|
|
3
|
-
<%= link_to manifestation.
|
|
3
|
+
<%= link_to manifestation.original_title, manifestations_path(:parent => manifestation.id, :query => @query) %>
|
|
4
4
|
<% else %>
|
|
5
5
|
<%= link_to title_with_volume_number(manifestation), manifestation -%>
|
|
6
6
|
<% end %>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
manifestation_identifier original_title creator publisher isbn pub_date note
|
|
2
2
|
<%- @manifestations.each do |manifestation| -%>
|
|
3
|
-
<%= manifestation.manifestation_identifier %> "<%=raw manifestation.original_title.gsub(/"/, '""') -%>" <%=raw manifestation.creators.pluck(:full_name).join('; ') -%> <%=raw manifestation.publishers.pluck(:full_name).join('; ') -%> <%= manifestation.isbn -%> <%= manifestation.pub_date -%> <%= manifestation.note -%><%= "\n" -%>
|
|
3
|
+
<%= manifestation.manifestation_identifier %> "<%=raw manifestation.original_title.gsub(/"/, '""') -%>" <%=raw manifestation.creators.pluck(:full_name).join('; ') -%> <%=raw manifestation.publishers.pluck(:full_name).join('; ') -%> <%= manifestation.identifier_contents(:isbn) -%> <%= manifestation.pub_date -%> <%= manifestation.note -%><%= "\n" -%>
|
|
4
4
|
<%- end -%>
|
|
@@ -30,12 +30,9 @@ xml.rss('version' => "2.0",
|
|
|
30
30
|
xml.pubDate manifestation.date_of_publication.try(:utc).try(:rfc822)
|
|
31
31
|
xml.link manifestation_url(manifestation)
|
|
32
32
|
xml.guid manifestation_url(manifestation), :isPermaLink => "true"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
xml.category tag
|
|
36
|
-
end
|
|
33
|
+
manifestation.identifier_contents(:isbn).each do |i|
|
|
34
|
+
xml.tag! "dc:identifier", i
|
|
37
35
|
end
|
|
38
|
-
xml.tag! "dc:identifier", manifestation.isbn
|
|
39
36
|
end
|
|
40
37
|
end
|
|
41
38
|
end
|
data/lib/enju_flower/version.rb
CHANGED
|
@@ -155,6 +155,18 @@ describe ManifestationsController do
|
|
|
155
155
|
response.should be_success
|
|
156
156
|
response.should render_template("manifestations/_tag_cloud")
|
|
157
157
|
end
|
|
158
|
+
|
|
159
|
+
it "should show manifestation with isbn", :solr => true do
|
|
160
|
+
get :index, :isbn => "4798002062"
|
|
161
|
+
response.should be_success
|
|
162
|
+
assigns(:manifestations).count.should eq 1
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
it "should not show missing manifestation with isbn", :solr => true do
|
|
166
|
+
get :index, :isbn => "47980020620"
|
|
167
|
+
response.should be_success
|
|
168
|
+
assigns(:manifestations).should be_empty
|
|
169
|
+
end
|
|
158
170
|
end
|
|
159
171
|
end
|
|
160
172
|
|
|
@@ -220,16 +232,6 @@ describe ManifestationsController do
|
|
|
220
232
|
response.should render_template("manifestations/show")
|
|
221
233
|
end
|
|
222
234
|
|
|
223
|
-
it "should show_manifestation with isbn" do
|
|
224
|
-
get :show, :isbn => "4798002062"
|
|
225
|
-
response.should redirect_to manifestation_url(assigns(:manifestation))
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
it "should not show missing manifestation with isbn" do
|
|
229
|
-
get :show, :isbn => "47980020620"
|
|
230
|
-
response.should be_missing
|
|
231
|
-
end
|
|
232
|
-
|
|
233
235
|
it "should show manifestation with holding" do
|
|
234
236
|
get :show, :id => 1, :mode => 'holding'
|
|
235
237
|
response.should be_success
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
class CreateIdentifiers < ActiveRecord::Migration
|
|
2
|
+
def change
|
|
3
|
+
create_table :identifiers do |t|
|
|
4
|
+
t.string :body, :null => false
|
|
5
|
+
t.integer :identifier_type_id, :null => false
|
|
6
|
+
t.integer :manifestation_id
|
|
7
|
+
t.boolean :primary
|
|
8
|
+
t.integer :position
|
|
9
|
+
|
|
10
|
+
t.timestamps
|
|
11
|
+
end
|
|
12
|
+
add_index :identifiers, [:body, :identifier_type_id]
|
|
13
|
+
end
|
|
14
|
+
end
|
data/spec/dummy/db/schema.rb
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
#
|
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
|
13
13
|
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
|
14
|
+
ActiveRecord::Schema.define(:version => 20130506175834) do
|
|
15
15
|
|
|
16
16
|
create_table "baskets", :force => true do |t|
|
|
17
17
|
t.integer "user_id"
|
|
@@ -358,6 +358,27 @@ ActiveRecord::Schema.define(:version => 20130429020822) do
|
|
|
358
358
|
t.datetime "updated_at", :null => false
|
|
359
359
|
end
|
|
360
360
|
|
|
361
|
+
create_table "identifier_types", :force => true do |t|
|
|
362
|
+
t.string "name"
|
|
363
|
+
t.text "display_name"
|
|
364
|
+
t.text "note"
|
|
365
|
+
t.integer "position"
|
|
366
|
+
t.datetime "created_at", :null => false
|
|
367
|
+
t.datetime "updated_at", :null => false
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
create_table "identifiers", :force => true do |t|
|
|
371
|
+
t.string "body", :null => false
|
|
372
|
+
t.integer "identifier_type_id", :null => false
|
|
373
|
+
t.integer "manifestation_id"
|
|
374
|
+
t.boolean "primary"
|
|
375
|
+
t.integer "position"
|
|
376
|
+
t.datetime "created_at", :null => false
|
|
377
|
+
t.datetime "updated_at", :null => false
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
add_index "identifiers", ["body", "identifier_type_id"], :name => "index_identifiers_on_body_and_identifier_type_id"
|
|
381
|
+
|
|
361
382
|
create_table "import_requests", :force => true do |t|
|
|
362
383
|
t.string "isbn"
|
|
363
384
|
t.string "state"
|
data/spec/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
����,idtype
|
|
2
2
|
class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
|
|
3
3
|
library_sm
|
|
4
4
|
language_sitem_identifier_smshelf_smcreated_at_dupdated_at_dcreator_ids_imcontributor_ids_impublisher_ids_imitem_ids_imrequired_role_id_istart_page_i
|
|
5
5
|
end_page_inumber_of_pages_irepository_content_b
|
|
6
6
|
creator_smsort_title_speriodical_bseries_master_bresource_master_b
|
|
7
|
-
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_text
|
|
7
|
+
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_textissn_smoriginal_manifestation_ids_im
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
NRM�turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttptxy|||||||||||tuuu|||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||u|||||||||||||||||uvw|||||||x|||||||||||||||||||||||||||||||||||||||y||||||||||||w���|||||||||||||||||||||||||||||||||��|||||||||||w���|||||||||||||||||||||||||||||||||xy|||||||||||tuuu|||||||||||||||||||||||||||||||||
|
|
1
|
+
NRM�turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttptxy|||||||||||tuuu|||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||||||||||||||||||||wxwwx|||||||||||||||||||||||||||u|||||||||||||||||uvw|||||||x|||||||||||||||||||||||||||||||||||||||y||||||||||||w���|||||||||||||||||||||||||||||||||��|||||||||||w���|||||||||||||||||||||||||||||||||xy|||||||||||tuuu|||||||||||||||||||||||||||||||||turxtuxutrtwsssuuvyrttrvrrtxtxswuywtrtyvywtuwwttpty|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
����,idtype
|
|
2
2
|
class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
|
|
3
3
|
library_sm
|
|
4
4
|
language_sitem_identifier_smshelf_smcreated_at_dupdated_at_dcreator_ids_imcontributor_ids_impublisher_ids_imitem_ids_imrequired_role_id_istart_page_i
|
|
5
5
|
end_page_inumber_of_pages_irepository_content_b
|
|
6
6
|
creator_smsort_title_speriodical_bseries_master_bresource_master_b
|
|
7
|
-
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_text
|
|
7
|
+
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_textissn_smoriginal_manifestation_ids_im
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
NRM�xuuwuyutxxvxvxwtyvxwxxxvvtwwxvytwxwrwvxxyxuyxyuysx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||xuuwuyutxxvxvxwtyvxwxxxvvtwwxvytwxwrwvxxyxuyxyuysx
|
|
1
|
+
NRM�xuuwuyutxxvxvxwtyvxwxxxvvtwwxvytwxwrwvxxyxuyxyuysx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||xuuwuyutxxvxvxwtyvxwxxxvvtwwxvytwxwrwvxxyxuyxyuysx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
����
|
|
1
|
+
����4idtype
|
|
2
2
|
class_nametitle_smconnect_title_sconnect_creator_sconnect_publisher_sisbn_smcarrier_type_s
|
|
3
3
|
library_sm
|
|
4
4
|
language_sitem_identifier_smshelf_smcreated_at_dupdated_at_dcreator_ids_imcontributor_ids_impublisher_ids_imitem_ids_imrequired_role_id_istart_page_i
|
|
5
5
|
end_page_inumber_of_pages_irepository_content_b
|
|
6
6
|
creator_smsort_title_speriodical_bseries_master_bresource_master_b
|
|
7
|
-
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_text
|
|
7
|
+
title_textcreator_textcontributor_textpublisher_textitem_identifier_textaulast_textaufirst_textau_textbtitle_text isbn_textissn_smoriginal_manifestation_ids_im
|
|
8
8
|
pub_year_i
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
NRM�vruwvvuur|xttutttwwuuuuuuxx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||xtt|uuutt||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||vruwvvuur|
|
|
1
|
+
NRM�vruwvvuur|xttutttwwuuuuuuxx||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||xtt|uuutt||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||vruwvvuur|x||u|ttwwuuuuuuxx|||||y|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||tt|t|||||||||||||||||||||||tt|t||||||||||||
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
|
2
|
+
|
|
3
|
+
one:
|
|
4
|
+
name: isbn
|
|
5
|
+
display_name: ISBN
|
|
6
|
+
note:
|
|
7
|
+
position: 1
|
|
8
|
+
id: 1
|
|
9
|
+
|
|
10
|
+
two:
|
|
11
|
+
name: issn
|
|
12
|
+
display_name: ISSN
|
|
13
|
+
note:
|
|
14
|
+
position: 2
|
|
15
|
+
id: 2
|
|
16
|
+
|
|
17
|
+
# == Schema Information
|
|
18
|
+
#
|
|
19
|
+
# Table name: identifier_types
|
|
20
|
+
#
|
|
21
|
+
# id :integer not null, primary key
|
|
22
|
+
# name :string(255)
|
|
23
|
+
# display_name :text
|
|
24
|
+
# note :text
|
|
25
|
+
# position :integer
|
|
26
|
+
# created_at :datetime not null
|
|
27
|
+
# updated_at :datetime not null
|
|
28
|
+
#
|
|
29
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
|
2
|
+
|
|
3
|
+
one:
|
|
4
|
+
body: 12345678
|
|
5
|
+
manifestation_id: 1
|
|
6
|
+
identifier_type_id: 1
|
|
7
|
+
primary: false
|
|
8
|
+
|
|
9
|
+
two:
|
|
10
|
+
body: 99999999
|
|
11
|
+
manifestation_id: 2
|
|
12
|
+
identifier_type_id: 2
|
|
13
|
+
primary: false
|
|
14
|
+
|
|
15
|
+
identifier_00001:
|
|
16
|
+
manifestation_id: 1
|
|
17
|
+
identifier_type_id: 1
|
|
18
|
+
body: "4798002062"
|
|
19
|
+
|
|
20
|
+
identifier_00002:
|
|
21
|
+
manifestation_id: 2
|
|
22
|
+
identifier_type_id: 1
|
|
23
|
+
body: "4915724824"
|
|
24
|
+
|
|
25
|
+
identifier_00003:
|
|
26
|
+
manifestation_id: 3
|
|
27
|
+
identifier_type_id: 1
|
|
28
|
+
body: "4897063590"
|
|
29
|
+
|
|
30
|
+
identifier_00004:
|
|
31
|
+
manifestation_id: 4
|
|
32
|
+
identifier_type_id: 1
|
|
33
|
+
body: 0471412791
|
|
34
|
+
|
|
35
|
+
identifier_00005:
|
|
36
|
+
manifestation_id: 7
|
|
37
|
+
identifier_type_id: 1
|
|
38
|
+
body: 0470844701
|
|
39
|
+
|
|
40
|
+
identifier_00006:
|
|
41
|
+
manifestation_id: 8
|
|
42
|
+
identifier_type_id: 1
|
|
43
|
+
body: "4798101028"
|
|
44
|
+
|
|
45
|
+
identifier_00007:
|
|
46
|
+
manifestation_id: 9
|
|
47
|
+
identifier_type_id: 1
|
|
48
|
+
body: "4641143331"
|
|
49
|
+
|
|
50
|
+
identifier_00008:
|
|
51
|
+
manifestation_id: 10
|
|
52
|
+
identifier_type_id: 1
|
|
53
|
+
body: "9784774127804"
|
|
54
|
+
|
|
55
|
+
identifier_00009:
|
|
56
|
+
manifestation_id: 21
|
|
57
|
+
identifier_type_id: 1
|
|
58
|
+
body: "4822281167"
|
|
59
|
+
|
|
60
|
+
identifier_00114:
|
|
61
|
+
manifestation_id: 114
|
|
62
|
+
identifier_type_id: 1
|
|
63
|
+
body: "9784756137470"
|
|
64
|
+
|
|
65
|
+
identifier_00116:
|
|
66
|
+
manifestation_id: 116
|
|
67
|
+
identifier_type_id: 1
|
|
68
|
+
body: "9784756100917"
|
|
69
|
+
|
|
70
|
+
identifier_00120:
|
|
71
|
+
manifestation_id: 120
|
|
72
|
+
identifier_type_id: 1
|
|
73
|
+
body: "9784274063855"
|
|
74
|
+
|
|
75
|
+
identifier_00192:
|
|
76
|
+
manifestation_id: 192
|
|
77
|
+
identifier_type_id: 1
|
|
78
|
+
body: "9784873113241"
|
|
79
|
+
|
|
80
|
+
identifier_00193_1:
|
|
81
|
+
manifestation_id: 193
|
|
82
|
+
identifier_type_id: 1
|
|
83
|
+
body: "9784797340044"
|
|
84
|
+
|
|
85
|
+
identifier_00193_2:
|
|
86
|
+
manifestation_id: 193
|
|
87
|
+
identifier_type_id: 1
|
|
88
|
+
body: "4797340045"
|
|
89
|
+
|
|
90
|
+
identifier_00196:
|
|
91
|
+
manifestation_id: 196
|
|
92
|
+
identifier_type_id: 1
|
|
93
|
+
body: "9784797336610"
|
|
94
|
+
|
|
95
|
+
identifier_00201:
|
|
96
|
+
manifestation_id: 201
|
|
97
|
+
identifier_type_id: 2
|
|
98
|
+
body: "09130000"
|
|
99
|
+
|
|
100
|
+
# == Schema Information
|
|
101
|
+
#
|
|
102
|
+
# Table name: identifiers
|
|
103
|
+
#
|
|
104
|
+
# id :integer not null, primary key
|
|
105
|
+
# body :string(255) not null
|
|
106
|
+
# identifier_type_id :integer not null
|
|
107
|
+
# manifestation_id :integer
|
|
108
|
+
# primary :boolean
|
|
109
|
+
# position :integer
|
|
110
|
+
# created_at :datetime not null
|
|
111
|
+
# updated_at :datetime not null
|
|
112
|
+
#
|
|
113
|
+
|