enju_biblio 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +46 -0
- data/app/controllers/carrier_types_controller.rb +13 -0
- data/app/controllers/content_types_controller.rb +17 -0
- data/app/controllers/countries_controller.rb +17 -0
- data/app/controllers/create_types_controller.rb +13 -0
- data/app/controllers/creates_controller.rb +118 -0
- data/app/controllers/donates_controller.rb +79 -0
- data/app/controllers/exemplifies_controller.rb +103 -0
- data/app/controllers/extents_controller.rb +17 -0
- data/app/controllers/form_of_works_controller.rb +13 -0
- data/app/controllers/frequencies_controller.rb +13 -0
- data/app/controllers/import_requests_controller.rb +92 -0
- data/app/controllers/items_controller.rb +245 -0
- data/app/controllers/languages_controller.rb +17 -0
- data/app/controllers/licenses_controller.rb +17 -0
- data/app/controllers/manifestation_relationship_types_controller.rb +13 -0
- data/app/controllers/manifestation_relationships_controller.rb +23 -0
- data/app/controllers/manifestations_controller.rb +727 -0
- data/app/controllers/medium_of_performances_controller.rb +17 -0
- data/app/controllers/owns_controller.rb +108 -0
- data/app/controllers/patron_import_files_controller.rb +93 -0
- data/app/controllers/patron_import_results_controller.rb +15 -0
- data/app/controllers/patron_relationship_types_controller.rb +13 -0
- data/app/controllers/patron_relationships_controller.rb +23 -0
- data/app/controllers/patron_types_controller.rb +17 -0
- data/app/controllers/patrons_controller.rb +211 -0
- data/app/controllers/picture_files_controller.rb +169 -0
- data/app/controllers/produce_types_controller.rb +13 -0
- data/app/controllers/produces_controller.rb +122 -0
- data/app/controllers/realize_types_controller.rb +13 -0
- data/app/controllers/realizes_controller.rb +118 -0
- data/app/controllers/resource_import_files_controller.rb +93 -0
- data/app/controllers/resource_import_results_controller.rb +19 -0
- data/app/controllers/series_has_manifestations_controller.rb +95 -0
- data/app/controllers/series_statements_controller.rb +125 -0
- data/app/helpers/manifestations_helper.rb +160 -0
- data/app/helpers/owns_helper.rb +3 -0
- data/app/helpers/patrons_helper.rb +16 -0
- data/app/helpers/picture_files_helper.rb +15 -0
- data/app/helpers/series_statements_helper.rb +3 -0
- data/app/models/carrier_type.rb +34 -0
- data/app/models/content_type.rb +20 -0
- data/app/models/country.rb +45 -0
- data/app/models/create.rb +38 -0
- data/app/models/create_type.rb +19 -0
- data/app/models/donate.rb +23 -0
- data/app/models/exemplify.rb +46 -0
- data/app/models/extent.rb +20 -0
- data/app/models/form_of_work.rb +20 -0
- data/app/models/frequency.rb +20 -0
- data/app/models/import_request.rb +72 -0
- data/app/models/item.rb +277 -0
- data/app/models/item_sweeper.rb +19 -0
- data/app/models/language.rb +48 -0
- data/app/models/license.rb +19 -0
- data/app/models/manifestation.rb +642 -0
- data/app/models/manifestation_relationship.rb +30 -0
- data/app/models/manifestation_relationship_type.rb +20 -0
- data/app/models/manifestation_sweeper.rb +24 -0
- data/app/models/medium_of_performance.rb +20 -0
- data/app/models/own.rb +36 -0
- data/app/models/page_sweeper.rb +40 -0
- data/app/models/patron.rb +308 -0
- data/app/models/patron_import_file.rb +285 -0
- data/app/models/patron_import_result.rb +26 -0
- data/app/models/patron_relationship.rb +27 -0
- data/app/models/patron_relationship_type.rb +20 -0
- data/app/models/patron_sweeper.rb +30 -0
- data/app/models/patron_type.rb +20 -0
- data/app/models/picture_file.rb +48 -0
- data/app/models/produce.rb +39 -0
- data/app/models/produce_type.rb +19 -0
- data/app/models/realize.rb +38 -0
- data/app/models/realize_type.rb +19 -0
- data/app/models/resource_import_file.rb +585 -0
- data/app/models/resource_import_result.rb +26 -0
- data/app/models/series_has_manifestation.rb +38 -0
- data/app/models/series_statement.rb +105 -0
- data/app/views/carrier_types/_form.html.erb +19 -0
- data/app/views/carrier_types/edit.html.erb +13 -0
- data/app/views/carrier_types/index.html.erb +45 -0
- data/app/views/carrier_types/new.html.erb +12 -0
- data/app/views/carrier_types/show.html.erb +24 -0
- data/app/views/content_types/_form.html.erb +22 -0
- data/app/views/content_types/edit.html.erb +13 -0
- data/app/views/content_types/index.html.erb +45 -0
- data/app/views/content_types/new.html.erb +12 -0
- data/app/views/content_types/show.html.erb +24 -0
- data/app/views/countries/_form.html.erb +22 -0
- data/app/views/countries/edit.html.erb +13 -0
- data/app/views/countries/index.html.erb +43 -0
- data/app/views/countries/new.html.erb +12 -0
- data/app/views/countries/show.html.erb +24 -0
- data/app/views/create_types/_form.html.erb +19 -0
- data/app/views/create_types/edit.html.erb +13 -0
- data/app/views/create_types/index.html.erb +43 -0
- data/app/views/create_types/new.html.erb +12 -0
- data/app/views/create_types/show.html.erb +29 -0
- data/app/views/creates/_form.html.erb +32 -0
- data/app/views/creates/_index.html.erb +36 -0
- data/app/views/creates/_index_patron.html.erb +48 -0
- data/app/views/creates/_index_work.html.erb +48 -0
- data/app/views/creates/edit.html.erb +13 -0
- data/app/views/creates/index.html.erb +7 -0
- data/app/views/creates/new.html.erb +17 -0
- data/app/views/creates/show.html.erb +24 -0
- data/app/views/donates/edit.html.erb +30 -0
- data/app/views/donates/index.html.erb +45 -0
- data/app/views/donates/new.html.erb +29 -0
- data/app/views/donates/show.html.erb +25 -0
- data/app/views/exemplifies/_form.html.erb +27 -0
- data/app/views/exemplifies/edit.html.erb +13 -0
- data/app/views/exemplifies/index.html.erb +38 -0
- data/app/views/exemplifies/new.html.erb +12 -0
- data/app/views/exemplifies/show.html.erb +24 -0
- data/app/views/extents/_form.html.erb +19 -0
- data/app/views/extents/edit.html.erb +13 -0
- data/app/views/extents/index.html.erb +47 -0
- data/app/views/extents/new.html.erb +12 -0
- data/app/views/extents/show.html.erb +29 -0
- data/app/views/form_of_works/_form.html.erb +19 -0
- data/app/views/form_of_works/edit.html.erb +13 -0
- data/app/views/form_of_works/index.html.erb +45 -0
- data/app/views/form_of_works/new.html.erb +12 -0
- data/app/views/form_of_works/show.html.erb +29 -0
- data/app/views/frequencies/_form.html.erb +19 -0
- data/app/views/frequencies/edit.html.erb +13 -0
- data/app/views/frequencies/index.html.erb +43 -0
- data/app/views/frequencies/new.html.erb +12 -0
- data/app/views/frequencies/show.html.erb +24 -0
- data/app/views/import_requests/_form.html.erb +32 -0
- data/app/views/import_requests/edit.html.erb +24 -0
- data/app/views/import_requests/index.html.erb +41 -0
- data/app/views/import_requests/new.html.erb +27 -0
- data/app/views/import_requests/show.html.erb +43 -0
- data/app/views/items/_form.html.erb +86 -0
- data/app/views/items/_observe_field.html.erb +7 -0
- data/app/views/items/_qtip.html.erb +25 -0
- data/app/views/items/_shelf_picture.html.erb +8 -0
- data/app/views/items/_shelf_picture.mobile.erb +8 -0
- data/app/views/items/edit.html.erb +18 -0
- data/app/views/items/index.csv.erb +4 -0
- data/app/views/items/index.html.erb +74 -0
- data/app/views/items/index.mobile.erb +53 -0
- data/app/views/items/new.html.erb +21 -0
- data/app/views/items/show.html.erb +160 -0
- data/app/views/items/show.mobile.erb +88 -0
- data/app/views/languages/_form.html.erb +27 -0
- data/app/views/languages/edit.html.erb +13 -0
- data/app/views/languages/index.html.erb +49 -0
- data/app/views/languages/new.html.erb +12 -0
- data/app/views/languages/show.html.erb +34 -0
- data/app/views/licenses/_form.html.erb +19 -0
- data/app/views/licenses/edit.html.erb +13 -0
- data/app/views/licenses/index.html.erb +46 -0
- data/app/views/licenses/new.html.erb +12 -0
- data/app/views/licenses/show.html.erb +29 -0
- data/app/views/manifestation_relationship_types/_form.html.erb +19 -0
- data/app/views/manifestation_relationship_types/edit.html.erb +13 -0
- data/app/views/manifestation_relationship_types/index.html.erb +43 -0
- data/app/views/manifestation_relationship_types/new.html.erb +12 -0
- data/app/views/manifestation_relationship_types/show.html.erb +29 -0
- data/app/views/manifestation_relationships/_form.html.erb +31 -0
- data/app/views/manifestation_relationships/edit.html.erb +13 -0
- data/app/views/manifestation_relationships/index.html.erb +34 -0
- data/app/views/manifestation_relationships/new.html.erb +12 -0
- data/app/views/manifestation_relationships/show.html.erb +24 -0
- data/app/views/manifestations/_all_facet.html.erb +7 -0
- data/app/views/manifestations/_attachment_file.html.erb +6 -0
- data/app/views/manifestations/_book_jacket.html.erb +5 -0
- data/app/views/manifestations/_call_number.html.erb +25 -0
- data/app/views/manifestations/_carrier_type_facet.html.erb +9 -0
- data/app/views/manifestations/_edition_and_number.html.erb +22 -0
- data/app/views/manifestations/_form.html.erb +154 -0
- data/app/views/manifestations/_form.html.erb.osakac +153 -0
- data/app/views/manifestations/_history_list.html.erb +12 -0
- data/app/views/manifestations/_holding.html.erb +3 -0
- data/app/views/manifestations/_index_form.html.erb +12 -0
- data/app/views/manifestations/_index_form_contributor.html.erb +15 -0
- data/app/views/manifestations/_index_form_creator.html.erb +15 -0
- data/app/views/manifestations/_index_form_item.html.erb +14 -0
- data/app/views/manifestations/_index_form_manifestation.html.erb +13 -0
- data/app/views/manifestations/_index_form_publisher.html.erb +15 -0
- data/app/views/manifestations/_index_form_series_statement.html.erb +20 -0
- data/app/views/manifestations/_language_facet.html.erb +16 -0
- data/app/views/manifestations/_library_facet.html.erb +16 -0
- data/app/views/manifestations/_list.html.erb +21 -0
- data/app/views/manifestations/_manifestation.html.erb +69 -0
- data/app/views/manifestations/_manifestation_list.html.erb +32 -0
- data/app/views/manifestations/_not_found.html.erb +7 -0
- data/app/views/manifestations/_paginate_id_link.html.erb +10 -0
- data/app/views/manifestations/_pickup.html.erb +30 -0
- data/app/views/manifestations/_pubdate_facet.html.erb +9 -0
- data/app/views/manifestations/_question_list.html.erb +13 -0
- data/app/views/manifestations/_reservable_facet.html.erb +14 -0
- data/app/views/manifestations/_search_engine.html.erb +16 -0
- data/app/views/manifestations/_serial_form.html.erb +14 -0
- data/app/views/manifestations/_show.mods.builder +86 -0
- data/app/views/manifestations/_show.rdf.builder +63 -0
- data/app/views/manifestations/_show_creators.html.erb +17 -0
- data/app/views/manifestations/_show_creators.mobile.erb +17 -0
- data/app/views/manifestations/_show_detail_librarian.html.erb +136 -0
- data/app/views/manifestations/_show_detail_user.html.erb +131 -0
- data/app/views/manifestations/_show_group.html.erb +2 -0
- data/app/views/manifestations/_show_holding.html.erb +62 -0
- data/app/views/manifestations/_show_holding.mobile.erb +38 -0
- data/app/views/manifestations/_show_index.html.erb +15 -0
- data/app/views/manifestations/_show_index.mobile.erb +14 -0
- data/app/views/manifestations/_show_periodical_master.html.erb +40 -0
- data/app/views/manifestations/_tab_list.html.erb +11 -0
- data/app/views/manifestations/_tab_menu.html.erb +14 -0
- data/app/views/manifestations/_title.html.erb +27 -0
- data/app/views/manifestations/_title.mobile.erb +27 -0
- data/app/views/manifestations/edit.html.erb +21 -0
- data/app/views/manifestations/error.xml +7 -0
- data/app/views/manifestations/explain.sru +9 -0
- data/app/views/manifestations/index.atom.builder +19 -0
- data/app/views/manifestations/index.csv.erb +4 -0
- data/app/views/manifestations/index.html.erb +101 -0
- data/app/views/manifestations/index.mobile.erb +21 -0
- data/app/views/manifestations/index.mods.builder +8 -0
- data/app/views/manifestations/index.rdf.builder +28 -0
- data/app/views/manifestations/index.rss.builder +43 -0
- data/app/views/manifestations/index.sru.builder +101 -0
- data/app/views/manifestations/new.html.erb +16 -0
- data/app/views/manifestations/show.html.erb +108 -0
- data/app/views/manifestations/show.mobile.erb +20 -0
- data/app/views/manifestations/show.mods.builder +6 -0
- data/app/views/manifestations/show.rdf.builder +11 -0
- data/app/views/medium_of_performances/_form.html.erb +19 -0
- data/app/views/medium_of_performances/edit.html.erb +13 -0
- data/app/views/medium_of_performances/index.html.erb +44 -0
- data/app/views/medium_of_performances/new.html.erb +12 -0
- data/app/views/medium_of_performances/show.html.erb +29 -0
- data/app/views/owns/_form.html.erb +17 -0
- data/app/views/owns/edit.html.erb +13 -0
- data/app/views/owns/index.html.erb +46 -0
- data/app/views/owns/new.html.erb +12 -0
- data/app/views/owns/show.html.erb +25 -0
- data/app/views/patron_import_files/edit.html.erb +25 -0
- data/app/views/patron_import_files/index.html.erb +40 -0
- data/app/views/patron_import_files/new.html.erb +35 -0
- data/app/views/patron_import_files/show.html.erb +69 -0
- data/app/views/patron_import_results/index.csv.erb +3 -0
- data/app/views/patron_import_results/index.html.erb +52 -0
- data/app/views/patron_import_results/show.html.erb +38 -0
- data/app/views/patron_relationship_types/_form.html.erb +19 -0
- data/app/views/patron_relationship_types/edit.html.erb +13 -0
- data/app/views/patron_relationship_types/index.html.erb +43 -0
- data/app/views/patron_relationship_types/new.html.erb +12 -0
- data/app/views/patron_relationship_types/show.html.erb +29 -0
- data/app/views/patron_relationships/_form.html.erb +31 -0
- data/app/views/patron_relationships/edit.html.erb +13 -0
- data/app/views/patron_relationships/index.html.erb +34 -0
- data/app/views/patron_relationships/new.html.erb +12 -0
- data/app/views/patron_relationships/show.html.erb +24 -0
- data/app/views/patron_types/_form.html.erb +19 -0
- data/app/views/patron_types/edit.html.erb +13 -0
- data/app/views/patron_types/index.html.erb +43 -0
- data/app/views/patron_types/new.html.erb +12 -0
- data/app/views/patron_types/show.html.erb +29 -0
- data/app/views/patrons/_expression_list.html.erb +20 -0
- data/app/views/patrons/_form.html.erb +153 -0
- data/app/views/patrons/_form_family_name_first.html.erb +8 -0
- data/app/views/patrons/_form_family_name_last.html.erb +8 -0
- data/app/views/patrons/_history_list.html.erb +12 -0
- data/app/views/patrons/_index.html.erb +38 -0
- data/app/views/patrons/_index_expression.html.erb +58 -0
- data/app/views/patrons/_index_manifestation.html.erb +58 -0
- data/app/views/patrons/_index_patron.html.erb +71 -0
- data/app/views/patrons/_index_patron_merge_list.html.erb +53 -0
- data/app/views/patrons/_index_work.html.erb +63 -0
- data/app/views/patrons/_manifestation_list.html.erb +19 -0
- data/app/views/patrons/_patron.html.erb +17 -0
- data/app/views/patrons/_patron_list.html.erb +18 -0
- data/app/views/patrons/_work_list.html.erb +14 -0
- data/app/views/patrons/edit.html.erb +16 -0
- data/app/views/patrons/index.atom.builder +10 -0
- data/app/views/patrons/index.html.erb +14 -0
- data/app/views/patrons/index.mobile.erb +23 -0
- data/app/views/patrons/index.rss.builder +34 -0
- data/app/views/patrons/new.html.erb +12 -0
- data/app/views/patrons/show.html.erb +204 -0
- data/app/views/patrons/show.js.erb +3 -0
- data/app/views/patrons/show.mobile.erb +121 -0
- data/app/views/picture_files/_index.html.erb +52 -0
- data/app/views/picture_files/_index_event.html.erb +53 -0
- data/app/views/picture_files/_index_manifestation.html.erb +55 -0
- data/app/views/picture_files/_index_patron.html.erb +55 -0
- data/app/views/picture_files/_index_shelf.html.erb +53 -0
- data/app/views/picture_files/_link.html.erb +3 -0
- data/app/views/picture_files/edit.html.erb +56 -0
- data/app/views/picture_files/index.html.erb +11 -0
- data/app/views/picture_files/new.html.erb +33 -0
- data/app/views/picture_files/show.html.erb +67 -0
- data/app/views/produce_types/_form.html.erb +19 -0
- data/app/views/produce_types/edit.html.erb +13 -0
- data/app/views/produce_types/index.html.erb +43 -0
- data/app/views/produce_types/new.html.erb +12 -0
- data/app/views/produce_types/show.html.erb +29 -0
- data/app/views/produces/_form.html.erb +32 -0
- data/app/views/produces/_index.html.erb +36 -0
- data/app/views/produces/_index_manifestation.html.erb +49 -0
- data/app/views/produces/_index_patron.html.erb +40 -0
- data/app/views/produces/edit.html.erb +13 -0
- data/app/views/produces/index.html.erb +7 -0
- data/app/views/produces/new.html.erb +17 -0
- data/app/views/produces/show.html.erb +24 -0
- data/app/views/realize_types/_form.html.erb +19 -0
- data/app/views/realize_types/edit.html.erb +13 -0
- data/app/views/realize_types/index.html.erb +43 -0
- data/app/views/realize_types/new.html.erb +12 -0
- data/app/views/realize_types/show.html.erb +29 -0
- data/app/views/realizes/_form.html.erb +32 -0
- data/app/views/realizes/_index.html.erb +36 -0
- data/app/views/realizes/_index_expression.html.erb +49 -0
- data/app/views/realizes/_index_patron.html.erb +40 -0
- data/app/views/realizes/edit.html.erb +13 -0
- data/app/views/realizes/index.html.erb +7 -0
- data/app/views/realizes/new.html.erb +17 -0
- data/app/views/realizes/show.html.erb +24 -0
- data/app/views/resource_import_files/_show_object_list.html.erb +26 -0
- data/app/views/resource_import_files/edit.html.erb +25 -0
- data/app/views/resource_import_files/index.html.erb +40 -0
- data/app/views/resource_import_files/new.html.erb +37 -0
- data/app/views/resource_import_files/show.html.erb +69 -0
- data/app/views/resource_import_results/index.csv.erb +4 -0
- data/app/views/resource_import_results/index.html.erb +52 -0
- data/app/views/resource_import_results/show.html.erb +38 -0
- data/app/views/series_has_manifestations/_form.html.erb +27 -0
- data/app/views/series_has_manifestations/edit.html.erb +15 -0
- data/app/views/series_has_manifestations/index.html.erb +34 -0
- data/app/views/series_has_manifestations/new.html.erb +14 -0
- data/app/views/series_has_manifestations/show.html.erb +23 -0
- data/app/views/series_statements/_form.html.erb +57 -0
- data/app/views/series_statements/_index.html.erb +55 -0
- data/app/views/series_statements/_index_manifestation.html.erb +59 -0
- data/app/views/series_statements/_index_series_statement_merge_list.html.erb +53 -0
- data/app/views/series_statements/_manifestation_list.html.erb +17 -0
- data/app/views/series_statements/_merge.html.erb +27 -0
- data/app/views/series_statements/_refine_search_form.html.erb +9 -0
- data/app/views/series_statements/_tab_menu.html.erb +3 -0
- data/app/views/series_statements/edit.html.erb +13 -0
- data/app/views/series_statements/index.html.erb +7 -0
- data/app/views/series_statements/new.html.erb +12 -0
- data/app/views/series_statements/show.html.erb +65 -0
- data/app/views/series_statements/show.js.erb +1 -0
- data/config/locales/translation_en.yml +5 -0
- data/config/locales/translation_ja.yml +5 -0
- data/config/routes.rb +100 -0
- data/db/migrate/001_create_patrons.rb +53 -0
- data/db/migrate/005_create_manifestations.rb +56 -0
- data/db/migrate/006_create_items.rb +28 -0
- data/db/migrate/012_create_owns.rb +12 -0
- data/db/migrate/015_create_creates.rb +12 -0
- data/db/migrate/047_create_produces.rb +12 -0
- data/db/migrate/073_create_carrier_types.rb +11 -0
- data/db/migrate/112_create_frequencies.rb +12 -0
- data/db/migrate/117_create_form_of_works.rb +12 -0
- data/db/migrate/125_create_donates.rb +12 -0
- data/db/migrate/20080830154109_create_realizes.rb +13 -0
- data/db/migrate/20080830172106_create_exemplifies.rb +13 -0
- data/db/migrate/20080905191442_create_patron_types.rb +12 -0
- data/db/migrate/20081025083323_create_countries.rb +28 -0
- data/db/migrate/20081025083905_create_languages.rb +23 -0
- data/db/migrate/20081027150907_create_picture_files.rb +15 -0
- data/db/migrate/20081028083142_create_patron_import_files.rb +22 -0
- data/db/migrate/20081028083208_create_resource_import_files.rb +22 -0
- data/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +15 -0
- data/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
- data/db/migrate/20090719201843_create_extents.rb +12 -0
- data/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
- data/db/migrate/20090720091429_create_content_types.rb +12 -0
- data/db/migrate/20090812151902_create_patron_relationship_types.rb +12 -0
- data/db/migrate/20091012101112_add_dcndl_schema.rb +27 -0
- data/db/migrate/20091025080447_create_licenses.rb +12 -0
- data/db/migrate/20091214131723_create_series_statements.rb +13 -0
- data/db/migrate/20100129142347_create_import_requests.rb +15 -0
- data/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb +13 -0
- data/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb +10 -0
- data/db/migrate/20100525124311_create_manifestation_relationships.rb +13 -0
- data/db/migrate/20100606073747_create_patron_relationships.rb +13 -0
- data/db/migrate/20100607044753_create_manifestation_relationship_types.rb +12 -0
- data/db/migrate/20100814091104_add_position_to_patron_relationship.rb +11 -0
- data/db/migrate/20100925043847_create_resource_import_results.rb +15 -0
- data/db/migrate/20100925074559_create_patron_import_results.rb +12 -0
- data/db/migrate/20101212070145_add_acquired_at_to_item.rb +9 -0
- data/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +9 -0
- data/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +11 -0
- data/db/migrate/20110425133109_add_issn_to_series_statement.rb +9 -0
- data/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
- data/db/migrate/20110618091240_add_periodical_to_series_statement.rb +9 -0
- data/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +9 -0
- data/db/migrate/20110620173525_add_bookstore_id_to_item.rb +11 -0
- data/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
- data/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
- data/db/migrate/20110820131417_create_series_has_manifestations.rb +13 -0
- data/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +13 -0
- data/db/migrate/20110916091020_add_volume_number_to_manifestation.rb +13 -0
- data/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb +10 -0
- data/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +13 -0
- data/db/migrate/20110918162329_add_note_to_series_statement.rb +9 -0
- data/db/migrate/20111009183423_add_ndc_to_manifestation.rb +9 -0
- data/db/migrate/20111124110059_create_create_types.rb +12 -0
- data/db/migrate/20111124110319_create_realize_types.rb +12 -0
- data/db/migrate/20111124110355_create_produce_types.rb +12 -0
- data/db/migrate/20111124112131_add_create_type_to_create.rb +7 -0
- data/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +6 -0
- data/db/migrate/20120129020544_add_budget_type_id_to_item.rb +6 -0
- data/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
- data/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
- data/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +5 -0
- data/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +5 -0
- data/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
- data/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +5 -0
- data/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
- data/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +5 -0
- data/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +9 -0
- data/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +9 -0
- data/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
- data/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
- data/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +5 -0
- data/lib/enju_biblio/engine.rb +23 -0
- data/lib/enju_biblio/expire_editable_fragment.rb +30 -0
- data/lib/enju_biblio/expire_fragment_cache.rb +17 -0
- data/lib/enju_biblio/import_file.rb +13 -0
- data/lib/enju_biblio/master_model.rb +19 -0
- data/lib/enju_biblio/url_validator.rb +10 -0
- data/lib/enju_biblio/version.rb +3 -0
- data/lib/enju_biblio.rb +57 -0
- data/lib/tasks/enju_biblio_tasks.rake +4 -0
- data/spec/cassette_library/enju_ndl/manifestation.yml +523 -0
- data/spec/cassette_library/enju_ndl/ndl_search.yml +1140 -0
- data/spec/controllers/content_types_controller_spec.rb +445 -0
- data/spec/controllers/countries_controller_spec.rb +454 -0
- data/spec/controllers/create_types_controller_spec.rb +167 -0
- data/spec/controllers/creates_controller_spec.rb +450 -0
- data/spec/controllers/donates_controller_spec.rb +439 -0
- data/spec/controllers/exemplifies_controller_spec.rb +446 -0
- data/spec/controllers/extents_controller_spec.rb +445 -0
- data/spec/controllers/form_of_works_controller_spec.rb +445 -0
- data/spec/controllers/frequencies_controller_spec.rb +445 -0
- data/spec/controllers/import_requests_controller_spec.rb +448 -0
- data/spec/controllers/items_controller_spec.rb +549 -0
- data/spec/controllers/languages_controller_spec.rb +316 -0
- data/spec/controllers/licenses_controller_spec.rb +445 -0
- data/spec/controllers/manifestation_relationship_types_controller_spec.rb +445 -0
- data/spec/controllers/manifestation_relationships_controller_spec.rb +446 -0
- data/spec/controllers/manifestations_controller_spec.rb +722 -0
- data/spec/controllers/medium_of_performances_controller_spec.rb +445 -0
- data/spec/controllers/owns_controller_spec.rb +446 -0
- data/spec/controllers/patron_relationship_types_controller_spec.rb +445 -0
- data/spec/controllers/patron_relationships_controller_spec.rb +446 -0
- data/spec/controllers/patron_types_controller_spec.rb +447 -0
- data/spec/controllers/patrons_controller_spec.rb +636 -0
- data/spec/controllers/picture_files_controller_spec.rb +442 -0
- data/spec/controllers/produce_types_controller_spec.rb +166 -0
- data/spec/controllers/produces_controller_spec.rb +446 -0
- data/spec/controllers/realize_types_controller_spec.rb +166 -0
- data/spec/controllers/realizes_controller_spec.rb +447 -0
- data/spec/controllers/resource_import_files_controller_spec.rb +292 -0
- data/spec/controllers/resource_import_results_controller_spec.rb +137 -0
- data/spec/controllers/series_has_manifestations_controller_spec.rb +443 -0
- data/spec/controllers/series_statements_controller_spec.rb +441 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +176 -0
- data/spec/dummy/app/helpers/application_helper.rb +227 -0
- data/spec/dummy/app/mailers/notifier.rb +36 -0
- data/spec/dummy/app/models/ability.rb +184 -0
- data/spec/dummy/app/models/library_group.rb +86 -0
- data/spec/dummy/app/models/role.rb +46 -0
- data/spec/dummy/app/models/user.rb +94 -0
- data/spec/dummy/app/models/user_group.rb +40 -0
- data/spec/dummy/app/models/user_has_role.rb +5 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/page/403.html.erb +9 -0
- data/spec/dummy/app/views/page/403.mobile.erb +5 -0
- data/spec/dummy/app/views/page/403.xml.erb +4 -0
- data/spec/dummy/app/views/page/404.html.erb +9 -0
- data/spec/dummy/app/views/page/404.mobile.erb +5 -0
- data/spec/dummy/app/views/page/404.xml.erb +4 -0
- data/spec/dummy/config/application.rb +57 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/configatron/defaults.rb +28 -0
- data/spec/dummy/config/configatron/development.rb +4 -0
- data/spec/dummy/config/configatron/production.rb +12 -0
- data/spec/dummy/config/configatron/production.rb.sample +12 -0
- data/spec/dummy/config/configatron/test.rb +7 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/configatron.rb +2 -0
- data/spec/dummy/config/initializers/devise.rb +205 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +10 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/active_support_en.yml +36 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/locales/ja.yml +149 -0
- data/spec/dummy/config/routes.rb +60 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/032_create_checkins.rb +17 -0
- data/spec/dummy/db/migrate/033_create_checkouts.rb +25 -0
- data/spec/dummy/db/migrate/035_create_reserves.rb +27 -0
- data/spec/dummy/db/migrate/055_create_bookmarks.rb +22 -0
- data/spec/dummy/db/migrate/059_create_libraries.rb +28 -0
- data/spec/dummy/db/migrate/069_create_shelves.rb +15 -0
- data/spec/dummy/db/migrate/077_create_user_groups.rb +16 -0
- data/spec/dummy/db/migrate/080_create_library_groups.rb +20 -0
- data/spec/dummy/db/migrate/113_create_events.rb +23 -0
- data/spec/dummy/db/migrate/114_create_event_categories.rb +16 -0
- data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
- data/spec/dummy/db/migrate/121_create_checked_items.rb +17 -0
- data/spec/dummy/db/migrate/124_create_bookstores.rb +17 -0
- data/spec/dummy/db/migrate/127_create_use_restrictions.rb +16 -0
- data/spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb +16 -0
- data/spec/dummy/db/migrate/130_create_request_status_types.rb +12 -0
- data/spec/dummy/db/migrate/131_create_request_types.rb +12 -0
- data/spec/dummy/db/migrate/132_create_circulation_statuses.rb +16 -0
- data/spec/dummy/db/migrate/149_create_message_templates.rb +18 -0
- data/spec/dummy/db/migrate/154_create_messages.rb +24 -0
- data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +20 -0
- data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +17 -0
- data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +27 -0
- data/spec/dummy/db/migrate/20081030023412_create_checkout_types.rb +17 -0
- data/spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb +25 -0
- data/spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb +18 -0
- data/spec/dummy/db/migrate/20081117143156_create_inventory_files.rb +18 -0
- data/spec/dummy/db/migrate/20081117143455_create_inventories.rb +17 -0
- data/spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb +17 -0
- data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081212151614_create_bookmark_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081212151820_create_bookmark_stat_has_manifestations.rb +13 -0
- data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb +17 -0
- data/spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb +17 -0
- data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb +17 -0
- data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +27 -0
- data/spec/dummy/db/migrate/20090519203307_create_participates.rb +17 -0
- data/spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb +15 -0
- data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +21 -0
- data/spec/dummy/db/migrate/20091202124834_create_versions.rb +18 -0
- data/spec/dummy/db/migrate/20100222124420_add_allow_bookmark_external_url_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20100525171356_acts_as_taggable_on_migration.rb +30 -0
- data/spec/dummy/db/migrate/20100527113752_create_delayed_jobs.rb +21 -0
- data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +15 -0
- data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb +9 -0
- data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +13 -0
- data/spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb +9 -0
- data/spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb +9 -0
- data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +13 -0
- data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +11 -0
- data/spec/dummy/db/migrate/20111201121844_create_roles.rb +12 -0
- data/spec/dummy/db/migrate/20111201155456_create_users.rb +16 -0
- data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +44 -0
- data/spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb +10 -0
- data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +5 -0
- data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +6 -0
- data/spec/dummy/db/migrate/20111231145823_add_share_bookmarks_to_user.rb +5 -0
- data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +5 -0
- data/spec/dummy/db/migrate/20120105101944_add_queue_to_delayed_jobs.rb +9 -0
- data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +6 -0
- data/spec/dummy/db/migrate/20120129014038_create_budget_types.rb +12 -0
- data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
- data/spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb +9 -0
- data/spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb +5 -0
- data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +5 -0
- data/spec/dummy/db/schema.rb +1240 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/enju_leaf/calculate_stat.rb +30 -0
- data/spec/dummy/lib/enju_leaf/localized_name.rb +15 -0
- data/spec/dummy/lib/enju_leaf/openurl.rb +156 -0
- data/spec/dummy/lib/enju_leaf/porta_cql.rb +283 -0
- data/spec/dummy/lib/enju_leaf/sru.rb +84 -0
- data/spec/dummy/lib/enju_leaf.rb +12 -0
- data/spec/dummy/lib/plugins/ext/event-calendar.rb +38 -0
- data/spec/dummy/lib/plugins/ext/sunspot/abstract_search.rb +12 -0
- data/spec/dummy/lib/plugins/ext/sunspot/dismax.rb +41 -0
- data/spec/dummy/lib/plugins/ext/sunspot/start_record.rb +55 -0
- data/spec/dummy/lib/plugins/ext/sunspot.rb +3 -0
- data/spec/dummy/lib/plugins/ext/will_paginate.rb +64 -0
- data/spec/dummy/lib/plugins/ext.rb +3 -0
- data/spec/dummy/lib/plugins.rb +2 -0
- data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_delete_file.tsv +8 -0
- data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_import_file_sample1.tsv +5 -0
- data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_import_file_sample3.tsv +5 -0
- data/spec/dummy/private/system/patron_import_files/patron_imports/000/000/004/original/patron_update_file.tsv +3 -0
- data/spec/dummy/private/system/picture_files/pictures/000/000/005/medium/spinner.gif +0 -0
- data/spec/dummy/private/system/picture_files/pictures/000/000/005/original/spinner.gif +0 -0
- data/spec/dummy/private/system/picture_files/pictures/000/000/005/thumb/spinner.gif +0 -0
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/isbn_sample.txt +3 -0
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/item_delete_file.tsv +11 -0
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/item_update_file.tsv +4 -0
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample1.tsv +19 -0
- data/spec/dummy/private/system/resource_import_files/resource_imports/000/000/004/original/resource_import_file_sample2.tsv +19 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/solr/conf/admin-extra.html +31 -0
- data/spec/dummy/solr/conf/elevate.xml +36 -0
- data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/spec/dummy/solr/conf/protwords.txt +21 -0
- data/spec/dummy/solr/conf/schema.xml +244 -0
- data/spec/dummy/solr/conf/scripts.conf +24 -0
- data/spec/dummy/solr/conf/solrconfig.xml +934 -0
- data/spec/dummy/solr/conf/spellings.txt +2 -0
- data/spec/dummy/solr/conf/stopwords.txt +58 -0
- data/spec/dummy/solr/conf/synonyms.txt +31 -0
- data/spec/dummy/solr/data/test/index/_0.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_0.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_0.fnm +7 -0
- data/spec/dummy/solr/data/test/index/_0.frq +0 -0
- data/spec/dummy/solr/data/test/index/_0.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_0.prx +0 -0
- data/spec/dummy/solr/data/test/index/_0.tii +0 -0
- data/spec/dummy/solr/data/test/index/_0.tis +0 -0
- data/spec/dummy/solr/data/test/index/_1.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_1.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_1.fnm +7 -0
- data/spec/dummy/solr/data/test/index/_1.frq +0 -0
- data/spec/dummy/solr/data/test/index/_1.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_1.prx +0 -0
- data/spec/dummy/solr/data/test/index/_1.tii +0 -0
- data/spec/dummy/solr/data/test/index/_1.tis +0 -0
- data/spec/dummy/solr/data/test/index/_2.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_2.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_2.fnm +7 -0
- data/spec/dummy/solr/data/test/index/_2.frq +0 -0
- data/spec/dummy/solr/data/test/index/_2.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_2.prx +0 -0
- data/spec/dummy/solr/data/test/index/_2.tii +0 -0
- data/spec/dummy/solr/data/test/index/_2.tis +0 -0
- data/spec/dummy/solr/data/test/index/_3.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_3.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_3.fnm +8 -0
- data/spec/dummy/solr/data/test/index/_3.frq +0 -0
- data/spec/dummy/solr/data/test/index/_3.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_3.prx +0 -0
- data/spec/dummy/solr/data/test/index/_3.tii +0 -0
- data/spec/dummy/solr/data/test/index/_3.tis +0 -0
- data/spec/dummy/solr/data/test/index/_4.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_4.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_4.fnm +9 -0
- data/spec/dummy/solr/data/test/index/_4.frq +0 -0
- data/spec/dummy/solr/data/test/index/_4.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_4.prx +0 -0
- data/spec/dummy/solr/data/test/index/_4.tii +0 -0
- data/spec/dummy/solr/data/test/index/_4.tis +0 -0
- data/spec/dummy/solr/data/test/index/_6.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_6.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_6.fnm +10 -0
- data/spec/dummy/solr/data/test/index/_6.frq +0 -0
- data/spec/dummy/solr/data/test/index/_6.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_6.prx +0 -0
- data/spec/dummy/solr/data/test/index/_6.tii +0 -0
- data/spec/dummy/solr/data/test/index/_6.tis +0 -0
- data/spec/dummy/solr/data/test/index/_6_1.del +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_8 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments.gen +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
- data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
- data/spec/factories/carrier_type.rb +5 -0
- data/spec/factories/content_type.rb +5 -0
- data/spec/factories/country.rb +8 -0
- data/spec/factories/create.rb +6 -0
- data/spec/factories/create_types.rb +9 -0
- data/spec/factories/donate.rb +6 -0
- data/spec/factories/exemplify.rb +6 -0
- data/spec/factories/extent.rb +5 -0
- data/spec/factories/form_of_work.rb +5 -0
- data/spec/factories/frequency.rb +5 -0
- data/spec/factories/import_request.rb +5 -0
- data/spec/factories/item.rb +7 -0
- data/spec/factories/language.rb +8 -0
- data/spec/factories/license.rb +5 -0
- data/spec/factories/manifestation.rb +6 -0
- data/spec/factories/manifestation_relationship.rb +6 -0
- data/spec/factories/manifestation_relationship_type.rb +5 -0
- data/spec/factories/medium_of_performance.rb +5 -0
- data/spec/factories/own.rb +6 -0
- data/spec/factories/patron.rb +13 -0
- data/spec/factories/patron_relationship.rb +6 -0
- data/spec/factories/patron_relationship_type.rb +5 -0
- data/spec/factories/patron_type.rb +5 -0
- data/spec/factories/produce.rb +6 -0
- data/spec/factories/produce_types.rb +9 -0
- data/spec/factories/realize.rb +6 -0
- data/spec/factories/realize_types.rb +9 -0
- data/spec/factories/series_has_manifestation.rb +6 -0
- data/spec/factories/series_statement.rb +5 -0
- data/spec/factories/user.rb +37 -0
- data/spec/fixtures/baskets.yml +80 -0
- data/spec/fixtures/bookstores.yml +107 -0
- data/spec/fixtures/budget_types.yml +29 -0
- data/spec/fixtures/carrier_type_has_checkout_types.yml +31 -0
- data/spec/fixtures/carrier_types.yml +51 -0
- data/spec/fixtures/checked_items.yml +35 -0
- data/spec/fixtures/checkins.yml +48 -0
- data/spec/fixtures/checkout_stat_has_manifestations.yml +24 -0
- data/spec/fixtures/checkout_stat_has_users.yml +24 -0
- data/spec/fixtures/checkout_types.yml +34 -0
- data/spec/fixtures/checkouts.yml +162 -0
- data/spec/fixtures/circulation_statuses.yml +136 -0
- data/spec/fixtures/content_types.yml +36 -0
- data/spec/fixtures/countries.yml +2059 -0
- data/spec/fixtures/create_types.yml +47 -0
- data/spec/fixtures/creates.yml +65 -0
- data/spec/fixtures/donates.yml +31 -0
- data/spec/fixtures/event_categories.yml +55 -0
- data/spec/fixtures/events.yml +142 -0
- data/spec/fixtures/exemplifies.yml +155 -0
- data/spec/fixtures/extents.yml +29 -0
- data/spec/fixtures/form_of_works.yml +39 -0
- data/spec/fixtures/frequencies.yml +85 -0
- data/spec/fixtures/import_requests.yml +27 -0
- data/spec/fixtures/inventory_files.yml +40 -0
- data/spec/fixtures/item_has_use_restrictions.yml +61 -0
- data/spec/fixtures/items.yml +257 -0
- data/spec/fixtures/languages.yml +1901 -0
- data/spec/fixtures/lending_policies.yml +92 -0
- data/spec/fixtures/libraries.yml +102 -0
- data/spec/fixtures/library_groups.yml +33 -0
- data/spec/fixtures/licenses.yml +29 -0
- data/spec/fixtures/manifestation_checkout_stats.yml +31 -0
- data/spec/fixtures/manifestation_relationship_types.yml +29 -0
- data/spec/fixtures/manifestation_relationships.yml +30 -0
- data/spec/fixtures/manifestation_reserve_stats.yml +31 -0
- data/spec/fixtures/manifestations.yml +2020 -0
- data/spec/fixtures/medium_of_performances.yml +29 -0
- data/spec/fixtures/message_requests.yml +30 -0
- data/spec/fixtures/message_templates.yml +70 -0
- data/spec/fixtures/messages.yml +62 -0
- data/spec/fixtures/owns.yml +26 -0
- data/spec/fixtures/patron_import_files.yml +47 -0
- data/spec/fixtures/patron_import_results.yml +29 -0
- data/spec/fixtures/patron_relationship_types.yml +34 -0
- data/spec/fixtures/patron_relationships.yml +25 -0
- data/spec/fixtures/patron_types.yml +35 -0
- data/spec/fixtures/patrons.yml +338 -0
- data/spec/fixtures/picture_files.yml +63 -0
- data/spec/fixtures/produce_types.yml +31 -0
- data/spec/fixtures/produces.yml +149 -0
- data/spec/fixtures/realize_types.yml +39 -0
- data/spec/fixtures/realizes.yml +86 -0
- data/spec/fixtures/request_status_types.yml +63 -0
- data/spec/fixtures/request_types.yml +55 -0
- data/spec/fixtures/reserve_stat_has_manifestations.yml +24 -0
- data/spec/fixtures/reserve_stat_has_users.yml +24 -0
- data/spec/fixtures/reserves.yml +158 -0
- data/spec/fixtures/resource_import_files.yml +47 -0
- data/spec/fixtures/resource_import_results.yml +29 -0
- data/spec/fixtures/roles.yml +21 -0
- data/spec/fixtures/series_has_manifestations.yml +35 -0
- data/spec/fixtures/series_statements.yml +45 -0
- data/spec/fixtures/shelves.yml +47 -0
- data/spec/fixtures/use_restrictions.yml +93 -0
- data/spec/fixtures/user_checkout_stats.yml +30 -0
- data/spec/fixtures/user_group_has_checkout_types.yml +111 -0
- data/spec/fixtures/user_groups.yml +51 -0
- data/spec/fixtures/user_has_roles.yml +41 -0
- data/spec/fixtures/user_reserve_stats.yml +30 -0
- data/spec/fixtures/users.yml +106 -0
- data/spec/models/carrier_type_spec.rb +25 -0
- data/spec/models/content_type_spec.rb +21 -0
- data/spec/models/country_spec.rb +22 -0
- data/spec/models/create_spec.rb +22 -0
- data/spec/models/create_type_spec.rb +21 -0
- data/spec/models/donate_spec.rb +19 -0
- data/spec/models/exemplify_spec.rb +29 -0
- data/spec/models/extent_spec.rb +21 -0
- data/spec/models/form_of_work_spec.rb +21 -0
- data/spec/models/frequency_spec.rb +24 -0
- data/spec/models/import_request_spec.rb +21 -0
- data/spec/models/item_spec.rb +70 -0
- data/spec/models/language_spec.rb +23 -0
- data/spec/models/license_spec.rb +21 -0
- data/spec/models/manifestation_relationship_spec.rb +21 -0
- data/spec/models/manifestation_relationship_type_spec.rb +21 -0
- data/spec/models/manifestation_spec.rb +292 -0
- data/spec/models/medium_of_performance_spec.rb +21 -0
- data/spec/models/own_spec.rb +20 -0
- data/spec/models/patron_import_file_spec.rb +96 -0
- data/spec/models/patron_import_result_spec.rb +21 -0
- data/spec/models/patron_relationship_spec.rb +21 -0
- data/spec/models/patron_relationship_type_spec.rb +21 -0
- data/spec/models/patron_spec.rb +103 -0
- data/spec/models/patron_type_spec.rb +21 -0
- data/spec/models/picture_file_spec.rb +29 -0
- data/spec/models/produce_spec.rb +22 -0
- data/spec/models/produce_type_spec.rb +21 -0
- data/spec/models/realize_spec.rb +22 -0
- data/spec/models/realize_type_spec.rb +21 -0
- data/spec/models/resource_import_file_spec.rb +166 -0
- data/spec/models/resource_import_result_spec.rb +21 -0
- data/spec/models/series_has_manifestation_spec.rb +21 -0
- data/spec/models/series_statement_spec.rb +38 -0
- data/spec/requests/create_types_spec.rb +11 -0
- data/spec/requests/items_spec.rb +9 -0
- data/spec/requests/manifestations_spec.rb +9 -0
- data/spec/requests/patrons_spec.rb +9 -0
- data/spec/requests/produce_types_spec.rb +11 -0
- data/spec/requests/realize_types_spec.rb +11 -0
- data/spec/routing/content_types_routing_spec.rb +35 -0
- data/spec/routing/create_types_routing_spec.rb +35 -0
- data/spec/routing/creates_routing_spec.rb +35 -0
- data/spec/routing/items_routing_spec.rb +35 -0
- data/spec/routing/licenses_routing_spec.rb +35 -0
- data/spec/routing/manifestation_relationship_types_routing_spec.rb +35 -0
- data/spec/routing/manifestation_relationships_routing_spec.rb +35 -0
- data/spec/routing/manifestations_routing_spec.rb +39 -0
- data/spec/routing/patron_relationship_types_routing_spec.rb +35 -0
- data/spec/routing/patron_relationships_routing_spec.rb +35 -0
- data/spec/routing/patrons_routing_spec.rb +35 -0
- data/spec/routing/produce_types_routing_spec.rb +35 -0
- data/spec/routing/realize_types_routing_spec.rb +35 -0
- data/spec/routing/realizes_routing_spec.rb +35 -0
- data/spec/routing/series_has_manifestations_routing_spec.rb +35 -0
- data/spec/spec_helper.rb +54 -0
- data/spec/support/controller_macros.rb +46 -0
- data/spec/support/devise.rb +4 -0
- data/spec/support/vcr.rb +9 -0
- data/spec/views/create_types/edit.html.erb_spec.rb +23 -0
- data/spec/views/create_types/index.html.erb_spec.rb +31 -0
- data/spec/views/create_types/new.html.erb_spec.rb +23 -0
- data/spec/views/create_types/show.html.erb_spec.rb +24 -0
- data/spec/views/creates/edit.html.erb_spec.rb +25 -0
- data/spec/views/creates/index.html.erb_spec.rb +25 -0
- data/spec/views/creates/new.html.erb_spec.rb +25 -0
- data/spec/views/creates/show.html.erb_spec.rb +19 -0
- data/spec/views/exemplifies/edit.html.erb_spec.rb +22 -0
- data/spec/views/exemplifies/index.html.erb_spec.rb +25 -0
- data/spec/views/exemplifies/new.html.erb_spec.rb +22 -0
- data/spec/views/exemplifies/show.html.erb_spec.rb +19 -0
- data/spec/views/manifestations/show.html.erb_spec.rb +16 -0
- data/spec/views/owns/edit.html.erb_spec.rb +22 -0
- data/spec/views/owns/index.html.erb_spec.rb +25 -0
- data/spec/views/owns/new.html.erb_spec.rb +22 -0
- data/spec/views/owns/show.html.erb_spec.rb +19 -0
- data/spec/views/produce_types/edit.html.erb_spec.rb +23 -0
- data/spec/views/produce_types/index.html.erb_spec.rb +31 -0
- data/spec/views/produce_types/new.html.erb_spec.rb +23 -0
- data/spec/views/produce_types/show.html.erb_spec.rb +24 -0
- data/spec/views/produces/edit.html.erb_spec.rb +26 -0
- data/spec/views/produces/index.html.erb_spec.rb +25 -0
- data/spec/views/produces/new.html.erb_spec.rb +26 -0
- data/spec/views/produces/show.html.erb_spec.rb +19 -0
- data/spec/views/realize_types/edit.html.erb_spec.rb +23 -0
- data/spec/views/realize_types/index.html.erb_spec.rb +31 -0
- data/spec/views/realize_types/new.html.erb_spec.rb +23 -0
- data/spec/views/realize_types/show.html.erb_spec.rb +24 -0
- data/spec/views/realizes/edit.html.erb_spec.rb +26 -0
- data/spec/views/realizes/index.html.erb_spec.rb +25 -0
- data/spec/views/realizes/new.html.erb_spec.rb +26 -0
- data/spec/views/realizes/show.html.erb_spec.rb +19 -0
- data/spec/views/series_has_manifestations/edit.html.erb_spec.rb +21 -0
- data/spec/views/series_has_manifestations/index.html.erb_spec.rb +31 -0
- data/spec/views/series_has_manifestations/new.html.erb_spec.rb +21 -0
- data/spec/views/series_has_manifestations/show.html.erb_spec.rb +21 -0
- metadata +1930 -0
@@ -0,0 +1,205 @@
|
|
1
|
+
# Use this hook to configure devise mailer, warden hooks and so forth.
|
2
|
+
# Many of these configuration options can be set straight in your model.
|
3
|
+
Devise.setup do |config|
|
4
|
+
# ==> Mailer Configuration
|
5
|
+
# Configure the e-mail address which will be shown in Devise::Mailer,
|
6
|
+
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
|
7
|
+
config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
|
8
|
+
|
9
|
+
# Configure the class responsible to send e-mails.
|
10
|
+
# config.mailer = "Devise::Mailer"
|
11
|
+
|
12
|
+
# ==> ORM configuration
|
13
|
+
# Load and configure the ORM. Supports :active_record (default) and
|
14
|
+
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
15
|
+
# available as additional gems.
|
16
|
+
require 'devise/orm/active_record'
|
17
|
+
|
18
|
+
# ==> Configuration for any authentication mechanism
|
19
|
+
# Configure which keys are used when authenticating a user. The default is
|
20
|
+
# just :email. You can configure it to use [:username, :subdomain], so for
|
21
|
+
# authenticating a user, both parameters are required. Remember that those
|
22
|
+
# parameters are used only when authenticating and not when retrieving from
|
23
|
+
# session. If you need permissions, you should implement that in a before filter.
|
24
|
+
# You can also supply a hash where the value is a boolean determining whether
|
25
|
+
# or not authentication should be aborted when the value is not present.
|
26
|
+
# config.authentication_keys = [ :email ]
|
27
|
+
|
28
|
+
# Configure parameters from the request object used for authentication. Each entry
|
29
|
+
# given should be a request method and it will automatically be passed to the
|
30
|
+
# find_for_authentication method and considered in your model lookup. For instance,
|
31
|
+
# if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
|
32
|
+
# The same considerations mentioned for authentication_keys also apply to request_keys.
|
33
|
+
# config.request_keys = []
|
34
|
+
|
35
|
+
# Configure which authentication keys should be case-insensitive.
|
36
|
+
# These keys will be downcased upon creating or modifying a user and when used
|
37
|
+
# to authenticate or find a user. Default is :email.
|
38
|
+
config.case_insensitive_keys = [ :email ]
|
39
|
+
|
40
|
+
# Configure which authentication keys should have whitespace stripped.
|
41
|
+
# These keys will have whitespace before and after removed upon creating or
|
42
|
+
# modifying a user and when used to authenticate or find a user. Default is :email.
|
43
|
+
config.strip_whitespace_keys = [ :email ]
|
44
|
+
|
45
|
+
# Tell if authentication through request.params is enabled. True by default.
|
46
|
+
# config.params_authenticatable = true
|
47
|
+
|
48
|
+
# Tell if authentication through HTTP Basic Auth is enabled. False by default.
|
49
|
+
# config.http_authenticatable = false
|
50
|
+
|
51
|
+
# If http headers should be returned for AJAX requests. True by default.
|
52
|
+
# config.http_authenticatable_on_xhr = true
|
53
|
+
|
54
|
+
# The realm used in Http Basic Authentication. "Application" by default.
|
55
|
+
# config.http_authentication_realm = "Application"
|
56
|
+
|
57
|
+
# It will change confirmation, password recovery and other workflows
|
58
|
+
# to behave the same regardless if the e-mail provided was right or wrong.
|
59
|
+
# Does not affect registerable.
|
60
|
+
# config.paranoid = true
|
61
|
+
|
62
|
+
# ==> Configuration for :database_authenticatable
|
63
|
+
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
|
64
|
+
# using other encryptors, it sets how many times you want the password re-encrypted.
|
65
|
+
#
|
66
|
+
# Limiting the stretches to just one in testing will increase the performance of
|
67
|
+
# your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
|
68
|
+
# a value less than 10 in other environments.
|
69
|
+
config.stretches = Rails.env.test? ? 1 : 10
|
70
|
+
|
71
|
+
# Setup a pepper to generate the encrypted password.
|
72
|
+
# config.pepper = "9c3e60feae3030ec50d52f408005d7083c980b028e24e96536c60829394fd7cf5e26fdfed03e48b756b8bbf16177d73cca8cc6d036b2e916c953faf8d2c0238c"
|
73
|
+
|
74
|
+
# ==> Configuration for :confirmable
|
75
|
+
# A period that the user is allowed to access the website even without
|
76
|
+
# confirming his account. For instance, if set to 2.days, the user will be
|
77
|
+
# able to access the website for two days without confirming his account,
|
78
|
+
# access will be blocked just in the third day. Default is 0.days, meaning
|
79
|
+
# the user cannot access the website without confirming his account.
|
80
|
+
# config.confirm_within = 2.days
|
81
|
+
|
82
|
+
# Defines which key will be used when confirming an account
|
83
|
+
# config.confirmation_keys = [ :email ]
|
84
|
+
|
85
|
+
# ==> Configuration for :rememberable
|
86
|
+
# The time the user will be remembered without asking for credentials again.
|
87
|
+
# config.remember_for = 2.weeks
|
88
|
+
|
89
|
+
# If true, a valid remember token can be re-used between multiple browsers.
|
90
|
+
# config.remember_across_browsers = true
|
91
|
+
|
92
|
+
# If true, extends the user's remember period when remembered via cookie.
|
93
|
+
# config.extend_remember_period = false
|
94
|
+
|
95
|
+
# Options to be passed to the created cookie. For instance, you can set
|
96
|
+
# :secure => true in order to force SSL only cookies.
|
97
|
+
# config.cookie_options = {}
|
98
|
+
|
99
|
+
# ==> Configuration for :validatable
|
100
|
+
# Range for password length. Default is 6..128.
|
101
|
+
# config.password_length = 6..128
|
102
|
+
|
103
|
+
# Email regex used to validate email formats. It simply asserts that
|
104
|
+
# an one (and only one) @ exists in the given string. This is mainly
|
105
|
+
# to give user feedback and not to assert the e-mail validity.
|
106
|
+
# config.email_regexp = /\A[^@]+@[^@]+\z/
|
107
|
+
|
108
|
+
# ==> Configuration for :timeoutable
|
109
|
+
# The time you want to timeout the user session without activity. After this
|
110
|
+
# time the user will be asked for credentials again. Default is 30 minutes.
|
111
|
+
# config.timeout_in = 30.minutes
|
112
|
+
|
113
|
+
# ==> Configuration for :lockable
|
114
|
+
# Defines which strategy will be used to lock an account.
|
115
|
+
# :failed_attempts = Locks an account after a number of failed attempts to sign in.
|
116
|
+
# :none = No lock strategy. You should handle locking by yourself.
|
117
|
+
# config.lock_strategy = :failed_attempts
|
118
|
+
|
119
|
+
# Defines which key will be used when locking and unlocking an account
|
120
|
+
# config.unlock_keys = [ :email ]
|
121
|
+
|
122
|
+
# Defines which strategy will be used to unlock an account.
|
123
|
+
# :email = Sends an unlock link to the user email
|
124
|
+
# :time = Re-enables login after a certain amount of time (see :unlock_in below)
|
125
|
+
# :both = Enables both strategies
|
126
|
+
# :none = No unlock strategy. You should handle unlocking by yourself.
|
127
|
+
# config.unlock_strategy = :both
|
128
|
+
|
129
|
+
# Number of authentication tries before locking an account if lock_strategy
|
130
|
+
# is failed attempts.
|
131
|
+
# config.maximum_attempts = 20
|
132
|
+
|
133
|
+
# Time interval to unlock the account if :time is enabled as unlock_strategy.
|
134
|
+
# config.unlock_in = 1.hour
|
135
|
+
|
136
|
+
# ==> Configuration for :recoverable
|
137
|
+
#
|
138
|
+
# Defines which key will be used when recovering the password for an account
|
139
|
+
# config.reset_password_keys = [ :email ]
|
140
|
+
|
141
|
+
# Time interval you can reset your password with a reset password key.
|
142
|
+
# Don't put a too small interval or your users won't have the time to
|
143
|
+
# change their passwords.
|
144
|
+
config.reset_password_within = 2.hours
|
145
|
+
|
146
|
+
# ==> Configuration for :encryptable
|
147
|
+
# Allow you to use another encryption algorithm besides bcrypt (default). You can use
|
148
|
+
# :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
|
149
|
+
# :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
|
150
|
+
# and :restful_authentication_sha1 (then you should set stretches to 10, and copy
|
151
|
+
# REST_AUTH_SITE_KEY to pepper)
|
152
|
+
# config.encryptor = :sha512
|
153
|
+
|
154
|
+
# ==> Configuration for :token_authenticatable
|
155
|
+
# Defines name of the authentication token params key
|
156
|
+
# config.token_authentication_key = :auth_token
|
157
|
+
|
158
|
+
# If true, authentication through token does not store user in session and needs
|
159
|
+
# to be supplied on each request. Useful if you are using the token as API token.
|
160
|
+
# config.stateless_token = false
|
161
|
+
|
162
|
+
# ==> Scopes configuration
|
163
|
+
# Turn scoped views on. Before rendering "sessions/new", it will first check for
|
164
|
+
# "users/sessions/new". It's turned off by default because it's slower if you
|
165
|
+
# are using only default views.
|
166
|
+
# config.scoped_views = false
|
167
|
+
|
168
|
+
# Configure the default scope given to Warden. By default it's the first
|
169
|
+
# devise role declared in your routes (usually :user).
|
170
|
+
# config.default_scope = :user
|
171
|
+
|
172
|
+
# Configure sign_out behavior.
|
173
|
+
# Sign_out action can be scoped (i.e. /users/sign_out affects only :user scope).
|
174
|
+
# The default is true, which means any logout action will sign out all active scopes.
|
175
|
+
# config.sign_out_all_scopes = true
|
176
|
+
|
177
|
+
# ==> Navigation configuration
|
178
|
+
# Lists the formats that should be treated as navigational. Formats like
|
179
|
+
# :html, should redirect to the sign in page when the user does not have
|
180
|
+
# access, but formats like :xml or :json, should return 401.
|
181
|
+
#
|
182
|
+
# If you have any extra navigational formats, like :iphone or :mobile, you
|
183
|
+
# should add them to the navigational formats lists.
|
184
|
+
#
|
185
|
+
# The :"*/*" and "*/*" formats below is required to match Internet
|
186
|
+
# Explorer requests.
|
187
|
+
# config.navigational_formats = [:"*/*", "*/*", :html]
|
188
|
+
|
189
|
+
# The default HTTP method used to sign out a resource. Default is :delete.
|
190
|
+
config.sign_out_via = :delete
|
191
|
+
|
192
|
+
# ==> OmniAuth
|
193
|
+
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
194
|
+
# up on your models and hooks.
|
195
|
+
# config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
|
196
|
+
|
197
|
+
# ==> Warden configuration
|
198
|
+
# If you want to use other strategies, that are not supported by Devise, or
|
199
|
+
# change the failure app, you can configure them inside the config.warden block.
|
200
|
+
#
|
201
|
+
# config.warden do |manager|
|
202
|
+
# manager.intercept_401 = false
|
203
|
+
# manager.default_strategies(:scope => :user).unshift :some_external_strategy
|
204
|
+
# end
|
205
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
inflect.irregular 'reserve', 'reserves'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
end
|
12
|
+
#
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new mime types for use in respond_to blocks:
|
4
|
+
# Mime::Type.register "text/richtext", :rtf
|
5
|
+
# Mime::Type.register_alias "text/html", :iphone
|
6
|
+
Mime::Type.register "application/octet-stream", :download
|
7
|
+
Mime::Type.register "application/rdf+xml", :rdf
|
8
|
+
Mime::Type.register "application/xml", :sru
|
9
|
+
Mime::Type.register "application/xml", :mods
|
10
|
+
Mime::Type.register_alias "text/xml", :oai
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Dummy::Application.config.secret_token = '450dc1fa189aa25ad061b8a046cefaf7b54b86915ef359d1905a3e281b0bf813e5e8137d0e6894b276490ee21eb00dc34aae3063932c28d97d1d353aae372233'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
en:
|
2
|
+
date:
|
3
|
+
formats:
|
4
|
+
# Use the strftime parameters for formats.
|
5
|
+
# When no format has been given, it uses default.
|
6
|
+
# You can provide other formats here if you like!
|
7
|
+
default: "%b %d, %Y"
|
8
|
+
short: "%m/%d/%y"
|
9
|
+
long: "%A, %B %d, %Y"
|
10
|
+
|
11
|
+
day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
|
12
|
+
abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
|
13
|
+
|
14
|
+
# Don't forget the nil at the beginning; there's no such thing as a 0th month
|
15
|
+
month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
|
16
|
+
abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
|
17
|
+
# Used in date_select and datime_select.
|
18
|
+
order: [ :year, :month, :day ]
|
19
|
+
|
20
|
+
time:
|
21
|
+
formats:
|
22
|
+
default: "%b %d, %Y %H:%M:%S"
|
23
|
+
short: "%m/%d/%y %H:%M"
|
24
|
+
long: "%A, %B %d, %Y %H:%M:%S %Z"
|
25
|
+
only_date: "%b %d, %Y"
|
26
|
+
only_year_and_month: "%m %Y"
|
27
|
+
only_month: "%m"
|
28
|
+
am: "am"
|
29
|
+
pm: "pm"
|
30
|
+
|
31
|
+
# Used in array.to_sentence.
|
32
|
+
support:
|
33
|
+
array:
|
34
|
+
words_connector: ", "
|
35
|
+
two_words_connector: " and "
|
36
|
+
last_word_connector: ", and "
|
@@ -0,0 +1,149 @@
|
|
1
|
+
# Japanese translations for Ruby on Rails
|
2
|
+
# by Akira Matsuda (ronnie@dio.jp)
|
3
|
+
# AR error messages are basically taken from Ruby-GetText-Package. Thanks to Masao Mutoh.
|
4
|
+
|
5
|
+
ja:
|
6
|
+
helpers:
|
7
|
+
submit:
|
8
|
+
create: "%{model}を作成"
|
9
|
+
update: "%{model}を更新"
|
10
|
+
date:
|
11
|
+
formats:
|
12
|
+
default: "%Y/%m/%d"
|
13
|
+
short: "%m/%d"
|
14
|
+
long: "%Y年%m月%d日(%a)"
|
15
|
+
|
16
|
+
day_names: [日曜日, 月曜日, 火曜日, 水曜日, 木曜日, 金曜日, 土曜日]
|
17
|
+
abbr_day_names: [日, 月, 火, 水, 木, 金, 土]
|
18
|
+
|
19
|
+
month_names: [~, 1月, 2月, 3月, 4月, 5月, 6月, 7月, 8月, 9月, 10月, 11月, 12月]
|
20
|
+
abbr_month_names: [~, 1月, 2月, 3月, 4月, 5月, 6月, 7月, 8月, 9月, 10月, 11月, 12月]
|
21
|
+
|
22
|
+
order: [:year, :month, :day]
|
23
|
+
|
24
|
+
time:
|
25
|
+
formats:
|
26
|
+
default: "%Y/%m/%d %H:%M:%S"
|
27
|
+
short: "%y/%m/%d %H:%M"
|
28
|
+
long: "%Y年%m月%d日(%a) %H時%M分%S秒 %Z"
|
29
|
+
only_date: "%Y年%m月%d日"
|
30
|
+
only_year_and_month: "%Y年%m月"
|
31
|
+
only_month: "%m月"
|
32
|
+
am: "午前"
|
33
|
+
pm: "午後"
|
34
|
+
|
35
|
+
support:
|
36
|
+
array:
|
37
|
+
sentence_connector: ""
|
38
|
+
skip_last_comma: true
|
39
|
+
words_connector: ""
|
40
|
+
two_words_connector: ""
|
41
|
+
last_word_connector: ""
|
42
|
+
|
43
|
+
select:
|
44
|
+
prompt: "選択してください。"
|
45
|
+
|
46
|
+
number:
|
47
|
+
format:
|
48
|
+
separator: "."
|
49
|
+
delimiter: ","
|
50
|
+
precision: 3
|
51
|
+
|
52
|
+
currency:
|
53
|
+
format:
|
54
|
+
format: "%n%u"
|
55
|
+
unit: "円"
|
56
|
+
separator: "."
|
57
|
+
delimiter: ","
|
58
|
+
precision: 0
|
59
|
+
|
60
|
+
percentage:
|
61
|
+
format:
|
62
|
+
delimiter: ""
|
63
|
+
|
64
|
+
precision:
|
65
|
+
format:
|
66
|
+
delimiter: ""
|
67
|
+
|
68
|
+
human:
|
69
|
+
format:
|
70
|
+
delimiter: ""
|
71
|
+
precision: 1
|
72
|
+
storage_units:
|
73
|
+
format: "%n%u"
|
74
|
+
units:
|
75
|
+
byte: "バイト"
|
76
|
+
kb: "キロバイト"
|
77
|
+
mb: "メガバイト"
|
78
|
+
gb: "ギガバイト"
|
79
|
+
tb: "テラバイト"
|
80
|
+
|
81
|
+
datetime:
|
82
|
+
distance_in_words:
|
83
|
+
half_a_minute: "30秒前後"
|
84
|
+
less_than_x_seconds:
|
85
|
+
one: "1秒以内"
|
86
|
+
other: "%{count}秒以内"
|
87
|
+
x_seconds:
|
88
|
+
one: "1秒"
|
89
|
+
other: "%{count}秒"
|
90
|
+
less_than_x_minutes:
|
91
|
+
one: "1分以内"
|
92
|
+
other: "%{count}分以内"
|
93
|
+
x_minutes:
|
94
|
+
one: "1分"
|
95
|
+
other: "%{count}分"
|
96
|
+
about_x_hours:
|
97
|
+
one: "約1時間"
|
98
|
+
other: "約%{count}時間"
|
99
|
+
x_days:
|
100
|
+
one: "1日"
|
101
|
+
other: "%{count}日"
|
102
|
+
about_x_months:
|
103
|
+
one: "約1ヶ月"
|
104
|
+
other: "約%{count}ヶ月"
|
105
|
+
x_months:
|
106
|
+
one: "1ヶ月"
|
107
|
+
other: "%{count}ヶ月"
|
108
|
+
about_x_years:
|
109
|
+
one: "約%{count}年"
|
110
|
+
other: "約%{count}年"
|
111
|
+
over_x_years:
|
112
|
+
one: "%{count}年以上"
|
113
|
+
other: "%{count}年以上"
|
114
|
+
|
115
|
+
activerecord:
|
116
|
+
errors:
|
117
|
+
template:
|
118
|
+
header:
|
119
|
+
#one: "%{model}にエラーが発生しました。"
|
120
|
+
#other: "%{model}に%{count}つのエラーが発生しました。"
|
121
|
+
# authlogicでuser_sessionのtranslateができないため
|
122
|
+
one: "エラーが発生しました。"
|
123
|
+
other: "%{count}つのエラーが発生しました。"
|
124
|
+
body: "次の項目を確認してください。"
|
125
|
+
|
126
|
+
messages:
|
127
|
+
inclusion: "は一覧にありません。"
|
128
|
+
exclusion: "は予約されています。"
|
129
|
+
invalid: "は不正な値です。"
|
130
|
+
confirmation: "が一致しません。"
|
131
|
+
accepted: "を受諾してください。"
|
132
|
+
empty: "を入力してください。"
|
133
|
+
blank: "を入力してください。"
|
134
|
+
too_long: "は%{count}文字以内で入力してください。"
|
135
|
+
too_short: "は%{count}文字以上で入力してください。"
|
136
|
+
wrong_length: "は%{count}文字で入力してください。"
|
137
|
+
taken: "はすでに存在します。"
|
138
|
+
not_a_number: "は数値で入力してください。"
|
139
|
+
greater_than: "は%{count}より大きい値にしてください。"
|
140
|
+
greater_than_or_equal_to: "は%{count}以上の値にしてください。"
|
141
|
+
equal_to: "は%{count}にしてください。"
|
142
|
+
less_than: "は%{count}より小さい値にしてください。"
|
143
|
+
less_than_or_equal_to: "は%{count}以下の値にしてください。"
|
144
|
+
odd: "は奇数にしてください。"
|
145
|
+
even: "は偶数にしてください。"
|
146
|
+
record_invalid: "バリデーションに失敗しました。 %{errors}"
|
147
|
+
|
148
|
+
full_messages:
|
149
|
+
format: "%{attribute}%{message}"
|
@@ -0,0 +1,60 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
devise_for :users
|
3
|
+
|
4
|
+
# The priority is based upon order of creation:
|
5
|
+
# first created -> highest priority.
|
6
|
+
|
7
|
+
# Sample of regular route:
|
8
|
+
# match 'products/:id' => 'catalog#view'
|
9
|
+
# Keep in mind you can assign values other than :controller and :action
|
10
|
+
|
11
|
+
# Sample of named route:
|
12
|
+
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
13
|
+
# This route can be invoked with purchase_url(:id => product.id)
|
14
|
+
|
15
|
+
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
16
|
+
# resources :products
|
17
|
+
|
18
|
+
# Sample resource route with options:
|
19
|
+
# resources :products do
|
20
|
+
# member do
|
21
|
+
# get 'short'
|
22
|
+
# post 'toggle'
|
23
|
+
# end
|
24
|
+
#
|
25
|
+
# collection do
|
26
|
+
# get 'sold'
|
27
|
+
# end
|
28
|
+
# end
|
29
|
+
|
30
|
+
# Sample resource route with sub-resources:
|
31
|
+
# resources :products do
|
32
|
+
# resources :comments, :sales
|
33
|
+
# resource :seller
|
34
|
+
# end
|
35
|
+
|
36
|
+
# Sample resource route with more complex sub-resources
|
37
|
+
# resources :products do
|
38
|
+
# resources :comments
|
39
|
+
# resources :sales do
|
40
|
+
# get 'recent', :on => :collection
|
41
|
+
# end
|
42
|
+
# end
|
43
|
+
|
44
|
+
# Sample resource route within a namespace:
|
45
|
+
# namespace :admin do
|
46
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
47
|
+
# # (app/controllers/admin/products_controller.rb)
|
48
|
+
# resources :products
|
49
|
+
# end
|
50
|
+
|
51
|
+
# You can have the root of your site routed with "root"
|
52
|
+
# just remember to delete public/index.html.
|
53
|
+
# root :to => 'welcome#index'
|
54
|
+
|
55
|
+
# See how all your routes lay out with "rake routes"
|
56
|
+
|
57
|
+
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
58
|
+
# Note: This route will make all actions in every controller accessible via GET requests.
|
59
|
+
# match ':controller(/:action(/:id))(.:format)'
|
60
|
+
end
|
Binary file
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class CreateCheckins < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :checkins do |t|
|
4
|
+
t.integer :item_id, :null => false
|
5
|
+
t.integer :librarian_id
|
6
|
+
t.integer :basket_id
|
7
|
+
t.timestamps
|
8
|
+
end
|
9
|
+
add_index :checkins, :item_id
|
10
|
+
add_index :checkins, :librarian_id
|
11
|
+
add_index :checkins, :basket_id
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.down
|
15
|
+
drop_table :checkins
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class CreateCheckouts < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :checkouts do |t|
|
4
|
+
t.integer :user_id
|
5
|
+
t.integer :item_id, :null => false
|
6
|
+
t.integer :checkin_id
|
7
|
+
t.integer :librarian_id
|
8
|
+
t.integer :basket_id
|
9
|
+
t.datetime :due_date
|
10
|
+
t.integer :checkout_renewal_count, :default => 0, :null => false
|
11
|
+
t.integer :lock_version, :default => 0, :null => false
|
12
|
+
t.timestamps
|
13
|
+
end
|
14
|
+
add_index :checkouts, :user_id
|
15
|
+
add_index :checkouts, :item_id
|
16
|
+
add_index :checkouts, :basket_id
|
17
|
+
add_index :checkouts, [:item_id, :basket_id], :unique => true
|
18
|
+
add_index :checkouts, :librarian_id
|
19
|
+
add_index :checkouts, :checkin_id
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.down
|
23
|
+
drop_table :checkouts
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
class CreateReserves < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :reserves do |t|
|
4
|
+
t.integer :user_id, :null => false
|
5
|
+
t.integer :manifestation_id, :null => false
|
6
|
+
t.integer :item_id
|
7
|
+
t.integer :request_status_type_id, :null => false
|
8
|
+
t.datetime :checked_out_at
|
9
|
+
t.timestamps
|
10
|
+
t.datetime :canceled_at
|
11
|
+
t.datetime :expired_at
|
12
|
+
t.datetime :deleted_at
|
13
|
+
t.string :state
|
14
|
+
t.boolean :expiration_notice_to_patron, :default => false
|
15
|
+
t.boolean :expiration_notice_to_library, :default => false
|
16
|
+
end
|
17
|
+
|
18
|
+
add_index :reserves, :user_id
|
19
|
+
add_index :reserves, :manifestation_id
|
20
|
+
add_index :reserves, :item_id
|
21
|
+
add_index :reserves, :request_status_type_id
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.down
|
25
|
+
drop_table :reserves
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class CreateBookmarks < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :bookmarks, :force => true do |t|
|
4
|
+
t.integer :user_id, :null => false
|
5
|
+
t.integer :manifestation_id
|
6
|
+
t.text :title
|
7
|
+
t.string :url
|
8
|
+
t.text :note
|
9
|
+
t.boolean :shared
|
10
|
+
|
11
|
+
t.timestamps
|
12
|
+
end
|
13
|
+
|
14
|
+
add_index :bookmarks, :user_id
|
15
|
+
add_index :bookmarks, :manifestation_id
|
16
|
+
add_index :bookmarks, :url
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.down
|
20
|
+
drop_table :bookmarks
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
class CreateLibraries < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :libraries do |t|
|
4
|
+
t.string :name, :null => false
|
5
|
+
t.text :display_name
|
6
|
+
t.string :short_display_name, :null => false
|
7
|
+
t.string :zip_code
|
8
|
+
t.text :street
|
9
|
+
t.text :locality
|
10
|
+
t.text :region
|
11
|
+
t.string :telephone_number_1
|
12
|
+
t.string :telephone_number_2
|
13
|
+
t.string :fax_number
|
14
|
+
t.text :note
|
15
|
+
t.integer :call_number_rows, :default => 1, :null => false
|
16
|
+
t.string :call_number_delimiter, :default => "|", :null => false
|
17
|
+
t.integer :library_group_id, :default => 1, :null => false
|
18
|
+
t.integer :users_count, :default => 0, :null => false
|
19
|
+
t.integer :position
|
20
|
+
t.integer :country_id
|
21
|
+
|
22
|
+
t.timestamps
|
23
|
+
t.datetime :deleted_at
|
24
|
+
end
|
25
|
+
add_index :libraries, :library_group_id
|
26
|
+
add_index :libraries, :name, :unique => true
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class CreateShelves < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :shelves do |t|
|
4
|
+
t.string :name, :null => false
|
5
|
+
t.text :display_name
|
6
|
+
t.text :note
|
7
|
+
t.integer :library_id, :default => 1, :null => false
|
8
|
+
t.integer :items_count, :default => 0, :null => false
|
9
|
+
t.integer :position
|
10
|
+
t.timestamps
|
11
|
+
t.datetime :deleted_at
|
12
|
+
end
|
13
|
+
add_index :shelves, :library_id
|
14
|
+
end
|
15
|
+
end
|