enju_flower 0.1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (407) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +9 -0
  3. data/Rakefile +47 -0
  4. data/app/helpers/manifestations_helper.rb +176 -0
  5. data/app/views/manifestations/_all_facet.html.erb +8 -0
  6. data/app/views/manifestations/_attachment_file.html.erb +6 -0
  7. data/app/views/manifestations/_book_jacket.html.erb +5 -0
  8. data/app/views/manifestations/_call_number.html.erb +25 -0
  9. data/app/views/manifestations/_carrier_type_facet.html.erb +9 -0
  10. data/app/views/manifestations/_edition_and_number.html.erb +22 -0
  11. data/app/views/manifestations/_form.html.erb +156 -0
  12. data/app/views/manifestations/_history_list.html.erb +12 -0
  13. data/app/views/manifestations/_holding.html.erb +3 -0
  14. data/app/views/manifestations/_index_form.html.erb +12 -0
  15. data/app/views/manifestations/_index_form_contributor.html.erb +15 -0
  16. data/app/views/manifestations/_index_form_creator.html.erb +15 -0
  17. data/app/views/manifestations/_index_form_item.html.erb +14 -0
  18. data/app/views/manifestations/_index_form_manifestation.html.erb +13 -0
  19. data/app/views/manifestations/_index_form_publisher.html.erb +15 -0
  20. data/app/views/manifestations/_index_form_series_statement.html.erb +20 -0
  21. data/app/views/manifestations/_language_facet.html.erb +16 -0
  22. data/app/views/manifestations/_library_facet.html.erb +11 -0
  23. data/app/views/manifestations/_list.html.erb +21 -0
  24. data/app/views/manifestations/_manifestation.html.erb +73 -0
  25. data/app/views/manifestations/_manifestation_list.html.erb +32 -0
  26. data/app/views/manifestations/_not_found.html.erb +7 -0
  27. data/app/views/manifestations/_paginate_id_link.html.erb +30 -0
  28. data/app/views/manifestations/_pickup.html.erb +30 -0
  29. data/app/views/manifestations/_pub_year_facet.html.erb +11 -0
  30. data/app/views/manifestations/_question_list.html.erb +13 -0
  31. data/app/views/manifestations/_reservable_facet.html.erb +14 -0
  32. data/app/views/manifestations/_search_engine.html.erb +16 -0
  33. data/app/views/manifestations/_serial_form.html.erb +14 -0
  34. data/app/views/manifestations/_session_ids.html.erb +10 -0
  35. data/app/views/manifestations/_show.mods.builder +86 -0
  36. data/app/views/manifestations/_show.rdf.builder +63 -0
  37. data/app/views/manifestations/_show_creators.html.erb +17 -0
  38. data/app/views/manifestations/_show_creators.mobile.erb +17 -0
  39. data/app/views/manifestations/_show_detail_librarian.html.erb +135 -0
  40. data/app/views/manifestations/_show_detail_user.html.erb +130 -0
  41. data/app/views/manifestations/_show_group.html.erb +2 -0
  42. data/app/views/manifestations/_show_holding.html.erb +60 -0
  43. data/app/views/manifestations/_show_holding.mobile.erb +38 -0
  44. data/app/views/manifestations/_show_index.html.erb +21 -0
  45. data/app/views/manifestations/_show_index.mobile.erb +14 -0
  46. data/app/views/manifestations/_show_periodical_master.html.erb +40 -0
  47. data/app/views/manifestations/_show_series_index.html.erb +15 -0
  48. data/app/views/manifestations/_show_series_statement.html.erb +30 -0
  49. data/app/views/manifestations/_submenu_series_statement.html.erb +9 -0
  50. data/app/views/manifestations/_tab_list.html.erb +11 -0
  51. data/app/views/manifestations/_tab_menu.html.erb +14 -0
  52. data/app/views/manifestations/_title.html.erb +27 -0
  53. data/app/views/manifestations/_title.mobile.erb +27 -0
  54. data/app/views/manifestations/edit.html.erb +21 -0
  55. data/app/views/manifestations/error.xml +7 -0
  56. data/app/views/manifestations/explain.sru +9 -0
  57. data/app/views/manifestations/index.atom.builder +19 -0
  58. data/app/views/manifestations/index.csv.erb +4 -0
  59. data/app/views/manifestations/index.html.erb +112 -0
  60. data/app/views/manifestations/index.mobile.erb +21 -0
  61. data/app/views/manifestations/index.mods.builder +8 -0
  62. data/app/views/manifestations/index.opds.builder +24 -0
  63. data/app/views/manifestations/index.rdf.builder +30 -0
  64. data/app/views/manifestations/index.rss.builder +43 -0
  65. data/app/views/manifestations/index.sru.builder +101 -0
  66. data/app/views/manifestations/new.html.erb +16 -0
  67. data/app/views/manifestations/show.html.erb +108 -0
  68. data/app/views/manifestations/show.mobile.erb +20 -0
  69. data/app/views/manifestations/show.mods.builder +6 -0
  70. data/app/views/manifestations/show.rdf.builder +12 -0
  71. data/config/routes.rb +2 -0
  72. data/lib/enju_flower/engine.rb +4 -0
  73. data/lib/enju_flower/version.rb +3 -0
  74. data/lib/enju_flower.rb +4 -0
  75. data/lib/generators/enju_flower/views_generator.rb +17 -0
  76. data/lib/tasks/enju_flower_tasks.rake +4 -0
  77. data/spec/controllers/manifestations_controller_spec.rb +685 -0
  78. data/spec/dummy/README.rdoc +261 -0
  79. data/spec/dummy/Rakefile +7 -0
  80. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  81. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  82. data/spec/dummy/app/controllers/application_controller.rb +184 -0
  83. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  84. data/spec/dummy/app/mailers/notifier.rb +40 -0
  85. data/spec/dummy/app/models/ability.rb +186 -0
  86. data/spec/dummy/app/models/local_patron.rb +27 -0
  87. data/spec/dummy/app/models/role.rb +46 -0
  88. data/spec/dummy/app/models/setting.rb +4 -0
  89. data/spec/dummy/app/models/user.rb +102 -0
  90. data/spec/dummy/app/models/user_group.rb +40 -0
  91. data/spec/dummy/app/models/user_has_role.rb +5 -0
  92. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  93. data/spec/dummy/app/views/page/403.html.erb +9 -0
  94. data/spec/dummy/app/views/page/403.mobile.erb +5 -0
  95. data/spec/dummy/app/views/page/403.xml.erb +4 -0
  96. data/spec/dummy/app/views/page/404.html.erb +9 -0
  97. data/spec/dummy/app/views/page/404.mobile.erb +5 -0
  98. data/spec/dummy/app/views/page/404.xml.erb +4 -0
  99. data/spec/dummy/app/views/page/_footer.html.erb +4 -0
  100. data/spec/dummy/app/views/page/_header.html.erb +2 -0
  101. data/spec/dummy/app/views/page/_include.html.erb +4 -0
  102. data/spec/dummy/app/views/page/_menu.html.erb +2 -0
  103. data/spec/dummy/app/views/page/_select_locale.html.erb +2 -0
  104. data/spec/dummy/config/application.rb +64 -0
  105. data/spec/dummy/config/application.yml +42 -0
  106. data/spec/dummy/config/boot.rb +10 -0
  107. data/spec/dummy/config/database.yml +25 -0
  108. data/spec/dummy/config/environment.rb +5 -0
  109. data/spec/dummy/config/environments/development.rb +37 -0
  110. data/spec/dummy/config/environments/production.rb +67 -0
  111. data/spec/dummy/config/environments/test.rb +37 -0
  112. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  113. data/spec/dummy/config/initializers/devise.rb +205 -0
  114. data/spec/dummy/config/initializers/inflections.rb +15 -0
  115. data/spec/dummy/config/initializers/mime_types.rb +10 -0
  116. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  117. data/spec/dummy/config/initializers/session_store.rb +8 -0
  118. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  119. data/spec/dummy/config/locales/en.yml +5 -0
  120. data/spec/dummy/config/routes.rb +60 -0
  121. data/spec/dummy/config.ru +4 -0
  122. data/spec/dummy/db/migrate/001_create_patrons.rb +53 -0
  123. data/spec/dummy/db/migrate/005_create_manifestations.rb +56 -0
  124. data/spec/dummy/db/migrate/006_create_items.rb +28 -0
  125. data/spec/dummy/db/migrate/012_create_owns.rb +12 -0
  126. data/spec/dummy/db/migrate/015_create_creates.rb +12 -0
  127. data/spec/dummy/db/migrate/032_create_checkins.rb +17 -0
  128. data/spec/dummy/db/migrate/033_create_checkouts.rb +25 -0
  129. data/spec/dummy/db/migrate/035_create_reserves.rb +27 -0
  130. data/spec/dummy/db/migrate/047_create_produces.rb +12 -0
  131. data/spec/dummy/db/migrate/055_create_bookmarks.rb +22 -0
  132. data/spec/dummy/db/migrate/059_create_libraries.rb +28 -0
  133. data/spec/dummy/db/migrate/069_create_shelves.rb +15 -0
  134. data/spec/dummy/db/migrate/073_create_carrier_types.rb +11 -0
  135. data/spec/dummy/db/migrate/077_create_user_groups.rb +16 -0
  136. data/spec/dummy/db/migrate/080_create_library_groups.rb +20 -0
  137. data/spec/dummy/db/migrate/112_create_frequencies.rb +12 -0
  138. data/spec/dummy/db/migrate/113_create_events.rb +23 -0
  139. data/spec/dummy/db/migrate/114_create_event_categories.rb +16 -0
  140. data/spec/dummy/db/migrate/117_create_form_of_works.rb +12 -0
  141. data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
  142. data/spec/dummy/db/migrate/121_create_checked_items.rb +17 -0
  143. data/spec/dummy/db/migrate/124_create_bookstores.rb +17 -0
  144. data/spec/dummy/db/migrate/125_create_donates.rb +12 -0
  145. data/spec/dummy/db/migrate/127_create_use_restrictions.rb +16 -0
  146. data/spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb +16 -0
  147. data/spec/dummy/db/migrate/130_create_request_status_types.rb +12 -0
  148. data/spec/dummy/db/migrate/131_create_request_types.rb +12 -0
  149. data/spec/dummy/db/migrate/132_create_circulation_statuses.rb +16 -0
  150. data/spec/dummy/db/migrate/149_create_message_templates.rb +18 -0
  151. data/spec/dummy/db/migrate/154_create_messages.rb +24 -0
  152. data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +20 -0
  153. data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +13 -0
  154. data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +13 -0
  155. data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +12 -0
  156. data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +17 -0
  157. data/spec/dummy/db/migrate/20081025083323_create_countries.rb +28 -0
  158. data/spec/dummy/db/migrate/20081025083905_create_languages.rb +23 -0
  159. data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +15 -0
  160. data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +22 -0
  161. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +22 -0
  162. data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +27 -0
  163. data/spec/dummy/db/migrate/20081030023412_create_checkout_types.rb +17 -0
  164. data/spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb +25 -0
  165. data/spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb +18 -0
  166. data/spec/dummy/db/migrate/20081117143156_create_inventory_files.rb +18 -0
  167. data/spec/dummy/db/migrate/20081117143455_create_inventories.rb +17 -0
  168. data/spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb +17 -0
  169. data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +16 -0
  170. data/spec/dummy/db/migrate/20081212151614_create_bookmark_stats.rb +16 -0
  171. data/spec/dummy/db/migrate/20081212151820_create_bookmark_stat_has_manifestations.rb +13 -0
  172. data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +16 -0
  173. data/spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb +17 -0
  174. data/spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb +17 -0
  175. data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +16 -0
  176. data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +16 -0
  177. data/spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb +17 -0
  178. data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +27 -0
  179. data/spec/dummy/db/migrate/20090519203307_create_participates.rb +17 -0
  180. data/spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +15 -0
  181. data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
  182. data/spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb +15 -0
  183. data/spec/dummy/db/migrate/20090719201843_create_extents.rb +12 -0
  184. data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
  185. data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +12 -0
  186. data/spec/dummy/db/migrate/20090812151902_create_patron_relationship_types.rb +12 -0
  187. data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +21 -0
  188. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +27 -0
  189. data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +12 -0
  190. data/spec/dummy/db/migrate/20091202124834_create_versions.rb +18 -0
  191. data/spec/dummy/db/migrate/20091214131723_create_series_statements.rb +13 -0
  192. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +15 -0
  193. data/spec/dummy/db/migrate/20100222124420_add_allow_bookmark_external_url_to_library_group.rb +9 -0
  194. data/spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb +13 -0
  195. data/spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb +10 -0
  196. data/spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb +13 -0
  197. data/spec/dummy/db/migrate/20100525171356_acts_as_taggable_on_migration.rb +30 -0
  198. data/spec/dummy/db/migrate/20100527113752_create_delayed_jobs.rb +21 -0
  199. data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +13 -0
  200. data/spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb +12 -0
  201. data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +11 -0
  202. data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +15 -0
  203. data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +12 -0
  204. data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +15 -0
  205. data/spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb +9 -0
  206. data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +9 -0
  207. data/spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +9 -0
  208. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +11 -0
  209. data/spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb +9 -0
  210. data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +13 -0
  211. data/spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb +9 -0
  212. data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +9 -0
  213. data/spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
  214. data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +9 -0
  215. data/spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +9 -0
  216. data/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb +11 -0
  217. data/spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb +9 -0
  218. data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
  219. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
  220. data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +13 -0
  221. data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +13 -0
  222. data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +11 -0
  223. data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +13 -0
  224. data/spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb +13 -0
  225. data/spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb +10 -0
  226. data/spec/dummy/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +13 -0
  227. data/spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb +9 -0
  228. data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +9 -0
  229. data/spec/dummy/db/migrate/20111124110059_create_create_types.rb +12 -0
  230. data/spec/dummy/db/migrate/20111124110319_create_realize_types.rb +12 -0
  231. data/spec/dummy/db/migrate/20111124110355_create_produce_types.rb +12 -0
  232. data/spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb +7 -0
  233. data/spec/dummy/db/migrate/20111201121844_create_roles.rb +12 -0
  234. data/spec/dummy/db/migrate/20111201155456_create_users.rb +16 -0
  235. data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +44 -0
  236. data/spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb +10 -0
  237. data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +5 -0
  238. data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +6 -0
  239. data/spec/dummy/db/migrate/20111231145823_add_share_bookmarks_to_user.rb +5 -0
  240. data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +5 -0
  241. data/spec/dummy/db/migrate/20120105101944_add_queue_to_delayed_jobs.rb +9 -0
  242. data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +6 -0
  243. data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +6 -0
  244. data/spec/dummy/db/migrate/20120129014038_create_budget_types.rb +12 -0
  245. data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +6 -0
  246. data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
  247. data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
  248. data/spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb +5 -0
  249. data/spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +5 -0
  250. data/spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +5 -0
  251. data/spec/dummy/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb +5 -0
  252. data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
  253. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +5 -0
  254. data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
  255. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +5 -0
  256. data/spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb +5 -0
  257. data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +9 -0
  258. data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +9 -0
  259. data/spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb +9 -0
  260. data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
  261. data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
  262. data/spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb +5 -0
  263. data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +5 -0
  264. data/spec/dummy/db/migrate/20120511072422_add_patron_identifier_to_patron.rb +6 -0
  265. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +5 -0
  266. data/spec/dummy/db/migrate/20120728204337_create_series_statement_relationships.rb +11 -0
  267. data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
  268. data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +6 -0
  269. data/spec/dummy/db/migrate/20121119153944_add_manifestation_id_to_item.rb +5 -0
  270. data/spec/dummy/db/schema.rb +1240 -0
  271. data/spec/dummy/db/test.sqlite3 +0 -0
  272. data/spec/dummy/lib/plugins/ext/event-calendar.rb +38 -0
  273. data/spec/dummy/lib/plugins/ext/sunspot/abstract_search.rb +12 -0
  274. data/spec/dummy/lib/plugins/ext/sunspot/dismax.rb +41 -0
  275. data/spec/dummy/lib/plugins/ext/sunspot/start_record.rb +55 -0
  276. data/spec/dummy/lib/plugins/ext/sunspot.rb +3 -0
  277. data/spec/dummy/lib/plugins/ext.rb +1 -0
  278. data/spec/dummy/lib/plugins.rb +2 -0
  279. data/spec/dummy/public/404.html +26 -0
  280. data/spec/dummy/public/422.html +26 -0
  281. data/spec/dummy/public/500.html +25 -0
  282. data/spec/dummy/public/favicon.ico +0 -0
  283. data/spec/dummy/script/rails +6 -0
  284. data/spec/dummy/solr/conf/admin-extra.html +31 -0
  285. data/spec/dummy/solr/conf/elevate.xml +36 -0
  286. data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
  287. data/spec/dummy/solr/conf/protwords.txt +21 -0
  288. data/spec/dummy/solr/conf/schema.xml +251 -0
  289. data/spec/dummy/solr/conf/scripts.conf +24 -0
  290. data/spec/dummy/solr/conf/solrconfig.xml +934 -0
  291. data/spec/dummy/solr/conf/spellings.txt +2 -0
  292. data/spec/dummy/solr/conf/stopwords.txt +58 -0
  293. data/spec/dummy/solr/conf/synonyms.txt +31 -0
  294. data/spec/dummy/solr/data/test/index/_ev.fdt +0 -0
  295. data/spec/dummy/solr/data/test/index/_ev.fdx +0 -0
  296. data/spec/dummy/solr/data/test/index/_ev.fnm +7 -0
  297. data/spec/dummy/solr/data/test/index/_ev.frq +0 -0
  298. data/spec/dummy/solr/data/test/index/_ev.nrm +1 -0
  299. data/spec/dummy/solr/data/test/index/_ev.prx +0 -0
  300. data/spec/dummy/solr/data/test/index/_ev.tii +0 -0
  301. data/spec/dummy/solr/data/test/index/_ev.tis +0 -0
  302. data/spec/dummy/solr/data/test/index/_ew.fdt +0 -0
  303. data/spec/dummy/solr/data/test/index/_ew.fdx +0 -0
  304. data/spec/dummy/solr/data/test/index/_ew.fnm +7 -0
  305. data/spec/dummy/solr/data/test/index/_ew.frq +0 -0
  306. data/spec/dummy/solr/data/test/index/_ew.nrm +1 -0
  307. data/spec/dummy/solr/data/test/index/_ew.prx +0 -0
  308. data/spec/dummy/solr/data/test/index/_ew.tii +0 -0
  309. data/spec/dummy/solr/data/test/index/_ew.tis +0 -0
  310. data/spec/dummy/solr/data/test/index/_ex.fdt +0 -0
  311. data/spec/dummy/solr/data/test/index/_ex.fdx +0 -0
  312. data/spec/dummy/solr/data/test/index/_ex.fnm +8 -0
  313. data/spec/dummy/solr/data/test/index/_ex.frq +0 -0
  314. data/spec/dummy/solr/data/test/index/_ex.nrm +1 -0
  315. data/spec/dummy/solr/data/test/index/_ex.prx +0 -0
  316. data/spec/dummy/solr/data/test/index/_ex.tii +0 -0
  317. data/spec/dummy/solr/data/test/index/_ex.tis +0 -0
  318. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  319. data/spec/dummy/solr/data/test/index/segments_jz +0 -0
  320. data/spec/dummy/solr/data/test/spellchecker/segments.gen +0 -0
  321. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  322. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  323. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  324. data/spec/factories/basket.rb +5 -0
  325. data/spec/factories/carrier_type.rb +5 -0
  326. data/spec/factories/content_type.rb +5 -0
  327. data/spec/factories/country.rb +8 -0
  328. data/spec/factories/create.rb +6 -0
  329. data/spec/factories/create_types.rb +9 -0
  330. data/spec/factories/donate.rb +6 -0
  331. data/spec/factories/exemplify.rb +6 -0
  332. data/spec/factories/extent.rb +5 -0
  333. data/spec/factories/form_of_work.rb +5 -0
  334. data/spec/factories/frequency.rb +5 -0
  335. data/spec/factories/import_request.rb +5 -0
  336. data/spec/factories/item.rb +7 -0
  337. data/spec/factories/language.rb +8 -0
  338. data/spec/factories/license.rb +5 -0
  339. data/spec/factories/manifestation.rb +6 -0
  340. data/spec/factories/manifestation_relationship.rb +6 -0
  341. data/spec/factories/manifestation_relationship_type.rb +5 -0
  342. data/spec/factories/medium_of_performance.rb +5 -0
  343. data/spec/factories/own.rb +6 -0
  344. data/spec/factories/patron.rb +13 -0
  345. data/spec/factories/patron_relationship.rb +6 -0
  346. data/spec/factories/patron_relationship_type.rb +5 -0
  347. data/spec/factories/patron_type.rb +5 -0
  348. data/spec/factories/produce.rb +6 -0
  349. data/spec/factories/produce_types.rb +9 -0
  350. data/spec/factories/realize.rb +6 -0
  351. data/spec/factories/realize_types.rb +9 -0
  352. data/spec/factories/series_has_manifestation.rb +6 -0
  353. data/spec/factories/series_statement.rb +5 -0
  354. data/spec/factories/series_statement_relationship.rb +8 -0
  355. data/spec/factories/user.rb +37 -0
  356. data/spec/fixtures/baskets.yml +80 -0
  357. data/spec/fixtures/bookstores.yml +107 -0
  358. data/spec/fixtures/budget_types.yml +29 -0
  359. data/spec/fixtures/carrier_types.yml +51 -0
  360. data/spec/fixtures/content_types.yml +36 -0
  361. data/spec/fixtures/countries.yml +2059 -0
  362. data/spec/fixtures/create_types.yml +47 -0
  363. data/spec/fixtures/creates.yml +64 -0
  364. data/spec/fixtures/donates.yml +31 -0
  365. data/spec/fixtures/exemplifies.yml +160 -0
  366. data/spec/fixtures/extents.yml +29 -0
  367. data/spec/fixtures/form_of_works.yml +39 -0
  368. data/spec/fixtures/frequencies.yml +85 -0
  369. data/spec/fixtures/import_requests.yml +27 -0
  370. data/spec/fixtures/items.yml +259 -0
  371. data/spec/fixtures/languages.yml +1901 -0
  372. data/spec/fixtures/libraries.yml +102 -0
  373. data/spec/fixtures/library_groups.yml +33 -0
  374. data/spec/fixtures/licenses.yml +29 -0
  375. data/spec/fixtures/manifestation_relationship_types.yml +29 -0
  376. data/spec/fixtures/manifestation_relationships.yml +30 -0
  377. data/spec/fixtures/manifestations.yml +2022 -0
  378. data/spec/fixtures/medium_of_performances.yml +29 -0
  379. data/spec/fixtures/owns.yml +26 -0
  380. data/spec/fixtures/patron_import_files.yml +47 -0
  381. data/spec/fixtures/patron_import_results.yml +29 -0
  382. data/spec/fixtures/patron_relationship_types.yml +34 -0
  383. data/spec/fixtures/patron_relationships.yml +25 -0
  384. data/spec/fixtures/patron_types.yml +35 -0
  385. data/spec/fixtures/patrons.yml +334 -0
  386. data/spec/fixtures/picture_files.yml +63 -0
  387. data/spec/fixtures/produce_types.yml +31 -0
  388. data/spec/fixtures/produces.yml +148 -0
  389. data/spec/fixtures/realize_types.yml +39 -0
  390. data/spec/fixtures/realizes.yml +85 -0
  391. data/spec/fixtures/request_status_types.yml +63 -0
  392. data/spec/fixtures/request_types.yml +55 -0
  393. data/spec/fixtures/resource_import_files.yml +47 -0
  394. data/spec/fixtures/resource_import_results.yml +29 -0
  395. data/spec/fixtures/roles.yml +21 -0
  396. data/spec/fixtures/series_has_manifestations.yml +35 -0
  397. data/spec/fixtures/series_statements.yml +45 -0
  398. data/spec/fixtures/shelves.yml +47 -0
  399. data/spec/fixtures/user_groups.yml +51 -0
  400. data/spec/fixtures/user_has_roles.yml +41 -0
  401. data/spec/fixtures/users.yml +106 -0
  402. data/spec/spec_helper.rb +53 -0
  403. data/spec/support/controller_macros.rb +46 -0
  404. data/spec/support/devise.rb +4 -0
  405. data/vendor/assets/javascripts/jquery.mobile-1.3.0.js +11092 -0
  406. data/vendor/assets/stylesheets/jquery.mobile-1.3.0.css +3357 -0
  407. metadata +942 -0
