enju_inventory 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +11 -0
  3. data/app/controllers/inventory_files_controller.rb +10 -1
  4. data/app/models/inventory.rb +38 -11
  5. data/app/models/inventory_file.rb +34 -5
  6. data/app/views/inventory_files/_form.html.erb +23 -0
  7. data/app/views/inventory_files/_observe_field.html.erb +7 -0
  8. data/app/views/inventory_files/_results.html.erb +36 -0
  9. data/app/views/inventory_files/edit.html.erb +3 -33
  10. data/app/views/inventory_files/index.html.erb +2 -4
  11. data/app/views/inventory_files/new.html.erb +3 -14
  12. data/app/views/inventory_files/show.html.erb +44 -35
  13. data/config/locales/translation_en.yml +5 -1
  14. data/config/locales/translation_ja.yml +5 -1
  15. data/db/migrate/20191224083828_add_item_identifier_to_inventory.rb +6 -0
  16. data/db/migrate/20191224091957_add_current_shelf_name_to_inventory.rb +6 -0
  17. data/db/migrate/20191230082846_add_shelf_to_inventory_file.rb +5 -0
  18. data/lib/enju_inventory/version.rb +1 -1
  19. data/lib/generators/enju_inventory/setup/USAGE +8 -0
  20. data/lib/generators/enju_inventory/setup/setup_generator.rb +13 -0
  21. data/spec/controllers/inventories_controller_spec.rb +4 -4
  22. data/spec/controllers/inventory_files_controller_spec.rb +5 -6
  23. data/spec/controllers/items_controller_spec.rb +1 -1
  24. data/spec/dummy/app/models/application_record.rb +3 -0
  25. data/spec/dummy/db/migrate/005_create_manifestations.rb +3 -3
  26. data/spec/dummy/db/migrate/132_create_circulation_statuses.rb +16 -0
  27. data/spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb +8 -0
  28. data/spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb +1 -1
  29. data/spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb +1 -1
  30. data/spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb +1 -1
  31. data/spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb +1 -1
  32. data/spec/dummy/db/migrate/20190818075603_add_memo_to_manifestation.rb +5 -0
  33. data/spec/dummy/db/migrate/20190818075628_add_memo_to_item.rb +5 -0
  34. data/spec/dummy/db/migrate/20191219122214_create_custom_properties.rb +12 -0
  35. data/spec/dummy/db/schema.rb +31 -1
  36. data/spec/fixtures/carrier_types.yml +54 -0
  37. data/spec/fixtures/circulation_statuses.yml +119 -0
  38. data/spec/fixtures/content_types.yml +98 -0
  39. data/spec/fixtures/inventories.yml +8 -6
  40. data/spec/fixtures/inventory_files.yml +4 -0
  41. data/spec/fixtures/items.yml +316 -0
  42. data/spec/fixtures/manifestations.yml +1891 -0
  43. data/spec/fixtures/shelves.yml +46 -0
  44. data/spec/fixtures/users.yml +1 -1
  45. data/spec/models/inventory_file_spec.rb +7 -2
  46. data/spec/models/inventory_spec.rb +8 -6
  47. metadata +291 -218
  48. data/README.rdoc +0 -10
@@ -7,12 +7,16 @@ en:
7
7
  attributes:
8
8
  inventory:
9
9
  note: Note
10
+ item_identifier: Item identifier
11
+ current_shelf_name: Current shelf
12
+ lineno: Line
10
13
  inventory_file:
11
14
  inventory_file_name: Filename
12
15
  inventory_content_type: Content type
13
16
  inventory_file_size: Size
14
- file_hash: File hash
17
+ inventory_fingerprint: File hash
15
18
  note: Note
19
+ shelf: Shelf
16
20
 
17
21
  inventory_file:
18
22
  not_in_catalog: "Not in catalog"
@@ -7,12 +7,16 @@ ja:
7
7
  attributes:
8
8
  inventory:
9
9
  note: 注記
