enju_library 0.1.0.pre25 → 0.1.0.pre26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/baskets_controller.rb +109 -0
  3. data/app/views/baskets/edit.html.erb +30 -0
  4. data/app/views/baskets/index.html.erb +31 -0
  5. data/app/views/baskets/new.html.erb +29 -0
  6. data/app/views/baskets/show.html.erb +23 -0
  7. data/lib/enju_library/version.rb +1 -1
  8. data/spec/controllers/baskets_controller_spec.rb +379 -0
  9. data/spec/dummy/config/initializers/inflections.rb +3 -7
  10. data/spec/dummy/db/migrate/032_create_checkins.rb +17 -0
  11. data/spec/dummy/db/migrate/035_create_reserves.rb +27 -0
  12. data/spec/dummy/db/migrate/113_create_events.rb +23 -0
  13. data/spec/dummy/db/migrate/114_create_event_categories.rb +16 -0
  14. data/spec/dummy/db/migrate/121_create_checked_items.rb +17 -0
  15. data/spec/dummy/db/migrate/127_create_use_restrictions.rb +16 -0
  16. data/spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb +16 -0
  17. data/spec/dummy/db/migrate/149_create_message_templates.rb +18 -0
  18. data/spec/dummy/db/migrate/154_create_messages.rb +24 -0
  19. data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +20 -0
  20. data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +27 -0
  21. data/spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb +18 -0
  22. data/spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb +17 -0
  23. data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +16 -0
  24. data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +16 -0
  25. data/spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb +17 -0
  26. data/spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb +17 -0
  27. data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +16 -0
  28. data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +16 -0
  29. data/spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb +17 -0
  30. data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +27 -0
  31. data/spec/dummy/db/migrate/20090519203307_create_participates.rb +17 -0
  32. data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +21 -0
  33. data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +15 -0
  34. data/spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb +9 -0
  35. data/spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb +9 -0
  36. data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +11 -0
  37. data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +5 -0
  38. data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +6 -0
  39. data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +6 -0
  40. data/spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb +5 -0
  41. data/spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb +5 -0
  42. data/spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb +9 -0
  43. data/spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb +5 -0
  44. data/spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb +5 -0
  45. data/spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb +5 -0
  46. data/spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb +5 -0
  47. data/spec/dummy/db/migrate/20130519065638_add_lock_version_to_reserve.rb +5 -0
  48. data/spec/dummy/db/migrate/20130519065837_add_lock_version_to_checkin.rb +5 -0
  49. data/spec/dummy/db/schema.rb +393 -83
  50. data/spec/dummy/db/test.sqlite3 +0 -0
  51. data/spec/dummy/solr/conf/schema.xml +15 -2
  52. data/spec/dummy/solr/data/test/index/_2w.tis +0 -0
  53. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  54. data/spec/dummy/solr/data/test/index/{segments_18r → segments_6n} +0 -0
  55. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  56. data/spec/dummy/tmp/cache/assets/test/sprockets/169f4ead801f350c94685db6343b613a +0 -0
  57. data/spec/dummy/tmp/cache/assets/test/sprockets/254f2ef29215d4091bfe5949fe8f725f +0 -0
  58. data/spec/dummy/tmp/cache/assets/test/sprockets/5c6c9015e14271822fcfdcce5fca127d +0 -0
  59. data/spec/dummy/tmp/cache/assets/test/sprockets/82147708959cf940a0db9210985926fd +0 -0
  60. data/spec/dummy/tmp/cache/assets/test/sprockets/b216037296f015f88a15e209c81fe1d3 +0 -0
  61. data/spec/dummy/tmp/cache/assets/test/sprockets/bbe2834cdae4786a530e40e14f846805 +0 -0
  62. data/spec/dummy/tmp/cache/assets/test/sprockets/c60042eb39c8ef7a95f8926ca5648a9d +0 -0
  63. data/spec/dummy/tmp/cache/assets/test/sprockets/d005c609dd44fbca49a45a652887a53d +0 -0
  64. data/spec/fixtures/agent_types.yml +35 -0
  65. data/spec/fixtures/agents.yml +338 -0
  66. data/spec/fixtures/carrier_type_has_checkout_types.yml +31 -0
  67. data/spec/fixtures/checked_items.yml +35 -0
  68. data/spec/fixtures/checkins.yml +55 -0
  69. data/spec/fixtures/checkout_stat_has_manifestations.yml +24 -0
  70. data/spec/fixtures/checkout_stat_has_users.yml +24 -0
  71. data/spec/fixtures/circulation_statuses.yml +14 -0
  72. data/spec/fixtures/event_categories.yml +55 -0
  73. data/spec/fixtures/events.yml +142 -0
  74. data/spec/fixtures/exemplifies.yml +19 -11
  75. data/spec/fixtures/item_has_use_restrictions.yml +61 -0
  76. data/spec/fixtures/items.yml +80 -9
  77. data/spec/fixtures/lending_policies.yml +99 -0
  78. data/spec/fixtures/libraries.yml +27 -25
  79. data/spec/fixtures/library_groups.yml +20 -20
  80. data/spec/fixtures/manifestation_checkout_stats.yml +31 -0
  81. data/spec/fixtures/manifestation_reserve_stats.yml +31 -0
  82. data/spec/fixtures/manifestations.yml +2 -137
  83. data/spec/fixtures/message_requests.yml +30 -0
  84. data/spec/fixtures/message_templates.yml +84 -0
  85. data/spec/fixtures/request_status_types.yml +4 -4
  86. data/spec/fixtures/request_types.yml +4 -4
  87. data/spec/fixtures/reserve_stat_has_manifestations.yml +24 -0
  88. data/spec/fixtures/reserve_stat_has_users.yml +24 -0
  89. data/spec/fixtures/reserves.yml +179 -0
  90. data/spec/fixtures/shelves.yml +6 -7
  91. data/spec/fixtures/use_restrictions.yml +93 -0
  92. data/spec/fixtures/user_checkout_stats.yml +31 -0
  93. data/spec/fixtures/user_group_has_checkout_types.yml +111 -0
  94. data/spec/fixtures/user_reserve_stats.yml +31 -0
  95. data/spec/fixtures/users.yml +14 -37
  96. data/spec/routing/baskets_routing_spec.rb +35 -0
  97. metadata +173 -26
  98. data/spec/dummy/solr/data/test/index/_j7.tis +0 -0
  99. /data/spec/dummy/solr/data/test/index/{_j7.fdt → _2w.fdt} +0 -0
  100. /data/spec/dummy/solr/data/test/index/{_j7.fdx → _2w.fdx} +0 -0
  101. /data/spec/dummy/solr/data/test/index/{_j7.fnm → _2w.fnm} +0 -0
  102. /data/spec/dummy/solr/data/test/index/{_j7.frq → _2w.frq} +0 -0
  103. /data/spec/dummy/solr/data/test/index/{_j7.nrm → _2w.nrm} +0 -0
  104. /data/spec/dummy/solr/data/test/index/{_j7.prx → _2w.prx} +0 -0
  105. /data/spec/dummy/solr/data/test/index/{_j7.tii → _2w.tii} +0 -0
