enju_manifestation_viewer 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/app/views/manifestations/_youtube.html.erb +1 -1
  3. data/lib/enju_manifestation_viewer/version.rb +1 -1
  4. data/spec/dummy/db/migrate/059_create_libraries.rb +7 -9
  5. data/spec/dummy/db/migrate/069_create_shelves.rb +3 -4
  6. data/spec/dummy/db/migrate/080_create_library_groups.rb +2 -3
  7. data/spec/dummy/db/migrate/120_create_baskets.rb +2 -3
  8. data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +4 -7
  9. data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +4 -5
  10. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
  11. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +3 -6
  12. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +1 -1
  13. data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +2 -2
  14. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +1 -2
  15. data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +1 -1
  16. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +1 -1
  17. data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +1 -1
  18. data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +1 -1
  19. data/spec/dummy/db/migrate/20140821151023_create_colors.rb +1 -3
  20. data/spec/dummy/db/migrate/20150117111136_add_foreign_key_to_items_referencing_manifestations.rb +5 -0
  21. data/spec/dummy/db/migrate/20150924115059_create_withdraws.rb +3 -5
  22. data/spec/dummy/db/migrate/20151125004028_add_profile_id_to_agent.rb +6 -0
  23. data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +19 -6
  24. data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +15 -2
  25. data/spec/dummy/db/migrate/20170305064014_add_csv_charset_conversion_to_library_group.rb +5 -0
  26. data/spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb +5 -0
  27. data/spec/dummy/db/migrate/20171119051258_set_not_null_to_manifestation_id_on_items.rb +5 -0
  28. data/spec/dummy/db/migrate/20171126133835_rename_login_banner_to_old_login_banner.rb +5 -0
  29. data/spec/dummy/db/migrate/20171126135238_add_foreign_key_to_library_group_id_on_library.rb +5 -0
  30. data/spec/dummy/db/migrate/20180102162311_add_header_logo_meta_to_library_group.rb +5 -0
  31. data/spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb +13 -0
  32. data/spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb +13 -0
  33. data/spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb +13 -0
  34. data/spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb +13 -0
  35. data/spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb +13 -0
  36. data/spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb +13 -0
  37. data/spec/dummy/db/schema.rb +37 -13
  38. metadata +31 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d87a149630e466a4b1e30ad9cb9637e79379c305
4
- data.tar.gz: 65579c116384c2091ab467439223638b837fc0ac
3
+ metadata.gz: f5c56b5b50caaef8b378c97b26e67a34fc92bc06
4
+ data.tar.gz: aea08a922a036ca8f2010ad181a32b8549a3f4e3
5
5
  SHA512:
6
- metadata.gz: 7577872c864ac5c5b2239badf14258e257aa390e3450ccc1592705efc793a091f14236961f2fdf5f721a5f017a8a6f7d4926f4ed9e2264b8d5756f49814ac344
7
- data.tar.gz: 5d4e9533e051a2f4aacd9f897497b060a542ebbbf9d166dd733b23abbf803274abc4afc9f9136b0721e6b6ee3b59850545bce0fbf51ce59b06876228cf974ec3
6
+ metadata.gz: 3e126854d364c41e2977a743eed02d24a6c95e499471d00cd3a529e8f7ff7c728219b066cbc9bbc48ddc097fdfafce926db07edb49ce3087f2135bd51dd3bd70
7
+ data.tar.gz: c2379f6084e147facae96d95c57fd08532e11702240c2aa167961fb434f5e5fc414d99936bba59923352f9d30bda1e953efad720109b9a2c1a13062d85c9b2a0
@@ -1,6 +1,6 @@
1
1
  <tr>
2
2
  <td style="width: 200px"><%= t('page.video') -%>:</td>
3
3
  <td style="width: 500px">
4
- <object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/<%= manifestation.youtube_id -%>&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/<%= manifestation.youtube_id -%>&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
4
+ <object width="425" height="355"><param name="movie" value="https://www.youtube.com/v/<%= manifestation.youtube_id -%>&hl=en"></param><param name="wmode" value="transparent"></param><embed src="https://www.youtube.com/v/<%= manifestation.youtube_id -%>&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
5
5
  </td>
6
6
  </tr>
@@ -1,3 +1,3 @@
1
1
  module EnjuManifestationViewer
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -1,9 +1,9 @@
1
1
  class CreateLibraries < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :libraries do |t|
4
- t.string :name, :null => false
4
+ t.string :name, index: true, null: false
5
5
  t.text :display_name
