enju_biblio 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (880) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +46 -0
  4. data/app/controllers/carrier_types_controller.rb +13 -0
  5. data/app/controllers/content_types_controller.rb +17 -0
  6. data/app/controllers/countries_controller.rb +17 -0
  7. data/app/controllers/create_types_controller.rb +13 -0
  8. data/app/controllers/creates_controller.rb +118 -0
  9. data/app/controllers/donates_controller.rb +79 -0
  10. data/app/controllers/exemplifies_controller.rb +103 -0
  11. data/app/controllers/extents_controller.rb +17 -0
  12. data/app/controllers/form_of_works_controller.rb +13 -0
  13. data/app/controllers/frequencies_controller.rb +13 -0
  14. data/app/controllers/import_requests_controller.rb +92 -0
  15. data/app/controllers/items_controller.rb +245 -0
  16. data/app/controllers/languages_controller.rb +17 -0
  17. data/app/controllers/licenses_controller.rb +17 -0
  18. data/app/controllers/manifestation_relationship_types_controller.rb +13 -0
  19. data/app/controllers/manifestation_relationships_controller.rb +23 -0
  20. data/app/controllers/manifestations_controller.rb +727 -0
  21. data/app/controllers/medium_of_performances_controller.rb +17 -0
  22. data/app/controllers/owns_controller.rb +108 -0
  23. data/app/controllers/patron_import_files_controller.rb +93 -0
  24. data/app/controllers/patron_import_results_controller.rb +15 -0
  25. data/app/controllers/patron_relationship_types_controller.rb +13 -0
  26. data/app/controllers/patron_relationships_controller.rb +23 -0
  27. data/app/controllers/patron_types_controller.rb +17 -0
  28. data/app/controllers/patrons_controller.rb +211 -0
  29. data/app/controllers/picture_files_controller.rb +169 -0
  30. data/app/controllers/produce_types_controller.rb +13 -0
  31. data/app/controllers/produces_controller.rb +122 -0
  32. data/app/controllers/realize_types_controller.rb +13 -0
  33. data/app/controllers/realizes_controller.rb +118 -0
  34. data/app/controllers/resource_import_files_controller.rb +93 -0
  35. data/app/controllers/resource_import_results_controller.rb +19 -0
  36. data/app/controllers/series_has_manifestations_controller.rb +95 -0
  37. data/app/controllers/series_statements_controller.rb +125 -0
  38. data/app/helpers/manifestations_helper.rb +160 -0
  39. data/app/helpers/owns_helper.rb +3 -0
  40. data/app/helpers/patrons_helper.rb +16 -0
  41. data/app/helpers/picture_files_helper.rb +15 -0
  42. data/app/helpers/series_statements_helper.rb +3 -0
  43. data/app/models/carrier_type.rb +34 -0
  44. data/app/models/content_type.rb +20 -0
  45. data/app/models/country.rb +45 -0
  46. data/app/models/create.rb +38 -0
  47. data/app/models/create_type.rb +19 -0
  48. data/app/models/donate.rb +23 -0
  49. data/app/models/exemplify.rb +46 -0
  50. data/app/models/extent.rb +20 -0
  51. data/app/models/form_of_work.rb +20 -0
  52. data/app/models/frequency.rb +20 -0
  53. data/app/models/import_request.rb +72 -0
  54. data/app/models/item.rb +277 -0
  55. data/app/models/item_sweeper.rb +19 -0
  56. data/app/models/language.rb +48 -0
  57. data/app/models/license.rb +19 -0
  58. data/app/models/manifestation.rb +642 -0
  59. data/app/models/manifestation_relationship.rb +30 -0
  60. data/app/models/manifestation_relationship_type.rb +20 -0
  61. data/app/models/manifestation_sweeper.rb +24 -0
  62. data/app/models/medium_of_performance.rb +20 -0
  63. data/app/models/own.rb +36 -0
  64. data/app/models/page_sweeper.rb +40 -0
  65. data/app/models/patron.rb +308 -0
  66. data/app/models/patron_import_file.rb +285 -0
  67. data/app/models/patron_import_result.rb +26 -0
  68. data/app/models/patron_relationship.rb +27 -0
  69. data/app/models/patron_relationship_type.rb +20 -0
  70. data/app/models/patron_sweeper.rb +30 -0
  71. data/app/models/patron_type.rb +20 -0
  72. data/app/models/picture_file.rb +48 -0
  73. data/app/models/produce.rb +39 -0
  74. data/app/models/produce_type.rb +19 -0
  75. data/app/models/realize.rb +38 -0
  76. data/app/models/realize_type.rb +19 -0
  77. data/app/models/resource_import_file.rb +585 -0
  78. data/app/models/resource_import_result.rb +26 -0
  79. data/app/models/series_has_manifestation.rb +38 -0
  80. data/app/models/series_statement.rb +105 -0
  81. data/app/views/carrier_types/_form.html.erb +19 -0
  82. data/app/views/carrier_types/edit.html.erb +13 -0
  83. data/app/views/carrier_types/index.html.erb +45 -0
  84. data/app/views/carrier_types/new.html.erb +12 -0
  85. data/app/views/carrier_types/show.html.erb +24 -0
  86. data/app/views/content_types/_form.html.erb +22 -0
  87. data/app/views/content_types/edit.html.erb +13 -0
  88. data/app/views/content_types/index.html.erb +45 -0
  89. data/app/views/content_types/new.html.erb +12 -0
  90. data/app/views/content_types/show.html.erb +24 -0
  91. data/app/views/countries/_form.html.erb +22 -0
  92. data/app/views/countries/edit.html.erb +13 -0
  93. data/app/views/countries/index.html.erb +43 -0
  94. data/app/views/countries/new.html.erb +12 -0
  95. data/app/views/countries/show.html.erb +24 -0
  96. data/app/views/create_types/_form.html.erb +19 -0
  97. data/app/views/create_types/edit.html.erb +13 -0
  98. data/app/views/create_types/index.html.erb +43 -0
  99. data/app/views/create_types/new.html.erb +12 -0
  100. data/app/views/create_types/show.html.erb +29 -0
  101. data/app/views/creates/_form.html.erb +32 -0
  102. data/app/views/creates/_index.html.erb +36 -0
  103. data/app/views/creates/_index_patron.html.erb +48 -0
  104. data/app/views/creates/_index_work.html.erb +48 -0
  105. data/app/views/creates/edit.html.erb +13 -0
  106. data/app/views/creates/index.html.erb +7 -0
  107. data/app/views/creates/new.html.erb +17 -0
  108. data/app/views/creates/show.html.erb +24 -0
  109. data/app/views/donates/edit.html.erb +30 -0
  110. data/app/views/donates/index.html.erb +45 -0
  111. data/app/views/donates/new.html.erb +29 -0
  112. data/app/views/donates/show.html.erb +25 -0
  113. data/app/views/exemplifies/_form.html.erb +27 -0
  114. data/app/views/exemplifies/edit.html.erb +13 -0
  115. data/app/views/exemplifies/index.html.erb +38 -0
  116. data/app/views/exemplifies/new.html.erb +12 -0
  117. data/app/views/exemplifies/show.html.erb +24 -0
  118. data/app/views/extents/_form.html.erb +19 -0
  119. data/app/views/extents/edit.html.erb +13 -0
  120. data/app/views/extents/index.html.erb +47 -0
  121. data/app/views/extents/new.html.erb +12 -0
  122. data/app/views/extents/show.html.erb +29 -0
  123. data/app/views/form_of_works/_form.html.erb +19 -0
  124. data/app/views/form_of_works/edit.html.erb +13 -0
  125. data/app/views/form_of_works/index.html.erb +45 -0
  126. data/app/views/form_of_works/new.html.erb +12 -0
  127. data/app/views/form_of_works/show.html.erb +29 -0
  128. data/app/views/frequencies/_form.html.erb +19 -0
  129. data/app/views/frequencies/edit.html.erb +13 -0
  130. data/app/views/frequencies/index.html.erb +43 -0
  131. data/app/views/frequencies/new.html.erb +12 -0
  132. data/app/views/frequencies/show.html.erb +24 -0
  133. data/app/views/import_requests/_form.html.erb +32 -0
  134. data/app/views/import_requests/edit.html.erb +24 -0
  135. data/app/views/import_requests/index.html.erb +41 -0
  136. data/app/views/import_requests/new.html.erb +27 -0
  137. data/app/views/import_requests/show.html.erb +43 -0
  138. data/app/views/items/_form.html.erb +86 -0
  139. data/app/views/items/_observe_field.html.erb +7 -0
  140. data/app/views/items/_qtip.html.erb +25 -0
  141. data/app/views/items/_shelf_picture.html.erb +8 -0
  142. data/app/views/items/_shelf_picture.mobile.erb +8 -0
  143. data/app/views/items/edit.html.erb +18 -0
  144. data/app/views/items/index.csv.erb +4 -0
  145. data/app/views/items/index.html.erb +74 -0
  146. data/app/views/items/index.mobile.erb +53 -0
  147. data/app/views/items/new.html.erb +21 -0
  148. data/app/views/items/show.html.erb +160 -0
  149. data/app/views/items/show.mobile.erb +88 -0
  150. data/app/views/languages/_form.html.erb +27 -0
  151. data/app/views/languages/edit.html.erb +13 -0
  152. data/app/views/languages/index.html.erb +49 -0
  153. data/app/views/languages/new.html.erb +12 -0
  154. data/app/views/languages/show.html.erb +34 -0
  155. data/app/views/licenses/_form.html.erb +19 -0
  156. data/app/views/licenses/edit.html.erb +13 -0
  157. data/app/views/licenses/index.html.erb +46 -0
  158. data/app/views/licenses/new.html.erb +12 -0
  159. data/app/views/licenses/show.html.erb +29 -0
  160. data/app/views/manifestation_relationship_types/_form.html.erb +19 -0
  161. data/app/views/manifestation_relationship_types/edit.html.erb +13 -0
  162. data/app/views/manifestation_relationship_types/index.html.erb +43 -0
  163. data/app/views/manifestation_relationship_types/new.html.erb +12 -0
  164. data/app/views/manifestation_relationship_types/show.html.erb +29 -0
  165. data/app/views/manifestation_relationships/_form.html.erb +31 -0
  166. data/app/views/manifestation_relationships/edit.html.erb +13 -0
  167. data/app/views/manifestation_relationships/index.html.erb +34 -0
  168. data/app/views/manifestation_relationships/new.html.erb +12 -0
  169. data/app/views/manifestation_relationships/show.html.erb +24 -0
  170. data/app/views/manifestations/_all_facet.html.erb +7 -0
  171. data/app/views/manifestations/_attachment_file.html.erb +6 -0
  172. data/app/views/manifestations/_book_jacket.html.erb +5 -0
  173. data/app/views/manifestations/_call_number.html.erb +25 -0
  174. data/app/views/manifestations/_carrier_type_facet.html.erb +9 -0
  175. data/app/views/manifestations/_edition_and_number.html.erb +22 -0
  176. data/app/views/manifestations/_form.html.erb +154 -0
  177. data/app/views/manifestations/_form.html.erb.osakac +153 -0
  178. data/app/views/manifestations/_history_list.html.erb +12 -0
  179. data/app/views/manifestations/_holding.html.erb +3 -0
  180. data/app/views/manifestations/_index_form.html.erb +12 -0
  181. data/app/views/manifestations/_index_form_contributor.html.erb +15 -0
  182. data/app/views/manifestations/_index_form_creator.html.erb +15 -0
  183. data/app/views/manifestations/_index_form_item.html.erb +14 -0
  184. data/app/views/manifestations/_index_form_manifestation.html.erb +13 -0
  185. data/app/views/manifestations/_index_form_publisher.html.erb +15 -0
  186. data/app/views/manifestations/_index_form_series_statement.html.erb +20 -0
  187. data/app/views/manifestations/_language_facet.html.erb +16 -0
  188. data/app/views/manifestations/_library_facet.html.erb +16 -0
  189. data/app/views/manifestations/_list.html.erb +21 -0
  190. data/app/views/manifestations/_manifestation.html.erb +69 -0
  191. data/app/views/manifestations/_manifestation_list.html.erb +32 -0
  192. data/app/views/manifestations/_not_found.html.erb +7 -0
  193. data/app/views/manifestations/_paginate_id_link.html.erb +10 -0
  194. data/app/views/manifestations/_pickup.html.erb +30 -0
  195. data/app/views/manifestations/_pubdate_facet.html.erb +9 -0
  196. data/app/views/manifestations/_question_list.html.erb +13 -0
  197. data/app/views/manifestations/_reservable_facet.html.erb +14 -0
  198. data/app/views/manifestations/_search_engine.html.erb +16 -0
  199. data/app/views/manifestations/_serial_form.html.erb +14 -0
  200. data/app/views/manifestations/_show.mods.builder +86 -0
  201. data/app/views/manifestations/_show.rdf.builder +63 -0
  202. data/app/views/manifestations/_show_creators.html.erb +17 -0
  203. data/app/views/manifestations/_show_creators.mobile.erb +17 -0
  204. data/app/views/manifestations/_show_detail_librarian.html.erb +136 -0
  205. data/app/views/manifestations/_show_detail_user.html.erb +131 -0
  206. data/app/views/manifestations/_show_group.html.erb +2 -0
  207. data/app/views/manifestations/_show_holding.html.erb +62 -0
  208. data/app/views/manifestations/_show_holding.mobile.erb +38 -0
  209. data/app/views/manifestations/_show_index.html.erb +15 -0
  210. data/app/views/manifestations/_show_index.mobile.erb +14 -0
  211. data/app/views/manifestations/_show_periodical_master.html.erb +40 -0
  212. data/app/views/manifestations/_tab_list.html.erb +11 -0
  213. data/app/views/manifestations/_tab_menu.html.erb +14 -0
  214. data/app/views/manifestations/_title.html.erb +27 -0
  215. data/app/views/manifestations/_title.mobile.erb +27 -0
  216. data/app/views/manifestations/edit.html.erb +21 -0
  217. data/app/views/manifestations/error.xml +7 -0
  218. data/app/views/manifestations/explain.sru +9 -0
  219. data/app/views/manifestations/index.atom.builder +19 -0
  220. data/app/views/manifestations/index.csv.erb +4 -0
  221. data/app/views/manifestations/index.html.erb +101 -0
  222. data/app/views/manifestations/index.mobile.erb +21 -0
  223. data/app/views/manifestations/index.mods.builder +8 -0
  224. data/app/views/manifestations/index.rdf.builder +28 -0
  225. data/app/views/manifestations/index.rss.builder +43 -0
  226. data/app/views/manifestations/index.sru.builder +101 -0
  227. data/app/views/manifestations/new.html.erb +16 -0
  228. data/app/views/manifestations/show.html.erb +108 -0
  229. data/app/views/manifestations/show.mobile.erb +20 -0
  230. data/app/views/manifestations/show.mods.builder +6 -0
  231. data/app/views/manifestations/show.rdf.builder +11 -0
  232. data/app/views/medium_of_performances/_form.html.erb +19 -0
  233. data/app/views/medium_of_performances/edit.html.erb +13 -0
  234. data/app/views/medium_of_performances/index.html.erb +44 -0
  235. data/app/views/medium_of_performances/new.html.erb +12 -0
  236. data/app/views/medium_of_performances/show.html.erb +29 -0
  237. data/app/views/owns/_form.html.erb +17 -0
  238. data/app/views/owns/edit.html.erb +13 -0
  239. data/app/views/owns/index.html.erb +46 -0
  240. data/app/views/owns/new.html.erb +12 -0
  241. data/app/views/owns/show.html.erb +25 -0
  242. data/app/views/patron_import_files/edit.html.erb +25 -0
  243. data/app/views/patron_import_files/index.html.erb +40 -0
  244. data/app/views/patron_import_files/new.html.erb +35 -0
  245. data/app/views/patron_import_files/show.html.erb +69 -0
  246. data/app/views/patron_import_results/index.csv.erb +3 -0
  247. data/app/views/patron_import_results/index.html.erb +52 -0
  248. data/app/views/patron_import_results/show.html.erb +38 -0
  249. data/app/views/patron_relationship_types/_form.html.erb +19 -0
  250. data/app/views/patron_relationship_types/edit.html.erb +13 -0
  251. data/app/views/patron_relationship_types/index.html.erb +43 -0
  252. data/app/views/patron_relationship_types/new.html.erb +12 -0
  253. data/app/views/patron_relationship_types/show.html.erb +29 -0
  254. data/app/views/patron_relationships/_form.html.erb +31 -0
  255. data/app/views/patron_relationships/edit.html.erb +13 -0
  256. data/app/views/patron_relationships/index.html.erb +34 -0
  257. data/app/views/patron_relationships/new.html.erb +12 -0
  258. data/app/views/patron_relationships/show.html.erb +24 -0
  259. data/app/views/patron_types/_form.html.erb +19 -0
  260. data/app/views/patron_types/edit.html.erb +13 -0
  261. data/app/views/patron_types/index.html.erb +43 -0
  262. data/app/views/patron_types/new.html.erb +12 -0
  263. data/app/views/patron_types/show.html.erb +29 -0
  264. data/app/views/patrons/_expression_list.html.erb +20 -0
  265. data/app/views/patrons/_form.html.erb +153 -0
  266. data/app/views/patrons/_form_family_name_first.html.erb +8 -0
  267. data/app/views/patrons/_form_family_name_last.html.erb +8 -0
  268. data/app/views/patrons/_history_list.html.erb +12 -0
  269. data/app/views/patrons/_index.html.erb +38 -0
  270. data/app/views/patrons/_index_expression.html.erb +58 -0
  271. data/app/views/patrons/_index_manifestation.html.erb +58 -0
  272. data/app/views/patrons/_index_patron.html.erb +71 -0
  273. data/app/views/patrons/_index_patron_merge_list.html.erb +53 -0
  274. data/app/views/patrons/_index_work.html.erb +63 -0
  275. data/app/views/patrons/_manifestation_list.html.erb +19 -0
  276. data/app/views/patrons/_patron.html.erb +17 -0
  277. data/app/views/patrons/_patron_list.html.erb +18 -0
  278. data/app/views/patrons/_work_list.html.erb +14 -0
  279. data/app/views/patrons/edit.html.erb +16 -0
  280. data/app/views/patrons/index.atom.builder +10 -0
  281. data/app/views/patrons/index.html.erb +14 -0
  282. data/app/views/patrons/index.mobile.erb +23 -0
  283. data/app/views/patrons/index.rss.builder +34 -0
  284. data/app/views/patrons/new.html.erb +12 -0
  285. data/app/views/patrons/show.html.erb +204 -0
  286. data/app/views/patrons/show.js.erb +3 -0
  287. data/app/views/patrons/show.mobile.erb +121 -0
  288. data/app/views/picture_files/_index.html.erb +52 -0
  289. data/app/views/picture_files/_index_event.html.erb +53 -0
  290. data/app/views/picture_files/_index_manifestation.html.erb +55 -0
  291. data/app/views/picture_files/_index_patron.html.erb +55 -0
  292. data/app/views/picture_files/_index_shelf.html.erb +53 -0
  293. data/app/views/picture_files/_link.html.erb +3 -0
  294. data/app/views/picture_files/edit.html.erb +56 -0
  295. data/app/views/picture_files/index.html.erb +11 -0
  296. data/app/views/picture_files/new.html.erb +33 -0
  297. data/app/views/picture_files/show.html.erb +67 -0
  298. data/app/views/produce_types/_form.html.erb +19 -0
  299. data/app/views/produce_types/edit.html.erb +13 -0
  300. data/app/views/produce_types/index.html.erb +43 -0
  301. data/app/views/produce_types/new.html.erb +12 -0
  302. data/app/views/produce_types/show.html.erb +29 -0
  303. data/app/views/produces/_form.html.erb +32 -0
  304. data/app/views/produces/_index.html.erb +36 -0
  305. data/app/views/produces/_index_manifestation.html.erb +49 -0
  306. data/app/views/produces/_index_patron.html.erb +40 -0
  307. data/app/views/produces/edit.html.erb +13 -0
  308. data/app/views/produces/index.html.erb +7 -0
  309. data/app/views/produces/new.html.erb +17 -0
  310. data/app/views/produces/show.html.erb +24 -0
  311. data/app/views/realize_types/_form.html.erb +19 -0
  312. data/app/views/realize_types/edit.html.erb +13 -0
  313. data/app/views/realize_types/index.html.erb +43 -0
  314. data/app/views/realize_types/new.html.erb +12 -0
  315. data/app/views/realize_types/show.html.erb +29 -0
  316. data/app/views/realizes/_form.html.erb +32 -0
  317. data/app/views/realizes/_index.html.erb +36 -0
  318. data/app/views/realizes/_index_expression.html.erb +49 -0
  319. data/app/views/realizes/_index_patron.html.erb +40 -0
  320. data/app/views/realizes/edit.html.erb +13 -0
  321. data/app/views/realizes/index.html.erb +7 -0
  322. data/app/views/realizes/new.html.erb +17 -0
  323. data/app/views/realizes/show.html.erb +24 -0
  324. data/app/views/resource_import_files/_show_object_list.html.erb +26 -0
  325. data/app/views/resource_import_files/edit.html.erb +25 -0
  326. data/app/views/resource_import_files/index.html.erb +40 -0
  327. data/app/views/resource_import_files/new.html.erb +37 -0
  328. data/app/views/resource_import_files/show.html.erb +69 -0
  329. data/app/views/resource_import_results/index.csv.erb +4 -0
  330. data/app/views/resource_import_results/index.html.erb +52 -0
  331. data/app/views/resource_import_results/show.html.erb +38 -0
  332. data/app/views/series_has_manifestations/_form.html.erb +27 -0
  333. data/app/views/series_has_manifestations/edit.html.erb +15 -0
  334. data/app/views/series_has_manifestations/index.html.erb +34 -0
  335. data/app/views/series_has_manifestations/new.html.erb +14 -0
  336. data/app/views/series_has_manifestations/show.html.erb +23 -0
  337. data/app/views/series_statements/_form.html.erb +57 -0
  338. data/app/views/series_statements/_index.html.erb +55 -0
  339. data/app/views/series_statements/_index_manifestation.html.erb +59 -0
  340. data/app/views/series_statements/_index_series_statement_merge_list.html.erb +53 -0
  341. data/app/views/series_statements/_manifestation_list.html.erb +17 -0
  342. data/app/views/series_statements/_merge.html.erb +27 -0
  343. data/app/views/series_statements/_refine_search_form.html.erb +9 -0
  344. data/app/views/series_statements/_tab_menu.html.erb +3 -0
  345. data/app/views/series_statements/edit.html.erb +13 -0
  346. data/app/views/series_statements/index.html.erb +7 -0
  347. data/app/views/series_statements/new.html.erb +12 -0
  348. data/app/views/series_statements/show.html.erb +65 -0
  349. data/app/views/series_statements/show.js.erb +1 -0
  350. data/config/locales/translation_en.yml +5 -0
  351. data/config/locales/translation_ja.yml +5 -0
  352. data/config/routes.rb +100 -0
  353. data/db/migrate/001_create_patrons.rb +53 -0
  354. data/db/migrate/005_create_manifestations.rb +56 -0
  355. data/db/migrate/006_create_items.rb +28 -0
  356. data/db/migrate/012_create_owns.rb +12 -0
  357. data/db/migrate/015_create_creates.rb +12 -0
  358. data/db/migrate/047_create_produces.rb +12 -0
  359. data/db/migrate/073_create_carrier_types.rb +11 -0
  360. data/db/migrate/112_create_frequencies.rb +12 -0
  361. data/db/migrate/117_create_form_of_works.rb +12 -0
  362. data/db/migrate/125_create_donates.rb +12 -0
  363. data/db/migrate/20080830154109_create_realizes.rb +13 -0
  364. data/db/migrate/20080830172106_create_exemplifies.rb +13 -0
  365. data/db/migrate/20080905191442_create_patron_types.rb +12 -0
  366. data/db/migrate/20081025083323_create_countries.rb +28 -0
  367. data/db/migrate/20081025083905_create_languages.rb +23 -0
  368. data/db/migrate/20081027150907_create_picture_files.rb +15 -0
  369. data/db/migrate/20081028083142_create_patron_import_files.rb +22 -0
  370. data/db/migrate/20081028083208_create_resource_import_files.rb +22 -0
  371. data/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +15 -0
  372. data/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
  373. data/db/migrate/20090719201843_create_extents.rb +12 -0
  374. data/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
  375. data/db/migrate/20090720091429_create_content_types.rb +12 -0
  376. data/db/migrate/20090812151902_create_patron_relationship_types.rb +12 -0
  377. data/db/migrate/20091012101112_add_dcndl_schema.rb +27 -0
  378. data/db/migrate/20091025080447_create_licenses.rb +12 -0
  379. data/db/migrate/20091214131723_create_series_statements.rb +13 -0
  380. data/db/migrate/20100129142347_create_import_requests.rb +15 -0
  381. data/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb +13 -0
  382. data/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb +10 -0
  383. data/db/migrate/20100525124311_create_manifestation_relationships.rb +13 -0
  384. data/db/migrate/20100606073747_create_patron_relationships.rb +13 -0
  385. data/db/migrate/20100607044753_create_manifestation_relationship_types.rb +12 -0
  386. data/db/migrate/20100814091104_add_position_to_patron_relationship.rb +11 -0
  387. data/db/migrate/20100925043847_create_resource_import_results.rb +15 -0
  388. data/db/migrate/20100925074559_create_patron_import_results.rb +12 -0
  389. data/db/migrate/20101212070145_add_acquired_at_to_item.rb +9 -0
  390. data/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +9 -0
  391. data/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +11 -0
  392. data/db/migrate/20110425133109_add_issn_to_series_statement.rb +9 -0
  393. data/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
  394. data/db/migrate/20110618091240_add_periodical_to_series_statement.rb +9 -0
  395. data/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +9 -0
  396. data/db/migrate/20110620173525_add_bookstore_id_to_item.rb +11 -0
  397. data/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
  398. data/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
  399. data/db/migrate/20110820131417_create_series_has_manifestations.rb +13 -0
  400. data/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +13 -0
  401. data/db/migrate/20110916091020_add_volume_number_to_manifestation.rb +13 -0
  402. data/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb +10 -0
  403. data/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +13 -0
  404. data/db/migrate/20110918162329_add_note_to_series_statement.rb +9 -0
  405. data/db/migrate/20111009183423_add_ndc_to_manifestation.rb +9 -0
  406. data/db/migrate/20111124110059_create_create_types.rb +12 -0
  407. data/db/migrate/20111124110319_create_realize_types.rb +12 -0
  408. data/db/migrate/20111124110355_create_produce_types.rb +12 -0
  409. data/db/migrate/20111124112131_add_create_type_to_create.rb +7 -0
  410. data/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +6 -0
  411. data/db/migrate/20120129020544_add_budget_type_id_to_item.rb +6 -0
  412. data/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
  413. data/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
  414. data/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +5 -0
  415. data/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +5 -0
  416. data/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
  417. data/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +5 -0
  418. data/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
  419. data/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +5 -0
  420. data/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +9 -0
  421. data/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +9 -0
  422. data/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
  423. data/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
  424. data/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +5 -0
  425. data/lib/enju_biblio/engine.rb +23 -0
  426. data/lib/enju_biblio/expire_editable_fragment.rb +30 -0
  427. data/lib/enju_biblio/expire_fragment_cache.rb +17 -0
  428. data/lib/enju_biblio/import_file.rb +13 -0
  429. data/lib/enju_biblio/master_model.rb +19 -0
  430. data/lib/enju_biblio/url_validator.rb +10 -0
  431. data/lib/enju_biblio/version.rb +3 -0
  432. data/lib/enju_biblio.rb +57 -0
  433. data/lib/tasks/enju_biblio_tasks.rake +4 -0
  434. data/spec/cassette_library/enju_ndl/manifestation.yml +523 -0
  435. data/spec/cassette_library/enju_ndl/ndl_search.yml +1140 -0
  436. data/spec/controllers/content_types_controller_spec.rb +445 -0
  437. data/spec/controllers/countries_controller_spec.rb +454 -0
  438. data/spec/controllers/create_types_controller_spec.rb +167 -0
  439. data/spec/controllers/creates_controller_spec.rb +450 -0
  440. data/spec/controllers/donates_controller_spec.rb +439 -0
  441. data/spec/controllers/exemplifies_controller_spec.rb +446 -0
  442. data/spec/controllers/extents_controller_spec.rb +445 -0
  443. data/spec/controllers/form_of_works_controller_spec.rb +445 -0
  444. data/spec/controllers/frequencies_controller_spec.rb +445 -0
  445. data/spec/controllers/import_requests_controller_spec.rb +448 -0
  446. data/spec/controllers/items_controller_spec.rb +549 -0
  447. data/spec/controllers/languages_controller_spec.rb +316 -0
  448. data/spec/controllers/licenses_controller_spec.rb +445 -0
  449. data/spec/controllers/manifestation_relationship_types_controller_spec.rb +445 -0
  450. data/spec/controllers/manifestation_relationships_controller_spec.rb +446 -0
  451. data/spec/controllers/manifestations_controller_spec.rb +722 -0
  452. data/spec/controllers/medium_of_performances_controller_spec.rb +445 -0
  453. data/spec/controllers/owns_controller_spec.rb +446 -0
  454. data/spec/controllers/patron_relationship_types_controller_spec.rb +445 -0
  455. data/spec/controllers/patron_relationships_controller_spec.rb +446 -0
  456. data/spec/controllers/patron_types_controller_spec.rb +447 -0
  457. data/spec/controllers/patrons_controller_spec.rb +636 -0
  458. data/spec/controllers/picture_files_controller_spec.rb +442 -0
  459. data/spec/controllers/produce_types_controller_spec.rb +166 -0
  460. data/spec/controllers/produces_controller_spec.rb +446 -0
  461. data/spec/controllers/realize_types_controller_spec.rb +166 -0
  462. data/spec/controllers/realizes_controller_spec.rb +447 -0
  463. data/spec/controllers/resource_import_files_controller_spec.rb +292 -0
  464. data/spec/controllers/resource_import_results_controller_spec.rb +137 -0
  465. data/spec/controllers/series_has_manifestations_controller_spec.rb +443 -0
  466. data/spec/controllers/series_statements_controller_spec.rb +441 -0
  467. data/spec/dummy/README.rdoc +261 -0
  468. data/spec/dummy/Rakefile +7 -0
  469. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  470. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  471. data/spec/dummy/app/controllers/application_controller.rb +176 -0
  472. data/spec/dummy/app/helpers/application_helper.rb +227 -0
  473. data/spec/dummy/app/mailers/notifier.rb +36 -0
  474. data/spec/dummy/app/models/ability.rb +184 -0
  475. data/spec/dummy/app/models/library_group.rb +86 -0
  476. data/spec/dummy/app/models/role.rb +46 -0
  477. data/spec/dummy/app/models/user.rb +94 -0
  478. data/spec/dummy/app/models/user_group.rb +40 -0
  479. data/spec/dummy/app/models/user_has_role.rb +5 -0
  480. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  481. data/spec/dummy/app/views/page/403.html.erb +9 -0
  482. data/spec/dummy/app/views/page/403.mobile.erb +5 -0
  483. data/spec/dummy/app/views/page/403.xml.erb +4 -0
  484. data/spec/dummy/app/views/page/404.html.erb +9 -0
  485. data/spec/dummy/app/views/page/404.mobile.erb +5 -0
  486. data/spec/dummy/app/views/page/404.xml.erb +4 -0
  487. data/spec/dummy/config/application.rb +57 -0
  488. data/spec/dummy/config/boot.rb +10 -0
  489. data/spec/dummy/config/configatron/defaults.rb +28 -0
  490. data/spec/dummy/config/configatron/development.rb +4 -0
  491. data/spec/dummy/config/configatron/production.rb +12 -0
  492. data/spec/dummy/config/configatron/production.rb.sample +12 -0
  493. data/spec/dummy/config/configatron/test.rb +7 -0
  494. data/spec/dummy/config/database.yml +25 -0
  495. data/spec/dummy/config/environment.rb +5 -0
  496. data/spec/dummy/config/environments/development.rb +37 -0
  497. data/spec/dummy/config/environments/production.rb +67 -0
  498. data/spec/dummy/config/environments/test.rb +37 -0
  499. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  500. data/spec/dummy/config/initializers/configatron.rb +2 -0
  501. data/spec/dummy/config/initializers/devise.rb +205 -0
  502. data/spec/dummy/config/initializers/inflections.rb +16 -0
  503. data/spec/dummy/config/initializers/mime_types.rb +10 -0
  504. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  505. data/spec/dummy/config/initializers/session_store.rb +8 -0
  506. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  507. data/spec/dummy/config/locales/active_support_en.yml +36 -0
  508. data/spec/dummy/config/locales/en.yml +5 -0
  509. data/spec/dummy/config/locales/ja.yml +149 -0
  510. data/spec/dummy/config/routes.rb +60 -0
  511. data/spec/dummy/config.ru +4 -0
  512. data/spec/dummy/db/development.sqlite3 +0 -0
  513. data/spec/dummy/db/migrate/032_create_checkins.rb +17 -0
  514. data/spec/dummy/db/migrate/033_create_checkouts.rb +25 -0
  515. data/spec/dummy/db/migrate/035_create_reserves.rb +27 -0
  516. data/spec/dummy/db/migrate/055_create_bookmarks.rb +22 -0
  517. data/spec/dummy/db/migrate/059_create_libraries.rb +28 -0
  518. data/spec/dummy/db/migrate/069_create_shelves.rb +15 -0
  519. data/spec/dummy/db/migrate/077_create_user_groups.rb +16 -0
  520. data/spec/dummy/db/migrate/080_create_library_groups.rb +20 -0
  521. data/spec/dummy/db/migrate/113_create_events.rb +23 -0
  522. data/spec/dummy/db/migrate/114_create_event_categories.rb +16 -0
  523. data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
  524. data/spec/dummy/db/migrate/121_create_checked_items.rb +17 -0
  525. data/spec/dummy/db/migrate/124_create_bookstores.rb +17 -0
  526. data/spec/dummy/db/migrate/127_create_use_restrictions.rb +16 -0
  527. data/spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb +16 -0
  528. data/spec/dummy/db/migrate/130_create_request_status_types.rb +12 -0
  529. data/spec/dummy/db/migrate/131_create_request_types.rb +12 -0
  530. data/spec/dummy/db/migrate/132_create_circulation_statuses.rb +16 -0
  531. data/spec/dummy/db/migrate/149_create_message_templates.rb +18 -0
  532. data/spec/dummy/db/migrate/154_create_messages.rb +24 -0
  533. data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +20 -0
  534. data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +17 -0
  535. data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +27 -0
  536. data/spec/dummy/db/migrate/20081030023412_create_checkout_types.rb +17 -0
  537. data/spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb +25 -0
  538. data/spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb +18 -0
  539. data/spec/dummy/db/migrate/20081117143156_create_inventory_files.rb +18 -0
  540. data/spec/dummy/db/migrate/20081117143455_create_inventories.rb +17 -0
  541. data/spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb +17 -0
  542. data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +16 -0
  543. data/spec/dummy/db/migrate/20081212151614_create_bookmark_stats.rb +16 -0
  544. data/spec/dummy/db/migrate/20081212151820_create_bookmark_stat_has_manifestations.rb +13 -0
  545. data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +16 -0
  546. data/spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb +17 -0
  547. data/spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb +17 -0
  548. data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +16 -0
  549. data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +16 -0
  550. data/spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb +17 -0
  551. data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +27 -0
  552. data/spec/dummy/db/migrate/20090519203307_create_participates.rb +17 -0
  553. data/spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb +15 -0
  554. data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +21 -0
  555. data/spec/dummy/db/migrate/20091202124834_create_versions.rb +18 -0
  556. data/spec/dummy/db/migrate/20100222124420_add_allow_bookmark_external_url_to_library_group.rb +9 -0
  557. data/spec/dummy/db/migrate/20100525171356_acts_as_taggable_on_migration.rb +30 -0
  558. data/spec/dummy/db/migrate/20100527113752_create_delayed_jobs.rb +21 -0
  559. data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +15 -0
  560. data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +9 -0
  561. data/spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb +9 -0
  562. data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +13 -0
  563. data/spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb +9 -0
  564. data/spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb +9 -0
  565. data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +13 -0
  566. data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +11 -0
  567. data/spec/dummy/db/migrate/20111201121844_create_roles.rb +12 -0
  568. data/spec/dummy/db/migrate/20111201155456_create_users.rb +16 -0
  569. data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +44 -0
  570. data/spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb +10 -0
  571. data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +5 -0
  572. data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +6 -0
  573. data/spec/dummy/db/migrate/20111231145823_add_share_bookmarks_to_user.rb +5 -0
  574. data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +5 -0
  575. data/spec/dummy/db/migrate/20120105101944_add_queue_to_delayed_jobs.rb +9 -0
  576. data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +6 -0
  577. data/spec/dummy/db/migrate/20120129014038_create_budget_types.rb +12 -0
  578. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
  579. data/spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb +5 -0
  580. data/spec/dummy/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb +5 -0
  581. data/spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb +5 -0
  582. data/spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb +9 -0
  583. data/spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb +5 -0
  584. data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +5 -0
  585. data/spec/dummy/db/schema.rb +1240 -0
  586. data/spec/dummy/db/test.sqlite3 +0 -0
  587. data/spec/dummy/lib/enju_leaf/calculate_stat.rb +30 -0
  588. data/spec/dummy/lib/enju_leaf/localized_name.rb +15 -0
  589. data/spec/dummy/lib/enju_leaf/openurl.rb +156 -0
  590. data/spec/dummy/lib/enju_leaf/porta_cql.rb +283 -0
  591. data/spec/dummy/lib/enju_leaf/sru.rb +84 -0
  592. data/spec/dummy/lib/enju_leaf.rb +12 -0
  593. data/spec/dummy/lib/plugins/ext/event-calendar.rb +38 -0
  594. data/spec/dummy/lib/plugins/ext/sunspot/abstract_search.rb +12 -0
  595. data/spec/dummy/lib/plugins/ext/sunspot/dismax.rb +41 -0
  596. data/spec/dummy/lib/plugins/ext/sunspot/start_record.rb +55 -0
  597. data/spec/dummy/lib/plugins/ext/sunspot.rb +3 -0
  598. data/spec/dummy/lib/plugins/ext/will_paginate.rb +64 -0
  599. data/spec/dummy/lib/plugins/ext.rb +3 -0
  600. data/spec/dummy/lib/plugins.rb +2 -0
  601. data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_delete_file.tsv +8 -0
  602. data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_import_file_sample1.tsv +5 -0
  603. data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_import_file_sample3.tsv +5 -0
  604. data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_update_file.tsv +3 -0
  605. data/spec/dummy/private/system/picture_files/pictures/000/000/005/medium/spinner.gif +0 -0
  606. data/spec/dummy/private/system/picture_files/pictures/000/000/005/original/spinner.gif +0 -0
  607. data/spec/dummy/private/system/picture_files/pictures/000/000/005/thumb/spinner.gif +0 -0
  608. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/isbn_sample.txt +3 -0
  609. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/item_delete_file.tsv +11 -0
  610. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/item_update_file.tsv +4 -0
  611. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample1.tsv +19 -0
  612. data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample2.tsv +19 -0
  613. data/spec/dummy/public/404.html +26 -0
  614. data/spec/dummy/public/422.html +26 -0
  615. data/spec/dummy/public/500.html +25 -0
  616. data/spec/dummy/public/favicon.ico +0 -0
  617. data/spec/dummy/script/rails +6 -0
  618. data/spec/dummy/solr/conf/admin-extra.html +31 -0
  619. data/spec/dummy/solr/conf/elevate.xml +36 -0
  620. data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
  621. data/spec/dummy/solr/conf/protwords.txt +21 -0
  622. data/spec/dummy/solr/conf/schema.xml +244 -0
  623. data/spec/dummy/solr/conf/scripts.conf +24 -0
  624. data/spec/dummy/solr/conf/solrconfig.xml +934 -0
  625. data/spec/dummy/solr/conf/spellings.txt +2 -0
  626. data/spec/dummy/solr/conf/stopwords.txt +58 -0
  627. data/spec/dummy/solr/conf/synonyms.txt +31 -0
  628. data/spec/dummy/solr/data/test/index/_0.fdt +0 -0
  629. data/spec/dummy/solr/data/test/index/_0.fdx +0 -0
  630. data/spec/dummy/solr/data/test/index/_0.fnm +7 -0
  631. data/spec/dummy/solr/data/test/index/_0.frq +0 -0
  632. data/spec/dummy/solr/data/test/index/_0.nrm +1 -0
  633. data/spec/dummy/solr/data/test/index/_0.prx +0 -0
  634. data/spec/dummy/solr/data/test/index/_0.tii +0 -0
  635. data/spec/dummy/solr/data/test/index/_0.tis +0 -0
  636. data/spec/dummy/solr/data/test/index/_1.fdt +0 -0
  637. data/spec/dummy/solr/data/test/index/_1.fdx +0 -0
  638. data/spec/dummy/solr/data/test/index/_1.fnm +7 -0
  639. data/spec/dummy/solr/data/test/index/_1.frq +0 -0
  640. data/spec/dummy/solr/data/test/index/_1.nrm +1 -0
  641. data/spec/dummy/solr/data/test/index/_1.prx +0 -0
  642. data/spec/dummy/solr/data/test/index/_1.tii +0 -0
  643. data/spec/dummy/solr/data/test/index/_1.tis +0 -0
  644. data/spec/dummy/solr/data/test/index/_2.fdt +0 -0
  645. data/spec/dummy/solr/data/test/index/_2.fdx +0 -0
  646. data/spec/dummy/solr/data/test/index/_2.fnm +7 -0
  647. data/spec/dummy/solr/data/test/index/_2.frq +0 -0
  648. data/spec/dummy/solr/data/test/index/_2.nrm +1 -0
  649. data/spec/dummy/solr/data/test/index/_2.prx +0 -0
  650. data/spec/dummy/solr/data/test/index/_2.tii +0 -0
  651. data/spec/dummy/solr/data/test/index/_2.tis +0 -0
  652. data/spec/dummy/solr/data/test/index/_3.fdt +0 -0
  653. data/spec/dummy/solr/data/test/index/_3.fdx +0 -0
  654. data/spec/dummy/solr/data/test/index/_3.fnm +8 -0
  655. data/spec/dummy/solr/data/test/index/_3.frq +0 -0
  656. data/spec/dummy/solr/data/test/index/_3.nrm +1 -0
  657. data/spec/dummy/solr/data/test/index/_3.prx +0 -0
  658. data/spec/dummy/solr/data/test/index/_3.tii +0 -0
  659. data/spec/dummy/solr/data/test/index/_3.tis +0 -0
  660. data/spec/dummy/solr/data/test/index/_4.fdt +0 -0
  661. data/spec/dummy/solr/data/test/index/_4.fdx +0 -0
  662. data/spec/dummy/solr/data/test/index/_4.fnm +9 -0
  663. data/spec/dummy/solr/data/test/index/_4.frq +0 -0
  664. data/spec/dummy/solr/data/test/index/_4.nrm +1 -0
  665. data/spec/dummy/solr/data/test/index/_4.prx +0 -0
  666. data/spec/dummy/solr/data/test/index/_4.tii +0 -0
  667. data/spec/dummy/solr/data/test/index/_4.tis +0 -0
  668. data/spec/dummy/solr/data/test/index/_6.fdt +0 -0
  669. data/spec/dummy/solr/data/test/index/_6.fdx +0 -0
  670. data/spec/dummy/solr/data/test/index/_6.fnm +10 -0
  671. data/spec/dummy/solr/data/test/index/_6.frq +0 -0
  672. data/spec/dummy/solr/data/test/index/_6.nrm +1 -0
  673. data/spec/dummy/solr/data/test/index/_6.prx +0 -0
  674. data/spec/dummy/solr/data/test/index/_6.tii +0 -0
  675. data/spec/dummy/solr/data/test/index/_6.tis +0 -0
  676. data/spec/dummy/solr/data/test/index/_6_1.del +0 -0
  677. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  678. data/spec/dummy/solr/data/test/index/segments_8 +0 -0
  679. data/spec/dummy/solr/data/test/spellchecker/segments.gen +0 -0
  680. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  681. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  682. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  683. data/spec/factories/carrier_type.rb +5 -0
  684. data/spec/factories/content_type.rb +5 -0
  685. data/spec/factories/country.rb +8 -0
  686. data/spec/factories/create.rb +6 -0
  687. data/spec/factories/create_types.rb +9 -0
  688. data/spec/factories/donate.rb +6 -0
  689. data/spec/factories/exemplify.rb +6 -0
  690. data/spec/factories/extent.rb +5 -0
  691. data/spec/factories/form_of_work.rb +5 -0
  692. data/spec/factories/frequency.rb +5 -0
  693. data/spec/factories/import_request.rb +5 -0
  694. data/spec/factories/item.rb +7 -0
  695. data/spec/factories/language.rb +8 -0
  696. data/spec/factories/license.rb +5 -0
  697. data/spec/factories/manifestation.rb +6 -0
  698. data/spec/factories/manifestation_relationship.rb +6 -0
  699. data/spec/factories/manifestation_relationship_type.rb +5 -0
  700. data/spec/factories/medium_of_performance.rb +5 -0
  701. data/spec/factories/own.rb +6 -0
  702. data/spec/factories/patron.rb +13 -0
  703. data/spec/factories/patron_relationship.rb +6 -0
  704. data/spec/factories/patron_relationship_type.rb +5 -0
  705. data/spec/factories/patron_type.rb +5 -0
  706. data/spec/factories/produce.rb +6 -0
  707. data/spec/factories/produce_types.rb +9 -0
  708. data/spec/factories/realize.rb +6 -0
  709. data/spec/factories/realize_types.rb +9 -0
  710. data/spec/factories/series_has_manifestation.rb +6 -0
  711. data/spec/factories/series_statement.rb +5 -0
  712. data/spec/factories/user.rb +37 -0
  713. data/spec/fixtures/baskets.yml +80 -0
  714. data/spec/fixtures/bookstores.yml +107 -0
  715. data/spec/fixtures/budget_types.yml +29 -0
  716. data/spec/fixtures/carrier_type_has_checkout_types.yml +31 -0
  717. data/spec/fixtures/carrier_types.yml +51 -0
  718. data/spec/fixtures/checked_items.yml +35 -0
  719. data/spec/fixtures/checkins.yml +48 -0
  720. data/spec/fixtures/checkout_stat_has_manifestations.yml +24 -0
  721. data/spec/fixtures/checkout_stat_has_users.yml +24 -0
  722. data/spec/fixtures/checkout_types.yml +34 -0
  723. data/spec/fixtures/checkouts.yml +162 -0
  724. data/spec/fixtures/circulation_statuses.yml +136 -0
  725. data/spec/fixtures/content_types.yml +36 -0
  726. data/spec/fixtures/countries.yml +2059 -0
  727. data/spec/fixtures/create_types.yml +47 -0
  728. data/spec/fixtures/creates.yml +65 -0
  729. data/spec/fixtures/donates.yml +31 -0
  730. data/spec/fixtures/event_categories.yml +55 -0
  731. data/spec/fixtures/events.yml +142 -0
  732. data/spec/fixtures/exemplifies.yml +155 -0
  733. data/spec/fixtures/extents.yml +29 -0
  734. data/spec/fixtures/form_of_works.yml +39 -0
  735. data/spec/fixtures/frequencies.yml +85 -0
  736. data/spec/fixtures/import_requests.yml +27 -0
  737. data/spec/fixtures/inventory_files.yml +40 -0
  738. data/spec/fixtures/item_has_use_restrictions.yml +61 -0
  739. data/spec/fixtures/items.yml +257 -0
  740. data/spec/fixtures/languages.yml +1901 -0
  741. data/spec/fixtures/lending_policies.yml +92 -0
  742. data/spec/fixtures/libraries.yml +102 -0
  743. data/spec/fixtures/library_groups.yml +33 -0
  744. data/spec/fixtures/licenses.yml +29 -0
  745. data/spec/fixtures/manifestation_checkout_stats.yml +31 -0
  746. data/spec/fixtures/manifestation_relationship_types.yml +29 -0
  747. data/spec/fixtures/manifestation_relationships.yml +30 -0
  748. data/spec/fixtures/manifestation_reserve_stats.yml +31 -0
  749. data/spec/fixtures/manifestations.yml +2020 -0
  750. data/spec/fixtures/medium_of_performances.yml +29 -0
  751. data/spec/fixtures/message_requests.yml +30 -0
  752. data/spec/fixtures/message_templates.yml +70 -0
  753. data/spec/fixtures/messages.yml +62 -0
  754. data/spec/fixtures/owns.yml +26 -0
  755. data/spec/fixtures/patron_import_files.yml +47 -0
  756. data/spec/fixtures/patron_import_results.yml +29 -0
  757. data/spec/fixtures/patron_relationship_types.yml +34 -0
  758. data/spec/fixtures/patron_relationships.yml +25 -0
  759. data/spec/fixtures/patron_types.yml +35 -0
  760. data/spec/fixtures/patrons.yml +338 -0
  761. data/spec/fixtures/picture_files.yml +63 -0
  762. data/spec/fixtures/produce_types.yml +31 -0
  763. data/spec/fixtures/produces.yml +149 -0
  764. data/spec/fixtures/realize_types.yml +39 -0
  765. data/spec/fixtures/realizes.yml +86 -0
  766. data/spec/fixtures/request_status_types.yml +63 -0
  767. data/spec/fixtures/request_types.yml +55 -0
  768. data/spec/fixtures/reserve_stat_has_manifestations.yml +24 -0
  769. data/spec/fixtures/reserve_stat_has_users.yml +24 -0
  770. data/spec/fixtures/reserves.yml +158 -0
  771. data/spec/fixtures/resource_import_files.yml +47 -0
  772. data/spec/fixtures/resource_import_results.yml +29 -0
  773. data/spec/fixtures/roles.yml +21 -0
  774. data/spec/fixtures/series_has_manifestations.yml +35 -0
  775. data/spec/fixtures/series_statements.yml +45 -0
  776. data/spec/fixtures/shelves.yml +47 -0
  777. data/spec/fixtures/use_restrictions.yml +93 -0
  778. data/spec/fixtures/user_checkout_stats.yml +30 -0
  779. data/spec/fixtures/user_group_has_checkout_types.yml +111 -0
  780. data/spec/fixtures/user_groups.yml +51 -0
  781. data/spec/fixtures/user_has_roles.yml +41 -0
  782. data/spec/fixtures/user_reserve_stats.yml +30 -0
  783. data/spec/fixtures/users.yml +106 -0
  784. data/spec/models/carrier_type_spec.rb +25 -0
  785. data/spec/models/content_type_spec.rb +21 -0
  786. data/spec/models/country_spec.rb +22 -0
  787. data/spec/models/create_spec.rb +22 -0
  788. data/spec/models/create_type_spec.rb +21 -0
  789. data/spec/models/donate_spec.rb +19 -0
  790. data/spec/models/exemplify_spec.rb +29 -0
  791. data/spec/models/extent_spec.rb +21 -0
  792. data/spec/models/form_of_work_spec.rb +21 -0
  793. data/spec/models/frequency_spec.rb +24 -0
  794. data/spec/models/import_request_spec.rb +21 -0
  795. data/spec/models/item_spec.rb +70 -0
  796. data/spec/models/language_spec.rb +23 -0
  797. data/spec/models/license_spec.rb +21 -0
  798. data/spec/models/manifestation_relationship_spec.rb +21 -0
  799. data/spec/models/manifestation_relationship_type_spec.rb +21 -0
  800. data/spec/models/manifestation_spec.rb +292 -0
  801. data/spec/models/medium_of_performance_spec.rb +21 -0
  802. data/spec/models/own_spec.rb +20 -0
  803. data/spec/models/patron_import_file_spec.rb +96 -0
  804. data/spec/models/patron_import_result_spec.rb +21 -0
  805. data/spec/models/patron_relationship_spec.rb +21 -0
  806. data/spec/models/patron_relationship_type_spec.rb +21 -0
  807. data/spec/models/patron_spec.rb +103 -0
  808. data/spec/models/patron_type_spec.rb +21 -0
  809. data/spec/models/picture_file_spec.rb +29 -0
  810. data/spec/models/produce_spec.rb +22 -0
  811. data/spec/models/produce_type_spec.rb +21 -0
  812. data/spec/models/realize_spec.rb +22 -0
  813. data/spec/models/realize_type_spec.rb +21 -0
  814. data/spec/models/resource_import_file_spec.rb +166 -0
  815. data/spec/models/resource_import_result_spec.rb +21 -0
  816. data/spec/models/series_has_manifestation_spec.rb +21 -0
  817. data/spec/models/series_statement_spec.rb +38 -0
  818. data/spec/requests/create_types_spec.rb +11 -0
  819. data/spec/requests/items_spec.rb +9 -0
  820. data/spec/requests/manifestations_spec.rb +9 -0
  821. data/spec/requests/patrons_spec.rb +9 -0
  822. data/spec/requests/produce_types_spec.rb +11 -0
  823. data/spec/requests/realize_types_spec.rb +11 -0
  824. data/spec/routing/content_types_routing_spec.rb +35 -0
  825. data/spec/routing/create_types_routing_spec.rb +35 -0
  826. data/spec/routing/creates_routing_spec.rb +35 -0
  827. data/spec/routing/items_routing_spec.rb +35 -0
  828. data/spec/routing/licenses_routing_spec.rb +35 -0
  829. data/spec/routing/manifestation_relationship_types_routing_spec.rb +35 -0
  830. data/spec/routing/manifestation_relationships_routing_spec.rb +35 -0
  831. data/spec/routing/manifestations_routing_spec.rb +39 -0
  832. data/spec/routing/patron_relationship_types_routing_spec.rb +35 -0
  833. data/spec/routing/patron_relationships_routing_spec.rb +35 -0
  834. data/spec/routing/patrons_routing_spec.rb +35 -0
  835. data/spec/routing/produce_types_routing_spec.rb +35 -0
  836. data/spec/routing/realize_types_routing_spec.rb +35 -0
  837. data/spec/routing/realizes_routing_spec.rb +35 -0
  838. data/spec/routing/series_has_manifestations_routing_spec.rb +35 -0
  839. data/spec/spec_helper.rb +54 -0
  840. data/spec/support/controller_macros.rb +46 -0
  841. data/spec/support/devise.rb +4 -0
  842. data/spec/support/vcr.rb +9 -0
  843. data/spec/views/create_types/edit.html.erb_spec.rb +23 -0
  844. data/spec/views/create_types/index.html.erb_spec.rb +31 -0
  845. data/spec/views/create_types/new.html.erb_spec.rb +23 -0
  846. data/spec/views/create_types/show.html.erb_spec.rb +24 -0
  847. data/spec/views/creates/edit.html.erb_spec.rb +25 -0
  848. data/spec/views/creates/index.html.erb_spec.rb +25 -0
  849. data/spec/views/creates/new.html.erb_spec.rb +25 -0
  850. data/spec/views/creates/show.html.erb_spec.rb +19 -0
  851. data/spec/views/exemplifies/edit.html.erb_spec.rb +22 -0
  852. data/spec/views/exemplifies/index.html.erb_spec.rb +25 -0
  853. data/spec/views/exemplifies/new.html.erb_spec.rb +22 -0
  854. data/spec/views/exemplifies/show.html.erb_spec.rb +19 -0
  855. data/spec/views/manifestations/show.html.erb_spec.rb +16 -0
  856. data/spec/views/owns/edit.html.erb_spec.rb +22 -0
  857. data/spec/views/owns/index.html.erb_spec.rb +25 -0
  858. data/spec/views/owns/new.html.erb_spec.rb +22 -0
  859. data/spec/views/owns/show.html.erb_spec.rb +19 -0
  860. data/spec/views/produce_types/edit.html.erb_spec.rb +23 -0
  861. data/spec/views/produce_types/index.html.erb_spec.rb +31 -0
  862. data/spec/views/produce_types/new.html.erb_spec.rb +23 -0
  863. data/spec/views/produce_types/show.html.erb_spec.rb +24 -0
  864. data/spec/views/produces/edit.html.erb_spec.rb +26 -0
  865. data/spec/views/produces/index.html.erb_spec.rb +25 -0
  866. data/spec/views/produces/new.html.erb_spec.rb +26 -0
  867. data/spec/views/produces/show.html.erb_spec.rb +19 -0
  868. data/spec/views/realize_types/edit.html.erb_spec.rb +23 -0
  869. data/spec/views/realize_types/index.html.erb_spec.rb +31 -0
  870. data/spec/views/realize_types/new.html.erb_spec.rb +23 -0
  871. data/spec/views/realize_types/show.html.erb_spec.rb +24 -0
  872. data/spec/views/realizes/edit.html.erb_spec.rb +26 -0
  873. data/spec/views/realizes/index.html.erb_spec.rb +25 -0
  874. data/spec/views/realizes/new.html.erb_spec.rb +26 -0
  875. data/spec/views/realizes/show.html.erb_spec.rb +19 -0
  876. data/spec/views/series_has_manifestations/edit.html.erb_spec.rb +21 -0
  877. data/spec/views/series_has_manifestations/index.html.erb_spec.rb +31 -0
  878. data/spec/views/series_has_manifestations/new.html.erb_spec.rb +21 -0
  879. data/spec/views/series_has_manifestations/show.html.erb_spec.rb +21 -0
  880. metadata +1930 -0