@@ -1,34 +1,34 @@
1
1
  # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
2
  one:
3
3
  id: 1
4
- name: enju_library
5
- display_name: "<%= I18n.locale %>: Enju Library"
6
- short_name: enju
4
+ name: unknown
5
+ display_name: unknown
6
+ short_name: unknown
7
7
  email: next-l@library.example.jp
8
8
  note:
9
9
  my_networks: 0.0.0.0/0
10
10
  url: "http://localhost:3000/"
11
- position: 1
12
- login_banner: "*Next-L Enju*"
13
- admin_networks: 0.0.0.0/0
11
+
14
12
 
15
13
  # == Schema Information
16
14
  #
17
15
  # Table name: library_groups
18
16
  #
19
- # id :integer not null, primary key
20
- # name :string(255) not null
21
- # display_name :text
22
- # short_name :string(255) not null
23
- # email :string(255)
24
- # my_networks :text
25
- # login_banner :text
26
- # note :text
27
- # country_id :integer
28
- # position :integer
29
- # created_at :datetime not null
30
- # updated_at :datetime not null
31
- # admin_networks :text
32
- # url :string(255) default("http://localhost:3000/")
17
+ # id :integer not null, primary key
18
+ # name :string(255) not null
19
+ # display_name :text
20
+ # short_name :string(255) not null
21
+ # email :string(255)
22
+ # my_networks :text
23
+ # login_banner :text
24
+ # note :text
25
+ # post_to_union_catalog :boolean default(FALSE), not null
26
+ # country_id :integer
27
+ # created_at :datetime
28
+ # updated_at :datetime
29
+ # admin_networks :text
30
+ # allow_bookmark_external_url :boolean default(FALSE), not null
31
+ # position :integer
32
+ # url :string(255) default("http://localhost:3000/")
33
33
  #
34
34
 
@@ -0,0 +1,31 @@
1
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
+
3
+ one:
4
+ id: 1
5
+ start_date: 2008-12-12 17:00:38
6
+ end_date: 2008-12-13 17:00:38
7
+ note: MyText
8
+ state: pending
9
+
10
+ two:
11
+ id: 2
12
+ start_date: 2008-12-12 17:00:38
13
+ end_date: 2008-12-13 17:00:38
14
+ note: MyText
15
+ state: pending
16
+
17
+ # == Schema Information
18
+ #
19
+ # Table name: manifestation_checkout_stats
20
+ #
21
+ # id :integer not null, primary key
22
+ # start_date :datetime
23
+ # end_date :datetime
24
+ # note :text
25
+ # state :string(255)
26
+ # created_at :datetime not null
27
+ # updated_at :datetime not null
28
+ # started_at :datetime
29
+ # completed_at :datetime
30
+ #
31
+
@@ -0,0 +1,31 @@
1
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
+
3
+ one:
4
+ id: 1
5
+ start_date: 2008-12-17 04:07:24
6
+ end_date: 2008-12-18 04:07:24
7
+ note: MyText
8
+ state: pending
9
+
10
+ two:
11
+ id: 2
12
+ start_date: 2008-12-17 04:07:24
13
+ end_date: 2008-12-18 04:07:24
14
+ note: MyText
15
+ state: pending
16
+
17
+ # == Schema Information
18
+ #
19
+ # Table name: manifestation_reserve_stats
20
+ #
21
+ # id :integer not null, primary key
22
+ # start_date :datetime
23
+ # end_date :datetime
24
+ # note :text
25
+ # state :string(255)
26
+ # created_at :datetime not null
27
+ # updated_at :datetime not null
28
+ # started_at :datetime
29
+ # completed_at :datetime
30
+ #
31
+