6
- t.string :short_display_name, :null => false
6
+ t.string :short_display_name, null: false
7
7
  t.string :zip_code
8
8
  t.text :street
9
9
  t.text :locality
@@ -12,17 +12,15 @@ class CreateLibraries < ActiveRecord::Migration
12
12
  t.string :telephone_number_2
13
13
  t.string :fax_number
14
14
  t.text :note
15
- t.integer :call_number_rows, :default => 1, :null => false
16
- t.string :call_number_delimiter, :default => "|", :null => false
17
- t.integer :library_group_id, :default => 1, :null => false
18
- t.integer :users_count, :default => 0, :null => false
15
+ t.integer :call_number_rows, default: 1, null: false
16
+ t.string :call_number_delimiter, default: "|", null: false
17
+ t.references :library_group, index: true, null: false
18
+ t.integer :users_count, default: 0, null: false
19
19
  t.integer :position
20
- t.integer :country_id
20
+ t.references :country
21
21
 
22
22
  t.timestamps
23
23
  t.datetime :deleted_at
24
24
  end
25
- add_index :libraries, :library_group_id
26
- add_index :libraries, :name, :unique => true
27
25
  end
28
26
  end
@@ -1,15 +1,14 @@
1
1
  class CreateShelves < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :shelves do |t|
4
- t.string :name, :null => false
4
+ t.string :name, null: false
5
5
  t.text :display_name
6
6
  t.text :note
7
- t.integer :library_id, :default => 1, :null => false
8
- t.integer :items_count, :default => 0, :null => false
7
+ t.references :library, index: true, null: false
8
+ t.integer :items_count, default: 0, null: false
9
9
  t.integer :position
10
10
  t.timestamps
11
11
  t.datetime :deleted_at
12
12
  end
13
- add_index :shelves, :library_id
14
13
  end
15
14
  end
@@ -1,9 +1,9 @@
1
1
  class CreateLibraryGroups < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :library_groups do |t|
4
- t.string :name, :null => false
4
+ t.string :name, null: false
5
5
  t.text :display_name
6
- t.string :short_name, :null => false
6
+ t.string :short_name, index: true, null: false
7
7
  t.text :my_networks
8
8
  t.text :login_banner
9
9
  t.text :note
@@ -12,6 +12,5 @@ class CreateLibraryGroups < ActiveRecord::Migration
12
12
 
13
13
  t.timestamps
14
14
  end
15
- add_index :library_groups, :short_name
16
15
  end
17
16
  end
@@ -1,12 +1,11 @@
1
1
  class CreateBaskets < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :baskets do |t|
4
- t.integer :user_id
4
+ t.references :user, index: true
5
5
  t.text :note
6
- t.integer :lock_version, :default => 0, :null => false
6
+ t.integer :lock_version, default: 0, null: false
7
7
 
8
8
  t.timestamps
9
9
  end
10
- add_index :baskets, :user_id
11
10
  end
12
11
  end
@@ -1,17 +1,14 @@
1
1
  class CreateSubscriptions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :subscriptions do |t|
4
- t.text :title, :null => false
4
+ t.text :title, null: false
5
5
  t.text :note
6
- #t.integer :subscription_list_id, :integer
7
- t.integer :user_id
8
- t.integer :order_list_id
6
+ t.references :user, index: true
7
+ t.references :order_list, index: true
9
8
  t.datetime :deleted_at
10
- t.integer :subscribes_count, :default => 0, :null => false
9
+ t.integer :subscribes_count, default: 0, null: false
11
10
 
12
11
  t.timestamps
13
12
  end
14
- add_index :subscriptions, :user_id
15
- add_index :subscriptions, :order_list_id
16
13
  end
17
14
  end
@@ -1,14 +1,13 @@
1
1
  class CreateSubscribes < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :subscribes do |t|
4
- t.integer :subscription_id, :null => false
5
- t.integer :work_id, :null => false
6
- t.datetime :start_at, :null => false
7
- t.datetime :end_at, :null => false
4
+ t.references :subscription, index: true, null: false
5
+ t.integer :work_id, null: false
6
+ t.datetime :start_at, null: false
7
+ t.datetime :end_at, null: false
8
8
 
9
9
  t.timestamps
10
10
  end
11
- add_index :subscribes, :subscription_id
12
11
  add_index :subscribes, :work_id
13
12
  end
14
13
  end
@@ -8,7 +8,7 @@ class AddDcndlSchema < ActiveRecord::Migration
8
8
  add_column :manifestations, :valid_until, :timestamp