@@ -0,0 +1,1240 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20120602141129) do
15
+
16
+ create_table "accepts", :force => true do |t|
17
+ t.integer "basket_id"
18
+ t.integer "item_id"
19
+ t.integer "librarian_id"
20
+ t.datetime "created_at", :null => false
21
+ t.datetime "updated_at", :null => false
22
+ end
23
+
24
+ add_index "accepts", ["basket_id"], :name => "index_accepts_on_basket_id"
25
+ add_index "accepts", ["item_id"], :name => "index_accepts_on_item_id"
26
+
27
+ create_table "baskets", :force => true do |t|
28
+ t.integer "user_id"
29
+ t.text "note"
30
+ t.integer "lock_version", :default => 0, :null => false
31
+ t.datetime "created_at", :null => false
32
+ t.datetime "updated_at", :null => false
33
+ end
34
+
35
+ add_index "baskets", ["user_id"], :name => "index_baskets_on_user_id"
36
+
37
+ create_table "bookmark_stat_has_manifestations", :force => true do |t|
38
+ t.integer "bookmark_stat_id", :null => false
39
+ t.integer "manifestation_id", :null => false
40
+ t.integer "bookmarks_count"
41
+ t.datetime "created_at", :null => false
42
+ t.datetime "updated_at", :null => false
43
+ end
44
+
45
+ add_index "bookmark_stat_has_manifestations", ["bookmark_stat_id"], :name => "index_bookmark_stat_has_manifestations_on_bookmark_stat_id"
46
+ add_index "bookmark_stat_has_manifestations", ["manifestation_id"], :name => "index_bookmark_stat_has_manifestations_on_manifestation_id"
47
+
48
+ create_table "bookmark_stats", :force => true do |t|
49
+ t.datetime "start_date"
50
+ t.datetime "end_date"
51
+ t.datetime "started_at"
52
+ t.datetime "completed_at"
53
+ t.text "note"
54
+ t.string "state"
55
+ t.datetime "created_at", :null => false
56
+ t.datetime "updated_at", :null => false
57
+ end
58
+
59
+ add_index "bookmark_stats", ["state"], :name => "index_bookmark_stats_on_state"
60
+
61
+ create_table "bookmarks", :force => true do |t|
62
+ t.integer "user_id", :null => false
63
+ t.integer "manifestation_id"
64
+ t.text "title"
65
+ t.string "url"
66
+ t.text "note"
67
+ t.boolean "shared"
68
+ t.datetime "created_at", :null => false
69
+ t.datetime "updated_at", :null => false
70
+ end
71
+
72
+ add_index "bookmarks", ["manifestation_id"], :name => "index_bookmarks_on_manifestation_id"
73
+ add_index "bookmarks", ["url"], :name => "index_bookmarks_on_url"
74
+ add_index "bookmarks", ["user_id"], :name => "index_bookmarks_on_user_id"
75
+
76
+ create_table "bookstores", :force => true do |t|
77
+ t.text "name", :null => false
78
+ t.string "zip_code"
79
+ t.text "address"
80
+ t.text "note"
81
+ t.string "telephone_number"
82
+ t.string "fax_number"
83
+ t.string "url"
84
+ t.integer "position"
85
+ t.datetime "deleted_at"
86
+ t.datetime "created_at", :null => false
87
+ t.datetime "updated_at", :null => false
88
+ end
89
+
90
+ create_table "budget_types", :force => true do |t|
91
+ t.string "name"
92
+ t.text "display_name"
93
+ t.text "note"
94
+ t.integer "position"
95
+ t.datetime "created_at", :null => false
96
+ t.datetime "updated_at", :null => false
97
+ end
98
+
99
+ create_table "carrier_type_has_checkout_types", :force => true do |t|
100
+ t.integer "carrier_type_id", :null => false
101
+ t.integer "checkout_type_id", :null => false
102
+ t.text "note"
103
+ t.integer "position"
104
+ t.datetime "created_at", :null => false
105
+ t.datetime "updated_at", :null => false
106
+ end
107
+
108
+ add_index "carrier_type_has_checkout_types", ["carrier_type_id"], :name => "index_carrier_type_has_checkout_types_on_m_form_id"
109
+ add_index "carrier_type_has_checkout_types", ["checkout_type_id"], :name => "index_carrier_type_has_checkout_types_on_checkout_type_id"
110
+
111
+ create_table "carrier_types", :force => true do |t|
112
+ t.string "name", :null => false
113
+ t.text "display_name"
114
+ t.text "note"
115
+ t.integer "position"
116
+ t.datetime "created_at", :null => false
117
+ t.datetime "updated_at", :null => false
118
+ end
119
+
120
+ create_table "checked_items", :force => true do |t|
121
+ t.integer "item_id", :null => false
122
+ t.integer "basket_id", :null => false
123
+ t.datetime "due_date", :null => false
124
+ t.datetime "created_at", :null => false
125
+ t.datetime "updated_at", :null => false
126
+ t.integer "librarian_id"
127
+ end
128
+
129
+ add_index "checked_items", ["basket_id"], :name => "index_checked_items_on_basket_id"
130
+ add_index "checked_items", ["item_id"], :name => "index_checked_items_on_item_id"
131
+
132
+ create_table "checkins", :force => true do |t|
133
+ t.integer "item_id", :null => false
134
+ t.integer "librarian_id"
135
+ t.integer "basket_id"
136
+ t.datetime "created_at", :null => false
137
+ t.datetime "updated_at", :null => false
138
+ end
139
+
140
+ add_index "checkins", ["basket_id"], :name => "index_checkins_on_basket_id"
141
+ add_index "checkins", ["item_id"], :name => "index_checkins_on_item_id"
142
+ add_index "checkins", ["librarian_id"], :name => "index_checkins_on_librarian_id"
143
+
144
+ create_table "checkout_stat_has_manifestations", :force => true do |t|
145
+ t.integer "manifestation_checkout_stat_id", :null => false
146
+ t.integer "manifestation_id", :null => false
147
+ t.integer "checkouts_count"
148
+ t.datetime "created_at", :null => false
149
+ t.datetime "updated_at", :null => false
150
+ end
151
+
152
+ add_index "checkout_stat_has_manifestations", ["manifestation_checkout_stat_id"], :name => "index_checkout_stat_has_manifestations_on_checkout_stat_id"
153
+ add_index "checkout_stat_has_manifestations", ["manifestation_id"], :name => "index_checkout_stat_has_manifestations_on_manifestation_id"
154
+
155
+ create_table "checkout_stat_has_users", :force => true do |t|
156
+ t.integer "user_checkout_stat_id", :null => false
157
+ t.integer "user_id", :null => false
158
+ t.integer "checkouts_count", :default => 0, :null => false
159
+ t.datetime "created_at", :null => false
160
+ t.datetime "updated_at", :null => false
161
+ end
162
+
163
+ add_index "checkout_stat_has_users", ["user_checkout_stat_id"], :name => "index_checkout_stat_has_users_on_user_checkout_stat_id"
164
+ add_index "checkout_stat_has_users", ["user_id"], :name => "index_checkout_stat_has_users_on_user_id"
165
+
166
+ create_table "checkout_types", :force => true do |t|
167
+ t.string "name", :null => false
168
+ t.text "display_name"
169
+ t.text "note"
170
+ t.integer "position"
171
+ t.datetime "created_at", :null => false
172
+ t.datetime "updated_at", :null => false
173
+ end
174
+
175
+ add_index "checkout_types", ["name"], :name => "index_checkout_types_on_name"
176
+
177
+ create_table "checkouts", :force => true do |t|
178
+ t.integer "user_id"
179
+ t.integer "item_id", :null => false
180
+ t.integer "checkin_id"
181
+ t.integer "librarian_id"
182
+ t.integer "basket_id"
183
+ t.datetime "due_date"
184
+ t.integer "checkout_renewal_count", :default => 0, :null => false
185
+ t.integer "lock_version", :default => 0, :null => false
186
+ t.datetime "created_at", :null => false
187
+ t.datetime "updated_at", :null => false
188
+ end
189
+
190
+ add_index "checkouts", ["basket_id"], :name => "index_checkouts_on_basket_id"
191
+ add_index "checkouts", ["checkin_id"], :name => "index_checkouts_on_checkin_id"
192
+ add_index "checkouts", ["item_id", "basket_id"], :name => "index_checkouts_on_item_id_and_basket_id", :unique => true
193
+ add_index "checkouts", ["item_id"], :name => "index_checkouts_on_item_id"
194
+ add_index "checkouts", ["librarian_id"], :name => "index_checkouts_on_librarian_id"
195
+ add_index "checkouts", ["user_id"], :name => "index_checkouts_on_user_id"
196
+
197
+ create_table "circulation_statuses", :force => true do |t|
198
+ t.string "name", :null => false
199
+ t.text "display_name"
200
+ t.text "note"
201
+ t.integer "position"
202
+ t.datetime "created_at", :null => false
203
+ t.datetime "updated_at", :null => false
204
+ end
205
+
206
+ create_table "content_types", :force => true do |t|
207
+ t.string "name", :null => false
208
+ t.text "display_name"
209
+ t.text "note"
210
+ t.integer "position"
211
+ t.datetime "created_at", :null => false
212
+ t.datetime "updated_at", :null => false
213
+ end
214
+
215
+ create_table "countries", :force => true do |t|
216
+ t.string "name", :null => false
217
+ t.text "display_name"
218
+ t.string "alpha_2"
219
+ t.string "alpha_3"
220
+ t.string "numeric_3"
221
+ t.text "note"
222
+ t.integer "position"
223
+ end
224
+
225
+ add_index "countries", ["alpha_2"], :name => "index_countries_on_alpha_2"
226
+ add_index "countries", ["alpha_3"], :name => "index_countries_on_alpha_3"
227
+ add_index "countries", ["name"], :name => "index_countries_on_name"
228
+ add_index "countries", ["numeric_3"], :name => "index_countries_on_numeric_3"
229
+
230
+ create_table "create_types", :force => true do |t|
231
+ t.string "name"
232
+ t.text "display_name"
233
+ t.text "note"
234
+ t.integer "position"
235
+ t.datetime "created_at", :null => false
236
+ t.datetime "updated_at", :null => false
237
+ end
238
+
239
+ create_table "creates", :force => true do |t|
240
+ t.integer "patron_id", :null => false
241
+ t.integer "work_id", :null => false
242
+ t.integer "position"
243
+ t.datetime "created_at", :null => false
244
+ t.datetime "updated_at", :null => false
245
+ t.integer "create_type_id"
246
+ end
247
+
248
+ add_index "creates", ["patron_id"], :name => "index_creates_on_patron_id"
249
+ add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
250
+
251
+ create_table "delayed_jobs", :force => true do |t|
252
+ t.integer "priority", :default => 0
253
+ t.integer "attempts", :default => 0
254
+ t.text "handler"
255
+ t.text "last_error"
256
+ t.datetime "run_at"
257
+ t.datetime "locked_at"
258
+ t.datetime "failed_at"
259
+ t.string "locked_by"
260
+ t.datetime "created_at", :null => false
261
+ t.datetime "updated_at", :null => false
262
+ t.string "queue"
263
+ end
264
+
265
+ add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
266
+
267
+ create_table "donates", :force => true do |t|
268
+ t.integer "patron_id", :null => false
269
+ t.integer "item_id", :null => false
270
+ t.datetime "created_at", :null => false
271
+ t.datetime "updated_at", :null => false
272
+ end
273
+
274
+ add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
275
+ add_index "donates", ["patron_id"], :name => "index_donates_on_patron_id"
276
+
277
+ create_table "event_categories", :force => true do |t|
278
+ t.string "name", :null => false
279
+ t.text "display_name"
280
+ t.text "note"
281
+ t.integer "position"
282
+ t.datetime "created_at", :null => false
283
+ t.datetime "updated_at", :null => false
284
+ end
285
+
286
+ create_table "event_import_files", :force => true do |t|
287
+ t.integer "parent_id"
288
+ t.string "content_type"
289
+ t.integer "size"
290
+ t.integer "user_id"
291
+ t.text "note"
292
+ t.datetime "executed_at"
293
+ t.string "state"
294
+ t.string "event_import_file_name"
295
+ t.string "event_import_content_type"
296
+ t.integer "event_import_file_size"
297
+ t.datetime "event_import_updated_at"
298
+ t.string "edit_mode"
299
+ t.datetime "created_at", :null => false
300
+ t.datetime "updated_at", :null => false
301
+ t.string "event_import_fingerprint"
302
+ t.text "error_message"
303
+ end
304
+
305
+ add_index "event_import_files", ["parent_id"], :name => "index_event_import_files_on_parent_id"
306
+ add_index "event_import_files", ["state"], :name => "index_event_import_files_on_state"
307
+ add_index "event_import_files", ["user_id"], :name => "index_event_import_files_on_user_id"
308
+
309
+ create_table "event_import_results", :force => true do |t|
310
+ t.integer "event_import_file_id"
311
+ t.integer "event_id"
312
+ t.text "body"
313
+ t.datetime "created_at", :null => false
314
+ t.datetime "updated_at", :null => false
315
+ end
316
+
317
+ create_table "events", :force => true do |t|
318
+ t.integer "library_id", :default => 1, :null => false
319
+ t.integer "event_category_id", :default => 1, :null => false
320
+ t.string "name"
321
+ t.text "note"
322
+ t.datetime "start_at"
323
+ t.datetime "end_at"
324
+ t.boolean "all_day", :default => false, :null => false
325
+ t.datetime "deleted_at"
326
+ t.text "display_name"
327
+ t.datetime "created_at", :null => false
328
+ t.datetime "updated_at", :null => false
329
+ end
330
+
331
+ add_index "events", ["event_category_id"], :name => "index_events_on_event_category_id"
332
+ add_index "events", ["library_id"], :name => "index_events_on_library_id"
333
+
334
+ create_table "exemplifies", :force => true do |t|
335
+ t.integer "manifestation_id", :null => false
336
+ t.integer "item_id", :null => false
337
+ t.integer "position"
338
+ t.datetime "created_at", :null => false
339
+ t.datetime "updated_at", :null => false
340
+ end
341
+
342
+ add_index "exemplifies", ["item_id"], :name => "index_exemplifies_on_item_id", :unique => true
343
+ add_index "exemplifies", ["manifestation_id"], :name => "index_exemplifies_on_manifestation_id"
344
+
345
+ create_table "extents", :force => true do |t|
346
+ t.string "name", :null => false
347
+ t.text "display_name"
348
+ t.text "note"
349
+ t.integer "position"
350
+ t.datetime "created_at", :null => false
351
+ t.datetime "updated_at", :null => false
352
+ end
353
+
354
+ create_table "form_of_works", :force => true do |t|
355
+ t.string "name", :null => false
356
+ t.text "display_name"
357
+ t.text "note"
358
+ t.integer "position"
359
+ t.datetime "created_at", :null => false
360
+ t.datetime "updated_at", :null => false
361
+ end
362
+
363
+ create_table "frequencies", :force => true do |t|
364
+ t.string "name", :null => false
365
+ t.text "display_name"
366
+ t.text "note"
367
+ t.integer "position"
368
+ t.datetime "created_at", :null => false
369
+ t.datetime "updated_at", :null => false
370
+ end
371
+
372
+ create_table "import_requests", :force => true do |t|
373
+ t.string "isbn"
374
+ t.string "state"
375
+ t.integer "manifestation_id"
376
+ t.integer "user_id"
377
+ t.datetime "created_at", :null => false
378
+ t.datetime "updated_at", :null => false
379
+ end
380
+
381
+ add_index "import_requests", ["isbn"], :name => "index_import_requests_on_isbn"
382
+ add_index "import_requests", ["manifestation_id"], :name => "index_import_requests_on_manifestation_id"
383
+ add_index "import_requests", ["user_id"], :name => "index_import_requests_on_user_id"
384
+
385
+ create_table "inventories", :force => true do |t|
386
+ t.integer "item_id"
387
+ t.integer "inventory_file_id"
388
+ t.text "note"
389
+ t.datetime "created_at", :null => false
390
+ t.datetime "updated_at", :null => false
391
+ end
392
+
393
+ add_index "inventories", ["inventory_file_id"], :name => "index_inventories_on_inventory_file_id"
394
+ add_index "inventories", ["item_id"], :name => "index_inventories_on_item_id"
395
+
396
+ create_table "inventory_files", :force => true do |t|
397
+ t.string "filename"
398
+ t.string "content_type"
399
+ t.integer "size"
400
+ t.integer "user_id"
401
+ t.text "note"
402
+ t.datetime "created_at", :null => false
403
+ t.datetime "updated_at", :null => false
404
+ t.string "inventory_file_name"
405
+ t.string "inventory_content_type"
406
+ t.integer "inventory_file_size"
407
+ t.datetime "inventory_updated_at"
408
+ t.string "inventory_fingerprint"
409
+ end
410
+
411
+ add_index "inventory_files", ["user_id"], :name => "index_inventory_files_on_user_id"
412
+
413
+ create_table "item_has_use_restrictions", :force => true do |t|
414
+ t.integer "item_id", :null => false
415
+ t.integer "use_restriction_id", :null => false
416
+ t.datetime "created_at", :null => false
417
+ t.datetime "updated_at", :null => false
418
+ end
419
+
420
+ add_index "item_has_use_restrictions", ["item_id"], :name => "index_item_has_use_restrictions_on_item_id"
421
+ add_index "item_has_use_restrictions", ["use_restriction_id"], :name => "index_item_has_use_restrictions_on_use_restriction_id"
422
+
423
+ create_table "items", :force => true do |t|
424
+ t.string "call_number"
425
+ t.string "item_identifier"
426
+ t.integer "circulation_status_id", :default => 5, :null => false
427
+ t.integer "checkout_type_id", :default => 1, :null => false
428
+ t.datetime "created_at", :null => false
429
+ t.datetime "updated_at", :null => false
430
+ t.datetime "deleted_at"
431
+ t.integer "shelf_id", :default => 1, :null => false
432
+ t.boolean "include_supplements", :default => false, :null => false
433
+ t.text "note"
434
+ t.string "url"
435
+ t.integer "price"
436
+ t.integer "lock_version", :default => 0, :null => false
437
+ t.integer "required_role_id", :default => 1, :null => false
438
+ t.string "state"
439
+ t.integer "required_score", :default => 0, :null => false
440
+ t.datetime "acquired_at"
441
+ t.integer "bookstore_id"
442
+ t.integer "budget_type_id"
443
+ end
444
+
445
+ add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
446
+ add_index "items", ["checkout_type_id"], :name => "index_items_on_checkout_type_id"
447
+ add_index "items", ["circulation_status_id"], :name => "index_items_on_circulation_status_id"
448
+ add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
449
+ add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
450
+ add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
451
+
452
+ create_table "languages", :force => true do |t|
453
+ t.string "name", :null => false
454
+ t.string "native_name"
455
+ t.text "display_name"
456
+ t.string "iso_639_1"
457
+ t.string "iso_639_2"
458
+ t.string "iso_639_3"
459
+ t.text "note"
460
+ t.integer "position"
461
+ end
462
+
463
+ add_index "languages", ["iso_639_1"], :name => "index_languages_on_iso_639_1"
464
+ add_index "languages", ["iso_639_2"], :name => "index_languages_on_iso_639_2"
465
+ add_index "languages", ["iso_639_3"], :name => "index_languages_on_iso_639_3"
466
+ add_index "languages", ["name"], :name => "index_languages_on_name", :unique => true
467
+
468
+ create_table "lending_policies", :force => true do |t|
469
+ t.integer "item_id", :null => false
470
+ t.integer "user_group_id", :null => false
471
+ t.integer "loan_period", :default => 0, :null => false
472
+ t.datetime "fixed_due_date"
473
+ t.integer "renewal", :default => 0, :null => false
474
+ t.decimal "fine", :default => 0.0, :null => false
475
+ t.text "note"
476
+ t.integer "position"
477
+ t.datetime "created_at", :null => false
478
+ t.datetime "updated_at", :null => false
479
+ end
480
+
481
+ add_index "lending_policies", ["item_id", "user_group_id"], :name => "index_lending_policies_on_item_id_and_user_group_id", :unique => true
482
+
483
+ create_table "libraries", :force => true do |t|
484
+ t.string "name", :null => false
485
+ t.text "display_name"
486
+ t.string "short_display_name", :null => false
487
+ t.string "zip_code"
488
+ t.text "street"
489
+ t.text "locality"
490
+ t.text "region"
491
+ t.string "telephone_number_1"
492
+ t.string "telephone_number_2"
493
+ t.string "fax_number"
494
+ t.text "note"
495
+ t.integer "call_number_rows", :default => 1, :null => false
496
+ t.string "call_number_delimiter", :default => "|", :null => false
497
+ t.integer "library_group_id", :default => 1, :null => false
498
+ t.integer "users_count", :default => 0, :null => false
499
+ t.integer "position"
500
+ t.integer "country_id"
501
+ t.datetime "created_at", :null => false
502
+ t.datetime "updated_at", :null => false
503
+ t.datetime "deleted_at"
504
+ t.string "isil"
505
+ end
506
+
507
+ add_index "libraries", ["library_group_id"], :name => "index_libraries_on_library_group_id"
508
+ add_index "libraries", ["name"], :name => "index_libraries_on_name", :unique => true
509
+
510
+ create_table "library_groups", :force => true do |t|
511
+ t.string "name", :null => false
512
+ t.text "display_name"
513
+ t.string "short_name", :null => false
514
+ t.string "email"
515
+ t.text "my_networks"
516
+ t.boolean "use_dsbl", :default => false, :null => false
517
+ t.text "dsbl_list"
518
+ t.text "login_banner"
519
+ t.text "note"
520
+ t.integer "country_id"
521
+ t.datetime "created_at", :null => false
522
+ t.datetime "updated_at", :null => false
523
+ t.boolean "allow_bookmark_external_url", :default => false, :null => false
524
+ t.string "url", :default => "http://localhost:3000/"
525
+ end
526
+
527
+ add_index "library_groups", ["short_name"], :name => "index_library_groups_on_short_name"
528
+
529
+ create_table "licenses", :force => true do |t|
530
+ t.string "name", :null => false
531
+ t.string "display_name"
532
+ t.text "note"
533
+ t.integer "position"
534
+ t.datetime "created_at", :null => false
535
+ t.datetime "updated_at", :null => false
536
+ end
537
+
538
+ create_table "manifestation_checkout_stats", :force => true do |t|
539
+ t.datetime "start_date"
540
+ t.datetime "end_date"
541
+ t.text "note"
542
+ t.string "state"
543
+ t.datetime "created_at", :null => false
544
+ t.datetime "updated_at", :null => false
545
+ t.datetime "started_at"
546
+ t.datetime "completed_at"
547
+ end
548
+
549
+ add_index "manifestation_checkout_stats", ["state"], :name => "index_manifestation_checkout_stats_on_state"
550
+
551
+ create_table "manifestation_relationship_types", :force => true do |t|
552
+ t.string "name", :null => false
553
+ t.text "display_name"
554
+ t.text "note"
555
+ t.integer "position"
556
+ t.datetime "created_at", :null => false
557
+ t.datetime "updated_at", :null => false
558
+ end
559
+
560
+ create_table "manifestation_relationships", :force => true do |t|
561
+ t.integer "parent_id"
562
+ t.integer "child_id"
563
+ t.integer "manifestation_relationship_type_id"
564
+ t.datetime "created_at", :null => false
565
+ t.datetime "updated_at", :null => false
566
+ t.integer "position"
567
+ end
568
+
569
+ add_index "manifestation_relationships", ["child_id"], :name => "index_manifestation_relationships_on_child_id"
570
+ add_index "manifestation_relationships", ["parent_id"], :name => "index_manifestation_relationships_on_parent_id"
571
+
572
+ create_table "manifestation_reserve_stats", :force => true do |t|
573
+ t.datetime "start_date"
574
+ t.datetime "end_date"
575
+ t.text "note"
576
+ t.string "state"
577
+ t.datetime "created_at", :null => false
578
+ t.datetime "updated_at", :null => false
579
+ t.datetime "started_at"
580
+ t.datetime "completed_at"
581
+ end
582
+
583
+ add_index "manifestation_reserve_stats", ["state"], :name => "index_manifestation_reserve_stats_on_state"
584
+
585
+ create_table "manifestations", :force => true do |t|
586
+ t.text "original_title", :null => false
587
+ t.text "title_alternative"
588
+ t.text "title_transcription"
589
+ t.string "classification_number"
590
+ t.string "manifestation_identifier"
591
+ t.datetime "date_of_publication"
592
+ t.datetime "date_copyrighted"
593
+ t.datetime "created_at", :null => false
594
+ t.datetime "updated_at", :null => false
595
+ t.datetime "deleted_at"
596
+ t.string "access_address"
597
+ t.integer "language_id", :default => 1, :null => false
598
+ t.integer "carrier_type_id", :default => 1, :null => false
599
+ t.integer "extent_id", :default => 1, :null => false
600
+ t.integer "start_page"
601
+ t.integer "end_page"
602
+ t.integer "height"
603
+ t.integer "width"
604
+ t.integer "depth"
605
+ t.string "isbn"
606
+ t.string "isbn10"
607
+ t.string "wrong_isbn"
608
+ t.string "nbn"
609
+ t.string "lccn"
610
+ t.string "oclc_number"
611
+ t.string "issn"
612
+ t.integer "price"
613
+ t.text "fulltext"
614
+ t.string "volume_number_string"
615
+ t.string "issue_number_string"
616
+ t.string "serial_number_string"
617
+ t.integer "edition"
618
+ t.text "note"
619
+ t.boolean "repository_content", :default => false, :null => false
620
+ t.integer "lock_version", :default => 0, :null => false
621
+ t.integer "required_role_id", :default => 1, :null => false
622
+ t.string "state"
623
+ t.integer "required_score", :default => 0, :null => false
624
+ t.integer "frequency_id", :default => 1, :null => false
625
+ t.boolean "subscription_master", :default => false, :null => false
626
+ t.string "attachment_file_name"
627
+ t.string "attachment_content_type"
628
+ t.integer "attachment_file_size"
629
+ t.datetime "attachment_updated_at"
630
+ t.text "title_alternative_transcription"
631
+ t.text "description"
632
+ t.text "abstract"
633
+ t.datetime "available_at"
634
+ t.datetime "valid_until"
635
+ t.datetime "date_submitted"
636
+ t.datetime "date_accepted"
637
+ t.datetime "date_caputured"
638
+ t.string "pub_date"
639
+ t.string "edition_string"
640
+ t.integer "volume_number"
641
+ t.integer "issue_number"
642
+ t.integer "serial_number"
643
+ t.string "ndc"
644
+ t.integer "content_type_id", :default => 1
645
+ t.integer "year_of_publication"
646
+ t.text "attachment_meta"
647
+ t.integer "month_of_publication"
648
+ end
649
+
650
+ add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
651
+ add_index "manifestations", ["carrier_type_id"], :name => "index_manifestations_on_carrier_type_id"
652
+ add_index "manifestations", ["frequency_id"], :name => "index_manifestations_on_frequency_id"
653
+ add_index "manifestations", ["isbn"], :name => "index_manifestations_on_isbn"
654
+ add_index "manifestations", ["issn"], :name => "index_manifestations_on_issn"
655
+ add_index "manifestations", ["lccn"], :name => "index_manifestations_on_lccn"
656
+ add_index "manifestations", ["manifestation_identifier"], :name => "index_manifestations_on_manifestation_identifier"
657
+ add_index "manifestations", ["nbn"], :name => "index_manifestations_on_nbn"
658
+ add_index "manifestations", ["oclc_number"], :name => "index_manifestations_on_oclc_number"
659
+ add_index "manifestations", ["required_role_id"], :name => "index_manifestations_on_required_role_id"
660
+ add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
661
+
662
+ create_table "medium_of_performances", :force => true do |t|
663
+ t.string "name", :null => false
664
+ t.text "display_name"
665
+ t.text "note"
666
+ t.integer "position"
667
+ t.datetime "created_at", :null => false
668
+ t.datetime "updated_at", :null => false
669
+ end
670
+
671
+ create_table "message_requests", :force => true do |t|
672
+ t.integer "sender_id"
673
+ t.integer "receiver_id"
674
+ t.integer "message_template_id"
675
+ t.datetime "sent_at"
676
+ t.datetime "deleted_at"
677
+ t.text "body"
678
+ t.string "state"
679
+ t.datetime "created_at", :null => false
680
+ t.datetime "updated_at", :null => false
681
+ end
682
+
683
+ add_index "message_requests", ["state"], :name => "index_message_requests_on_state"
684
+
685
+ create_table "message_templates", :force => true do |t|
686
+ t.string "status", :null => false
687
+ t.text "title", :null => false
688
+ t.text "body", :null => false
689
+ t.integer "position"
690
+ t.string "locale", :default => "en"
691
+ t.datetime "created_at", :null => false
692
+ t.datetime "updated_at", :null => false
693
+ end
694
+
695
+ add_index "message_templates", ["status"], :name => "index_message_templates_on_status", :unique => true
696
+
697
+ create_table "messages", :force => true do |t|
698
+ t.datetime "read_at"
699
+ t.integer "receiver_id"
700
+ t.integer "sender_id"
701
+ t.string "subject", :null => false
702
+ t.text "body"
703
+ t.integer "message_request_id"
704
+ t.string "state"
705
+ t.integer "parent_id"
706
+ t.datetime "created_at", :null => false
707
+ t.datetime "updated_at", :null => false
708
+ t.integer "lft"
709
+ t.integer "rgt"
710
+ t.integer "depth"
711
+ end
712
+
713
+ add_index "messages", ["message_request_id"], :name => "index_messages_on_message_request_id"
714
+ add_index "messages", ["parent_id"], :name => "index_messages_on_parent_id"
715
+ add_index "messages", ["receiver_id"], :name => "index_messages_on_receiver_id"
716
+ add_index "messages", ["sender_id"], :name => "index_messages_on_sender_id"
717
+
718
+ create_table "owns", :force => true do |t|
719
+ t.integer "patron_id", :null => false
720
+ t.integer "item_id", :null => false
721
+ t.integer "position"
722
+ t.datetime "created_at", :null => false
723
+ t.datetime "updated_at", :null => false
724
+ end
725
+
726
+ add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
727
+ add_index "owns", ["patron_id"], :name => "index_owns_on_patron_id"
728
+
729
+ create_table "participates", :force => true do |t|
730
+ t.integer "patron_id", :null => false
731
+ t.integer "event_id", :null => false
732
+ t.integer "position"
733
+ t.datetime "created_at", :null => false
734
+ t.datetime "updated_at", :null => false
735
+ end
736
+
737
+ add_index "participates", ["event_id"], :name => "index_participates_on_event_id"
738
+ add_index "participates", ["patron_id"], :name => "index_participates_on_patron_id"
739
+
740
+ create_table "patron_import_files", :force => true do |t|
741
+ t.integer "parent_id"
742
+ t.string "content_type"
743
+ t.integer "size"
744
+ t.integer "user_id"
745
+ t.text "note"
746
+ t.datetime "executed_at"
747
+ t.string "state"
748
+ t.string "patron_import_file_name"
749
+ t.string "patron_import_content_type"
750
+ t.integer "patron_import_file_size"
751
+ t.datetime "patron_import_updated_at"
752
+ t.datetime "created_at", :null => false
753
+ t.datetime "updated_at", :null => false
754
+ t.string "patron_import_fingerprint"
755
+ t.text "error_message"
756
+ t.string "edit_mode"
757
+ end
758
+
759
+ add_index "patron_import_files", ["parent_id"], :name => "index_patron_import_files_on_parent_id"
760
+ add_index "patron_import_files", ["state"], :name => "index_patron_import_files_on_state"
761
+ add_index "patron_import_files", ["user_id"], :name => "index_patron_import_files_on_user_id"
762
+
763
+ create_table "patron_import_results", :force => true do |t|
764
+ t.integer "patron_import_file_id"
765
+ t.integer "patron_id"
766
+ t.integer "user_id"
767
+ t.text "body"
768
+ t.datetime "created_at", :null => false
769
+ t.datetime "updated_at", :null => false
770
+ end
771
+
772
+ create_table "patron_relationship_types", :force => true do |t|
773
+ t.string "name", :null => false
774
+ t.text "display_name"
775
+ t.text "note"
776
+ t.integer "position"
777
+ t.datetime "created_at", :null => false
778
+ t.datetime "updated_at", :null => false
779
+ end
780
+
781
+ create_table "patron_relationships", :force => true do |t|
782
+ t.integer "parent_id"
783
+ t.integer "child_id"
784
+ t.integer "patron_relationship_type_id"
785
+ t.datetime "created_at", :null => false
786
+ t.datetime "updated_at", :null => false
787
+ t.integer "position"
788
+ end
789
+
790
+ add_index "patron_relationships", ["child_id"], :name => "index_patron_relationships_on_child_id"
791
+ add_index "patron_relationships", ["parent_id"], :name => "index_patron_relationships_on_parent_id"
792
+
793
+ create_table "patron_types", :force => true do |t|
794
+ t.string "name", :null => false
795
+ t.text "display_name"
796
+ t.text "note"
797
+ t.integer "position"
798
+ t.datetime "created_at", :null => false
799
+ t.datetime "updated_at", :null => false
800
+ end
801
+
802
+ create_table "patrons", :force => true do |t|
803
+ t.integer "user_id"
804
+ t.string "last_name"
805
+ t.string "middle_name"
806
+ t.string "first_name"
807
+ t.string "last_name_transcription"
808
+ t.string "middle_name_transcription"
809
+ t.string "first_name_transcription"
810
+ t.string "corporate_name"
811
+ t.string "corporate_name_transcription"
812
+ t.string "full_name"
813
+ t.text "full_name_transcription"
814
+ t.text "full_name_alternative"
815
+ t.datetime "created_at", :null => false
816
+ t.datetime "updated_at", :null => false
817
+ t.datetime "deleted_at"
818
+ t.string "zip_code_1"
819
+ t.string "zip_code_2"
820
+ t.text "address_1"
821
+ t.text "address_2"
822
+ t.text "address_1_note"
823
+ t.text "address_2_note"
824
+ t.string "telephone_number_1"
825
+ t.string "telephone_number_2"
826
+ t.string "fax_number_1"
827
+ t.string "fax_number_2"
828
+ t.text "other_designation"
829
+ t.text "place"
830
+ t.string "postal_code"
831
+ t.text "street"
832
+ t.text "locality"
833
+ t.text "region"
834
+ t.datetime "date_of_birth"
835
+ t.datetime "date_of_death"
836
+ t.integer "language_id", :default => 1, :null => false
837
+ t.integer "country_id", :default => 1, :null => false
838
+ t.integer "patron_type_id", :default => 1, :null => false
839
+ t.integer "lock_version", :default => 0, :null => false
840
+ t.text "note"
841
+ t.integer "required_role_id", :default => 1, :null => false
842
+ t.integer "required_score", :default => 0, :null => false
843
+ t.string "state"
844
+ t.text "email"
845
+ t.text "url"
846
+ t.text "full_name_alternative_transcription"
847
+ t.string "birth_date"
848
+ t.string "death_date"
849
+ end
850
+
851
+ add_index "patrons", ["country_id"], :name => "index_patrons_on_country_id"
852
+ add_index "patrons", ["full_name"], :name => "index_patrons_on_full_name"
853
+ add_index "patrons", ["language_id"], :name => "index_patrons_on_language_id"
854
+ add_index "patrons", ["required_role_id"], :name => "index_patrons_on_required_role_id"
855
+ add_index "patrons", ["user_id"], :name => "index_patrons_on_user_id", :unique => true
856
+
857
+ create_table "picture_files", :force => true do |t|
858
+ t.integer "picture_attachable_id"
859
+ t.string "picture_attachable_type"
860
+ t.string "content_type"
861
+ t.text "title"
862
+ t.string "thumbnail"
863
+ t.integer "position"
864
+ t.datetime "created_at", :null => false
865
+ t.datetime "updated_at", :null => false
866
+ t.string "picture_file_name"
867
+ t.string "picture_content_type"
868
+ t.integer "picture_file_size"
869
+ t.datetime "picture_updated_at"
870
+ t.text "picture_meta"
871
+ t.string "picture_fingerprint"
872
+ end
873
+
874
+ add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], :name => "index_picture_files_on_picture_attachable_id_and_type"
875
+
876
+ create_table "produce_types", :force => true do |t|
877
+ t.string "name"
878
+ t.text "display_name"
879
+ t.text "note"
880
+ t.integer "position"
881
+ t.datetime "created_at", :null => false
882
+ t.datetime "updated_at", :null => false
883
+ end
884
+
885
+ create_table "produces", :force => true do |t|
886
+ t.integer "patron_id", :null => false
887
+ t.integer "manifestation_id", :null => false
888
+ t.integer "position"
889
+ t.datetime "created_at", :null => false
890
+ t.datetime "updated_at", :null => false
891
+ t.integer "produce_type_id"
892
+ end
893
+
894
+ add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
895
+ add_index "produces", ["patron_id"], :name => "index_produces_on_patron_id"
896
+
897
+ create_table "realize_types", :force => true do |t|
898
+ t.string "name"
899
+ t.text "display_name"
900
+ t.text "note"
901
+ t.integer "position"
902
+ t.datetime "created_at", :null => false
903
+ t.datetime "updated_at", :null => false
904
+ end
905
+
906
+ create_table "realizes", :force => true do |t|
907
+ t.integer "patron_id", :null => false
908
+ t.integer "expression_id", :null => false
909
+ t.integer "position"
910
+ t.datetime "created_at", :null => false
911
+ t.datetime "updated_at", :null => false
912
+ t.integer "realize_type_id"
913
+ end
914
+
915
+ add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
916
+ add_index "realizes", ["patron_id"], :name => "index_realizes_on_patron_id"
917
+
918
+ create_table "request_status_types", :force => true do |t|
919
+ t.string "name", :null => false
920
+ t.text "display_name"
921
+ t.text "note"
922
+ t.integer "position"
923
+ t.datetime "created_at", :null => false
924
+ t.datetime "updated_at", :null => false
925
+ end
926
+
927
+ create_table "request_types", :force => true do |t|
928
+ t.string "name", :null => false
929
+ t.text "display_name"
930
+ t.text "note"
931
+ t.integer "position"
932
+ t.datetime "created_at", :null => false
933
+ t.datetime "updated_at", :null => false
934
+ end
935
+
936
+ create_table "reserve_stat_has_manifestations", :force => true do |t|
937
+ t.integer "manifestation_reserve_stat_id", :null => false
938
+ t.integer "manifestation_id", :null => false
939
+ t.integer "reserves_count"
940
+ t.datetime "created_at", :null => false
941
+ t.datetime "updated_at", :null => false
942
+ end
943
+
944
+ add_index "reserve_stat_has_manifestations", ["manifestation_id"], :name => "index_reserve_stat_has_manifestations_on_manifestation_id"
945
+ add_index "reserve_stat_has_manifestations", ["manifestation_reserve_stat_id"], :name => "index_reserve_stat_has_manifestations_on_m_reserve_stat_id"
946
+
947
+ create_table "reserve_stat_has_users", :force => true do |t|
948
+ t.integer "user_reserve_stat_id", :null => false
949
+ t.integer "user_id", :null => false
950
+ t.integer "reserves_count"
951
+ t.datetime "created_at", :null => false
952
+ t.datetime "updated_at", :null => false
953
+ end
954
+
955
+ add_index "reserve_stat_has_users", ["user_id"], :name => "index_reserve_stat_has_users_on_user_id"
956
+ add_index "reserve_stat_has_users", ["user_reserve_stat_id"], :name => "index_reserve_stat_has_users_on_user_reserve_stat_id"
957
+
958
+ create_table "reserves", :force => true do |t|
959
+ t.integer "user_id", :null => false
960
+ t.integer "manifestation_id", :null => false
961
+ t.integer "item_id"
962
+ t.integer "request_status_type_id", :null => false
963
+ t.datetime "checked_out_at"
964
+ t.datetime "created_at", :null => false
965
+ t.datetime "updated_at", :null => false
966
+ t.datetime "canceled_at"
967
+ t.datetime "expired_at"
968
+ t.datetime "deleted_at"
969
+ t.string "state"
970
+ t.boolean "expiration_notice_to_patron", :default => false
971
+ t.boolean "expiration_notice_to_library", :default => false
972
+ end
973
+
974
+ add_index "reserves", ["item_id"], :name => "index_reserves_on_item_id"
975
+ add_index "reserves", ["manifestation_id"], :name => "index_reserves_on_manifestation_id"
976
+ add_index "reserves", ["request_status_type_id"], :name => "index_reserves_on_request_status_type_id"
977
+ add_index "reserves", ["user_id"], :name => "index_reserves_on_user_id"
978
+
979
+ create_table "resource_import_files", :force => true do |t|
980
+ t.integer "parent_id"
981
+ t.string "content_type"
982
+ t.integer "size"
983
+ t.integer "user_id"
984
+ t.text "note"
985
+ t.datetime "executed_at"
986
+ t.string "state"
987
+ t.string "resource_import_file_name"
988
+ t.string "resource_import_content_type"
989
+ t.integer "resource_import_file_size"
990
+ t.datetime "resource_import_updated_at"
991
+ t.datetime "created_at", :null => false
992
+ t.datetime "updated_at", :null => false
993
+ t.string "edit_mode"
994
+ t.string "resource_import_fingerprint"
995
+ t.text "error_message"
996
+ end
997
+
998
+ add_index "resource_import_files", ["parent_id"], :name => "index_resource_import_files_on_parent_id"
999
+ add_index "resource_import_files", ["state"], :name => "index_resource_import_files_on_state"
1000
+ add_index "resource_import_files", ["user_id"], :name => "index_resource_import_files_on_user_id"
1001
+
1002
+ create_table "resource_import_results", :force => true do |t|
1003
+ t.integer "resource_import_file_id"
1004
+ t.integer "manifestation_id"
1005
+ t.integer "item_id"
1006
+ t.text "body"
1007
+ t.datetime "created_at", :null => false
1008
+ t.datetime "updated_at", :null => false
1009
+ end
1010
+
1011
+ add_index "resource_import_results", ["item_id"], :name => "index_resource_import_results_on_item_id"
1012
+ add_index "resource_import_results", ["manifestation_id"], :name => "index_resource_import_results_on_manifestation_id"
1013
+ add_index "resource_import_results", ["resource_import_file_id"], :name => "index_resource_import_results_on_resource_import_file_id"
1014
+
1015
+ create_table "roles", :force => true do |t|
1016
+ t.string "name"
1017
+ t.text "display_name"
1018
+ t.text "note"
1019
+ t.integer "position"
1020
+ t.datetime "created_at", :null => false
1021
+ t.datetime "updated_at", :null => false
1022
+ end
1023
+
1024
+ create_table "search_engines", :force => true do |t|
1025
+ t.string "name", :null => false
1026
+ t.text "display_name"
1027
+ t.string "url", :null => false
1028
+ t.text "base_url", :null => false
1029
+ t.text "http_method", :null => false
1030
+ t.text "query_param", :null => false
1031
+ t.text "additional_param"
1032
+ t.text "note"
1033
+ t.integer "position"
1034
+ t.datetime "created_at", :null => false
1035
+ t.datetime "updated_at", :null => false
1036
+ end
1037
+
1038
+ create_table "series_has_manifestations", :force => true do |t|
1039
+ t.integer "series_statement_id"
1040
+ t.integer "manifestation_id"
1041
+ t.integer "position"
1042
+ t.datetime "created_at", :null => false
1043
+ t.datetime "updated_at", :null => false
1044
+ end
1045
+
1046
+ add_index "series_has_manifestations", ["manifestation_id"], :name => "index_series_has_manifestations_on_manifestation_id"
1047
+ add_index "series_has_manifestations", ["series_statement_id"], :name => "index_series_has_manifestations_on_series_statement_id"
1048
+
1049
+ create_table "series_statement_merge_lists", :force => true do |t|
1050
+ t.string "title"
1051
+ t.datetime "created_at", :null => false
1052
+ t.datetime "updated_at", :null => false
1053
+ end
1054
+
1055
+ create_table "series_statement_merges", :force => true do |t|
1056
+ t.integer "series_statement_id", :null => false
1057
+ t.integer "series_statement_merge_list_id", :null => false
1058
+ t.datetime "created_at", :null => false
1059
+ t.datetime "updated_at", :null => false
1060
+ end
1061
+
1062
+ add_index "series_statement_merges", ["series_statement_id"], :name => "index_series_statement_merges_on_series_statement_id"
1063
+ add_index "series_statement_merges", ["series_statement_merge_list_id"], :name => "index_series_statement_merges_on_series_statement_merge_list_id"
1064
+
1065
+ create_table "series_statements", :force => true do |t|
1066
+ t.text "original_title"
1067
+ t.text "numbering"
1068
+ t.text "title_subseries"
1069
+ t.text "numbering_subseries"
1070
+ t.integer "position"
1071
+ t.datetime "created_at", :null => false
1072
+ t.datetime "updated_at", :null => false
1073
+ t.text "title_transcription"
1074
+ t.text "title_alternative"
1075
+ t.string "series_statement_identifier"
1076
+ t.string "issn"
1077
+ t.boolean "periodical"
1078
+ t.integer "root_manifestation_id"
1079
+ t.text "note"
1080
+ t.text "title_subseries_transcription"
1081
+ end
1082
+
1083
+ add_index "series_statements", ["root_manifestation_id"], :name => "index_series_statements_on_manifestation_id"
1084
+ add_index "series_statements", ["series_statement_identifier"], :name => "index_series_statements_on_series_statement_identifier"
1085
+
1086
+ create_table "shelves", :force => true do |t|
1087
+ t.string "name", :null => false
1088
+ t.text "display_name"
1089
+ t.text "note"
1090
+ t.integer "library_id", :default => 1, :null => false
1091
+ t.integer "items_count", :default => 0, :null => false
1092
+ t.integer "position"
1093
+ t.datetime "created_at", :null => false
1094
+ t.datetime "updated_at", :null => false
1095
+ t.datetime "deleted_at"
1096
+ t.boolean "closed", :default => false, :null => false
1097
+ end
1098
+
1099
+ add_index "shelves", ["library_id"], :name => "index_shelves_on_library_id"
1100
+
1101
+ create_table "taggings", :force => true do |t|
1102
+ t.integer "tag_id"
1103
+ t.integer "taggable_id"
1104
+ t.string "taggable_type"
1105
+ t.integer "tagger_id"
1106
+ t.string "tagger_type"
1107
+ t.string "context"
1108
+ t.datetime "created_at"
1109
+ end
1110
+
1111
+ add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id"
1112
+ add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context"
1113
+
1114
+ create_table "tags", :force => true do |t|
1115
+ t.string "name"
1116
+ t.string "name_transcription"
1117
+ t.datetime "created_at", :null => false
1118
+ t.datetime "updated_at", :null => false
1119
+ end
1120
+
1121
+ create_table "use_restrictions", :force => true do |t|
1122
+ t.string "name", :null => false
1123
+ t.text "display_name"
1124
+ t.text "note"
1125
+ t.integer "position"
1126
+ t.datetime "created_at", :null => false
1127
+ t.datetime "updated_at", :null => false
1128
+ end
1129
+
1130
+ create_table "user_checkout_stats", :force => true do |t|
1131
+ t.datetime "start_date"
1132
+ t.datetime "end_date"
1133
+ t.text "note"
1134
+ t.string "state"
1135
+ t.datetime "created_at", :null => false
1136
+ t.datetime "updated_at", :null => false
1137
+ t.datetime "started_at"
1138
+ t.datetime "completed_at"
1139
+ end
1140
+
1141
+ add_index "user_checkout_stats", ["state"], :name => "index_user_checkout_stats_on_state"
1142
+
1143
+ create_table "user_group_has_checkout_types", :force => true do |t|
1144
+ t.integer "user_group_id", :null => false
1145
+ t.integer "checkout_type_id", :null => false
1146
+ t.integer "checkout_limit", :default => 0, :null => false
1147
+ t.integer "checkout_period", :default => 0, :null => false
1148
+ t.integer "checkout_renewal_limit", :default => 0, :null => false
1149
+ t.integer "reservation_limit", :default => 0, :null => false
1150
+ t.integer "reservation_expired_period", :default => 7, :null => false
1151
+ t.boolean "set_due_date_before_closing_day", :default => false, :null => false
1152
+ t.datetime "fixed_due_date"
1153
+ t.text "note"
1154
+ t.integer "position"
1155
+ t.datetime "created_at", :null => false
1156
+ t.datetime "updated_at", :null => false
1157
+ t.integer "current_checkout_count"
1158
+ end
1159
+
1160
+ add_index "user_group_has_checkout_types", ["checkout_type_id"], :name => "index_user_group_has_checkout_types_on_checkout_type_id"
1161
+ add_index "user_group_has_checkout_types", ["user_group_id"], :name => "index_user_group_has_checkout_types_on_user_group_id"
1162
+
1163
+ create_table "user_groups", :force => true do |t|
1164
+ t.string "name"
1165
+ t.string "string"
1166
+ t.text "display_name"
1167
+ t.text "note"
1168
+ t.integer "position"
1169
+ t.datetime "created_at", :null => false
1170
+ t.datetime "updated_at", :null => false
1171
+ t.datetime "deleted_at"
1172
+ t.integer "valid_period_for_new_user", :default => 0, :null => false
1173
+ t.datetime "expired_at"
1174
+ t.integer "number_of_day_to_notify_overdue", :default => 1, :null => false
1175
+ t.integer "number_of_day_to_notify_due_date", :default => 7, :null => false
1176
+ t.integer "number_of_time_to_notify_overdue", :default => 3, :null => false
1177
+ end
1178
+
1179
+ create_table "user_has_roles", :force => true do |t|
1180
+ t.integer "user_id"
1181
+ t.integer "role_id"
1182
+ t.datetime "created_at", :null => false
1183
+ t.datetime "updated_at", :null => false
1184
+ end
1185
+
1186
+ create_table "user_reserve_stats", :force => true do |t|
1187
+ t.datetime "start_date"
1188
+ t.datetime "end_date"
1189
+ t.text "note"
1190
+ t.string "state"
1191
+ t.datetime "created_at", :null => false
1192
+ t.datetime "updated_at", :null => false
1193
+ t.datetime "started_at"
1194
+ t.datetime "completed_at"
1195
+ end
1196
+
1197
+ add_index "user_reserve_stats", ["state"], :name => "index_user_reserve_stats_on_state"
1198
+
1199
+ create_table "users", :force => true do |t|
1200
+ t.integer "user_group_id"
1201
+ t.integer "required_role_id"
1202
+ t.string "username"
1203
+ t.text "note"
1204
+ t.string "locale"
1205
+ t.string "user_number"
1206
+ t.integer "library_id"
1207
+ t.datetime "locked_at"
1208
+ t.datetime "created_at", :null => false
1209
+ t.datetime "updated_at", :null => false
1210
+ t.string "email", :default => "", :null => false
1211
+ t.string "encrypted_password", :default => "", :null => false
1212
+ t.string "reset_password_token"
1213
+ t.datetime "reset_password_sent_at"
1214
+ t.datetime "remember_created_at"
1215
+ t.integer "sign_in_count", :default => 0
1216
+ t.datetime "current_sign_in_at"
1217
+ t.datetime "last_sign_in_at"
1218
+ t.string "current_sign_in_ip"
1219
+ t.string "last_sign_in_ip"
1220
+ t.boolean "save_checkout_history", :default => false, :null => false
1221
+ t.string "checkout_icalendar_token"
1222
+ t.boolean "share_bookmarks"
1223
+ end
1224
+
1225
+ add_index "users", ["checkout_icalendar_token"], :name => "index_users_on_checkout_icalendar_token", :unique => true
1226
+ add_index "users", ["email"], :name => "index_users_on_email"
1227
+ add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
1228
+
1229
+ create_table "versions", :force => true do |t|
1230
+ t.string "item_type", :null => false
1231
+ t.integer "item_id", :null => false
1232
+ t.string "event", :null => false
1233
+ t.string "whodunnit"
1234
+ t.text "object"
1235
+ t.datetime "created_at"
1236
+ end
1237
+
1238
+ add_index "versions", ["item_type", "item_id"], :name => "index_versions_on_item_type_and_item_id"
1239
+
1240
+ end