enju_flower 0.1.0.pre19 → 0.1.0.pre20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/app/helpers/manifestations_helper.rb +1 -1
  3. data/app/views/manifestations/_index_form_parent.html.erb +1 -1
  4. data/app/views/manifestations/_manifestation.html.erb +3 -3
  5. data/app/views/manifestations/_show_detail_librarian.html.erb +1 -1
  6. data/app/views/manifestations/_show_detail_user.html.erb +1 -1
  7. data/app/views/manifestations/_show_index.html.erb +1 -1
  8. data/app/views/manifestations/_show_index.mobile.erb +2 -2
  9. data/app/views/manifestations/_show_series_index.html.erb +1 -1
  10. data/app/views/manifestations/_title.html.erb +1 -1
  11. data/lib/enju_flower/version.rb +1 -1
  12. data/spec/dummy/app/controllers/application_controller.rb +1 -0
  13. data/spec/dummy/config/application.rb +1 -0
  14. data/spec/dummy/config/boot.rb +2 -2
  15. data/spec/dummy/db/development.sqlite3 +0 -0
  16. data/spec/dummy/db/migrate/005_create_manifestations.rb +0 -1
  17. data/spec/dummy/db/migrate/029_create_subjects.rb +27 -0
  18. data/spec/dummy/db/migrate/133_create_agent_merges.rb +15 -0
  19. data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +13 -0
  20. data/spec/dummy/db/migrate/142_create_classifications.rb +19 -0
  21. data/spec/dummy/db/migrate/144_create_classification_types.rb +16 -0
  22. data/spec/dummy/db/migrate/145_create_subject_heading_types.rb +16 -0
  23. data/spec/dummy/db/migrate/146_create_subject_types.rb +16 -0
  24. data/spec/dummy/db/migrate/20081212151614_create_bookmark_stats.rb +0 -3
  25. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +1 -1
  26. data/spec/dummy/db/migrate/20110913120629_add_lft_and_rgt_to_classification.rb +11 -0
  27. data/spec/dummy/db/migrate/20120406020752_add_url_to_subject.rb +5 -0
  28. data/spec/dummy/db/migrate/20130504133816_add_manifestation_id_to_subject.rb +6 -0
  29. data/spec/dummy/db/migrate/20130504143515_add_manifestation_id_to_classification.rb +6 -0
  30. data/spec/dummy/db/migrate/20130504195916_add_subject_heading_type_id_to_subject.rb +5 -0
  31. data/spec/dummy/db/migrate/20140821151023_create_colors.rb +14 -0
  32. data/spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb +5 -0
  33. data/spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb +5 -0
  34. data/spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb +5 -0
  35. data/spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb +9 -0
  36. data/spec/dummy/db/schema.rb +676 -593
  37. data/spec/dummy/db/test.sqlite3 +0 -0
  38. data/spec/dummy/solr/default/data/index/_d2.fdt +0 -0
  39. data/spec/dummy/solr/default/data/index/{_3x.fnm → _d2.fnm} +0 -0
  40. data/spec/dummy/solr/default/data/index/{_3x.si → _d2.si} +0 -0
  41. data/spec/dummy/solr/default/data/index/_d2_Lucene41_0.doc +0 -0
  42. data/spec/dummy/solr/default/data/index/{_3x_Lucene41_0.pos → _d2_Lucene41_0.pos} +0 -0
  43. data/spec/dummy/solr/default/data/index/{_3x_Lucene41_0.tim → _d2_Lucene41_0.tim} +0 -0
  44. data/spec/dummy/solr/default/data/index/_d2_Lucene41_0.tip +0 -0
  45. data/spec/dummy/solr/default/data/index/_d3.fdt +0 -0
  46. data/spec/dummy/solr/default/data/index/{_3y.fnm → _d3.fnm} +0 -0
  47. data/spec/dummy/solr/default/data/index/{_3y.si → _d3.si} +0 -0
  48. data/spec/dummy/solr/default/data/index/{_3y_Lucene41_0.tim → _d3_Lucene41_0.tim} +0 -0
  49. data/spec/dummy/solr/default/data/index/_d3_Lucene41_0.tip +0 -0
  50. data/spec/dummy/solr/default/data/index/_d4.fdt +0 -0
  51. data/spec/dummy/solr/default/data/index/{_3z.fnm → _d4.fnm} +0 -0
  52. data/spec/dummy/solr/default/data/index/_d4.nvd +0 -0
  53. data/spec/dummy/solr/default/data/index/_d4.nvm +0 -0
  54. data/spec/dummy/solr/default/data/index/{_3z.si → _d4.si} +0 -0
  55. data/spec/dummy/solr/default/data/index/{_3z_Lucene41_0.doc → _d4_Lucene41_0.doc} +0 -0
  56. data/spec/dummy/solr/default/data/index/{_3z_Lucene41_0.pos → _d4_Lucene41_0.pos} +0 -0
  57. data/spec/dummy/solr/default/data/index/{_3z_Lucene41_0.tim → _d4_Lucene41_0.tim} +0 -0
  58. data/spec/dummy/solr/default/data/index/_d4_Lucene41_0.tip +0 -0
  59. data/spec/dummy/solr/default/data/index/segments.gen +0 -0
  60. data/spec/dummy/solr/default/data/index/segments_hk +0 -0
  61. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000628 +0 -0
  62. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000629 +0 -0
  63. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000630 +0 -0
  64. data/spec/dummy/tmp/cache/assets/test/sprockets/006a5adcd278a9c5c9df80a7a2b414e6 +0 -0
  65. data/spec/dummy/tmp/cache/assets/test/sprockets/00a6cf2442f0e06a50f5c5f44d7aff65 +0 -0
  66. data/spec/dummy/tmp/cache/assets/test/sprockets/11f06eac4db4fb45d3bb109e7f97c1c9 +0 -0
  67. data/spec/dummy/tmp/cache/assets/test/sprockets/1f84f73be56154eba5c29f8ef2ac2177 +0 -0
  68. data/spec/dummy/tmp/cache/assets/test/sprockets/5867d1b0ac4e0597324985236c19a68f +0 -0
  69. data/spec/dummy/tmp/cache/assets/test/sprockets/59e554f7bfa724cc56b5d8cb56ef333a +0 -0
  70. data/spec/dummy/tmp/cache/assets/test/sprockets/67565528560062a46655ddd9d226e508 +0 -0
  71. data/spec/dummy/tmp/cache/assets/test/sprockets/6e466646ae89de53fd9397ce2555ca91 +0 -0
  72. data/spec/dummy/tmp/cache/assets/test/sprockets/75a69bb28a2f0aac5401bd0e5f65effc +0 -0
  73. data/spec/dummy/tmp/cache/assets/test/sprockets/bd6a0f9e031203673fda12a83251f03b +0 -0
  74. data/spec/dummy/tmp/cache/assets/test/sprockets/d49e28dc6b072432f42b121b05195488 +0 -0
  75. data/spec/dummy/tmp/cache/assets/test/sprockets/ebc83b1f2325c61a70d933aa7a17df5a +0 -0
  76. data/spec/fixtures/manifestations.yml +5 -5
  77. metadata +157 -91
  78. data/spec/dummy/db/migrate/20090719201843_create_extents.rb +0 -12
  79. data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +0 -6
  80. data/spec/dummy/db/migrate/20140817155043_add_extent_of_text_to_manifestation.rb +0 -5
  81. data/spec/dummy/solr/default/data/index/_3x.fdt +0 -0
  82. data/spec/dummy/solr/default/data/index/_3x_Lucene41_0.doc +0 -0
  83. data/spec/dummy/solr/default/data/index/_3x_Lucene41_0.tip +0 -0
  84. data/spec/dummy/solr/default/data/index/_3y.fdt +0 -0
  85. data/spec/dummy/solr/default/data/index/_3y_Lucene41_0.tip +0 -0
  86. data/spec/dummy/solr/default/data/index/_3z.fdt +0 -0
  87. data/spec/dummy/solr/default/data/index/_3z.nvd +0 -0
  88. data/spec/dummy/solr/default/data/index/_3z.nvm +0 -0
  89. data/spec/dummy/solr/default/data/index/_3z_Lucene41_0.tip +0 -0
  90. data/spec/dummy/solr/default/data/index/segments_5d +0 -0
  91. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000189 +0 -0
  92. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000190 +0 -0
  93. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000191 +0 -0
  94. data/spec/fixtures/extents.yml +0 -29
  95. /data/spec/dummy/solr/default/data/index/{_3x.fdx → _d2.fdx} +0 -0
  96. /data/spec/dummy/solr/default/data/index/{_3x.nvd → _d2.nvd} +0 -0
  97. /data/spec/dummy/solr/default/data/index/{_3x.nvm → _d2.nvm} +0 -0
  98. /data/spec/dummy/solr/default/data/index/{_3y.fdx → _d3.fdx} +0 -0
  99. /data/spec/dummy/solr/default/data/index/{_3y.nvd → _d3.nvd} +0 -0
  100. /data/spec/dummy/solr/default/data/index/{_3y.nvm → _d3.nvm} +0 -0
  101. /data/spec/dummy/solr/default/data/index/{_3y_Lucene41_0.doc → _d3_Lucene41_0.doc} +0 -0
  102. /data/spec/dummy/solr/default/data/index/{_3y_Lucene41_0.pos → _d3_Lucene41_0.pos} +0 -0
  103. /data/spec/dummy/solr/default/data/index/{_3z.fdx → _d4.fdx} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 798c489944f65f8d38f3e807bd0987545f00b22a