9
9
  add_column :manifestations, :date_submitted, :timestamp
10
10
  add_column :manifestations, :date_accepted, :timestamp
11
- add_column :manifestations, :date_caputured, :timestamp
11
+ add_column :manifestations, :date_captured, :timestamp
12
12
  rename_column :manifestations, :copyright_date, :date_copyrighted
13
13
  end
14
14
 
@@ -21,7 +21,7 @@ class AddDcndlSchema < ActiveRecord::Migration
21
21
  remove_column :manifestations, :valid_until
22
22
  remove_column :manifestations, :date_submitted
23
23
  remove_column :manifestations, :date_accepted
24
- remove_column :manifestations, :date_caputured
24
+ remove_column :manifestations, :date_captured
25
25
  rename_column :manifestations, :date_copyrighted, :copyright_date
26
26
  end
27
27
  end
@@ -1,14 +1,11 @@
1
1
  class CreateAccepts < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :accepts do |t|
4
- t.integer :basket_id
5
- t.integer :item_id
6
- t.integer :librarian_id
4
+ t.references :basket, index: true
5
+ t.references :item, index: true
6
+ t.references :librarian, index: true
7
7
 
8
8
  t.timestamps
9
9
  end
10
-
11
- add_index :accepts, :basket_id
12
- add_index :accepts, :item_id
13
10
  end
14
11
  end
@@ -1,7 +1,7 @@
1
1
  class CreateUserImportFiles < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_import_files do |t|
4
- t.integer :user_id
4
+ t.references :user, index: true
5
5
  t.text :note
6
6
  t.datetime :executed_at
7
7
  t.string :user_import_file_name
@@ -1,8 +1,8 @@
1
1
  class CreateUserImportResults < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_import_results do |t|
4
- t.integer :user_import_file_id
5
- t.integer :user_id
4
+ t.references :user_import_file, index: true
5
+ t.references :user, index: true
6
6
  t.text :body
7
7
 
8
8
  t.timestamps
@@ -8,11 +8,10 @@ class CreateUserImportFileTransitions < ActiveRecord::Migration
8
8
  t.text :metadata, default: "{}"
9
9
  end
10
10
  t.integer :sort_key
11
- t.integer :user_import_file_id
11
+ t.references :user_import_file, index: true
12
12
  t.timestamps
13
13
  end
14
14
 
15
- add_index :user_import_file_transitions, :user_import_file_id
16
15
  add_index :user_import_file_transitions, [:sort_key, :user_import_file_id], unique: true, name: "index_user_import_file_transitions_on_sort_key_and_file_id"
17
16
  end
18
17
  end
@@ -1,7 +1,7 @@
1
1
  class CreateUserExportFiles < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_export_files do |t|
4
- t.integer :user_id
4
+ t.references :user, index: true
5
5
  t.attachment :user_export
6
6
  t.datetime :executed_at
7
7
 
@@ -8,7 +8,7 @@ class CreateUserExportFileTransitions < ActiveRecord::Migration
8
8
  t.text :metadata, default: "{}"
9
9
  end
10
10
  t.integer :sort_key
11
- t.integer :user_export_file_id
11
+ t.references :user_export_file, index: true
12
12
  t.timestamps
13
13
  end
14
14
 
@@ -1,5 +1,5 @@
1
1
  class AddDefaultLibraryIdToUserImportFile < ActiveRecord::Migration
2
2
  def change
3
- add_column :user_import_files, :default_library_id, :integer
3
+ add_reference :user_import_files, :default_library
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  class AddDefaultUserGroupIdToUserImportFile < ActiveRecord::Migration
2
2
  def change
3
- add_column :user_import_files, :default_user_group_id, :integer
3
+ add_reference :user_import_files, :default_user_group
4
4
  end
5
5
  end
@@ -1,14 +1,12 @@
1
1
  class CreateColors < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :colors do |t|
4
- t.integer :library_group_id
4
+ t.references :library_group, index: true
5
5
  t.string :property
6
6
  t.string :code
7
7
  t.integer :position
8
8
 
9
9
  t.timestamps
10
10
  end
11
-
12
- add_index :colors, :library_group_id
13
11
  end
14
12
  end
@@ -0,0 +1,5 @@
1
+ class AddForeignKeyToItemsReferencingManifestations < ActiveRecord::Migration
2
+ def change
3
+ add_foreign_key :items, :manifestations
4
+ end
5
+ end
@@ -1,13 +1,11 @@
1
1
  class CreateWithdraws < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :withdraws do |t|
