enju_subject 0.1.0.pre12 → 0.1.0.pre13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/subjects_controller.rb +3 -9
- data/app/models/classification.rb +6 -17
- data/app/models/classification_type.rb +2 -2
- data/app/models/enju_subject/ability.rb +0 -5
- data/app/models/subject.rb +7 -7
- data/app/models/subject_heading_type.rb +2 -2
- data/app/models/subject_heading_type_has_subject.rb +2 -2
- data/app/models/subject_sweeper.rb +2 -10
- data/app/models/subject_type.rb +2 -2
- data/app/models/work_has_subject.rb +2 -2
- data/app/views/classifications/index.html.erb +51 -4
- data/app/views/manifestations/_classification_detail.html.erb +14 -0
- data/app/views/manifestations/_subject_detail.html.erb +14 -0
- data/app/views/subjects/index.html.erb +1 -3
- data/app/views/subjects/show.html.erb +2 -6
- data/db/migrate/20130504133816_add_manifestation_id_to_subject.rb +6 -0
- data/db/migrate/20130504143515_add_manifestation_id_to_classification.rb +6 -0
- data/lib/enju_subject/manifestation.rb +5 -9
- data/lib/enju_subject/version.rb +1 -1
- data/lib/generators/enju_subject/setup/templates/db/fixtures/classification_types.yml +8 -2
- data/spec/dummy/app/models/ability.rb +0 -5
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +7 -0
- data/spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb +5 -0
- data/spec/dummy/db/schema.rb +21 -27
- 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_1n5 +0 -0
- data/spec/fixtures/classification_types.yml +2 -2
- data/spec/fixtures/classifications.yml +3 -2
- data/spec/fixtures/subject_heading_type_has_subjects.yml +2 -2
- data/spec/fixtures/subject_heading_types.yml +2 -2
- data/spec/fixtures/subject_types.yml +2 -2
- data/spec/fixtures/subjects.yml +3 -0
- data/spec/fixtures/work_has_subjects.yml +2 -2
- data/spec/models/classification_spec.rb +3 -2
- data/spec/models/classification_type_spec.rb +2 -2
- data/spec/models/subject_heading_type_has_subject_spec.rb +2 -2
- data/spec/models/subject_heading_type_spec.rb +2 -2
- data/spec/models/subject_spec.rb +2 -0
- data/spec/models/subject_type_spec.rb +2 -2
- data/spec/models/work_has_subject_spec.rb +2 -2
- metadata +33 -29
- data/app/controllers/subject_has_classifications_controller.rb +0 -97
- data/app/models/subject_has_classification.rb +0 -37
- data/app/views/classifications/_index.html.erb +0 -52
- data/app/views/classifications/_index_subject.html.erb +0 -62
- data/app/views/subject_has_classifications/edit.html.erb +0 -30
- data/app/views/subject_has_classifications/index.html.erb +0 -38
- data/app/views/subject_has_classifications/new.html.erb +0 -32
- data/app/views/subject_has_classifications/show.html.erb +0 -22
- data/app/views/subjects/_index_classification.html.erb +0 -57
- data/db/migrate/143_create_subject_has_classifications.rb +0 -16
- data/spec/controllers/subject_has_classifications_controller_spec.rb +0 -443
- data/spec/dummy/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +0 -13
- data/spec/dummy/solr/data/test/index/segments_19e +0 -0
- data/spec/factories/subject_has_classification.rb +0 -6
- data/spec/fixtures/subject_has_classifications.yml +0 -74
- data/spec/models/subject_has_classification_spec.rb +0 -20
@@ -1,74 +0,0 @@
|
|
1
|
-
---
|
2
|
-
subject_has_classification_00001:
|
3
|
-
updated_at: 2008-01-11 23:28:19.277110 +09:00
|
4
|
-
classification_id: 1
|
5
|
-
subject_id: 2
|
6
|
-
id: 1
|
7
|
-
created_at: 2008-01-11 23:28:19.277110 +09:00
|
8
|
-
subject_has_classification_00002:
|
9
|
-
updated_at: 2008-01-11 23:28:57.068191 +09:00
|
10
|
-
classification_id: 2
|
11
|
-
subject_id: 1
|
12
|
-
id: 2
|
13
|
-
created_at: 2008-01-11 23:28:57.068191 +09:00
|
14
|
-
subject_has_classification_00003:
|
15
|
-
updated_at: 2008-01-11 23:32:03.701425 +09:00
|
16
|
-
classification_id: 3
|
17
|
-
subject_id: 2
|
18
|
-
id: 3
|
19
|
-
created_at: 2008-01-11 23:32:03.701425 +09:00
|
20
|
-
subject_has_classification_00004:
|
21
|
-
updated_at: 2008-01-11 02:34:20.183962 +09:00
|
22
|
-
classification_id: 4
|
23
|
-
subject_id: 2
|
24
|
-
id: 4
|
25
|
-
created_at: 2008-01-11 02:34:20.183962 +09:00
|
26
|
-
subject_has_classification_00005:
|
27
|
-
updated_at: 2008-01-11 02:34:32.352223 +09:00
|
28
|
-
classification_id: 5
|
29
|
-
subject_id: 1
|
30
|
-
id: 5
|
31
|
-
created_at: 2008-01-11 02:34:32.352223 +09:00
|
32
|
-
subject_has_classification_00006:
|
33
|
-
updated_at: 2008-01-11 23:35:36.467584 +09:00
|
34
|
-
classification_id: 1
|
35
|
-
subject_id: 1
|
36
|
-
id: 6
|
37
|
-
created_at: 2008-01-11 23:35:36.467584 +09:00
|
38
|
-
subject_has_classification_00007:
|
39
|
-
updated_at: 2008-01-11 02:40:24.038276 +09:00
|
40
|
-
classification_id: 2
|
41
|
-
subject_id: 2
|
42
|
-
id: 7
|
43
|
-
created_at: 2008-01-11 02:40:24.038276 +09:00
|
44
|
-
subject_has_classification_00008:
|
45
|
-
updated_at: 2008-01-11 02:40:40.316742 +09:00
|
46
|
-
classification_id: 3
|
47
|
-
subject_id: 2
|
48
|
-
id: 8
|
49
|
-
created_at: 2008-01-11 02:40:40.316742 +09:00
|
50
|
-
subject_has_classification_00009:
|
51
|
-
updated_at: 2008-01-11 02:40:55.664604 +09:00
|
52
|
-
classification_id: 4
|
53
|
-
subject_id: 1
|
54
|
-
id: 9
|
55
|
-
created_at: 2008-01-11 02:40:55.664604 +09:00
|
56
|
-
subject_has_classification_00010:
|
57
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
58
|
-
classification_id: 5
|
59
|
-
subject_id: 1
|
60
|
-
id: 10
|
61
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
62
|
-
|
63
|
-
# == Schema Information
|
64
|
-
#
|
65
|
-
# Table name: subject_has_classifications
|
66
|
-
#
|
67
|
-
# id :integer not null, primary key
|
68
|
-
# subject_id :integer
|
69
|
-
# subject_type :string(255)
|
70
|
-
# classification_id :integer not null
|
71
|
-
# created_at :datetime
|
72
|
-
# updated_at :datetime
|
73
|
-
#
|
74
|
-
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
require 'spec_helper'
|
3
|
-
|
4
|
-
describe SubjectHasClassification do
|
5
|
-
#pending "add some examples to (or delete) #{__FILE__}"
|
6
|
-
|
7
|
-
end
|
8
|
-
|
9
|
-
# == Schema Information
|
10
|
-
#
|
11
|
-
# Table name: subject_has_classifications
|
12
|
-
#
|
13
|
-
# id :integer not null, primary key
|
14
|
-
# subject_id :integer
|
15
|
-
# subject_type :string(255)
|
16
|
-
# classification_id :integer not null
|
17
|
-
# created_at :datetime
|
18
|
-
# updated_at :datetime
|
19
|
-
#
|
20
|
-
|