4
- data.tar.gz: 14e90b8d6398c6b5e757d342bd3964bdd791235d
3
+ metadata.gz: 19b749d2a2f3d7f0b7719deb2734aea377fdfbdf
4
+ data.tar.gz: a1627e416e8c0623ca11476b37c5a40823c477a4
5
5
  SHA512:
6
- metadata.gz: 227794e3e3d57cde11eb7aa671a6e51a78042d51cf41eefa07bc579431f7f1d7acdf733c26b629c033b7d810abe583e2c125acd27cc41cb08dceb8034bc62a56
7
- data.tar.gz: d76ed6c78e22291ce627f7e15695f889c70a3f104385b927007dd578fd72d862728018eaf50c19860cb9ffff77feabb49ca604d1f7324b2192b8c6c959d28b81
6
+ metadata.gz: c76f189a4ee49c5baf20bbe16e8694fd228a9505d5e55dcaa536d9f6ed06acede814b5884869bd2d2aca167d00034a7e2a6734ef300fb6b7bed3ae3d391a4623
7
+ data.tar.gz: 6ded3b085c8e1c88711c11a0e0637c351a78d5962b09775197be2398caa22b91ddd553e885a120170b97cf05a5ad6126c2188bb4021b4bde472467f57274de12
@@ -125,7 +125,7 @@ module ManifestationsHelper
125
125
  if manifestation.volume_number_string?