4
- t.integer :basket_id
5
- t.integer :item_id
6
- t.integer :librarian_id
4
+ t.references :basket, index: true
5
+ t.references :item, index: true
6
+ t.references :librarian, index: true
7
7
 
8
8
  t.timestamps null: false
9
9
  end
10
- add_index :withdraws, :basket_id
11
- add_index :withdraws, :item_id
12
10
  end
13
11
  end
@@ -0,0 +1,6 @@
1
+ class AddProfileIdToAgent < ActiveRecord::Migration
2
+ def change
3
+ add_column :agents, :profile_id, :integer
4
+ add_index :agents, :profile_id
5
+ end
6
+ end
@@ -1,13 +1,26 @@
1
+ # This migration comes from enju_library_engine (originally 20151213070943)
1
2
  class AddTranslationTableToLibraryGroup < ActiveRecord::Migration
2
3
  def up
3
- LibraryGroup.create_translation_table!({
4
- login_banner: :text
5
- }, {
6
- migrate_data: true
7
- })
4
+ if defined?(Globalize)
5
+ LibraryGroup.create_translation_table!({
6
+ login_banner: :text
7
+ }, {
8
+ migrate_data: true
9
+ })
10
+ end
11
+
12
+ if defined?(AwesomeHstoreTranslate)
13
+ add_column :library_groups, :login_banner, :hstore
14
+ end
8
15
  end
9
16
 
10
17
  def down
11
- LibraryGroup.drop_translation_table! migrate_data: true
18
+ if defined?(Globalize)
19
+ LibraryGroup.drop_translation_table! migrate_data: true
20
+ end
21
+
22
+ if defined?(AwesomeHstoreTranslate)
23
+ remove_column :library_groups, :login_banner
24
+ end
12
25
  end
13
26
  end
@@ -1,9 +1,22 @@
1
+ # This migration comes from enju_library_engine (originally 20151213072705)
1
2
  class AddFooterBannerToLibraryGroup < ActiveRecord::Migration
2
3
  def up
3
- LibraryGroup.add_translation_fields! footer_banner: :text
4
+ if defined?(Globalize)
5
+ LibraryGroup.add_translation_fields! footer_banner: :text
6
+ end
7
+
8
+ if defined?(AwesomeHstoreTranslate)
9
+ add_column :library_groups, :footer_banner, :hstore
10
+ end
4
11
  end
5
12
 
6
13
  def down
7
- remove_column :library_group_translations, :footer_banner
14
+ if defined?(Globalize)
15
+ remove_column :library_group_translations, :footer_banner
16
+ end
17
+
18
+ if defined?(AwesomeHstoreTranslate)
19
+ remove_column :library_groups, :footer_banner
20
+ end
8
21
  end
9
22
  end
@@ -0,0 +1,5 @@
1
+ class AddCsvCharsetConversionToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :csv_charset_conversion, :boolean, null: false, default: false
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddHeaderLogoToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_attachment :library_groups, :header_logo
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class SetNotNullToManifestationIdOnItems < ActiveRecord::Migration
2
+ def change
3
+ change_column_null :items, :manifestation_id, false
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class RenameLoginBannerToOldLoginBanner < ActiveRecord::Migration
2
+ def change
3
+ rename_column :library_groups, :login_banner, :old_login_banner
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddForeignKeyToLibraryGroupIdOnLibrary < ActiveRecord::Migration
2
+ def change
3
+ add_foreign_key :libraries, :library_groups, null: false
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddHeaderLogoMetaToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :header_logo_meta, :text
4
+ end
5
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForUserImportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :user_import_file_transitions, [:user_import_file_id, :most_recent], unique: true, where: "most_recent", name: "index_user_import_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :user_import_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :user_import_file_transitions, name: "index_user_import_file_transitions_parent_most_recent"
11
+ change_column_null :user_import_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForUserExportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :user_export_file_transitions, [:user_export_file_id, :most_recent], unique: true, where: "most_recent", name: "index_user_export_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :user_export_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :user_export_file_transitions, name: "index_user_export_file_transitions_parent_most_recent"
11
+ change_column_null :user_export_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForAgentImportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :agent_import_file_transitions, [:agent_import_file_id, :most_recent], unique: true, where: "most_recent", name: "index_agent_import_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :agent_import_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :agent_import_file_transitions, name: "index_agent_import_file_transitions_parent_most_recent"
11
+ change_column_null :agent_import_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForResourceImportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :resource_import_file_transitions, [:resource_import_file_id, :most_recent], unique: true, where: "most_recent", name: "index_resource_import_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :resource_import_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :resource_import_file_transitions, name: "index_resource_import_file_transitions_parent_most_recent"
11
+ change_column_null :resource_import_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForResourceExportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :resource_export_file_transitions, [:resource_export_file_id, :most_recent], unique: true, where: "most_recent", name: "index_resource_export_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :resource_export_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :resource_export_file_transitions, name: "index_resource_export_file_transitions_parent_most_recent"
11
+ change_column_null :resource_export_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForImportRequestTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :import_request_transitions, [:import_request_id, :most_recent], unique: true, where: "most_recent", name: "index_import_request_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :import_request_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :import_request_transitions, name: "index_import_request_transitions_parent_most_recent"
11
+ change_column_null :import_request_transitions, :most_recent, true
12
+ end
13
+ end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20160820004638) do
14
+ ActiveRecord::Schema.define(version: 20180107161410) do
15
15
 
