enju_book_jacket 0.1.0.pre3 → 0.1.0.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/app/views/manifestations/_google_book_thumbnail.html.erb +0 -32
  2. data/app/views/manifestations/_google_book_thumbnail_header.html.erb +38 -0
  3. data/lib/enju_book_jacket/book_jacket_helper.rb +10 -0
  4. data/lib/enju_book_jacket/version.rb +1 -1
  5. data/spec/dummy/db/migrate/001_create_patrons.rb +53 -0
  6. data/spec/dummy/db/migrate/005_create_manifestations.rb +3 -3
  7. data/spec/dummy/db/migrate/006_create_items.rb +28 -0
  8. data/spec/dummy/db/migrate/012_create_owns.rb +12 -0
  9. data/spec/dummy/db/migrate/015_create_creates.rb +12 -0
  10. data/spec/dummy/db/migrate/047_create_produces.rb +12 -0
  11. data/spec/dummy/db/migrate/073_create_carrier_types.rb +11 -0
  12. data/spec/dummy/db/migrate/112_create_frequencies.rb +12 -0
  13. data/spec/dummy/db/migrate/117_create_form_of_works.rb +12 -0
  14. data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
  15. data/spec/dummy/db/migrate/125_create_donates.rb +12 -0
  16. data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +13 -0
  17. data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +13 -0
  18. data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +12 -0
  19. data/spec/dummy/db/migrate/20081025083323_create_countries.rb +28 -0
  20. data/spec/dummy/db/migrate/20081025083905_create_languages.rb +23 -0
  21. data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +15 -0
  22. data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +22 -0
  23. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +22 -0
  24. data/spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +15 -0
  25. data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
  26. data/spec/dummy/db/migrate/20090719201843_create_extents.rb +12 -0
  27. data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
  28. data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +12 -0
  29. data/spec/dummy/db/migrate/20090812151902_create_patron_relationship_types.rb +12 -0
  30. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +27 -0
  31. data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +12 -0
  32. data/spec/dummy/db/migrate/20091214131723_create_series_statements.rb +13 -0
  33. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +15 -0
  34. data/spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb +13 -0
  35. data/spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb +10 -0
  36. data/spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb +13 -0
  37. data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +13 -0
  38. data/spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb +12 -0
  39. data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +11 -0
  40. data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +15 -0
  41. data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +12 -0
  42. data/spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb +9 -0
  43. data/spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +9 -0
  44. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +11 -0
  45. data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +9 -0
  46. data/spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
  47. data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +9 -0
  48. data/spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +9 -0
  49. data/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb +11 -0
  50. data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
  51. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
  52. data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +13 -0
  53. data/spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb +10 -0
  54. data/spec/dummy/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +13 -0
  55. data/spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb +9 -0
  56. data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +9 -0
  57. data/spec/dummy/db/migrate/20111124110059_create_create_types.rb +12 -0
  58. data/spec/dummy/db/migrate/20111124110319_create_realize_types.rb +12 -0
  59. data/spec/dummy/db/migrate/20111124110355_create_produce_types.rb +12 -0
  60. data/spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb +7 -0
  61. data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +6 -0
  62. data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +6 -0
  63. data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
  64. data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
  65. data/spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +5 -0
  66. data/spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +5 -0
  67. data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
  68. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +5 -0
  69. data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
  70. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +5 -0
  71. data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +9 -0
  72. data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +9 -0
  73. data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
  74. data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
  75. data/spec/dummy/db/migrate/20120511072422_add_patron_identifier_to_patron.rb +6 -0
  76. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +5 -0
  77. data/spec/dummy/db/migrate/20120728204337_create_series_statement_relationships.rb +11 -0
  78. data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
  79. data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +6 -0
  80. data/spec/dummy/db/migrate/20121119153944_add_manifestation_id_to_item.rb +5 -0
  81. data/spec/dummy/db/schema.rb +529 -14
  82. data/spec/dummy/db/test.sqlite3 +0 -0
  83. metadata +157 -6