126
126
  title << " " + manifestation.volume_number_string
127
127
  end
128
- if manifestation.periodical?
128
+ if manifestation.serial?
129
129
  if manifestation.issue_number_string?
130
130
  title << " (#{manifestation.issue_number_string})"
131
131
  end
@@ -3,7 +3,7 @@
3
3
  <h2 class="resource_title">
4
4
  [M]
5
5
  <%= link_to @parent.original_title, @parent, itemprop: 'name' -%>
6
- <% if @parent.periodical? %>
6
+ <% if @parent.serial? %>
7
7
  <%= image_tag('icons/newspaper.png', size: '16x16', alt: t('manifestation.serial')) -%>
8
8
  <%- end -%>
9
9
  <%= link_to form_icon(@parent.carrier_type), @parent -%>
@@ -11,16 +11,16 @@
11
11
  </div>
12
12
  <% if current_user.try(:has_role?, 'Librarian') %>
13
13
  <%- unless manifestation.items.empty? -%>
14
- (<%= link_to_function t('page.holding'), "$('#holding_#{manifestation.id}').toggle()" -%>)
14
+ (<%= link_to "#", { onclick: "$('#holding_#{manifestation.id}').toggle(); return false;"} do t('page.holding') end %>)
15
15
  <% end %>
16
16
  <% else %>