16
16
  create_table "accepts", force: :cascade do |t|
17
17
  t.integer "basket_id"
@@ -23,6 +23,7 @@ ActiveRecord::Schema.define(version: 20160820004638) do
23
23
 
24
24
  add_index "accepts", ["basket_id"], name: "index_accepts_on_basket_id"
25
25
  add_index "accepts", ["item_id"], name: "index_accepts_on_item_id"
26
+ add_index "accepts", ["librarian_id"], name: "index_accepts_on_librarian_id"
26
27
 
27
28
  create_table "agent_import_file_transitions", force: :cascade do |t|
28
29
  t.string "to_state"
@@ -31,9 +32,10 @@ ActiveRecord::Schema.define(version: 20160820004638) do
31
32
  t.integer "agent_import_file_id"
32
33
  t.datetime "created_at"
33
34
  t.datetime "updated_at"
34
- t.boolean "most_recent"
35
+ t.boolean "most_recent", null: false
35
36
  end
36
37
 
38
+ add_index "agent_import_file_transitions", ["agent_import_file_id", "most_recent"], name: "index_agent_import_file_transitions_parent_most_recent", unique: true
37
39
  add_index "agent_import_file_transitions", ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
38
40
  add_index "agent_import_file_transitions", ["sort_key", "agent_import_file_id"], name: "index_agent_import_file_transitions_on_sort_key_and_file_id", unique: true
39
41
 
@@ -159,12 +161,14 @@ ActiveRecord::Schema.define(version: 20160820004638) do
159
161
  t.string "birth_date"
160
162
  t.string "death_date"
161
163
  t.string "agent_identifier"
164
+ t.integer "profile_id"
162
165
  end
163
166
 
164
167
  add_index "agents", ["agent_identifier"], name: "index_agents_on_agent_identifier"
165
168
  add_index "agents", ["country_id"], name: "index_agents_on_country_id"
166
169
  add_index "agents", ["full_name"], name: "index_agents_on_full_name"
167
170
  add_index "agents", ["language_id"], name: "index_agents_on_language_id"
171
+ add_index "agents", ["profile_id"], name: "index_agents_on_profile_id"
168
172
  add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
169
173
 
170
174
  create_table "baskets", force: :cascade do |t|
@@ -337,9 +341,10 @@ ActiveRecord::Schema.define(version: 20160820004638) do
337
341
  t.integer "import_request_id"
338
342
  t.datetime "created_at"
339
343
  t.datetime "updated_at"
340
- t.boolean "most_recent"
344
+ t.boolean "most_recent", null: false
341
345
  end
342
346
 
347
+ add_index "import_request_transitions", ["import_request_id", "most_recent"], name: "index_import_request_transitions_parent_most_recent", unique: true
343
348
  add_index "import_request_transitions", ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
344
349
  add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
345
350
 
@@ -375,7 +380,7 @@ ActiveRecord::Schema.define(version: 20160820004638) do
375
380
  t.string "binding_item_identifier"
376
381
  t.string "binding_call_number"
377
382
  t.datetime "binded_at"
378
- t.integer "manifestation_id"
383
+ t.integer "manifestation_id", null: false
379
384
  end
380
385
 
381
386
  add_index "items", ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
@@ -415,7 +420,7 @@ ActiveRecord::Schema.define(version: 20160820004638) do
415
420
  t.text "note"
416
421
  t.integer "call_number_rows", default: 1, null: false