10
+ item_identifier: 個別資料ID
11
+ current_shelf_name: 現在の書棚
12
+ lineno: 行数
10
13
  inventory_file:
11
14
  inventory_file_name: ファイル名
12
15
  inventory_content_type: Content-Type
13
16
  inventory_file_size: ファイルサイズ
14
- file_hash: ファイルのハッシュ
17
+ inventory_fingerprint: ファイルのハッシュ
15
18
  note: 注記
19
+ shelf: 書棚
16
20
 
17
21
  inventory_file:
18
22
  not_in_catalog: "目録に存在しない資料"
@@ -0,0 +1,6 @@
1
+ class AddItemIdentifierToInventory < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :inventories, :item_identifier, :string
4
+ add_index :inventories, :item_identifier
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ class AddCurrentShelfNameToInventory < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :inventories, :current_shelf_name, :string
4
+ add_index :inventories, :current_shelf_name
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ class AddShelfToInventoryFile < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_reference :inventory_files, :shelf, foreign_key: true
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module EnjuInventory
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1".freeze
3
3
  end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator
3
+
4
+ Example:
5
+ rails generate setup Thing
6
+
7
+ This will create:
8
+ what/will/it/create
@@ -0,0 +1,13 @@
1
+ class EnjuInventory::SetupGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('../templates', __FILE__)
3
+
4
+ def copy_setup_files
5
+ inject_into_file 'app/controllers/application_controller.rb',
6
+ " include EnjuInventory::Controller\n", after: "EnjuLibrary::Controller\n"
7
+ append_to_file("app/models/user.rb") do
8
+ <<"EOS"
9
+ Item.include(EnjuInventory::EnjuItem)
10
+ EOS
11
+ end
12
+ end
13
+ end
@@ -10,7 +10,7 @@ describe InventoriesController do
10
10
  it "assigns all inventories as @inventories" do
11
11
  get :index
12
12
  expect(assigns(:inventories)).to eq(Inventory.page(1))
13
- expect(response).to be_success
13
+ expect(response).to be_successful
14
14
  end
15
15
  end
16
16
 
@@ -20,7 +20,7 @@ describe InventoriesController do
20
20
  it "assigns all inventories as @inventories" do
21
21
  get :index
22
22
  expect(assigns(:inventories)).to eq(Inventory.page(1))
23
- expect(response).to be_success
23
+ expect(response).to be_successful
24
24
  end
25
25
  end
26
26
 
@@ -50,7 +50,7 @@ describe InventoriesController do
50
50
  it "assigns the requested inventory as @inventory" do
51
51
  get :show, params: { id: 1 }
52
52
  expect(assigns(:inventory)).to eq(Inventory.find(1))
53
- expect(response).to be_success
53
+ expect(response).to be_successful
54
54
  end
55
55
  end
56
56
 
@@ -60,7 +60,7 @@ describe InventoriesController do
60
60
  it "assigns the requested inventory as @inventory" do
61
61
  get :show, params: { id: 1 }
62
62
  expect(assigns(:inventory)).to eq(Inventory.find(1))
63
- expect(response).to be_success
63
+ expect(response).to be_successful
64
64
  end
65
65
  end
66
66
 
@@ -85,7 +85,7 @@ describe InventoryFilesController do
85
85
  it "assigns the requested inventory_file as @inventory_file" do
86
86
  get :new
87
87
  expect(assigns(:inventory_file)).to_not be_valid
88
- expect(response).to be_success
88
+ expect(response).to be_successful
89
89
  end
90
90
  end
91
91
 
@@ -95,7 +95,7 @@ describe InventoryFilesController do
95
95
  it "should not assign the requested inventory_file as @inventory_file" do
96
96
  get :new
97
97
  expect(assigns(:inventory_file)).to_not be_valid
98
- expect(response).to be_success
98
+ expect(response).to be_successful
99
99
  end
100
100
  end
101
101
 
@@ -123,8 +123,7 @@ describe InventoryFilesController do
123
123
  login_fixture_librarian