@@ -0,0 +1,13 @@
1
+ class CreateManifestationRelationships < ActiveRecord::Migration
2
+ def change
3
+ create_table :manifestation_relationships do |t|
4
+ t.integer :parent_id
5
+ t.integer :child_id
6
+ t.integer :manifestation_relationship_type_id
7
+
8
+ t.timestamps
9
+ end
10
+ add_index :manifestation_relationships, :parent_id
11
+ add_index :manifestation_relationships, :child_id
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class CreatePatronRelationships < ActiveRecord::Migration
2
+ def change
3
+ create_table :patron_relationships do |t|
4
+ t.integer :parent_id
5
+ t.integer :child_id
6
+ t.integer :patron_relationship_type_id
7
+
8
+ t.timestamps
9
+ end
10
+ add_index :patron_relationships, :parent_id
11
+ add_index :patron_relationships, :child_id
12
+ end
13
+ end
@@ -0,0 +1,12 @@
1
+ class CreateManifestationRelationshipTypes < ActiveRecord::Migration
2
+ def change
3
+ create_table :manifestation_relationship_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
+ end
@@ -0,0 +1,11 @@
1
+ class AddPositionToPatronRelationship < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :manifestation_relationships, :position, :integer
4
+ add_column :patron_relationships, :position, :integer
5
+ end
6
+
7
+ def self.down
8
+ remove_column :patron_relationships, :position
9
+ remove_column :manifestation_relationships, :position
10
+ end
11
+ end
@@ -0,0 +1,15 @@
1
+ class CreateResourceImportResults < ActiveRecord::Migration
2
+ def change
3
+ create_table :resource_import_results do |t|
4
+ t.integer :resource_import_file_id
5
+ t.integer :manifestation_id
6
+ t.integer :item_id
7
+ t.text :body
8
+
9
+ t.timestamps
10
+ end
11
+ add_index :resource_import_results, :resource_import_file_id
12
+ add_index :resource_import_results, :manifestation_id
13
+ add_index :resource_import_results, :item_id
14
+ end
15
+ end
@@ -0,0 +1,12 @@
1
+ class CreatePatronImportResults < ActiveRecord::Migration
2
+ def change
3
+ create_table :patron_import_results do |t|
4
+ t.integer :patron_import_file_id
5
+ t.integer :patron_id
6
+ t.integer :user_id
7
+ t.text :body
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,9 @@
1
+ class AddAcquiredAtToItem < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :items, :acquired_at, :timestamp
4
+ end
5
+
6
+ def self.down
7
+ remove_column :items, :acquired_at
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddPubDateToManifestation < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :manifestations, :pub_date, :string
4
+ end
5
+
6
+ def self.down
7
+ remove_column :manifestations, :pub_date
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ class AddBirthDateAndDeathDateToPatron < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :patrons, :birth_date, :string
4
+ add_column :patrons, :death_date, :string
5
+ end
6
+
7
+ def self.down
8
+ remove_column :patrons, :death_date
9
+ remove_column :patrons, :birth_date
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ class AddIssnToSeriesStatement < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :series_statements, :issn, :string
4
+ end
5
+
6
+ def self.down
7
+ remove_column :series_statements, :issn
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddEditModeToResourceImportFile < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :resource_import_files, :edit_mode, :string
4
+ end
5
+
6
+ def self.down
7
+ remove_column :resource_import_files, :edit_mode
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddPeriodicalToSeriesStatement < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :series_statements, :periodical, :boolean, :default => false, :null => false
4
+ end
5
+
6
+ def self.down
7
+ remove_column :series_statements, :periodical
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddEditionStringToManifestation < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :manifestations, :edition_string, :string
4
+ end
5
+
6
+ def self.down
7
+ remove_column :manifestations, :edition_string
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ class AddBookstoreIdToItem < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :items, :bookstore_id, :integer
4
+ add_index :items, :bookstore_id
5
+ end
6
+
7
+ def self.down
8
+ remove_index :items, :bookstore_id
9
+ remove_column :items, :bookstore_id
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ class CreateSeriesStatementMergeLists < ActiveRecord::Migration
2
+ def change
3
+ create_table :series_statement_merge_lists do |t|
4
+ t.string :title
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,12 @@
1
+ class CreateSeriesStatementMerges < ActiveRecord::Migration
2
+ def change
3
+ create_table :series_statement_merges do |t|
4
+ t.integer :series_statement_id, :null => false
5
+ t.integer :series_statement_merge_list_id, :null => false
6
+
7
+ t.timestamps
8
+ end
9
+ add_index :series_statement_merges, :series_statement_id
10
+ add_index :series_statement_merges, :series_statement_merge_list_id
11
+ end
12
+ end
@@ -0,0 +1,13 @@
1
+ class CreateSeriesHasManifestations < ActiveRecord::Migration
2
+ def change
3
+ create_table :series_has_manifestations do |t|
4
+ t.integer :series_statement_id
5
+ t.integer :manifestation_id
6
+ t.integer :position
7
+
8
+ t.timestamps
9
+ end
10
+ add_index :series_has_manifestations, :series_statement_id
11
+ add_index :series_has_manifestations, :manifestation_id
12
+ end
13
+ end
@@ -0,0 +1,10 @@
1
+ class AddManifestaitonIdToSeriesStatement < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :series_statements, :manifestation_id, :integer
4
+ add_index :series_statements, :manifestation_id
5
+ end
6
+
7
+ def self.down
8
+ remove_column :series_statements, :manifestation_id
9
+ end
10
+ end
@@ -0,0 +1,13 @@
1
+ class RenameSeriesStatementManifestationIdToRootManifestationId < ActiveRecord::Migration
2
+ def self.up
3
+ remove_index :series_statements, :series_statement_identifier
4
+ rename_column :series_statements, :manifestation_id, :root_manifestation_id
5
+ add_index :series_statements, :series_statement_identifier
6
+ end
7
+
8
+ def self.down
9
+ remove_index :series_statements, :series_statement_identifier
10
+ rename_column :series_statements, :root_manifestation_id, :manifestation_id
11
+ add_index :series_statements, :series_statement_identifier
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ class AddNoteToSeriesStatement < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :series_statements, :note, :text
4
+ end
5
+
6
+ def self.down
7
+ remove_column :series_statements, :note
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddNdcToManifestation < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :manifestations, :ndc, :string
4
+ end
5
+
6
+ def self.down
7
+ remove_column :manifestations, :ndc
8
+ end
9
+ end
@@ -0,0 +1,12 @@
1
+ class CreateCreateTypes < ActiveRecord::Migration
2
+ def change
3
+ create_table :create_types do |t|
4
+ t.string :name
5
+ t.text :display_name
6
+ t.text :note
7
+ t.integer :position
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ class CreateRealizeTypes < ActiveRecord::Migration
2
+ def change
3
+ create_table :realize_types do |t|
4
+ t.string :name
5
+ t.text :display_name
6
+ t.text :note
7
+ t.integer :position
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ class CreateProduceTypes < ActiveRecord::Migration
2
+ def change
3
+ create_table :produce_types do |t|
4
+ t.string :name
5
+ t.text :display_name
6
+ t.text :note
7
+ t.integer :position
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,7 @@
1
+ class AddCreateTypeToCreate < ActiveRecord::Migration
2
+ def change
3
+ add_column :creates, :create_type_id, :integer
4
+ add_column :realizes, :realize_type_id, :integer
5
+ add_column :produces, :produce_type_id, :integer
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ class AddTitleSubseriesTranscriptionToSeriesStatement < ActiveRecord::Migration
2
+ def change
3
+ add_column :series_statements, :title_subseries_transcription, :text
4
+
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ class AddBudgetTypeIdToItem < ActiveRecord::Migration
2
+ def change
3
+ add_column :items, :budget_type_id, :integer
4
+
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ class AddContentTypeIdToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :content_type_id, :integer, :default => 1
4
+
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ class AddYearOfPublicationToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :year_of_publication, :integer
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddPictureMetaToPictureFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :picture_files, :picture_meta, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddFingerprintToPictureFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :picture_files, :picture_fingerprint, :string
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddFingerprintToResourceImportFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :resource_import_files, :resource_import_fingerprint, :string
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddFingerprintToPatronImportFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :patron_import_files, :patron_import_fingerprint, :string
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddErrorMessageToResourceImportFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :resource_import_files, :error_message, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddErrorMessageToPatronImportFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :patron_import_files, :error_message, :text
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class RenameResourceImportFileImportedAtToExecutedAt < ActiveRecord::Migration
2
+ def up
3
+ rename_column :resource_import_files, :imported_at, :executed_at
4
+ end
5
+
6
+ def down
7
+ rename_column :resource_import_files, :executed_at, :imported_at
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class RenamePatronImportFileImportedAtToExecutedAt < ActiveRecord::Migration
2
+ def up
3
+ rename_column :patron_import_files, :imported_at, :executed_at
4
+ end
5
+
6
+ def down
7
+ rename_column :patron_import_files, :executed_at, :imported_at
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class AddAttachmentMetaToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :attachment_meta, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddMonthOfPublicationToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :month_of_publication, :integer
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ class AddPatronIdentifierToPatron < ActiveRecord::Migration
2
+ def change
3
+ add_column :patrons, :patron_identifier, :string
4
+ add_index :patrons, :patron_identifier
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ class AddEditModeToPatronImportFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :patron_import_files, :edit_mode, :string
4
+ end
5
+ end
@@ -0,0 +1,11 @@
1
+ class CreateSeriesStatementRelationships < ActiveRecord::Migration
2
+ def change
3
+ create_table :series_statement_relationships do |t|
4
+ t.integer :parent_id
5
+ t.integer :child_id
6
+ t.integer :position
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ class AddFulltextContentToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :fulltext_content, :boolean
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ class AddDoiToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :doi, :string
4
+ add_index :manifestations, :doi
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ class AddManifestationIdToItem < ActiveRecord::Migration
2
+ def change
3
+ add_column :items, :manifestation_id, :integer
4
+ end
5
+ end