417
422
  t.string "call_number_delimiter", default: "|", null: false
418
- t.integer "library_group_id", default: 1, null: false
423
+ t.integer "library_group_id", null: false
419
424
  t.integer "users_count", default: 0, null: false
420
425
  t.integer "position"
421
426
  t.integer "country_id"
@@ -429,7 +434,7 @@ ActiveRecord::Schema.define(version: 20160820004638) do
429
434
  end
430
435
 
431
436
  add_index "libraries", ["library_group_id"], name: "index_libraries_on_library_group_id"
432
- add_index "libraries", ["name"], name: "index_libraries_on_name", unique: true
437
+ add_index "libraries", ["name"], name: "index_libraries_on_name"
433
438
 
434
439
  create_table "library_group_translations", force: :cascade do |t|
435
440
  t.integer "library_group_id", null: false
@@ -448,7 +453,7 @@ ActiveRecord::Schema.define(version: 20160820004638) do
448
453
  t.text "display_name"
449
454
  t.string "short_name", null: false
450
455
  t.text "my_networks"
451
- t.text "login_banner"
456
+ t.text "old_login_banner"
452
457
  t.text "note"
453
458
  t.integer "country_id"
454
459
  t.integer "position"
@@ -464,6 +469,12 @@ ActiveRecord::Schema.define(version: 20160820004638) do
464
469
  t.string "screenshot_generator"
465
470
  t.integer "pub_year_facet_range_interval", default: 10
466
471
  t.integer "user_id"
472
+ t.boolean "csv_charset_conversion", default: false, null: false
473
+ t.string "header_logo_file_name"
474
+ t.string "header_logo_content_type"
475
+ t.integer "header_logo_file_size"
476
+ t.datetime "header_logo_updated_at"
477
+ t.text "header_logo_meta"
467
478
  end
468
479
 
469
480
  add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
@@ -542,7 +553,7 @@ ActiveRecord::Schema.define(version: 20160820004638) do
542
553
  t.datetime "valid_until"
543
554
  t.datetime "date_submitted"
544
555
  t.datetime "date_accepted"
545
- t.datetime "date_caputured"
556
+ t.datetime "date_captured"
546
557
  t.string "pub_date"
547
558
  t.string "edition_string"
548
559
  t.integer "volume_number"
@@ -693,9 +704,10 @@ ActiveRecord::Schema.define(version: 20160820004638) do
693
704
  t.integer "resource_export_file_id"
694
705
  t.datetime "created_at"
695
706
  t.datetime "updated_at"
696
- t.boolean "most_recent"
707
+ t.boolean "most_recent", null: false
697
708
  end
698
709
 
710
+ add_index "resource_export_file_transitions", ["resource_export_file_id", "most_recent"], name: "index_resource_export_file_transitions_parent_most_recent", unique: true
699
711
  add_index "resource_export_file_transitions", ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
700
712
  add_index "resource_export_file_transitions", ["sort_key", "resource_export_file_id"], name: "index_resource_export_file_transitions_on_sort_key_and_file_id", unique: true
701
713
 
@@ -717,9 +729,10 @@ ActiveRecord::Schema.define(version: 20160820004638) do
717
729
  t.integer "resource_import_file_id"
718
730
  t.datetime "created_at"
719
731
  t.datetime "updated_at"
720
- t.boolean "most_recent"
732
+ t.boolean "most_recent", null: false
721
733
  end
722
734
 
735
+ add_index "resource_import_file_transitions", ["resource_import_file_id", "most_recent"], name: "index_resource_import_file_transitions_parent_most_recent", unique: true
723
736
  add_index "resource_import_file_transitions", ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
724
737
  add_index "resource_import_file_transitions", ["sort_key", "resource_import_file_id"], name: "index_resource_import_file_transitions_on_sort_key_and_file_id", unique: true
725
738
 
@@ -829,7 +842,7 @@ ActiveRecord::Schema.define(version: 20160820004638) do
829
842
  t.string "name", null: false
830
843
  t.text "display_name"
831
844
  t.text "note"
832
- t.integer "library_id", default: 1, null: false
845
+ t.integer "library_id", null: false
833
846
  t.integer "items_count", default: 0, null: false
834
847
  t.integer "position"
835
848
  t.datetime "created_at"
@@ -873,11 +886,13 @@ ActiveRecord::Schema.define(version: 20160820004638) do
873
886
  t.integer "user_export_file_id"
874
887
  t.datetime "created_at"