124
124
 
125
125
  it "should create inventory_file" do
126
- post :create, params: { inventory_file: {inventory: fixture_file_upload("/../../examples/inventory_file_sample.tsv", 'text/csv') } }
127
- assigns(:inventory_file).save!
126
+ post :create, params: { inventory_file: { shelf_id: 1, inventory: fixture_file_upload("/../../examples/inventory_file_sample.tsv", 'text/csv') } }
128
127
  expect(assigns(:inventory_file)).to be_valid
129
128
  expect(assigns(:inventory_file).user.username).to eq @user.username
130
129
  expect(response).to redirect_to inventory_file_url(assigns(:inventory_file))
@@ -135,14 +134,14 @@ describe InventoryFilesController do
135
134
  login_fixture_user
136
135
 
137
136
  it "should be forbidden" do
138
- post :create, params: { inventory_file: {inventory: fixture_file_upload("/../../examples/inventory_file_sample.tsv", 'text/csv') } }
137
+ post :create, params: { inventory_file: { shelf_id: 1, inventory: fixture_file_upload("/../../examples/inventory_file_sample.tsv", 'text/csv') } }
139
138
  expect(response).to be_forbidden
140
139
  end
141
140
  end
142
141
 
143
142
  describe "When not logged in" do
144
143
  it "should be redirect to new session url" do
145
- post :create, params: { inventory_file: {inventory: fixture_file_upload("/../../examples/inventory_file_sample.tsv", 'text/csv') } }
144
+ post :create, params: { inventory_file: { shelf_id: 1, inventory: fixture_file_upload("/../../examples/inventory_file_sample.tsv", 'text/csv') } }
146
145
  expect(response).to redirect_to new_user_session_url
147
146
  end
148
147
  end
@@ -17,7 +17,7 @@ describe ItemsController do
17
17
 
18
18
  it 'should not get index with inventory_file_id' do
19
19
  get :index, params: { inventory_file_id: 1 }
20
- expect(response).to be_success
20
+ expect(response).to be_successful
21
21
  assigns(:inventory_file).should eq InventoryFile.find(1)
22
22
  expect(assigns(:items)).to eq Item.inventory_items(assigns(:inventory_file), 'not_on_shelf').order('items.id').page(1)
23
23
  end
@@ -0,0 +1,3 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
@@ -32,10 +32,10 @@ class CreateManifestations < ActiveRecord::Migration[4.2]
32
32
  t.integer :frequency_id, default: 1, null: false
33
33
  t.boolean :subscription_master, default: false, null: false
34
34
  end
35
- # add_index :manifestations, :carrier_type_id
36
- # add_index :manifestations, :required_role_id
35
+ #add_index :manifestations, :carrier_type_id
36
+ #add_index :manifestations, :required_role_id
37
37
  add_index :manifestations, :access_address
38
- # add_index :manifestations, :frequency_id
38
+ #add_index :manifestations, :frequency_id
39
39
  add_index :manifestations, :manifestation_identifier
40
40
  add_index :manifestations, :updated_at
41
41
  add_index :manifestations, :date_of_publication
@@ -0,0 +1,16 @@
1
+ class CreateCirculationStatuses < ActiveRecord::Migration[4.2]
2
+ def self.up
3
+ create_table :circulation_statuses 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 :circulation_statuses
15
+ end
16
+ end
@@ -0,0 +1,8 @@
1
+ class AddCirculationStatusIdToItem < ActiveRecord::Migration[4.2]
2
+ def change
3
+ add_column :items, :circulation_status_id, :integer, default: 5, null: false
4
+ add_column :items, :checkout_type_id, :integer, default: 1, null: false
5
+ add_index :items, :circulation_status_id
6
+ add_index :items, :checkout_type_id
7
+ end
8
+ end
@@ -2,7 +2,7 @@ class AddConstraintsToMostRecentForAgentImportFileTransitions < ActiveRecord::Mi
2
2
  disable_ddl_transaction!
3
3
 
