enju_manifestation_viewer 0.1.0.pre16 → 0.1.0.pre17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +8 -1
- data/lib/enju_manifestation_viewer/version.rb +1 -1
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config/database.yml +23 -18
- data/spec/dummy/config/environments/test.rb +1 -1
- data/spec/dummy/db/migrate/001_create_agents.rb +0 -3
- data/spec/dummy/db/migrate/002_devise_create_users.rb +46 -0
- data/spec/dummy/db/migrate/005_create_manifestations.rb +7 -8
- data/spec/dummy/db/migrate/006_create_items.rb +0 -3
- data/spec/dummy/db/migrate/041_create_roles.rb +13 -0
- data/spec/dummy/db/migrate/059_create_libraries.rb +28 -0
- data/spec/dummy/db/migrate/069_create_shelves.rb +15 -0
- data/spec/dummy/db/migrate/077_create_user_groups.rb +12 -0
- data/spec/dummy/db/migrate/080_create_library_groups.rb +17 -0
- data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
- data/spec/dummy/db/migrate/124_create_bookstores.rb +17 -0
- data/spec/dummy/db/migrate/130_create_request_status_types.rb +12 -0
- data/spec/dummy/db/migrate/{20090719201843_create_extents.rb → 131_create_request_types.rb} +2 -2
- data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +17 -0
- data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +14 -0
- data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +17 -0
- data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +0 -2
- data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +1 -3
- data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +0 -1
- data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
- data/spec/dummy/db/migrate/{20111201163718_create_user_has_roles.rb → 20100606065209_create_user_has_roles.rb} +2 -0
- data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +0 -1
- data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +11 -0
- data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +5 -0
- data/spec/dummy/db/migrate/{20111201121844_create_roles.rb → 20120129014038_create_budget_types.rb} +2 -2
- data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
- data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +5 -0
- data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +16 -0
- data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +6 -0
- data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +18 -0
- data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +11 -0
- data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
- data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +18 -0
- data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +18 -0
- data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +18 -0
- data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +18 -0
- data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +11 -0
- data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +18 -0
- data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +18 -0
- data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
- data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
- data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140821151023_create_colors.rb +14 -0
- data/spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb +5 -0
- data/spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb +9 -0
- data/spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb +5 -0
- data/spec/dummy/db/schema.rb +321 -122
- data/spec/fixtures/identifiers.yml +9 -3
- data/spec/fixtures/manifestations.yml +120 -120
- data/spec/helpers/book_jacket_helper_spec.rb +1 -1
- data/spec/spec_helper.rb +5 -0
- metadata +167 -63
- data/spec/dummy/db/migrate/029_create_subjects.rb +0 -27
- data/spec/dummy/db/migrate/142_create_classifications.rb +0 -19
- data/spec/dummy/db/migrate/143_create_subject_has_classifications.rb +0 -16
- data/spec/dummy/db/migrate/144_create_classification_types.rb +0 -16
- data/spec/dummy/db/migrate/145_create_subject_heading_types.rb +0 -16
- data/spec/dummy/db/migrate/146_create_subject_types.rb +0 -16
- data/spec/dummy/db/migrate/20080606052544_create_work_has_subjects.rb +0 -18
- data/spec/dummy/db/migrate/20090208044541_create_subject_heading_type_has_subjects.rb +0 -16
- data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
- data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
- data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +0 -13
- data/spec/dummy/db/migrate/20110913120629_add_lft_and_rgt_to_classification.rb +0 -11
- data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
- data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +0 -9
- data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -13
- data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +0 -52
- data/spec/dummy/db/migrate/20120406020752_add_url_to_subject.rb +0 -5
- data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +0 -9
- data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +0 -6
- data/spec/dummy/db/migrate/20130504133816_add_manifestation_id_to_subject.rb +0 -6
- data/spec/dummy/db/migrate/20130504143515_add_manifestation_id_to_classification.rb +0 -6
- data/spec/dummy/db/migrate/20130504195916_add_subject_heading_type_id_to_subject.rb +0 -5
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/script/rails +0 -6
@@ -1,27 +0,0 @@
|
|
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
|
@@ -1,19 +0,0 @@
|
|
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
|
@@ -1,16 +0,0 @@
|
|
1
|
-
class CreateSubjectHasClassifications < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
create_table :subject_has_classifications do |t|
|
4
|
-
t.references :subject, :polymorphic => true
|
5
|
-
t.integer :classification_id, :null => false
|
6
|
-
|
7
|
-
t.timestamps
|
8
|
-
end
|
9
|
-
add_index :subject_has_classifications, :subject_id
|
10
|
-
add_index :subject_has_classifications, :classification_id
|
11
|
-
end
|
12
|
-
|
13
|
-
def self.down
|
14
|
-
drop_table :subject_has_classifications
|
15
|
-
end
|
16
|
-
end
|
@@ -1,16 +0,0 @@
|
|
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
|
@@ -1,16 +0,0 @@
|
|
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
|
@@ -1,16 +0,0 @@
|
|
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
|
@@ -1,18 +0,0 @@
|
|
1
|
-
class CreateWorkHasSubjects < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
create_table :work_has_subjects do |t|
|
4
|
-
t.references :subject, :polymorphic => true
|
5
|
-
#t.references :subjectable, :polymorphic => true
|
6
|
-
t.integer :work_id #, :null => false
|
7
|
-
t.integer :position
|
8
|
-
|
9
|
-
t.timestamps
|
10
|
-
end
|
11
|
-
add_index :work_has_subjects, :subject_id
|
12
|
-
add_index :work_has_subjects, :work_id
|
13
|
-
end
|
14
|
-
|
15
|
-
def self.down
|
16
|
-
drop_table :work_has_subjects
|
17
|
-
end
|
18
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
class CreateSubjectHeadingTypeHasSubjects < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
create_table :subject_heading_type_has_subjects do |t|
|
4
|
-
t.integer :subject_id, :null => false
|
5
|
-
t.string :subject_type
|
6
|
-
t.integer :subject_heading_type_id, :null => false
|
7
|
-
|
8
|
-
t.timestamps
|
9
|
-
end
|
10
|
-
add_index :subject_heading_type_has_subjects, :subject_id
|
11
|
-
end
|
12
|
-
|
13
|
-
def self.down
|
14
|
-
drop_table :subject_heading_type_has_subjects
|
15
|
-
end
|
16
|
-
end
|
@@ -1,13 +0,0 @@
|
|
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
|
@@ -1,11 +0,0 @@
|
|
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
|
data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
class RenameManifestationNumberListToNumberString < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
rename_column :manifestations, :volume_number_list, :volume_number_string
|
4
|
-
rename_column :manifestations, :issue_number_list, :issue_number_string
|
5
|
-
rename_column :manifestations, :serial_number_list, :serial_number_string
|
6
|
-
end
|
7
|
-
|
8
|
-
def self.down
|
9
|
-
rename_column :manifestations, :serial_number_string, :serial_number_list
|
10
|
-
rename_column :manifestations, :issue_number_string, :issue_number_list
|
11
|
-
rename_column :manifestations, :volume_number_string, :volume_number_list
|
12
|
-
end
|
13
|
-
end
|
@@ -1,52 +0,0 @@
|
|
1
|
-
class AddDeviseToUsers < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
change_table(:users) do |t|
|
4
|
-
## Database authenticatable
|
5
|
-
t.string :email, :null => false, :default => ""
|
6
|
-
t.string :encrypted_password, :null => false, :default => ""
|
7
|
-
|
8
|
-
## Recoverable
|
9
|
-
t.string :reset_password_token
|
10
|
-
t.datetime :reset_password_sent_at
|
11
|
-
|
12
|
-
## Rememberable
|
13
|
-
t.datetime :remember_created_at
|
14
|
-
|
15
|
-
## Trackable
|
16
|
-
t.integer :sign_in_count, :default => 0
|
17
|
-
t.datetime :current_sign_in_at
|
18
|
-
t.datetime :last_sign_in_at
|
19
|
-
t.string :current_sign_in_ip
|
20
|
-
t.string :last_sign_in_ip
|
21
|
-
|
22
|
-
## Encryptable
|
23
|
-
t.string :password_salt
|
24
|
-
|
25
|
-
## Confirmable
|
26
|
-
t.string :confirmation_token
|
27
|
-
t.datetime :confirmed_at
|
28
|
-
t.datetime :confirmation_sent_at
|
29
|
-
t.string :unconfirmed_email # Only if using reconfirmable
|
30
|
-
|
31
|
-
## Lockable
|
32
|
-
t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts
|
33
|
-
t.string :unlock_token # Only if unlock strategy is :email or :both
|
34
|
-
t.datetime :locked_at
|
35
|
-
|
36
|
-
# Token authenticatable
|
37
|
-
t.string :authentication_token
|
38
|
-
end
|
39
|
-
|
40
|
-
add_index :users, :email #, :unique => true
|
41
|
-
add_index :users, :reset_password_token, :unique => true
|
42
|
-
# add_index :users, :confirmation_token, :unique => true
|
43
|
-
# add_index :users, :unlock_token, :unique => true
|
44
|
-
# add_index :users, :authentication_token, :unique => true
|
45
|
-
end
|
46
|
-
|
47
|
-
def self.down
|
48
|
-
# By default, we don't want to make any assumption about how to roll back a migration when your
|
49
|
-
# model already existed. Please edit below which fields you would like to remove in this migration.
|
50
|
-
raise ActiveRecord::IrreversibleMigration
|
51
|
-
end
|
52
|
-
end
|
data/spec/dummy/db/test.sqlite3
DELETED
Binary file
|
data/spec/dummy/script/rails
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
-
|
4
|
-
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
-
require File.expand_path('../../config/boot', __FILE__)
|
6
|
-
require 'rails/commands'
|