875
888
  t.datetime "updated_at"
876
- t.boolean "most_recent"
889
+ t.boolean "most_recent", null: false
877
890
  end
878
891
 
879
892
  add_index "user_export_file_transitions", ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
893
+ add_index "user_export_file_transitions", ["user_export_file_id", "most_recent"], name: "index_user_export_file_transitions_parent_most_recent", unique: true
880
894
  add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
895
+ add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_user_export_file_id"
881
896
 
882
897
  create_table "user_export_files", force: :cascade do |t|
883
898
  t.integer "user_id"
@@ -890,6 +905,8 @@ ActiveRecord::Schema.define(version: 20160820004638) do
890
905
  t.datetime "updated_at"
891
906
  end
892
907
 
908
+ add_index "user_export_files", ["user_id"], name: "index_user_export_files_on_user_id"
909
+
893
910
  create_table "user_groups", force: :cascade do |t|
894
911
  t.string "name"
895
912
  t.text "display_name"
@@ -919,10 +936,11 @@ ActiveRecord::Schema.define(version: 20160820004638) do
919
936
  t.integer "user_import_file_id"
920
937
  t.datetime "created_at"
921
938
  t.datetime "updated_at"
922
- t.boolean "most_recent"
939
+ t.boolean "most_recent", null: false
923
940
  end
924
941
 
925
942
  add_index "user_import_file_transitions", ["sort_key", "user_import_file_id"], name: "index_user_import_file_transitions_on_sort_key_and_file_id", unique: true
943
+ add_index "user_import_file_transitions", ["user_import_file_id", "most_recent"], name: "index_user_import_file_transitions_parent_most_recent", unique: true
926
944
  add_index "user_import_file_transitions", ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
927
945
 
928
946
  create_table "user_import_files", force: :cascade do |t|
@@ -943,6 +961,8 @@ ActiveRecord::Schema.define(version: 20160820004638) do
943
961
  t.integer "default_user_group_id"
944
962
  end
945
963
 
964
+ add_index "user_import_files", ["user_id"], name: "index_user_import_files_on_user_id"
965
+
946
966
  create_table "user_import_results", force: :cascade do |t|
947
967
  t.integer "user_import_file_id"
948
968
  t.integer "user_id"
@@ -952,6 +972,9 @@ ActiveRecord::Schema.define(version: 20160820004638) do
952
972
  t.text "error_message"
953
973
  end
954
974
 
975
+ add_index "user_import_results", ["user_id"], name: "index_user_import_results_on_user_id"
976
+ add_index "user_import_results", ["user_import_file_id"], name: "index_user_import_results_on_user_import_file_id"
977
+
955
978
  create_table "users", force: :cascade do |t|
956
979
  t.string "email", default: "", null: false
957
980
  t.string "encrypted_password", default: "", null: false
@@ -1000,5 +1023,6 @@ ActiveRecord::Schema.define(version: 20160820004638) do
1000
1023
 
1001
1024
  add_index "withdraws", ["basket_id"], name: "index_withdraws_on_basket_id"
1002
1025
  add_index "withdraws", ["item_id"], name: "index_withdraws_on_item_id"
1026
+ add_index "withdraws", ["librarian_id"], name: "index_withdraws_on_librarian_id"
1003
1027
 
1004
1028
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_manifestation_viewer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.3
19
+ version: 0.2.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.3
26
+ version: 0.2.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: enju_leaf
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -322,9 +322,11 @@ files:
322
322
  - spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb
323
323
  - spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb
324
324
  - spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
325
+ - spec/dummy/db/migrate/20150117111136_add_foreign_key_to_items_referencing_manifestations.rb
325
326
  - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
326
327
  - spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb
327
328
  - spec/dummy/db/migrate/20150924115059_create_withdraws.rb
329
+ - spec/dummy/db/migrate/20151125004028_add_profile_id_to_agent.rb
328
330
  - spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb
329
331
  - spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
330
332
  - spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb
@@ -340,6 +342,18 @@ files:
340
342
  - spec/dummy/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb
341
343
  - spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb
342
344
  - spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb
345
+ - spec/dummy/db/migrate/20170305064014_add_csv_charset_conversion_to_library_group.rb
346
+ - spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb
347
+ - spec/dummy/db/migrate/20171119051258_set_not_null_to_manifestation_id_on_items.rb
348
+ - spec/dummy/db/migrate/20171126133835_rename_login_banner_to_old_login_banner.rb
349
+ - spec/dummy/db/migrate/20171126135238_add_foreign_key_to_library_group_id_on_library.rb
350
+ - spec/dummy/db/migrate/20180102162311_add_header_logo_meta_to_library_group.rb
351
+ - spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
352
+ - spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb
353
+ - spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
354
+ - spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb
355
+ - spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb
356
+ - spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
343
357
  - spec/dummy/db/schema.rb