17
17
  <%- unless manifestation.items.for_checkout.on_shelf.empty? -%>
18
- (<%= link_to_function t('page.holding'), "$('#holding_#{manifestation.id}').toggle()" -%>)
18
+ (<%= link_to "#", { onclick: "$('#holding_#{manifestation.id}').toggle(); return false;"} do t('page.holding') end %>)
19
19
  <%- end -%>
20
20
  <%- end -%>
21
21
  <% if defined?(EnjuBookmark) %>
22
22
  <%- if manifestation.tags.first -%>
23
- (<%= link_to_function t('activerecord.models.tag'), "$('#tag_#{manifestation.id}').toggle()" -%>)
23
+ (<%= link_to "#", { onclick: "$('#tag_#{manifestation.id}').toggle(); return false;" } do t('activerecord.models.tag') end %>)
24
24
  <%- end -%>
25
25
  <%= render 'manifestations/show_tag', manifestation: manifestation -%>
26
26
  <% end %>
@@ -66,7 +66,7 @@
66
66
  </td>
67
67
  </tr>
68
68
  <% end %>
69
- <%- unless manifestation.periodical? -%>
69
+ <%- unless manifestation.serial? -%>
70
70
  <tr>
71
71
  <td><%= t('page.identifier') -%>:</td>
72
72
  <td>
@@ -68,7 +68,7 @@
68
68
  </td>
69
69
  </tr>
70
70
  <% end %>
71
- <%- unless manifestation.periodical? -%>
71
+ <%- unless manifestation.serial? -%>
72
72
  <tr>
73
73
  <td><%= t('page.identifier') -%>:</td>
74
74
  <td>
@@ -6,7 +6,7 @@
6
6
  <%= link_to title_with_volume_number(manifestation), manifestation -%>
7
7
  <% end %>
8
8
  </strong>
9
- <% if manifestation.periodical? %>
9
+ <% if manifestation.serial? %>
10
10
  <%= image_tag('icons/newspaper.png', size: '16x16', alt: t('manifestation.serial')) -%>
11
11
  <%- end -%>
12
12
  <%= link_to form_icon(manifestation.carrier_type), manifestation -%>
@@ -1,12 +1,12 @@
1
1
  <strong><%= link_to manifestation.original_title, manifestation -%></strong>
2
- <%- if manifestation.periodical? -%>
2
+ <%- if manifestation.serial? -%>
3
3
  <%= manifestation.volume_number_string -%>
4
4
  <%- unless manifestation.issue_number_string.blank? -%>
5
5
  (<%= manifestation.issue_number_string -%>)
6
6
  <%- end -%>
7
7
  <%- end -%>
8
8
  <%= link_to form_icon(manifestation.carrier_type), manifestation -%>
9
- <%= image_tag('icons/newspaper.png', size: '16x16', alt: t('manifestation.periodical?')) if manifestation.periodical? -%>
9
+ <%= image_tag('icons/newspaper.png', size: '16x16', alt: t('manifestation.serial?')) if manifestation.serial? -%>
10
10
  <%= link_to image_tag('icons/world_go.png', size: '16x16', alt: t('manifestation.web')), manifestation.access_address unless manifestation.access_address.blank? -%>
11
11
  <br />
12
12
  <div id="creator_list_<%= manifestation.id -%>">
@@ -1,5 +1,5 @@
1
1
  <strong><%= link_to manifestation.original_title, manifestations_path(parent_id: manifestation.id, query: @query) -%></strong>
2
- <% if manifestation.periodical? %>
2
+ <% if manifestation.serial? %>
3
3
  <%= image_tag('icons/newspaper.png', size: '16x16', alt: t('manifestation.serial')) -%>
