enju_circulation 0.1.0.pre36 → 0.1.0.pre37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (398) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/carrier_type_has_checkout_types_controller.rb +11 -11
  3. data/app/controllers/checked_items_controller.rb +13 -13
  4. data/app/controllers/checkins_controller.rb +14 -15
  5. data/app/controllers/checkout_types_controller.rb +10 -10
  6. data/app/controllers/checkouts_controller.rb +18 -19
  7. data/app/controllers/item_has_use_restrictions_controller.rb +10 -10
  8. data/app/controllers/lending_policies_controller.rb +1 -1
  9. data/app/controllers/manifestation_checkout_stats_controller.rb +15 -13
  10. data/app/controllers/manifestation_reserve_stats_controller.rb +15 -13
  11. data/app/controllers/reserves_controller.rb +27 -28
  12. data/app/controllers/user_checkout_stats_controller.rb +15 -13
  13. data/app/controllers/user_group_has_checkout_types_controller.rb +11 -11
  14. data/app/controllers/user_reserve_stats_controller.rb +15 -13
  15. data/app/models/carrier_type_has_checkout_type.rb +6 -6
  16. data/app/models/checked_item.rb +20 -18
  17. data/app/models/checkin.rb +13 -14
  18. data/app/models/checkout.rb +20 -21
  19. data/app/models/checkout_stat_has_manifestation.rb +2 -2
  20. data/app/models/checkout_stat_has_user.rb +2 -2
  21. data/app/models/checkout_type.rb +9 -9
  22. data/app/models/circulation_status.rb +13 -3
  23. data/app/models/enju_circulation/ability.rb +1 -1
  24. data/app/models/item_has_use_restriction.rb +3 -3
  25. data/app/models/lending_policy.rb +4 -4
  26. data/app/models/manifestation_checkout_stat.rb +4 -3
  27. data/app/models/manifestation_checkout_stat_transition.rb +13 -0
  28. data/app/models/manifestation_reserve_stat.rb +4 -3
  29. data/app/models/manifestation_reserve_stat_transition.rb +13 -0
  30. data/app/models/reserve.rb +123 -157
  31. data/app/models/reserve_stat_has_manifestation.rb +2 -2
  32. data/app/models/reserve_stat_has_user.rb +2 -2
  33. data/app/models/reserve_state_machine.rb +93 -0
  34. data/app/models/reserve_transition.rb +20 -0
  35. data/app/models/use_restriction.rb +5 -5
  36. data/app/models/user_checkout_stat.rb +4 -3
  37. data/app/models/user_checkout_stat_transition.rb +13 -0
  38. data/app/models/user_group_has_checkout_type.rb +8 -8
  39. data/app/models/user_reserve_stat.rb +4 -3
  40. data/app/models/user_reserve_stat_transition.rb +13 -0
  41. data/app/views/carrier_type_has_checkout_types/_form.html.erb +3 -3
  42. data/app/views/carrier_type_has_checkout_types/edit.html.erb +1 -1
  43. data/app/views/carrier_type_has_checkout_types/index.html.erb +3 -3
  44. data/app/views/carrier_type_has_checkout_types/new.html.erb +1 -1
  45. data/app/views/carrier_type_has_checkout_types/show.html.erb +1 -1
  46. data/app/views/carrier_types/_checkout_form.html.erb +1 -1
  47. data/app/views/checked_items/_checked_item.html.erb +3 -3
  48. data/app/views/checked_items/_checkout.html.erb +3 -3
  49. data/app/views/checked_items/_list.html.erb +3 -3
  50. data/app/views/checked_items/edit.html.erb +1 -1
  51. data/app/views/checked_items/index.html.erb +1 -1
  52. data/app/views/checked_items/new.html.erb +3 -3
  53. data/app/views/checked_items/show.html.erb +1 -1
  54. data/app/views/checkins/_checkin.html.erb +3 -3
  55. data/app/views/checkins/_form.html.erb +1 -1
  56. data/app/views/checkins/_list.html.erb +2 -2
  57. data/app/views/checkins/edit.html.erb +1 -1
  58. data/app/views/checkins/index.html.erb +2 -2
  59. data/app/views/checkins/new.html.erb +3 -3
  60. data/app/views/checkins/show.html.erb +1 -1
  61. data/app/views/checkout_types/_form.html.erb +2 -2
  62. data/app/views/checkout_types/edit.html.erb +1 -1
  63. data/app/views/checkout_types/index.html.erb +4 -4
  64. data/app/views/checkout_types/new.html.erb +1 -1
  65. data/app/views/checkout_types/show.html.erb +2 -2
  66. data/app/views/checkouts/_index.html.erb +7 -7
  67. data/app/views/checkouts/_index_item.html.erb +5 -5
  68. data/app/views/checkouts/_index_overdue.html.erb +7 -7
  69. data/app/views/checkouts/_index_user.html.erb +13 -13
  70. data/app/views/checkouts/_list.html.erb +5 -5
  71. data/app/views/checkouts/_reserved_facet.html.erb +2 -2
  72. data/app/views/checkouts/edit.html.erb +8 -8
  73. data/app/views/checkouts/index.atom.builder +3 -3
  74. data/app/views/checkouts/index.html.erb +3 -3
  75. data/app/views/checkouts/index.rss.builder +9 -9
  76. data/app/views/checkouts/index.txt.erb +4 -0
  77. data/app/views/checkouts/new.html.erb +2 -2
  78. data/app/views/checkouts/show.html.erb +7 -7
  79. data/app/views/circulation_statuses/_form.html.erb +2 -2
  80. data/app/views/circulation_statuses/edit.html.erb +1 -1
  81. data/app/views/circulation_statuses/index.html.erb +3 -3
  82. data/app/views/circulation_statuses/new.html.erb +1 -1
  83. data/app/views/circulation_statuses/show.html.erb +1 -1
  84. data/app/views/item_has_use_restrictions/edit.html.erb +1 -1
  85. data/app/views/item_has_use_restrictions/index.html.erb +4 -4
  86. data/app/views/item_has_use_restrictions/new.html.erb +2 -2
  87. data/app/views/item_has_use_restrictions/show.html.erb +1 -1
  88. data/app/views/lending_policies/_form.html.erb +1 -1
  89. data/app/views/lending_policies/edit.html.erb +1 -1
  90. data/app/views/lending_policies/index.html.erb +2 -2
  91. data/app/views/lending_policies/new.html.erb +1 -1
  92. data/app/views/lending_policies/show.html.erb +2 -2
  93. data/app/views/manifestation_checkout_stats/_form.html.erb +1 -1
  94. data/app/views/manifestation_checkout_stats/edit.html.erb +1 -1
  95. data/app/views/manifestation_checkout_stats/index.html.erb +3 -4
  96. data/app/views/manifestation_checkout_stats/new.html.erb +1 -1
  97. data/app/views/manifestation_checkout_stats/show.html.erb +3 -4
  98. data/app/views/manifestation_checkout_stats/show.txt.erb +4 -0
  99. data/app/views/manifestation_reserve_stats/_form.html.erb +1 -1
  100. data/app/views/manifestation_reserve_stats/edit.html.erb +1 -1
  101. data/app/views/manifestation_reserve_stats/index.html.erb +3 -4
  102. data/app/views/manifestation_reserve_stats/new.html.erb +1 -1
  103. data/app/views/manifestation_reserve_stats/show.html.erb +3 -4
  104. data/app/views/manifestation_reserve_stats/show.txt.erb +4 -0
  105. data/app/views/my_accounts/_feed_token.html.erb +3 -3
  106. data/app/views/reserves/_form.html.erb +1 -1
  107. data/app/views/reserves/_new.html.erb +9 -9
  108. data/app/views/reserves/_new_user.html.erb +13 -13
  109. data/app/views/reserves/_state_facet.html.erb +2 -2
  110. data/app/views/reserves/_title.html.erb +1 -1
  111. data/app/views/reserves/edit.html.erb +7 -7
  112. data/app/views/reserves/index.atom.builder +3 -3
  113. data/app/views/reserves/index.html.erb +26 -26
  114. data/app/views/reserves/index.rss.builder +10 -10
  115. data/app/views/reserves/index.txt.erb +4 -0
  116. data/app/views/reserves/show.html.erb +9 -9
  117. data/app/views/use_restrictions/_form.html.erb +2 -2
  118. data/app/views/use_restrictions/edit.html.erb +1 -1
  119. data/app/views/use_restrictions/index.html.erb +3 -3
  120. data/app/views/use_restrictions/new.html.erb +1 -1
  121. data/app/views/use_restrictions/show.html.erb +1 -1
  122. data/app/views/user_checkout_stats/_form.html.erb +1 -1
  123. data/app/views/user_checkout_stats/edit.html.erb +1 -1
  124. data/app/views/user_checkout_stats/index.html.erb +3 -4
  125. data/app/views/user_checkout_stats/new.html.erb +1 -1
  126. data/app/views/user_checkout_stats/show.html.erb +3 -4
  127. data/app/views/user_checkout_stats/show.txt.erb +4 -0
  128. data/app/views/user_group_has_checkout_types/edit.html.erb +7 -7
  129. data/app/views/user_group_has_checkout_types/index.html.erb +3 -3
  130. data/app/views/user_group_has_checkout_types/new.html.erb +9 -9
  131. data/app/views/user_group_has_checkout_types/show.html.erb +1 -1
  132. data/app/views/user_groups/_checkout_form.html.erb +6 -6
  133. data/app/views/user_reserve_stats/_form.html.erb +1 -1
  134. data/app/views/user_reserve_stats/edit.html.erb +1 -1
  135. data/app/views/user_reserve_stats/index.html.erb +3 -4
  136. data/app/views/user_reserve_stats/new.html.erb +1 -1
  137. data/app/views/user_reserve_stats/show.html.erb +3 -4
  138. data/app/views/user_reserve_stats/show.txt.erb +4 -0
  139. data/app/views/users/_feed_token.html.erb +3 -3
  140. data/config/initializers/inflections.rb +3 -0
  141. data/config/locales/translation_en.yml +6 -0
  142. data/config/locales/translation_ja.yml +6 -0
  143. data/config/routes.rb +8 -10
  144. data/db/migrate/035_create_reserves.rb +0 -1
  145. data/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +0 -1
  146. data/db/migrate/20081215094302_create_user_checkout_stats.rb +0 -1
  147. data/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +0 -1
  148. data/db/migrate/20081220023628_create_user_reserve_stats.rb +0 -1
  149. data/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +0 -4
  150. data/db/migrate/20140518050147_create_reserve_transitions.rb +14 -0
  151. data/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb +12 -0
  152. data/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb +6 -0
  153. data/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb +5 -0
  154. data/lib/enju_circulation/engine.rb +0 -4
  155. data/lib/enju_circulation/item.rb +4 -4
  156. data/lib/enju_circulation/manifestation.rb +2 -2
  157. data/lib/enju_circulation/profile.rb +26 -0
  158. data/lib/enju_circulation/user.rb +1 -1
  159. data/lib/enju_circulation/version.rb +1 -1
  160. data/lib/enju_circulation.rb +2 -0
  161. data/lib/generators/enju_circulation/setup/setup_generator.rb +2 -0
  162. data/lib/generators/enju_circulation/setup/templates/db/fixtures/circulation_statuses.yml +48 -25
  163. data/lib/generators/enju_circulation/setup/templates/db/fixtures/use_restrictions.yml +39 -13
  164. data/lib/tasks/circulation_status.rb +6 -0
  165. data/lib/tasks/enju_circulation_tasks.rake +14 -0
  166. data/lib/tasks/reserve.rb +5 -0
  167. data/lib/tasks/use_restriction.rb +6 -0
  168. data/spec/controllers/carrier_type_has_checkout_types_controller_spec.rb +21 -21
  169. data/spec/controllers/checkins_controller_spec.rb +22 -22
  170. data/spec/controllers/checkout_types_controller_spec.rb +21 -21
  171. data/spec/controllers/checkouts_controller_spec.rb +14 -14
  172. data/spec/controllers/circulation_statuses_controller_spec.rb +21 -21
  173. data/spec/controllers/item_has_use_restrictions_controller_spec.rb +21 -21
  174. data/spec/controllers/lending_policies_controller_spec.rb +21 -21
  175. data/spec/controllers/manifestation_checkout_stats_controller_spec.rb +21 -21
  176. data/spec/controllers/manifestation_reserve_stats_controller_spec.rb +21 -21
  177. data/spec/controllers/reserves_controller_spec.rb +32 -32
  178. data/spec/controllers/use_restrictions_controller_spec.rb +21 -21
  179. data/spec/controllers/user_checkout_stats_controller_spec.rb +21 -21
  180. data/spec/controllers/user_group_has_checkout_types_controller_spec.rb +21 -21
  181. data/spec/controllers/user_reserve_stats_controller_spec.rb +21 -21
  182. data/spec/dummy/app/models/user.rb +2 -46
  183. data/spec/dummy/config/environments/test.rb +2 -0
  184. data/spec/dummy/db/development.sqlite3 +0 -0
  185. data/spec/dummy/db/migrate/001_create_agents.rb +0 -8
  186. data/spec/dummy/db/migrate/005_create_manifestations.rb +7 -12
  187. data/spec/dummy/db/migrate/006_create_items.rb +0 -6
  188. data/spec/dummy/db/migrate/112_create_frequencies.rb +12 -0
  189. data/spec/dummy/db/migrate/117_create_form_of_works.rb +12 -0
  190. data/spec/dummy/db/migrate/154_create_messages.rb +0 -1
  191. data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +0 -2
  192. data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +20 -0
  193. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +20 -0
  194. data/spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +15 -0
  195. data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
  196. data/spec/dummy/db/migrate/20090719201843_create_extents.rb +12 -0
  197. data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
  198. data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +12 -0
  199. data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +12 -0
  200. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +14 -0
  201. data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +15 -0
  202. data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
  203. data/spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
  204. data/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb +11 -0
  205. data/spec/dummy/db/migrate/20111201155456_devise_create_users.rb +42 -0
  206. data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +6 -0
  207. data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +6 -0
  208. data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
  209. data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
  210. data/spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +5 -0
  211. data/spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +5 -0
  212. data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
  213. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
  214. data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
  215. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
  216. data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
  217. data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
  218. data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
  219. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
  220. data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
  221. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +16 -0
  222. data/spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +7 -0
  223. data/spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb +5 -0
  224. data/spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb +6 -0
  225. data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
  226. data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +14 -0
  227. data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +14 -0
  228. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +14 -0
  229. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +14 -0
  230. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +14 -0
  231. data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
  232. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +14 -0
  233. data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
  234. data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
  235. data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
  236. data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
  237. data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
  238. data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
  239. data/spec/dummy/db/schema.rb +315 -56
  240. data/spec/dummy/db/test.sqlite3 +0 -0
  241. data/spec/dummy/solr/conf/admin-extra.html +31 -0
  242. data/spec/dummy/solr/conf/elevate.xml +36 -0
  243. data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
  244. data/spec/dummy/solr/conf/protwords.txt +21 -0
  245. data/spec/dummy/solr/conf/schema.xml +255 -0
  246. data/spec/dummy/solr/conf/scripts.conf +24 -0
  247. data/spec/dummy/solr/conf/solrconfig.xml +667 -0
  248. data/spec/dummy/solr/conf/spellings.txt +2 -0
  249. data/spec/dummy/solr/conf/stopwords.txt +58 -0
  250. data/spec/dummy/solr/conf/synonyms.txt +31 -0
  251. data/spec/dummy/solr/default/data/index/_7f0.fdt +0 -0
  252. data/spec/dummy/solr/default/data/index/_7f0.fdx +0 -0
  253. data/spec/dummy/solr/default/data/index/_7f0.fnm +0 -0
  254. data/spec/dummy/solr/default/data/index/_7f0.nvd +0 -0
  255. data/spec/dummy/solr/default/data/index/_7f0.nvm +0 -0
  256. data/spec/dummy/solr/default/data/index/_7f0.si +0 -0
  257. data/spec/dummy/solr/default/data/index/_7f0_Lucene41_0.doc +0 -0
  258. data/spec/dummy/solr/default/data/index/_7f0_Lucene41_0.pos +0 -0
  259. data/spec/dummy/solr/default/data/index/_7f0_Lucene41_0.tim +0 -0
  260. data/spec/dummy/solr/default/data/index/_7f0_Lucene41_0.tip +0 -0
  261. data/spec/dummy/solr/default/data/index/segments.gen +0 -0
  262. data/spec/dummy/solr/default/data/index/segments_bvw +0 -0
  263. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015394 +0 -0
  264. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015395 +0 -0
  265. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015396 +0 -0
  266. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015397 +0 -0
  267. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015398 +0 -0
  268. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015399 +0 -0
  269. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015400 +0 -0
  270. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015401 +0 -0
  271. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015402 +0 -0
  272. data/spec/dummy/solr/development/data/index/segments.gen +0 -0
  273. data/spec/dummy/solr/development/data/index/segments_1 +0 -0
  274. data/spec/dummy/solr/solr.xml +8 -0
  275. data/spec/dummy/solr/test/data/index/segments.gen +0 -0
  276. data/spec/dummy/solr/test/data/index/segments_1 +0 -0
  277. data/spec/dummy/tmp/cache/assets/test/sprockets/0007f9aec08cc2727b3d00cd62cf1d0f +0 -0
  278. data/spec/dummy/tmp/cache/assets/test/sprockets/0440b81b0aae840cf287a686585a8cec +0 -0
  279. data/spec/dummy/tmp/cache/assets/test/sprockets/0e3e358e4fe4601ba5e435f6d0c86f12 +0 -0
  280. data/spec/dummy/tmp/cache/assets/test/sprockets/129cec5384c0f26fcfb0ce65048298c5 +0 -0
  281. data/spec/dummy/tmp/cache/assets/test/sprockets/1572dfd6f1e555f4be1aa60ddc3cb0c0 +0 -0
  282. data/spec/dummy/tmp/cache/assets/test/sprockets/181c975b1296d7ebe81714d5e64bc098 +0 -0
  283. data/spec/dummy/tmp/cache/assets/test/sprockets/1c1fbab93e4552626da626e0dbe70c74 +0 -0
  284. data/spec/dummy/tmp/cache/assets/test/sprockets/1e58a07a3701da9fb9c176d67162af2b +0 -0
  285. data/spec/dummy/tmp/cache/assets/test/sprockets/2b35ad8fee7e1228e205669278e2adda +0 -0
  286. data/spec/dummy/tmp/cache/assets/test/sprockets/2f09f58943a88f21e3a0318621391785 +0 -0
  287. data/spec/dummy/tmp/cache/assets/test/sprockets/2ffe508d0533d0afd2a37bb574eda40d +0 -0
  288. data/spec/dummy/tmp/cache/assets/test/sprockets/3753d928863ee65118b9f2da1c6e504d +0 -0
  289. data/spec/dummy/tmp/cache/assets/test/sprockets/40e90f0c329b14292a9ff1a2fe907b39 +0 -0
  290. data/spec/dummy/tmp/cache/assets/test/sprockets/45f3c74e1e31b58d9bda6908d5623290 +0 -0
  291. data/spec/dummy/tmp/cache/assets/test/sprockets/49a3464eb6bcffb3d9f5b47b133edabb +0 -0
  292. data/spec/dummy/tmp/cache/assets/test/sprockets/49d32c13d390c1b80d8b2705aac86579 +0 -0
  293. data/spec/dummy/tmp/cache/assets/test/sprockets/4aa18096a209e515f5f1df487622cdf4 +0 -0
  294. data/spec/dummy/tmp/cache/assets/test/sprockets/50e64f45f0cb4cee52fd3f3908f89a82 +0 -0
  295. data/spec/dummy/tmp/cache/assets/test/sprockets/51f7d34a9e9bebb47b7201cfebfec34d +0 -0
  296. data/spec/dummy/tmp/cache/assets/test/sprockets/5995180d1cfd7cad71ec6d9e1a538f0e +0 -0
  297. data/spec/dummy/tmp/cache/assets/test/sprockets/604e0e4b3c01d488d6fb087e9fdaeb94 +0 -0
  298. data/spec/dummy/tmp/cache/assets/test/sprockets/6401fc09d2b894df2ad251b007df145a +0 -0
  299. data/spec/dummy/tmp/cache/assets/test/sprockets/65a8d4d288e5f082f0166aa7be7a2464 +0 -0
  300. data/spec/dummy/tmp/cache/assets/test/sprockets/6f5d66df18892df6af39c9cfd784f0f5 +0 -0
  301. data/spec/dummy/tmp/cache/assets/test/sprockets/6fcdd2234a7c25f9d4179ca12fd9f7b4 +0 -0
  302. data/spec/dummy/tmp/cache/assets/test/sprockets/6fdb4513af157010ef79b56df44d665e +0 -0
  303. data/spec/dummy/tmp/cache/assets/test/sprockets/750439d8043ed022910956fbb55faa65 +0 -0
  304. data/spec/dummy/tmp/cache/assets/test/sprockets/811e5198d0dc4efe02d28c0c2215e207 +0 -0
  305. data/spec/dummy/tmp/cache/assets/test/sprockets/83ea20e0b25e77f5dce5bf733b088292 +0 -0
  306. data/spec/dummy/tmp/cache/assets/test/sprockets/9604073a83f822f13caaabd7e157bbbb +0 -0
  307. data/spec/dummy/tmp/cache/assets/test/sprockets/98d02556564ee10aef4c3397bb94d5b9 +0 -0
  308. data/spec/dummy/tmp/cache/assets/test/sprockets/9cfe4d48f5258863dbfb3623c797fb15 +0 -0
  309. data/spec/dummy/tmp/cache/assets/test/sprockets/a296264dcc89e1f8ab6382e678ffbe38 +0 -0
  310. data/spec/dummy/tmp/cache/assets/test/sprockets/aa2e1ada35daa496bb08e85fcb817536 +0 -0
  311. data/spec/dummy/tmp/cache/assets/test/sprockets/abee2d4cb18d15789dcdc9c680f3e6de +0 -0
  312. data/spec/dummy/tmp/cache/assets/test/sprockets/c1ab0ecf3cf57db41d9e4cd9306d8829 +0 -0
  313. data/spec/dummy/tmp/cache/assets/test/sprockets/c4a984c6feb506f3e1f9120a8d029bda +0 -0
  314. data/spec/dummy/tmp/cache/assets/test/sprockets/ccdcb26ebc6ef3b684368b368edf4f99 +0 -0
  315. data/spec/dummy/tmp/cache/assets/test/sprockets/d34b5413caa9407126db68d5d590804a +0 -0
  316. data/spec/dummy/tmp/cache/assets/test/sprockets/d4ac74c17332ad931b72f42d7997fcc0 +0 -0
  317. data/spec/dummy/tmp/cache/assets/test/sprockets/dd672deb061233e0db1d2f413d27213f +0 -0
  318. data/spec/dummy/tmp/cache/assets/test/sprockets/e1fcfb0faa3c12467a1c35251e04c8b1 +0 -0
  319. data/spec/dummy/tmp/cache/assets/test/sprockets/e2d21478696ac96ad895f7c3b8d31594 +0 -0
  320. data/spec/dummy/tmp/cache/assets/test/sprockets/e577e9ce00153ad2e59111f761d0fb15 +0 -0
  321. data/spec/dummy/tmp/cache/assets/test/sprockets/e9738177de2083b68d42e053a1529244 +0 -0
  322. data/spec/dummy/tmp/cache/assets/test/sprockets/e9ce2df3f0160329df69b22a911dbd04 +0 -0
  323. data/spec/dummy/tmp/cache/assets/test/sprockets/f2e83d3b5fe984832bfeff09b0e3b8d2 +0 -0
  324. data/spec/dummy/tmp/cache/assets/test/sprockets/f90eee17e0e5eaea50e6064ded54617c +0 -0
  325. data/spec/dummy/tmp/cache/assets/test/sprockets/fa8e81ce1d45228121b9df5618542190 +0 -0
  326. data/spec/dummy/tmp/cache/assets/test/sprockets/fbdc1d9347cb228f06807b76c6c2974e +0 -0
  327. data/spec/dummy/tmp/cache/stdout +1262 -0
  328. data/spec/dummy/tmp/pids/redis-test.pid +1 -0
  329. data/spec/factories/profile.rb +9 -0
  330. data/spec/factories/reserve.rb +7 -1
  331. data/spec/factories/user.rb +3 -9
  332. data/spec/fixtures/agents.yml +0 -12
  333. data/spec/fixtures/checkouts.yml +12 -1
  334. data/spec/fixtures/items.yml +48 -25
  335. data/spec/fixtures/manifestation_checkout_stats.yml +3 -4
  336. data/spec/fixtures/manifestation_reserve_stats.yml +3 -4
  337. data/spec/fixtures/message_requests.yml +0 -3
  338. data/spec/fixtures/message_templates.yml +41 -20
  339. data/spec/fixtures/profiles.yml +83 -0
  340. data/spec/fixtures/reserve_transitions.yml +88 -0
  341. data/spec/fixtures/reserves.yml +1 -18
  342. data/spec/fixtures/user_checkout_stats.yml +3 -4
  343. data/spec/fixtures/user_groups.yml +3 -3
  344. data/spec/fixtures/user_reserve_stats.yml +3 -4
  345. data/spec/fixtures/users.yml +0 -55
  346. data/spec/models/checked_item_spec.rb +2 -1
  347. data/spec/models/checkout_spec.rb +0 -1
  348. data/spec/models/manifestation_checkout_stat_spec.rb +4 -2
  349. data/spec/models/manifestation_reserve_stat_spec.rb +4 -2
  350. data/spec/models/reserve_spec.rb +9 -11
  351. data/spec/models/user_checkout_stat_spec.rb +4 -2
  352. data/spec/models/user_reserve_stat_spec.rb +4 -2
  353. data/spec/support/resque.rb +25 -22
  354. metadata +325 -92
  355. data/app/controllers/checkout_stat_has_manifestations_controller.rb +0 -81
  356. data/app/controllers/checkout_stat_has_users_controller.rb +0 -81
  357. data/app/controllers/reserve_stat_has_manifestations_controller.rb +0 -81
  358. data/app/controllers/reserve_stat_has_users_controller.rb +0 -81
  359. data/app/models/circulation_sweeper.rb +0 -24
  360. data/app/views/checkout_stat_has_manifestations/_form.html.erb +0 -15
  361. data/app/views/checkout_stat_has_manifestations/edit.html.erb +0 -13
  362. data/app/views/checkout_stat_has_manifestations/index.html.erb +0 -33
  363. data/app/views/checkout_stat_has_manifestations/new.html.erb +0 -12
  364. data/app/views/checkout_stat_has_manifestations/show.html.erb +0 -28
  365. data/app/views/checkout_stat_has_users/_form.html.erb +0 -15
  366. data/app/views/checkout_stat_has_users/edit.html.erb +0 -13
  367. data/app/views/checkout_stat_has_users/index.html.erb +0 -33
  368. data/app/views/checkout_stat_has_users/new.html.erb +0 -12
  369. data/app/views/checkout_stat_has_users/show.html.erb +0 -28
  370. data/app/views/checkouts/index.csv.erb +0 -4
  371. data/app/views/manifestation_checkout_stats/show.csv.erb +0 -4
  372. data/app/views/manifestation_reserve_stats/show.csv.erb +0 -4
  373. data/app/views/reserve_stat_has_manifestations/_form.html.erb +0 -15
  374. data/app/views/reserve_stat_has_manifestations/edit.html.erb +0 -13
  375. data/app/views/reserve_stat_has_manifestations/index.html.erb +0 -33
  376. data/app/views/reserve_stat_has_manifestations/new.html.erb +0 -12
  377. data/app/views/reserve_stat_has_manifestations/show.html.erb +0 -28
  378. data/app/views/reserve_stat_has_users/_form.html.erb +0 -15
  379. data/app/views/reserve_stat_has_users/edit.html.erb +0 -13
  380. data/app/views/reserve_stat_has_users/index.html.erb +0 -33
  381. data/app/views/reserve_stat_has_users/new.html.erb +0 -12
  382. data/app/views/reserve_stat_has_users/show.html.erb +0 -28
  383. data/app/views/reserves/index.csv.erb +0 -4
  384. data/app/views/user_checkout_stats/show.csv.erb +0 -4
  385. data/app/views/user_reserve_stats/show.csv.erb +0 -4
  386. data/db/fixtures/carrier_type_has_checkout_types.yml +0 -8
  387. data/db/fixtures/checkout_types.yml +0 -22
  388. data/db/fixtures/circulation_statuses.yml +0 -92
  389. data/db/fixtures/use_restrictions.yml +0 -79
  390. data/db/migrate/20130303104849_add_state_index_to_reserve.rb +0 -5
  391. data/spec/controllers/checkout_stat_has_manifestations_controller_spec.rb +0 -441
  392. data/spec/controllers/checkout_stat_has_users_controller_spec.rb +0 -441
  393. data/spec/controllers/reserve_stat_has_manifestations_controller_spec.rb +0 -441
  394. data/spec/controllers/reserve_stat_has_users_controller_spec.rb +0 -441
  395. data/spec/dummy/app/mailers/notifier.rb +0 -29
  396. data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
  397. data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -16
  398. data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +0 -44
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+
19
+ <!-- If this file is found in the config directory, it will only be
20
+ loaded once at startup. If it is found in Solr's data
21
+ directory, it will be re-loaded every commit.
22
+ -->
23
+
24
+ <elevate>
25
+ <query text="foo bar">
26
+ <doc id="1" />
27
+ <doc id="2" />
28
+ <doc id="3" />
29
+ </query>
30
+
31
+ <query text="ipod">
32
+ <doc id="MA147LL/A" /> <!-- put the actual ipod at the top -->
33
+ <doc id="IW-02" exclude="true" /> <!-- exclude this cable -->
34
+ </query>
35
+
36
+ </elevate>
@@ -0,0 +1,246 @@
1
+ # The ASF licenses this file to You under the Apache License, Version 2.0
2
+ # (the "License"); you may not use this file except in compliance with
3
+ # the License. You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+
13
+ # Syntax:
14
+ # "source" => "target"
15
+ # "source".length() > 0 (source cannot be empty.)
16
+ # "target".length() >= 0 (target can be empty.)
17
+
18
+ # example:
19
+ # "À" => "A"
20
+ # "\u00C0" => "A"
21
+ # "\u00C0" => "\u0041"
22
+ # "ß" => "ss"
23
+ # "\t" => " "
24
+ # "\n" => ""
25
+
26
+ # À => A
27
+ "\u00C0" => "A"
28
+
29
+ # Á => A
30
+ "\u00C1" => "A"
31
+
32
+ # Â => A
33
+ "\u00C2" => "A"
34
+
35
+ # Ã => A
36
+ "\u00C3" => "A"
37
+
38
+ # Ä => A
39
+ "\u00C4" => "A"
40
+
41
+ # Å => A
42
+ "\u00C5" => "A"
43
+
44
+ # Æ => AE
45
+ "\u00C6" => "AE"
46
+
47
+ # Ç => C
48
+ "\u00C7" => "C"
49
+
50
+ # È => E
51
+ "\u00C8" => "E"
52
+
53
+ # É => E
54
+ "\u00C9" => "E"
55
+
56
+ # Ê => E
57
+ "\u00CA" => "E"
58
+
59
+ # Ë => E
60
+ "\u00CB" => "E"
61
+
62
+ # Ì => I
63
+ "\u00CC" => "I"
64
+
65
+ # Í => I
66
+ "\u00CD" => "I"
67
+
68
+ # Î => I
69
+ "\u00CE" => "I"
70
+
71
+ # Ï => I
72
+ "\u00CF" => "I"
73
+
74
+ # IJ => IJ
75
+ "\u0132" => "IJ"
76
+
77
+ # Ð => D
78
+ "\u00D0" => "D"
79
+
80
+ # Ñ => N
81
+ "\u00D1" => "N"
82
+
83
+ # Ò => O
84
+ "\u00D2" => "O"
85
+
86
+ # Ó => O
87
+ "\u00D3" => "O"
88
+
89
+ # Ô => O
90
+ "\u00D4" => "O"
91
+
92
+ # Õ => O
93
+ "\u00D5" => "O"
94
+
95
+ # Ö => O
96
+ "\u00D6" => "O"
97
+
98
+ # Ø => O
99
+ "\u00D8" => "O"
100
+
101
+ # Π=> OE
102
+ "\u0152" => "OE"
103
+
104
+ # Þ
105
+ "\u00DE" => "TH"
106
+
107
+ # Ù => U
108
+ "\u00D9" => "U"
109
+
110
+ # Ú => U
111
+ "\u00DA" => "U"
112
+
113
+ # Û => U
114
+ "\u00DB" => "U"
115
+
116
+ # Ü => U
117
+ "\u00DC" => "U"
118
+
119
+ # Ý => Y
120
+ "\u00DD" => "Y"
121
+
122
+ # Ÿ => Y
123
+ "\u0178" => "Y"
124
+
125
+ # à => a
126
+ "\u00E0" => "a"
127
+
128
+ # á => a
129
+ "\u00E1" => "a"
130
+
131
+ # â => a
132
+ "\u00E2" => "a"
133
+
134
+ # ã => a
135
+ "\u00E3" => "a"
136
+
137
+ # ä => a
138
+ "\u00E4" => "a"
139
+
140
+ # å => a
141
+ "\u00E5" => "a"
142
+
143
+ # æ => ae
144
+ "\u00E6" => "ae"
145
+
146
+ # ç => c
147
+ "\u00E7" => "c"
148
+
149
+ # è => e
150
+ "\u00E8" => "e"
151
+
152
+ # é => e
153
+ "\u00E9" => "e"
154
+
155
+ # ê => e
156
+ "\u00EA" => "e"
157
+
158
+ # ë => e
159
+ "\u00EB" => "e"
160
+
161
+ # ì => i
162
+ "\u00EC" => "i"
163
+
164
+ # í => i
165
+ "\u00ED" => "i"
166
+
167
+ # î => i
168
+ "\u00EE" => "i"
169
+
170
+ # ï => i
171
+ "\u00EF" => "i"
172
+
173
+ # ij => ij
174
+ "\u0133" => "ij"
175
+
176
+ # ð => d
177
+ "\u00F0" => "d"
178
+
179
+ # ñ => n
180
+ "\u00F1" => "n"
181
+
182
+ # ò => o
183
+ "\u00F2" => "o"
184
+
185
+ # ó => o
186
+ "\u00F3" => "o"
187
+
188
+ # ô => o
189
+ "\u00F4" => "o"
190
+
191
+ # õ => o
192
+ "\u00F5" => "o"
193
+
194
+ # ö => o
195
+ "\u00F6" => "o"
196
+
197
+ # ø => o
198
+ "\u00F8" => "o"
199
+
200
+ # œ => oe
201
+ "\u0153" => "oe"
202
+
203
+ # ß => ss
204
+ "\u00DF" => "ss"
205
+
206
+ # þ => th
207
+ "\u00FE" => "th"
208
+
209
+ # ù => u
210
+ "\u00F9" => "u"
211
+
212
+ # ú => u
213
+ "\u00FA" => "u"
214
+
215
+ # û => u
216
+ "\u00FB" => "u"
217
+
218
+ # ü => u
219
+ "\u00FC" => "u"
220
+
221
+ # ý => y
222
+ "\u00FD" => "y"
223
+
224
+ # ÿ => y
225
+ "\u00FF" => "y"
226
+
227
+ # ff => ff
228
+ "\uFB00" => "ff"
229
+
230
+ # fi => fi
231
+ "\uFB01" => "fi"
232
+
233
+ # fl => fl
234
+ "\uFB02" => "fl"
235
+
236
+ # ffi => ffi
237
+ "\uFB03" => "ffi"
238
+
239
+ # ffl => ffl
240
+ "\uFB04" => "ffl"
241
+
242
+ # ſt => ft
243
+ "\uFB05" => "ft"
244
+
245
+ # st => st
246
+ "\uFB06" => "st"
@@ -0,0 +1,21 @@
1
+ # The ASF licenses this file to You under the Apache License, Version 2.0
2
+ # (the "License"); you may not use this file except in compliance with
3
+ # the License. You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+
13
+ #-----------------------------------------------------------------------
14
+ # Use a protected word file to protect against the stemmer reducing two
15
+ # unrelated words to the same base word.
16
+
17
+ # Some non-words that normally won't be encountered,
18
+ # just to test that they won't be stemmed.
19
+ dontstems
20
+ zwhacky
21
+
@@ -0,0 +1,255 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <!--
19
+ This is the Solr schema file. This file should be named "schema.xml" and
20
+ should be in the conf directory under the solr home
21
+ (i.e. ./solr/conf/schema.xml by default)
22
+ or located where the classloader for the Solr webapp can find it.
23
+
24
+ This example schema is the recommended starting point for users.
25
+ It should be kept correct and concise, usable out-of-the-box.
26
+
27
+ For more information, on how to customize this file, please see
28
+ http://wiki.apache.org/solr/SchemaXml
29
+
30
+ PERFORMANCE NOTE: this schema includes many optional features and should not
31
+ be used for benchmarking. To improve performance one could
32
+ - set stored="false" for all fields possible (esp large fields) when you
33
+ only need to search on the field but don't need to return the original
34
+ value.
35
+ - set indexed="false" if you don't need to search on the field, but only
36
+ return the field as a result of searching on other indexed fields.
37
+ - remove all unneeded copyField statements
38
+ - for best index size and searching performance, set "index" to false
39
+ for all general text fields, use copyField to copy them to the
40
+ catchall "text" field, and use that for searching.
41
+ - For maximum indexing performance, use the StreamingUpdateSolrServer
42
+ java client.
43
+ - Remember to run the JVM in server mode, and use a higher logging level
44
+ that avoids logging every request
45
+ -->
46
+ <schema name="sunspot" version="1.0">
47
+ <types>
48
+ <!-- field type definitions. The "name" attribute is
49
+ just a label to be used by field definitions. The "class"
50
+ attribute and any other attributes determine the real
51
+ behavior of the fieldType.
52
+ Class names starting with "solr" refer to java classes in the
53
+ org.apache.solr.analysis package.
54
+ -->
55
+ <!-- *** This fieldType is used by Sunspot! *** -->
56
+ <fieldType name="string" class="solr.StrField" omitNorms="true"/>
57
+ <!-- *** This fieldType is used by Sunspot! *** -->
58
+ <fieldType name="tdouble" class="solr.TrieDoubleField" omitNorms="true"/>
59
+ <!-- *** This fieldType is used by Sunspot! *** -->
60
+ <fieldType name="rand" class="solr.RandomSortField" omitNorms="true"/>
61
+ <!-- *** This fieldType is used by Sunspot! *** -->
62
+ <fieldType name="text" class="solr.TextField" omitNorms="false">
63
+ <analyzer>
64
+ <tokenizer class="solr.StandardTokenizerFactory"/>
65
+ <filter class="solr.StandardFilterFactory"/>
66
+ <filter class="solr.LowerCaseFilterFactory"/>
67
+ <filter class="solr.PorterStemFilterFactory"/>
68
+ </analyzer>
69
+ </fieldType>
70
+ <!-- *** This fieldType is used by Sunspot! *** -->
71
+ <fieldType name="boolean" class="solr.BoolField" omitNorms="true"/>
72
+ <!-- *** This fieldType is used by Sunspot! *** -->
73
+ <fieldType name="date" class="solr.DateField" omitNorms="true"/>
74
+ <!-- *** This fieldType is used by Sunspot! *** -->
75
+ <fieldType name="sdouble" class="solr.SortableDoubleField" omitNorms="true"/>
76
+ <!-- *** This fieldType is used by Sunspot! *** -->
77
+ <fieldType name="sfloat" class="solr.SortableFloatField" omitNorms="true"/>
78
+ <!-- *** This fieldType is used by Sunspot! *** -->
79
+ <fieldType name="sint" class="solr.SortableIntField" omitNorms="true"/>
80
+ <!-- *** This fieldType is used by Sunspot! *** -->
81
+ <fieldType name="slong" class="solr.SortableLongField" omitNorms="true"/>
82
+ <!-- *** This fieldType is used by Sunspot! *** -->
83
+ <fieldType name="tint" class="solr.TrieIntField" omitNorms="true"/>
84
+ <!-- *** This fieldType is used by Sunspot! *** -->
85
+ <fieldType name="tfloat" class="solr.TrieFloatField" omitNorms="true"/>
86
+ <!-- *** This fieldType is used by Sunspot! *** -->
87
+ <fieldType name="tdate" class="solr.TrieDateField" omitNorms="true"/>
88
+
89
+ <!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
90
+ <fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
91
+ </types>
92
+ <fields>
93
+ <!-- Valid attributes for fields:
94
+ name: mandatory - the name for the field
95
+ type: mandatory - the name of a previously defined type from the
96
+ <types> section
97
+ indexed: true if this field should be indexed (searchable or sortable)
98
+ stored: true if this field should be retrievable
99
+ compressed: [false] if this field should be stored using gzip compression
100
+ (this will only apply if the field type is compressable; among
101
+ the standard field types, only TextField and StrField are)
102
+ multiValued: true if this field may contain multiple values per document
103
+ omitNorms: (expert) set to true to omit the norms associated with
104
+ this field (this disables length normalization and index-time
105
+ boosting for the field, and saves some memory). Only full-text
106
+ fields or fields that need an index-time boost need norms.
107
+ termVectors: [false] set to true to store the term vector for a
108
+ given field.
109
+ When using MoreLikeThis, fields used for similarity should be
110
+ stored for best performance.
111
+ termPositions: Store position information with the term vector.
112
+ This will increase storage costs.
113
+ termOffsets: Store offset information with the term vector. This
114
+ will increase storage costs.
115
+ default: a value that should be used if no value is specified
116
+ when adding a document.
117
+ -->
118
+ <!-- *** This field is used by Sunspot! *** -->
119
+ <field name="id" stored="true" type="string" multiValued="false" indexed="true"/>
120
+ <!-- *** This field is used by Sunspot! *** -->
121
+ <field name="type" stored="false" type="string" multiValued="true" indexed="true"/>
122
+ <!-- *** This field is used by Sunspot! *** -->
123
+ <field name="class_name" stored="false" type="string" multiValued="false" indexed="true"/>
124
+ <!-- *** This field is used by Sunspot! *** -->
125
+ <field name="text" stored="false" type="string" multiValued="true" indexed="true"/>
126
+ <!-- *** This field is used by Sunspot! *** -->
127
+ <field name="lat" stored="true" type="tdouble" multiValued="false" indexed="true"/>
128
+ <!-- *** This field is used by Sunspot! *** -->
129
+ <field name="lng" stored="true" type="tdouble" multiValued="false" indexed="true"/>
130
+ <!-- *** This dynamicField is used by Sunspot! *** -->
131
+ <dynamicField name="random_*" stored="false" type="rand" multiValued="false" indexed="true"/>
132
+ <!-- *** This dynamicField is used by Sunspot! *** -->
133
+ <dynamicField name="_local*" stored="false" type="tdouble" multiValued="false" indexed="true"/>
134
+ <!-- *** This dynamicField is used by Sunspot! *** -->
135
+ <dynamicField name="*_text" stored="false" type="text" multiValued="true" indexed="true"/>
136
+ <!-- *** This dynamicField is used by Sunspot! *** -->
137
+ <dynamicField name="*_texts" stored="true" type="text" multiValued="true" indexed="true"/>
138
+ <!-- *** This dynamicField is used by Sunspot! *** -->
139
+ <dynamicField name="*_b" stored="false" type="boolean" multiValued="false" indexed="true"/>
140
+ <!-- *** This dynamicField is used by Sunspot! *** -->
141
+ <dynamicField name="*_bm" stored="false" type="boolean" multiValued="true" indexed="true"/>
142
+ <!-- *** This dynamicField is used by Sunspot! *** -->
143
+ <dynamicField name="*_bs" stored="true" type="boolean" multiValued="false" indexed="true"/>
144
+ <!-- *** This dynamicField is used by Sunspot! *** -->
145
+ <dynamicField name="*_bms" stored="true" type="boolean" multiValued="true" indexed="true"/>
146
+ <!-- *** This dynamicField is used by Sunspot! *** -->
147
+ <dynamicField name="*_d" stored="false" type="date" multiValued="false" indexed="true"/>
148
+ <!-- *** This dynamicField is used by Sunspot! *** -->
149
+ <dynamicField name="*_dm" stored="false" type="date" multiValued="true" indexed="true"/>
150
+ <!-- *** This dynamicField is used by Sunspot! *** -->
151
+ <dynamicField name="*_ds" stored="true" type="date" multiValued="false" indexed="true"/>
152
+ <!-- *** This dynamicField is used by Sunspot! *** -->
153
+ <dynamicField name="*_dms" stored="true" type="date" multiValued="true" indexed="true"/>
154
+ <!-- *** This dynamicField is used by Sunspot! *** -->
155
+ <dynamicField name="*_e" stored="false" type="sdouble" multiValued="false" indexed="true"/>
156
+ <!-- *** This dynamicField is used by Sunspot! *** -->
157
+ <dynamicField name="*_em" stored="false" type="sdouble" multiValued="true" indexed="true"/>
158
+ <!-- *** This dynamicField is used by Sunspot! *** -->
159
+ <dynamicField name="*_es" stored="true" type="sdouble" multiValued="false" indexed="true"/>
160
+ <!-- *** This dynamicField is used by Sunspot! *** -->
161
+ <dynamicField name="*_ems" stored="true" type="sdouble" multiValued="true" indexed="true"/>
162
+ <!-- *** This dynamicField is used by Sunspot! *** -->
163
+ <dynamicField name="*_f" stored="false" type="sfloat" multiValued="false" indexed="true"/>
164
+ <!-- *** This dynamicField is used by Sunspot! *** -->
165
+ <dynamicField name="*_fm" stored="false" type="sfloat" multiValued="true" indexed="true"/>
166
+ <!-- *** This dynamicField is used by Sunspot! *** -->
167
+ <dynamicField name="*_fs" stored="true" type="sfloat" multiValued="false" indexed="true"/>
168
+ <!-- *** This dynamicField is used by Sunspot! *** -->
169
+ <dynamicField name="*_fms" stored="true" type="sfloat" multiValued="true" indexed="true"/>
170
+ <!-- *** This dynamicField is used by Sunspot! *** -->
171
+ <dynamicField name="*_i" stored="false" type="sint" multiValued="false" indexed="true"/>
172
+ <!-- *** This dynamicField is used by Sunspot! *** -->
173
+ <dynamicField name="*_im" stored="false" type="sint" multiValued="true" indexed="true"/>
174
+ <!-- *** This dynamicField is used by Sunspot! *** -->
175
+ <dynamicField name="*_is" stored="true" type="sint" multiValued="false" indexed="true"/>
176
+ <!-- *** This dynamicField is used by Sunspot! *** -->
177
+ <dynamicField name="*_ims" stored="true" type="sint" multiValued="true" indexed="true"/>
178
+ <!-- *** This dynamicField is used by Sunspot! *** -->
179
+ <dynamicField name="*_l" stored="false" type="slong" multiValued="false" indexed="true"/>
180
+ <!-- *** This dynamicField is used by Sunspot! *** -->
181
+ <dynamicField name="*_lm" stored="false" type="slong" multiValued="true" indexed="true"/>
182
+ <!-- *** This dynamicField is used by Sunspot! *** -->
183
+ <dynamicField name="*_ls" stored="true" type="slong" multiValued="false" indexed="true"/>
184
+ <!-- *** This dynamicField is used by Sunspot! *** -->
185
+ <dynamicField name="*_lms" stored="true" type="slong" multiValued="true" indexed="true"/>
186
+ <!-- *** This dynamicField is used by Sunspot! *** -->
187
+ <dynamicField name="*_s" stored="false" type="string" multiValued="false" indexed="true"/>
188
+ <!-- *** This dynamicField is used by Sunspot! *** -->
189
+ <dynamicField name="*_sm" stored="false" type="string" multiValued="true" indexed="true"/>
190
+ <!-- *** This dynamicField is used by Sunspot! *** -->
191
+ <dynamicField name="*_ss" stored="true" type="string" multiValued="false" indexed="true"/>
192
+ <!-- *** This dynamicField is used by Sunspot! *** -->
193
+ <dynamicField name="*_sms" stored="true" type="string" multiValued="true" indexed="true"/>
194
+ <!-- *** This dynamicField is used by Sunspot! *** -->
195
+ <dynamicField name="*_it" stored="false" type="tint" multiValued="false" indexed="true"/>
196
+ <!-- *** This dynamicField is used by Sunspot! *** -->
197
+ <dynamicField name="*_itm" stored="false" type="tint" multiValued="true" indexed="true"/>
198
+ <!-- *** This dynamicField is used by Sunspot! *** -->
199
+ <dynamicField name="*_its" stored="true" type="tint" multiValued="false" indexed="true"/>
200
+ <!-- *** This dynamicField is used by Sunspot! *** -->
201
+ <dynamicField name="*_itms" stored="true" type="tint" multiValued="true" indexed="true"/>
202
+ <!-- *** This dynamicField is used by Sunspot! *** -->
203
+ <dynamicField name="*_ft" stored="false" type="tfloat" multiValued="false" indexed="true"/>
204
+ <!-- *** This dynamicField is used by Sunspot! *** -->
205
+ <dynamicField name="*_ftm" stored="false" type="tfloat" multiValued="true" indexed="true"/>
206
+ <!-- *** This dynamicField is used by Sunspot! *** -->
207
+ <dynamicField name="*_fts" stored="true" type="tfloat" multiValued="false" indexed="true"/>
208
+ <!-- *** This dynamicField is used by Sunspot! *** -->
209
+ <dynamicField name="*_ftms" stored="true" type="tfloat" multiValued="true" indexed="true"/>
210
+ <!-- *** This dynamicField is used by Sunspot! *** -->
211
+ <dynamicField name="*_dt" stored="false" type="tdate" multiValued="false" indexed="true"/>
212
+ <!-- *** This dynamicField is used by Sunspot! *** -->
213
+ <dynamicField name="*_dtm" stored="false" type="tdate" multiValued="true" indexed="true"/>
214
+ <!-- *** This dynamicField is used by Sunspot! *** -->
215
+ <dynamicField name="*_dts" stored="true" type="tdate" multiValued="false" indexed="true"/>
216
+ <!-- *** This dynamicField is used by Sunspot! *** -->
217
+ <dynamicField name="*_dtms" stored="true" type="tdate" multiValued="true" indexed="true"/>
218
+ <!-- *** This dynamicField is used by Sunspot! *** -->
219
+ <dynamicField name="*_textv" stored="false" termVectors="true" type="text" multiValued="true" indexed="true"/>
220
+ <!-- *** This dynamicField is used by Sunspot! *** -->
221
+ <dynamicField name="*_textsv" stored="true" termVectors="true" type="text" multiValued="true" indexed="true"/>
222
+ <!-- *** This dynamicField is used by Sunspot! *** -->
223
+ <dynamicField name="*_et" stored="false" termVectors="true" type="tdouble" multiValued="false" indexed="true"/>
224
+ <!-- *** This dynamicField is used by Sunspot! *** -->
225
+ <dynamicField name="*_etm" stored="false" termVectors="true" type="tdouble" multiValued="true" indexed="true"/>
226
+ <!-- *** This dynamicField is used by Sunspot! *** -->
227
+ <dynamicField name="*_ets" stored="true" termVectors="true" type="tdouble" multiValued="false" indexed="true"/>
228
+ <!-- *** This dynamicField is used by Sunspot! *** -->
229
+ <dynamicField name="*_etms" stored="true" termVectors="true" type="tdouble" multiValued="true" indexed="true"/>
230
+
231
+ <!-- Type used to index the lat and lon components for the "location" FieldType -->
232
+ <dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false" multiValued="false"/>
233
+ <dynamicField name="*_p" type="location" indexed="true" stored="true" multiValued="false"/>
234
+
235
+ <dynamicField name="*_ll" stored="false" type="location" multiValued="false" indexed="true"/>
236
+ <dynamicField name="*_llm" stored="false" type="location" multiValued="true" indexed="true"/>
237
+ <dynamicField name="*_lls" stored="true" type="location" multiValued="false" indexed="true"/>
238
+ <dynamicField name="*_llms" stored="true" type="location" multiValued="true" indexed="true"/>
239
+
240
+ <!-- required by Solr 4 -->
241
+ <field name="_version_" type="string" indexed="true" stored="true" multiValued="false" />
242
+ </fields>
243
+
244
+ <!-- Field to use to determine and enforce document uniqueness.
245
+ Unless this field is marked with required="false", it will be a required field
246
+ -->
247
+ <uniqueKey>id</uniqueKey>
248
+ <!-- field for the QueryParser to use when an explicit fieldname is absent -->
249
+ <defaultSearchField>text</defaultSearchField>
250
+ <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
251
+ <solrQueryParser defaultOperator="AND"/>
252
+ <!-- copyField commands copy one field to another at the time a document
253
+ is added to the index. It's used either to index the same field differently,
254
+ or to add multiple fields to the same field for easier/faster searching. -->
255
+ </schema>
@@ -0,0 +1,24 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ user=
17
+ solr_hostname=localhost
18
+ solr_port=8983
19
+ rsyncd_port=18983
20
+ data_dir=
21
+ webapp_name=solr
22
+ master_host=
23
+ master_data_dir=
24
+ master_status_dir=