4
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
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
6
  change_column_null :agent_import_file_transitions, :most_recent, false
7
7
  end
8
8
 
@@ -2,7 +2,7 @@ class AddConstraintsToMostRecentForResourceImportFileTransitions < ActiveRecord:
2
2
  disable_ddl_transaction!
3
3
 
4
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
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
6
  change_column_null :resource_import_file_transitions, :most_recent, false
7
7
  end
8
8
 
@@ -2,7 +2,7 @@ class AddConstraintsToMostRecentForResourceExportFileTransitions < ActiveRecord:
2
2
  disable_ddl_transaction!
3
3
 
4
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
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
6
  change_column_null :resource_export_file_transitions, :most_recent, false
7
7
  end
8
8
 
@@ -2,7 +2,7 @@ class AddConstraintsToMostRecentForImportRequestTransitions < ActiveRecord::Migr
2
2
  disable_ddl_transaction!
3
3
 
4
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
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
6
  change_column_null :import_request_transitions, :most_recent, false
7
7
  end
8
8
 
@@ -0,0 +1,5 @@
1
+ class AddMemoToManifestation < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :manifestations, :memo, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddMemoToItem < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :items, :memo, :text
4
+ end
5
+ end
@@ -0,0 +1,12 @@
1
+ class CreateCustomProperties < ActiveRecord::Migration[5.2]
2
+ def change
3
+ create_table :custom_properties do |t|
4
+ t.integer :resource_id, null: false
5
+ t.string :resource_type, null: false
6
+ t.text :label, null: false
7
+ t.text :value
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 20180107161410) do
13
+ ActiveRecord::Schema.define(version: 2019_12_30_082846) do
14
14
 
15
15
  create_table "accepts", force: :cascade do |t|
16
16
  t.integer "basket_id"
@@ -209,6 +209,15 @@ ActiveRecord::Schema.define(version: 20180107161410) do
209
209
  t.datetime "attachment_updated_at"
210
210
  end
211
211
 
212
+ create_table "circulation_statuses", force: :cascade do |t|
213
+ t.string "name", null: false
214
+ t.text "display_name"
215
+ t.text "note"
216
+ t.integer "position"
217
+ t.datetime "created_at"
218
+ t.datetime "updated_at"
219
+ end
220
+
212
221
  create_table "colors", force: :cascade do |t|
213
222
  t.integer "library_group_id"
214
223
  t.string "property"
@@ -262,6 +271,15 @@ ActiveRecord::Schema.define(version: 20180107161410) do
262
271
  t.index ["work_id"], name: "index_creates_on_work_id"
263
272
  end
264
273
 
274
+ create_table "custom_properties", force: :cascade do |t|
275
+ t.integer "resource_id", null: false
276
+ t.string "resource_type", null: false
277
+ t.text "label", null: false
278
+ t.text "value"
279
+ t.datetime "created_at", null: false
280
+ t.datetime "updated_at", null: false
281
+ end
282
+
265
283
  create_table "donates", force: :cascade do |t|
266
284
  t.integer "agent_id", null: false
267
285
  t.integer "item_id", null: false
@@ -359,8 +377,12 @@ ActiveRecord::Schema.define(version: 20180107161410) do
359
377
  t.text "note"
360
378
  t.datetime "created_at"
361
379
  t.datetime "updated_at"
380
+ t.string "item_identifier"
381
+ t.string "current_shelf_name"
382
+ t.index ["current_shelf_name"], name: "index_inventories_on_current_shelf_name"
362
383
  t.index ["inventory_file_id"], name: "index_inventories_on_inventory_file_id"
363
384
  t.index ["item_id"], name: "index_inventories_on_item_id"
385
+ t.index ["item_identifier"], name: "index_inventories_on_item_identifier"
364
386
  end
365
387
 
366
388
  create_table "inventory_files", force: :cascade do |t|
@@ -376,6 +398,8 @@ ActiveRecord::Schema.define(version: 20180107161410) do
376
398
  t.integer "inventory_file_size"