344
358
  - spec/dummy/public/404.html
345
359
  - spec/dummy/public/422.html
@@ -412,6 +426,8 @@ test_files:
412
426
  - spec/dummy/public/500.html
413
427
  - spec/dummy/public/404.html
414
428
  - spec/dummy/db/schema.rb
429
+ - spec/dummy/db/migrate/20170305064014_add_csv_charset_conversion_to_library_group.rb
430
+ - spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb
415
431
  - spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb
416
432
  - spec/dummy/db/migrate/20090720091429_create_content_types.rb
417
433
  - spec/dummy/db/migrate/20140709113413_create_user_export_files.rb
@@ -430,12 +446,16 @@ test_files:
430
446
  - spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
431
447
  - spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb
432
448
  - spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb
449
+ - spec/dummy/db/migrate/20171126133835_rename_login_banner_to_old_login_banner.rb
433
450
  - spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb
434
451
  - spec/dummy/db/migrate/015_create_creates.rb
435
452
  - spec/dummy/db/migrate/20081025083905_create_languages.rb
436
453
  - spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb
454
+ - spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb
437
455
  - spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb
438
456
  - spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb
457
+ - spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb
458
+ - spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
439
459
  - spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb
440
460
  - spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
441
461
  - spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb
@@ -446,6 +466,7 @@ test_files:
446
466
  - spec/dummy/db/migrate/130_create_request_status_types.rb
447
467
  - spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
448
468
  - spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb
469
+ - spec/dummy/db/migrate/20150117111136_add_foreign_key_to_items_referencing_manifestations.rb
449
470
  - spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb
450
471
  - spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb
451
472
  - spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb
@@ -480,6 +501,7 @@ test_files:
480
501
  - spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb
481
502
  - spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb
482
503
  - spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb
504
+ - spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
483
505
  - spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
484
506
  - spec/dummy/db/migrate/077_create_user_groups.rb
485
507
  - spec/dummy/db/migrate/134_create_agent_merge_lists.rb
@@ -489,7 +511,10 @@ test_files:
489
511
  - spec/dummy/db/migrate/20100129142347_create_import_requests.rb
490
512
  - spec/dummy/db/migrate/125_create_donates.rb
491
513
  - spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb
514
+ - spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb
492
515
  - spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb
516
+ - spec/dummy/db/migrate/20151125004028_add_profile_id_to_agent.rb
517
+ - spec/dummy/db/migrate/20171119051258_set_not_null_to_manifestation_id_on_items.rb
493
518
  - spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb
494
519
  - spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
495
520
  - spec/dummy/db/migrate/001_create_agents.rb
@@ -499,6 +524,7 @@ test_files:
499
524
  - spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb
500
525
  - spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb
501
526
  - spec/dummy/db/migrate/041_create_roles.rb
527
+ - spec/dummy/db/migrate/20171126135238_add_foreign_key_to_library_group_id_on_library.rb
502
528
  - spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb
503
529
  - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
504
530
  - spec/dummy/db/migrate/20120129014038_create_budget_types.rb
@@ -509,6 +535,7 @@ test_files:
509
535
  - spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb
510
536
  - spec/dummy/db/migrate/20111124110059_create_create_types.rb
511
537
  - spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb
538
+ - spec/dummy/db/migrate/20180102162311_add_header_logo_meta_to_library_group.rb
512
539
  - spec/dummy/db/migrate/20160801080619_add_most_recent_to_resource_import_file_transitions.rb
513
540
  - spec/dummy/db/migrate/20081027150907_create_picture_files.rb
514
541
  - spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb
@@ -516,6 +543,7 @@ test_files:
516
543
  - spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb
517
544
  - spec/dummy/db/migrate/005_create_manifestations.rb
518
545
  - spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb
546
+ - spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
519
547
  - spec/dummy/db/migrate/20080830172106_create_exemplifies.rb
520
548
  - spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb
521
549
  - spec/dummy/db/migrate/20160801080643_add_most_recent_to_agent_import_file_transitions.rb