Binary file
@@ -0,0 +1,38 @@
1
+ module EventCalendar
2
+ module CalendarHelper
3
+ private
4
+
5
+ # calculate the height of each row
6
+ # by default, it will be the height option minus the day names height,
7
+ # divided by the total number of calendar rows
8
+ # this gets tricky, however, if there are too many event rows to fit into the row's height
9
+ # then we need to add additional height
10
+ def cal_row_heights(options)
11
+ # number of rows is the number of days in the event strips divided by 7
12
+ num_cal_rows = (options[:event_strips].first.size / 7).to_i
13
+ # the row will be at least this big
14
+ min_height = ((options[:height] - options[:day_names_height]) / num_cal_rows).to_i
15
+ row_heights = []
16
+ num_event_rows = 0
17
+ # for every day in the event strip...
18
+ 1.upto(options[:event_strips].first.size+1) do |index|
19
+ num_events = 0
20
+ # get the largest event strip that has an event on this day
21
+ options[:event_strips].each_with_index do |strip, strip_num|
22
+ num_events = strip_num + 1 unless strip[index-1].blank?
23
+ end
24
+ # get the most event rows for this week
25
+ num_event_rows = [num_event_rows, num_events].max
26
+ # if we reached the end of the week, calculate this row's height
27
+ if index % 7 == 0
28
+ total_event_height = options[:event_height] + options[:event_margin]
29
+ calc_row_height = (num_event_rows * total_event_height) + options[:day_nums_height] + options[:event_margin]
30
+ row_height = [min_height, calc_row_height].max
31
+ row_heights << row_height
32
+ num_event_rows = 0
33
+ end
34
+ end
35
+ row_heights
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,12 @@
1
+ module Sunspot
2
+ module Search #:nodoc:
3
+ class AbstractSearch
4
+ def execute
5
+ reset
6
+ params = @query.to_params
7
+ @solr_result = @connection.post "#{request_handler}", :data => params, :headers => {'Content-Type' => 'application/x-www-form-urlencoded; charset=UTF-8'}
8
+ self
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,41 @@
1
+ module Sunspot
2
+ module Query
3
+ class Dismax
4
+ def to_params
5
+ params = { :q => @keywords }
6
+ params[:fl] = '* score'
7
+ params[:qf] = @fulltext_fields.values.map { |field| field.to_boosted_field }.join(' ')
8
+ params[:defType] = 'edismax'
9
+ if @phrase_fields
10
+ params[:pf] = @phrase_fields.map { |field| field.to_boosted_field }.join(' ')
11
+ end
12
+ unless @boost_queries.empty?
13
+ params[:bq] = @boost_queries.map do |boost_query|
14
+ boost_query.to_boolean_phrase
15
+ end
16
+ end
17
+ unless @boost_functions.empty?
18
+ params[:bf] = @boost_functions.map do |boost_function|
19
+ boost_function.to_s
20
+ end
21
+ end
22
+ if @minimum_match
23
+ params[:mm] = @minimum_match
24
+ end
25
+ if @phrase_slop
26
+ params[:ps] = @phrase_slop
27
+ end
28
+ if @query_phrase_slop
29
+ params[:qs] = @query_phrase_slop
30
+ end
31
+ if @tie
32
+ params[:tie] = @tie
33
+ end
34
+ @highlights.each do |highlight|
35
+ Sunspot::Util.deep_merge!(params, highlight.to_params)
36
+ end
37
+ params
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,55 @@
1
+ module Sunspot
2
+ module Query
3
+ class StartRecord #:nodoc:
4
+ attr_reader :start_record, :maximum_record
5
+
6
+ def initialize(start_record = nil, maximum_record = nil)
7
+ self.start_record, self.maximum_record = start_record, maximum_record
8
+ end
9
+
10
+ def to_params
11
+ { :start => start, :rows => rows }
12
+ end
13
+
14
+ def start_record=(start_record)
15
+ @start_record = start_record.to_i - 1 if start_record
16
+ end
17
+
18
+ def maximum_record=(maximum_record)
19
+ @maximum_record = maximum_record.to_i if maximum_record
20
+ end
21
+
22
+ private
23
+
24
+ def start
25
+ @start_record
26
+ end
27
+
28
+ def rows
29
+ @maximum_record
30
+ end
31
+ end
32
+
33
+ class CommonQuery
34
+ def start_record(start, maximum)
35
+ if @start_record
36
+ @start_record.start = start
37
+ @start_record.maximum = maximum
38
+ else
39
+ @components << @start_record = StartRecord.new(start, maximum)
40
+ end
41
+ end
42
+ end
43
+ end
44
+
45
+ module DSL #:nodoc:
46
+ class Query < FieldQuery
47
+ def start_record(options = {})
48
+ start = options.delete(:start)
49
+ maximum = options.delete(:maximum)
50
+ raise ArgumentError, "unknown argument #{options.keys.first.inspect} passed to paginate" unless options.empty?
51
+ @query.start_record(start, maximum)
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,3 @@
1
+ require File.expand_path(File.join(File.dirname(__FILE__), 'sunspot', 'dismax'))
2
+ require File.expand_path(File.join(File.dirname(__FILE__), 'sunspot', 'start_record'))
3
+ require File.expand_path(File.join(File.dirname(__FILE__), 'sunspot', 'abstract_search'))
@@ -0,0 +1 @@
1
+ require File.expand_path(File.join(File.dirname(__FILE__), 'ext', 'sunspot'))
@@ -0,0 +1,2 @@
1
+ # http://railspress.matake.jp/extend-plugin-gem-library-in-rails-project
2
+ require File.expand_path(File.join(File.dirname(__FILE__), 'plugins', 'ext'))
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,31 @@
1
+ <!--
2
+ Licensed to the Apache Software Foundation (ASF) under one or more
3
+ contributor license agreements. See the NOTICE file distributed with
4
+ this work for additional information regarding copyright ownership.
5
+ The ASF licenses this file to You under the Apache License, Version 2.0
6
+ (the "License"); you may not use this file except in compliance with
7
+ the License. You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ -->
17
+
18
+ <!-- The content of this page will be statically included into the top
19
+ of the admin page. Uncomment this as an example to see there the content
20
+ will show up.
21
+
22
+ <hr>
23
+ <i>This line will appear before the first table</i>
24
+ <tr>
25
+ <td colspan="2">
26
+ This row will be appended to the end of the first table
27
+ </td>
28
+ </tr>
29
+ <hr>
30
+
31
+ -->
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+
19
+ <!-- If this file is found in the config directory, it will only be
20
+ loaded once at startup. If it is found in Solr's data
21
+ directory, it will be re-loaded every commit.
22
+ -->
23
+
24
+ <elevate>
25
+ <query text="foo bar">
26
+ <doc id="1" />
27
+ <doc id="2" />
28
+ <doc id="3" />
29
+ </query>
30
+
31
+ <query text="ipod">
32
+ <doc id="MA147LL/A" /> <!-- put the actual ipod at the top -->
33
+ <doc id="IW-02" exclude="true" /> <!-- exclude this cable -->
34
+ </query>
35
+
36
+ </elevate>
@@ -0,0 +1,246 @@
1
+ # The ASF licenses this file to You under the Apache License, Version 2.0
2
+ # (the "License"); you may not use this file except in compliance with
3
+ # the License. You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+
13
+ # Syntax:
14
+ # "source" => "target"
15
+ # "source".length() > 0 (source cannot be empty.)
16
+ # "target".length() >= 0 (target can be empty.)
17
+
18
+ # example:
19
+ # "À" => "A"
20
+ # "\u00C0" => "A"
21
+ # "\u00C0" => "\u0041"
22
+ # "ß" => "ss"
23
+ # "\t" => " "
24
+ # "\n" => ""
25
+
26
+ # À => A
27
+ "\u00C0" => "A"
28
+
29
+ # Á => A
30
+ "\u00C1" => "A"
31
+
32
+ # Â => A
33
+ "\u00C2" => "A"
34
+
35
+ # Ã => A
36
+ "\u00C3" => "A"
37
+
38
+ # Ä => A
39
+ "\u00C4" => "A"
40
+
41
+ # Å => A
42
+ "\u00C5" => "A"
43
+
44
+ # Æ => AE
45
+ "\u00C6" => "AE"
46
+
47
+ # Ç => C
48
+ "\u00C7" => "C"
49
+
50
+ # È => E
51
+ "\u00C8" => "E"
52
+
53
+ # É => E
54
+ "\u00C9" => "E"
55
+
56
+ # Ê => E
57
+ "\u00CA" => "E"
58
+
59
+ # Ë => E
60
+ "\u00CB" => "E"
61
+
62
+ # Ì => I
63
+ "\u00CC" => "I"
64
+
65
+ # Í => I
66
+ "\u00CD" => "I"
67
+
68
+ # Î => I
69
+ "\u00CE" => "I"
70
+
71
+ # Ï => I
72
+ "\u00CF" => "I"
73
+
74
+ # IJ => IJ
75
+ "\u0132" => "IJ"
76
+
77
+ # Ð => D
78
+ "\u00D0" => "D"
79
+
80
+ # Ñ => N
81
+ "\u00D1" => "N"
82
+
83
+ # Ò => O
84
+ "\u00D2" => "O"
85
+
86
+ # Ó => O
87
+ "\u00D3" => "O"
88
+
89
+ # Ô => O
90
+ "\u00D4" => "O"
91
+
92
+ # Õ => O
93
+ "\u00D5" => "O"
94
+
95
+ # Ö => O
96
+ "\u00D6" => "O"
97
+
98
+ # Ø => O
99
+ "\u00D8" => "O"
100
+
101
+ # Π=> OE
102
+ "\u0152" => "OE"
103
+
104
+ # Þ
105
+ "\u00DE" => "TH"
106
+
107
+ # Ù => U
108
+ "\u00D9" => "U"
109
+
110
+ # Ú => U
111
+ "\u00DA" => "U"
112
+
113
+ # Û => U
114
+ "\u00DB" => "U"
115
+
116
+ # Ü => U
117
+ "\u00DC" => "U"
118
+
119
+ # Ý => Y
120
+ "\u00DD" => "Y"
121
+
122
+ # Ÿ => Y
123
+ "\u0178" => "Y"
124
+
125
+ # à => a
126
+ "\u00E0" => "a"
127
+
128
+ # á => a
129
+ "\u00E1" => "a"
130
+
131
+ # â => a
132
+ "\u00E2" => "a"
133
+
134
+ # ã => a
135
+ "\u00E3" => "a"
136
+
137
+ # ä => a
138
+ "\u00E4" => "a"
139
+
140
+ # å => a
141
+ "\u00E5" => "a"
142
+
143
+ # æ => ae
144
+ "\u00E6" => "ae"
145
+
146
+ # ç => c
147
+ "\u00E7" => "c"
148
+
149
+ # è => e
150
+ "\u00E8" => "e"
151
+
152
+ # é => e
153
+ "\u00E9" => "e"
154
+
155
+ # ê => e
156
+ "\u00EA" => "e"
157
+
158
+ # ë => e
159
+ "\u00EB" => "e"
160
+
161
+ # ì => i
162
+ "\u00EC" => "i"
163
+
164
+ # í => i
165
+ "\u00ED" => "i"
166
+
167
+ # î => i
168
+ "\u00EE" => "i"
169
+
170
+ # ï => i
171
+ "\u00EF" => "i"
172
+
173
+ # ij => ij
174
+ "\u0133" => "ij"
175
+
176
+ # ð => d
177
+ "\u00F0" => "d"
178
+
179
+ # ñ => n
180
+ "\u00F1" => "n"
181
+
182
+ # ò => o
183
+ "\u00F2" => "o"
184
+
185
+ # ó => o
186
+ "\u00F3" => "o"
187
+
188
+ # ô => o
189
+ "\u00F4" => "o"
190
+
191
+ # õ => o
192
+ "\u00F5" => "o"
193
+
194
+ # ö => o
195
+ "\u00F6" => "o"
196
+
197
+ # ø => o
198
+ "\u00F8" => "o"
199
+
200
+ # œ => oe
201
+ "\u0153" => "oe"
202
+
203
+ # ß => ss
204
+ "\u00DF" => "ss"
205
+
206
+ # þ => th
207
+ "\u00FE" => "th"
208
+
209
+ # ù => u
210
+ "\u00F9" => "u"
211
+
212
+ # ú => u
213
+ "\u00FA" => "u"
214
+
215
+ # û => u
216
+ "\u00FB" => "u"
217
+
218
+ # ü => u
219
+ "\u00FC" => "u"
220
+
221
+ # ý => y
222
+ "\u00FD" => "y"
223
+
224
+ # ÿ => y
225
+ "\u00FF" => "y"
226
+
227
+ # ff => ff
228
+ "\uFB00" => "ff"
229
+
230
+ # fi => fi
231
+ "\uFB01" => "fi"
232
+
233
+ # fl => fl
234
+ "\uFB02" => "fl"
235
+
236
+ # ffi => ffi
237
+ "\uFB03" => "ffi"
238
+
239
+ # ffl => ffl
240
+ "\uFB04" => "ffl"
241
+
242
+ # ſt => ft
243
+ "\uFB05" => "ft"
244
+
245
+ # st => st
246
+ "\uFB06" => "st"
@@ -0,0 +1,21 @@
1
+ # The ASF licenses this file to You under the Apache License, Version 2.0
2
+ # (the "License"); you may not use this file except in compliance with
3
+ # the License. You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+
13
+ #-----------------------------------------------------------------------
14
+ # Use a protected word file to protect against the stemmer reducing two
15
+ # unrelated words to the same base word.
16
+
17
+ # Some non-words that normally won't be encountered,
18
+ # just to test that they won't be stemmed.
19
+ dontstems
20
+ zwhacky
21
+