377
399
  t.datetime "inventory_updated_at"
378
400
  t.string "inventory_fingerprint"
401
+ t.integer "shelf_id"
402
+ t.index ["shelf_id"], name: "index_inventory_files_on_shelf_id"
379
403
  t.index ["user_id"], name: "index_inventory_files_on_user_id"
380
404
  end
381
405
 
@@ -396,12 +420,17 @@ ActiveRecord::Schema.define(version: 20180107161410) do
396
420
  t.datetime "acquired_at"
397
421
  t.integer "bookstore_id"
398
422
  t.integer "budget_type_id"
423
+ t.integer "circulation_status_id", default: 5, null: false
424
+ t.integer "checkout_type_id", default: 1, null: false
399
425
  t.string "binding_item_identifier"
400
426
  t.string "binding_call_number"
401
427
  t.datetime "binded_at"
402
428
  t.integer "manifestation_id", null: false
429
+ t.text "memo"
403
430
  t.index ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
404
431
  t.index ["bookstore_id"], name: "index_items_on_bookstore_id"
432
+ t.index ["checkout_type_id"], name: "index_items_on_checkout_type_id"
433
+ t.index ["circulation_status_id"], name: "index_items_on_circulation_status_id"
405
434
  t.index ["item_identifier"], name: "index_items_on_item_identifier"
406
435
  t.index ["manifestation_id"], name: "index_items_on_manifestation_id"
407
436
  t.index ["required_role_id"], name: "index_items_on_required_role_id"
@@ -581,6 +610,7 @@ ActiveRecord::Schema.define(version: 20180107161410) do
581
610
  t.text "publication_place"
582
611
  t.text "extent"
583
612
  t.text "dimensions"
613
+ t.text "memo"
584
614
  t.index ["access_address"], name: "index_manifestations_on_access_address"
585
615
  t.index ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
586
616
  t.index ["doi"], name: "index_manifestations_on_doi"
