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.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/subjects_controller.rb +3 -9
  3. data/app/models/classification.rb +6 -17
  4. data/app/models/classification_type.rb +2 -2
  5. data/app/models/enju_subject/ability.rb +0 -5
  6. data/app/models/subject.rb +7 -7
  7. data/app/models/subject_heading_type.rb +2 -2
  8. data/app/models/subject_heading_type_has_subject.rb +2 -2
  9. data/app/models/subject_sweeper.rb +2 -10
  10. data/app/models/subject_type.rb +2 -2
  11. data/app/models/work_has_subject.rb +2 -2
  12. data/app/views/classifications/index.html.erb +51 -4
  13. data/app/views/manifestations/_classification_detail.html.erb +14 -0
  14. data/app/views/manifestations/_subject_detail.html.erb +14 -0
  15. data/app/views/subjects/index.html.erb +1 -3
  16. data/app/views/subjects/show.html.erb +2 -6
  17. data/db/migrate/20130504133816_add_manifestation_id_to_subject.rb +6 -0
  18. data/db/migrate/20130504143515_add_manifestation_id_to_classification.rb +6 -0
  19. data/lib/enju_subject/manifestation.rb +5 -9
  20. data/lib/enju_subject/version.rb +1 -1
  21. data/lib/generators/enju_subject/setup/templates/db/fixtures/classification_types.yml +8 -2
  22. data/spec/dummy/app/models/ability.rb +0 -5
  23. data/spec/dummy/db/development.sqlite3 +0 -0
  24. data/spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb +5 -0
  25. data/spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +7 -0
  26. data/spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb +5 -0
  27. data/spec/dummy/db/schema.rb +21 -27
  28. data/spec/dummy/db/test.sqlite3 +0 -0
  29. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  30. data/spec/dummy/solr/data/test/index/segments_1n5 +0 -0
  31. data/spec/fixtures/classification_types.yml +2 -2
  32. data/spec/fixtures/classifications.yml +3 -2
  33. data/spec/fixtures/subject_heading_type_has_subjects.yml +2 -2
  34. data/spec/fixtures/subject_heading_types.yml +2 -2
  35. data/spec/fixtures/subject_types.yml +2 -2
  36. data/spec/fixtures/subjects.yml +3 -0
  37. data/spec/fixtures/work_has_subjects.yml +2 -2
  38. data/spec/models/classification_spec.rb +3 -2
  39. data/spec/models/classification_type_spec.rb +2 -2
  40. data/spec/models/subject_heading_type_has_subject_spec.rb +2 -2
  41. data/spec/models/subject_heading_type_spec.rb +2 -2
  42. data/spec/models/subject_spec.rb +2 -0
  43. data/spec/models/subject_type_spec.rb +2 -2
  44. data/spec/models/work_has_subject_spec.rb +2 -2
  45. metadata +33 -29
  46. data/app/controllers/subject_has_classifications_controller.rb +0 -97
  47. data/app/models/subject_has_classification.rb +0 -37
  48. data/app/views/classifications/_index.html.erb +0 -52
  49. data/app/views/classifications/_index_subject.html.erb +0 -62
  50. data/app/views/subject_has_classifications/edit.html.erb +0 -30
  51. data/app/views/subject_has_classifications/index.html.erb +0 -38
  52. data/app/views/subject_has_classifications/new.html.erb +0 -32
  53. data/app/views/subject_has_classifications/show.html.erb +0 -22
  54. data/app/views/subjects/_index_classification.html.erb +0 -57
  55. data/db/migrate/143_create_subject_has_classifications.rb +0 -16
  56. data/spec/controllers/subject_has_classifications_controller_spec.rb +0 -443
  57. data/spec/dummy/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +0 -13
  58. data/spec/dummy/solr/data/test/index/segments_19e +0 -0
  59. data/spec/factories/subject_has_classification.rb +0 -6
  60. data/spec/fixtures/subject_has_classifications.yml +0 -74
  61. 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
-