4
4
  <%- end -%>
5
5
  <%= link_to form_icon(manifestation.carrier_type), manifestation -%>
@@ -2,7 +2,7 @@
2
2
  <h2 class="resource_title">
3
3
  [M]
4
4
  <%= link_to title_with_volume_number(manifestation), manifestation, itemprop: 'name' -%>
5
- <% if manifestation.periodical? %>
5
+ <% if manifestation.serial? %>
6
6
  <%= image_tag('icons/newspaper.png', size: '16x16', alt: t('manifestation.serial')) -%>
7
7
  <%- end -%>
8
8
  <%= link_to form_icon(manifestation.carrier_type), manifestation -%>
@@ -1,3 +1,3 @@
1
1
  module EnjuFlower
2
- VERSION = "0.1.0.pre19"
2
+ VERSION = "0.1.0.pre20"
3
3
  end
@@ -4,4 +4,5 @@ class ApplicationController < ActionController::Base
4
4
  enju_leaf
5
5
  enju_biblio
6
6
  enju_library
7
+ enju_subject
7
8
  end
@@ -61,3 +61,4 @@ require 'enju_leaf'
61
61
  require 'enju_circulation'
62
62
  require 'enju_bookmark'
63
63
  require 'enju_manifestation_viewer'
64
+ require 'enju_subject'
@@ -1,5 +1,5 @@
1
1
  require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
2
+ gemfile = ENV['BUNDLE_GEMFILE'] || File.expand_path('../../../../Gemfile', __FILE__)
3
3
 
4
4
  if File.exist?(gemfile)
5
5
  ENV['BUNDLE_GEMFILE'] = gemfile
@@ -7,4 +7,4 @@ if File.exist?(gemfile)
7
7
  Bundler.setup
8
8
  end
9
9
 
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
Binary file
@@ -13,7 +13,6 @@ class CreateManifestations < ActiveRecord::Migration
13
13
  t.string :access_address
14
14
  t.integer :language_id, :default => 1, :null => false
15
15
  t.integer :carrier_type_id, :default => 1, :null => false
16
- t.integer :extent_id, :default => 1, :null => false
17
16
  t.integer :start_page
18
17
  t.integer :end_page
19
18
  t.integer :height
@@ -0,0 +1,27 @@
1
+ class CreateSubjects < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :subjects do |t|
4
+ t.integer :parent_id
5
+ t.integer :use_term_id
6
+ t.string :term
7
+ t.text :term_transcription
8
+ t.integer :subject_type_id, :null => false
9
+ t.text :scope_note
10
+ t.text :note
11
+ t.integer :required_role_id, :default => 1, :null => false
12
+ t.integer :lock_version, :default => 0, :null => false
13
+ t.datetime :created_at
14
+ t.datetime :updated_at
15
+ t.datetime :deleted_at
16
+ end
17
+ add_index :subjects, :term
18
+ add_index :subjects, :parent_id
19
+ add_index :subjects, :use_term_id
20
+ add_index :subjects, :subject_type_id
21
+ add_index :subjects, :required_role_id
22
+ end
23
+
24
+ def self.down
25
+ drop_table :subjects
26
+ end
27
+ end
@@ -0,0 +1,15 @@
1
+ class CreateAgentMerges < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :agent_merges do |t|
4
+ t.integer :agent_id, :agent_merge_list_id, :null => false
5
+
6
+ t.timestamps
7
+ end
8
+ add_index :agent_merges, :agent_id
9
+ add_index :agent_merges, :agent_merge_list_id
10
+ end
11
+
12
+ def self.down
13
+ drop_table :agent_merges
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ class CreateAgentMergeLists < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :agent_merge_lists do |t|
4
+ t.string :title
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+
10
+ def self.down
11
+ drop_table :agent_merge_lists
12
+ end
13
+ end
@@ -0,0 +1,19 @@
1
+ class CreateClassifications < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :classifications do |t|
4
+ t.integer :parent_id
5
+ t.string :category, :null => false
6
+ t.text :note
7
+ t.integer :classification_type_id, :null => false
8
+
9
+ t.timestamps
10
+ end
11
+ add_index :classifications, :parent_id
12
+ add_index :classifications, :category
13
+ add_index :classifications, :classification_type_id
14
+ end
15
+
16
+ def self.down
17
+ drop_table :classifications
18
+ end
19
+ end
@@ -0,0 +1,16 @@
1
+ class CreateClassificationTypes < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :classification_types do |t|
4
+ t.string :name, :null => false
5
+ t.text :display_name
6
+ t.text :note
7
+ t.integer :position
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+
13
+ def self.down
14
+ drop_table :classification_types
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ class CreateSubjectHeadingTypes < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :subject_heading_types do |t|
4
+ t.string :name, :null => false
5
+ t.text :display_name
6
+ t.text :note
7
+ t.integer :position
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+
13
+ def self.down
14
+ drop_table :subject_heading_types
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ class CreateSubjectTypes < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :subject_types do |t|
4
+ t.string :name, :null => false
5
+ t.text :display_name
6
+ t.text :note
7
+ t.integer :position
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+
13
+ def self.down
14
+ drop_table :subject_types
15
+ end
16
+ end
@@ -6,11 +6,8 @@ class CreateBookmarkStats < ActiveRecord::Migration
6
6
  t.datetime :started_at