@@ -0,0 +1,54 @@
1
+ ---
2
+ carrier_type_00001:
3
+ name: volume
4
+ display_name: Volume
5
+ updated_at: 2007-11-20 16:04:29.853828 +09:00
6
+ id: 1
7
+ note: !binary |
8
+ 5pys44Gn44GZ44CC
9
+
10
+ created_at: 2007-11-20 15:47:03.641530 +09:00
11
+ position: 1
12
+ carrier_type_00002:
13
+ name: audio_disc
14
+ display_name: Audio disc
15
+ updated_at: 2007-12-19 01:45:26.040674 +09:00
16
+ id: 2
17
+ note: "\xE9\x9F\xB3\xE6\xA5\xBDCD\xE3\x81\xA7\xE3\x81\x99\xE3\x80\x82"
18
+ created_at: 2007-12-19 01:45:26.040674 +09:00
19
+ position: 2
20
+ carrier_type_00003:
21
+ name: videodisc
22
+ display_name: Video disc
23
+ updated_at: 2007-12-23 04:24:23.151410 +09:00
24
+ id: 3
25
+ note: "DVD\xE3\x81\xA7\xE3\x81\x99\xE3\x80\x82"
26
+ created_at: 2007-12-23 04:24:23.151410 +09:00
27
+ position: 3
28
+ carrier_type_00004:
29
+ name: online_resource
30
+ display_name: online_resource
31
+ updated_at: 2007-12-24 01:30:50.637433 +09:00
32
+ id: 4
33
+ note: !binary |
34
+ 44Kz44Oz44OU44Ol44O844K/44Gu44OV44Kh44Kk44Or44Gn44GZ44CC
35
+
36
+ created_at: 2007-12-24 01:30:50.637433 +09:00
37
+ position: 4
38
+
39
+ # == Schema Information
40
+ #
41
+ # Table name: carrier_types
42
+ #
43
+ # id :integer not null, primary key
44
+ # name :string not null
45
+ # display_name :text
46
+ # note :text
47
+ # position :integer
48
+ # created_at :datetime
49
+ # updated_at :datetime
50
+ # attachment_file_name :string
51
+ # attachment_content_type :string
52
+ # attachment_file_size :integer
53
+ # attachment_updated_at :datetime
54
+ #
@@ -0,0 +1,119 @@
1
+ ---
2
+ circulation_status_00001:
3
+ name: Available For Pickup
4
+ display_name: "en: Available For Pickup\r\n\
5
+ ja: 持ち出し可能"
6
+ id: 1
7
+ note: ""
8
+ position: 1
9
+ circulation_status_00002:
10
+ name: Available On Shelf
11
+ display_name: "en: Available On Shelf\r\n\
12
+ ja: 在架(利用可能)"
13
+ id: 2
14
+ note: ""
15
+ position: 2
16
+ circulation_status_00003:
17
+ name: Circulation Status Undefined
18
+ display_name: Circulation Status Undefined
19
+ id: 3
20
+ note: ""
21
+ position: 3
22
+ circulation_status_00004:
23
+ name: Claimed Returned Or Never Borrowed
24
+ display_name: Claimed Returned Or Never Borrowed
25
+ id: 4
26
+ note: ""
27
+ position: 4
28
+ circulation_status_00005:
29
+ name: In Process
30
+ display_name: "en: In Process\r\n\
31
+ ja: 作業中"
32
+ id: 5
33
+ note: ""
34
+ position: 5
35
+ circulation_status_00006:
36
+ name: In Transit Between Library Locations
37
+ display_name: In Transit Between Library Locations
38
+ id: 6
39
+ note: ""
40
+ position: 6
41
+ circulation_status_00007:
42
+ name: Lost
43
+ display_name: "en: Lost\r\n\
44
+ ja: 紛失"
45
+ id: 7
46
+ note: ""
47
+ position: 7
48
+ circulation_status_00008:
49
+ name: Missing
50
+ display_name: "en: Missing\r\n\
51
+ ja: 行方不明"
52
+ id: 8
53
+ note: ""
54
+ position: 8
55
+ circulation_status_00009:
56
+ name: Not Available
57
+ display_name: "en: Not Available\r\n\
58
+ ja: 利用不可"
59
+ id: 9
60
+ note: ""
61
+ position: 9
62
+ circulation_status_00010:
63
+ name: On Loan
64
+ display_name: "en: On Loan\r\n\
65
+ ja: 貸出中"
66
+ id: 10
67
+ note: ""
68
+ position: 10
69
+ circulation_status_00011:
70
+ name: On Order
71
+ display_name: On Order
72
+ id: 11
73
+ note: ""
74
+ position: 11
75
+ circulation_status_00012:
76
+ name: Pending Transfer
77
+ display_name: Pending Transfer
78
+ id: 12
79
+ note: ""
80
+ position: 12
81
+ circulation_status_00013:
82
+ name: Recalled
83
+ display_name: Recalled
84
+ id: 13
85
+ note: ""
86
+ position: 13
87
+ circulation_status_00014:
88
+ name: Waiting To Be Reshelved
89
+ display_name: Waiting To Be Reshelved
90
+ id: 14
91
+ note: ""
92
+ position: 14
93
+ circulation_status_00015:
94
+ name: Not arrived
95
+ display_name: "en: Not arrived\r\n\
96
+ ja: 未着"
97
+ id: 15
98
+ note: ""
99
+ position: 15
100
+ circulation_status_00016:
101
+ name: Removed
102
+ display_name: "en: Removed\r\n\
103
+ ja: 除籍済み"
104
+ id: 16
105
+ note: ""
106
+ position: 16
107
+
108
+ # == Schema Information
109
+ #
110
+ # Table name: circulation_statuses
111
+ #
112
+ # id :integer not null, primary key
113
+ # name :string not null
114
+ # display_name :text
115
+ # note :text
116
+ # position :integer
117
+ # created_at :datetime
118
+ # updated_at :datetime
119
+ #