7
7
  t.datetime :completed_at
8
8
  t.text :note
9
- t.string :state
10
9
 
11
10
  t.timestamps
12
11
  end
13
-
14
- add_index :bookmark_stats, :state
15
12
  end
16
13
  end
@@ -7,6 +7,6 @@ class CreateSeriesStatementMerges < ActiveRecord::Migration
7
7
  t.timestamps
8
8
  end
9
9
  add_index :series_statement_merges, :series_statement_id
10
- add_index :series_statement_merges, :series_statement_merge_list_id
10
+ add_index :series_statement_merges, :series_statement_merge_list_id, name: "index_series_statement_merges_on_list_id"
11
11
  end
12
12
  end
@@ -0,0 +1,11 @@
1
+ class AddLftAndRgtToClassification < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :classifications, :lft, :integer
4
+ add_column :classifications, :rgt, :integer
5
+ end
6
+
7
+ def self.down
8
+ remove_column :classifications, :rgt
9
+ remove_column :classifications, :lft
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ class AddUrlToSubject < ActiveRecord::Migration
2
+ def change
3
+ add_column :subjects, :url, :string
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ class AddManifestationIdToSubject < ActiveRecord::Migration
2
+ def change
3
+ add_column :subjects, :manifestation_id, :integer
4
+ add_index :subjects, :manifestation_id
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ class AddManifestationIdToClassification < ActiveRecord::Migration
2
+ def change
3
+ add_column :classifications, :manifestation_id, :integer
4
+ add_index :classifications, :manifestation_id
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ class AddSubjectHeadingTypeIdToSubject < ActiveRecord::Migration
2
+ def change
3
+ add_column :subjects, :subject_heading_type_id, :integer
4
+ end
5
+ end
@@ -0,0 +1,14 @@
1
+ class CreateColors < ActiveRecord::Migration
2
+ def change
3
+ create_table :colors do |t|
4
+ t.integer :library_group_id
5
+ t.string :property
6
+ t.string :code
7
+ t.integer :position
8
+
9
+ t.timestamps
10
+ end
11
+
12
+ add_index :colors, :library_group_id
13
+ end
14
+ end
@@ -0,0 +1,5 @@
1
+ class AddErrorMessageToResourceImportResult < ActiveRecord::Migration
2
+ def change
3
+ add_column :resource_import_results, :error_message, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddExtentToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :extent, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddDimensionsToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :dimensions, :text
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class RenameManifestationPeriodicalToSerial < ActiveRecord::Migration
2
+ def up
3
+ rename_column :manifestations, :periodical, :serial
4
+ end
5
+
6
+ def down
7
+ rename_column :manifestations, :serial, :periodical
8
+ end
9
+ end