enju_loc 0.1.0.pre1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +38 -0
- data/app/assets/javascripts/loc_search.js +2 -0
- data/app/assets/stylesheets/loc_search.css +4 -0
- data/app/controllers/loc_search_controller.rb +49 -0
- data/app/helpers/loc_search_helper.rb +18 -0
- data/app/models/loc_search.rb +97 -0
- data/app/views/loc_search/index.html.erb +49 -0
- data/config/locales/en.yml +13 -0
- data/config/locales/ja.yml +11 -0
- data/config/routes.rb +3 -0
- data/lib/enju_loc.rb +21 -0
- data/lib/enju_loc/engine.rb +7 -0
- data/lib/enju_loc/loc_search.rb +537 -0
- data/lib/enju_loc/version.rb +3 -0
- data/lib/tasks/enju_loc_tasks.rake +4 -0
- data/spec/cassette_library/LocSearch/_ModsRecord/should_parse_MODS_metadata.yml +111 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_a_valid_manifestation.yml +113 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_lcsh_subjects_only.yml +66 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_multiple_series_statements.yml +69 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_distinguish_title_information_with_subject.yml +67 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_a_manifestation_that_has_invalid_classification.yml +81 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_another_serial.yml +85 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_audio_book.yml +91 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_e-resource.yml +73 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_note_fields.yml +72 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_publication_year.yml +78 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_serial.yml +70 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_video_publication.yml +204 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_parse_title_information_properly.yml +80 -0
- data/spec/cassette_library/LocSearch/_import_from_sru_response/should_support_name_and_title_subjects.yml +77 -0
- data/spec/cassette_library/LocSearch/_search/should_return_a_search_result.yml +353 -0
- data/spec/cassette_library/LocSearchController/GET_index/should_get_index.yml +353 -0
- data/spec/cassette_library/LocSearchController/GET_index/should_get_index_with_page_parameter.yml +415 -0
- data/spec/cassette_library/LocSearchController/POST_create/should_create_a_bibliographic_record_if_lccn_is_set.yml +140 -0
- data/spec/cassette_library/LocSearchController/POST_create/should_not_create_a_bibliographic_record_if_lccn_is_not_set.yml +38 -0
- data/spec/controllers/loc_search_controller_spec.rb +44 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/setting.rb +4 -0
- data/spec/dummy/app/models/user.rb +8 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +47 -0
- data/spec/dummy/config/application.yml +38 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +30 -0
- data/spec/dummy/config/environments/production.rb +60 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/devise.rb +207 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/001_create_agents.rb +50 -0
- data/spec/dummy/db/migrate/002_devise_create_users.rb +46 -0
- data/spec/dummy/db/migrate/005_create_manifestations.rb +44 -0
- data/spec/dummy/db/migrate/006_create_items.rb +21 -0
- data/spec/dummy/db/migrate/012_create_owns.rb +12 -0
- data/spec/dummy/db/migrate/015_create_creates.rb +12 -0
- data/spec/dummy/db/migrate/029_create_subjects.rb +27 -0
- data/spec/dummy/db/migrate/041_create_roles.rb +13 -0
- data/spec/dummy/db/migrate/047_create_produces.rb +12 -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/073_create_carrier_types.rb +11 -0
- data/spec/dummy/db/migrate/077_create_user_groups.rb +12 -0
- data/spec/dummy/db/migrate/080_create_library_groups.rb +17 -0
- data/spec/dummy/db/migrate/112_create_frequencies.rb +12 -0
- data/spec/dummy/db/migrate/117_create_form_of_works.rb +12 -0
- data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
- data/spec/dummy/db/migrate/124_create_bookstores.rb +17 -0
- data/spec/dummy/db/migrate/125_create_donates.rb +12 -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/142_create_classifications.rb +19 -0
- data/spec/dummy/db/migrate/144_create_classification_types.rb +16 -0
- data/spec/dummy/db/migrate/145_create_subject_heading_types.rb +16 -0
- data/spec/dummy/db/migrate/146_create_subject_types.rb +16 -0
- data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +13 -0
- data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +13 -0
- data/spec/dummy/db/migrate/20080905191442_create_agent_types.rb +12 -0
- data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +17 -0
- data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +14 -0
- data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +17 -0
- data/spec/dummy/db/migrate/20081025083323_create_countries.rb +28 -0
- data/spec/dummy/db/migrate/20081025083905_create_languages.rb +23 -0
- data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +15 -0
- data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +20 -0
- data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +20 -0
- data/spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +15 -0
- data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
- data/spec/dummy/db/migrate/20090719201843_create_extents.rb +12 -0
- data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
- data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +12 -0
- data/spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb +12 -0
- data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +27 -0
- data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +12 -0
- data/spec/dummy/db/migrate/20091202124834_create_versions.rb +18 -0
- data/spec/dummy/db/migrate/20091214131723_create_series_statements.rb +13 -0
- data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +14 -0
- data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb +13 -0
- data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
- data/spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb +10 -0
- data/spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb +13 -0
- data/spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb +12 -0
- data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +13 -0
- data/spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb +12 -0
- data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +11 -0
- data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +15 -0
- data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +11 -0
- data/spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb +9 -0
- data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +9 -0
- data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +11 -0
- data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +11 -0
- data/spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
- data/spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +9 -0
- data/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb +11 -0
- data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
- data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
- data/spec/dummy/db/migrate/20110913120629_add_lft_and_rgt_to_classification.rb +11 -0
- data/spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb +13 -0
- data/spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb +10 -0
- data/spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb +9 -0
- data/spec/dummy/db/migrate/20111124110059_create_create_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124110319_create_realize_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124110355_create_produce_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb +7 -0
- data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +5 -0
- data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +6 -0
- data/spec/dummy/db/migrate/20120129014038_create_budget_types.rb +12 -0
- data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +6 -0
- data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
- data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
- data/spec/dummy/db/migrate/20120406020752_add_url_to_subject.rb +5 -0
- data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +5 -0
- data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
- data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +6 -0
- data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +16 -0
- data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +6 -0
- data/spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +7 -0
- data/spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb +5 -0
- data/spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb +6 -0
- data/spec/dummy/db/migrate/20130504133816_add_manifestation_id_to_subject.rb +6 -0
- data/spec/dummy/db/migrate/20130504143515_add_manifestation_id_to_classification.rb +6 -0
- data/spec/dummy/db/migrate/20130504195916_add_subject_heading_type_id_to_subject.rb +5 -0
- data/spec/dummy/db/migrate/20130506175303_create_identifier_types.rb +12 -0
- data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +15 -0
- data/spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +18 -0
- data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +11 -0
- data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
- data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +11 -0
- data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
- data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
- data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb +5 -0
- data/spec/dummy/db/schema.rb +1008 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +2139 -0
- data/spec/dummy/log/test.log +21513 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/fixtures/agent_types.yml +35 -0
- data/spec/fixtures/carrier_types.yml +51 -0
- data/spec/fixtures/classification_types.yml +13 -0
- data/spec/fixtures/content_types.yml +19 -0
- data/spec/fixtures/countries.yml +2059 -0
- data/spec/fixtures/frequencies.yml +76 -0
- data/spec/fixtures/identifier_types.yml +36 -0
- data/spec/fixtures/languages.yml +1901 -0
- data/spec/fixtures/roles.yml +35 -0
- data/spec/fixtures/subject_heading_types.yml +39 -0
- data/spec/fixtures/subject_types.yml +42 -0
- data/spec/fixtures/user_has_roles.yml +41 -0
- data/spec/fixtures/users.yml +51 -0
- data/spec/models/loc_search_spec.rb +195 -0
- data/spec/rails_helper.rb +43 -0
- data/spec/spec_helper.rb +47 -0
- data/spec/support/controller_macros.rb +25 -0
- data/spec/support/devise.rb +4 -0
- metadata +615 -0
@@ -0,0 +1,140 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&recordSchema=mods&query=bath.lccn=2013385616&version=1.1&operation=searchRetrieve
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- ! '*/*'
|
12
|
+
user-agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
content-length:
|
20
|
+
- '9364'
|
21
|
+
server:
|
22
|
+
- Metaproxy/1.5.3
|
23
|
+
connection:
|
24
|
+
- Keep-Alive
|
25
|
+
content-type:
|
26
|
+
- text/xml
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: ! "<?xml version=\"1.0\"?>\n<zs:searchRetrieveResponse xmlns:zs=\"http://www.loc.gov/zing/srw/\"><zs:version>1.1</zs:version><zs:numberOfRecords>1</zs:numberOfRecords><zs:records><zs:record><zs:recordSchema>mods</zs:recordSchema><zs:recordPacking>xml</zs:recordPacking><zs:recordData><mods
|
30
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.loc.gov/mods/v3\"
|
31
|
+
version=\"3.4\" xsi:schemaLocation=\"http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd\">\n
|
32
|
+
\ <titleInfo altRepGroup=\"01\" script=\"Latn\">\n <title>Entotsu no mieru
|
33
|
+
basho</title>\n </titleInfo>\n <titleInfo type=\"alternative\" altRepGroup=\"15\"
|
34
|
+
script=\"Latn\">\n <title>Mujaki na hitobito</title>\n </titleInfo>\n
|
35
|
+
\ <name type=\"personal\" altRepGroup=\"06\" script=\"Latn\">\n <namePart>Gosho,
|
36
|
+
Heinosuke</namePart>\n <namePart type=\"date\">1902-1981</namePart>\n </name>\n
|
37
|
+
\ <name type=\"personal\" altRepGroup=\"07\" script=\"Latn\">\n <namePart>Oguni,
|
38
|
+
Hideo</namePart>\n <namePart type=\"date\">1904-1996</namePart>\n </name>\n
|
39
|
+
\ <name type=\"personal\" altRepGroup=\"08\" script=\"Latn\">\n <namePart>Akutagawa,
|
40
|
+
Yasushi</namePart>\n <namePart type=\"date\">1925-1989</namePart>\n </name>\n
|
41
|
+
\ <name type=\"personal\" altRepGroup=\"09\" script=\"Latn\">\n <namePart>Tanaka,
|
42
|
+
Kinuyo</namePart>\n <namePart type=\"date\">1909-1977</namePart>\n </name>\n
|
43
|
+
\ <name type=\"personal\" altRepGroup=\"10\" script=\"Latn\">\n <namePart>Uehara,
|
44
|
+
Ken</namePart>\n <namePart type=\"date\">1909-1991</namePart>\n </name>\n
|
45
|
+
\ <name type=\"personal\" altRepGroup=\"11\" script=\"Latn\">\n <namePart>Takamine,
|
46
|
+
Hideko</namePart>\n <namePart type=\"date\">1924-2010</namePart>\n </name>\n
|
47
|
+
\ <name type=\"personal\" altRepGroup=\"12\" script=\"Latn\">\n <namePart>Akutagawa,
|
48
|
+
Hiroshi</namePart>\n <namePart type=\"date\">1920-1981</namePart>\n </name>\n
|
49
|
+
\ <name type=\"personal\" altRepGroup=\"13\" script=\"Latn\">\n <namePart>Tanaka,
|
50
|
+
Haruo</namePart>\n <namePart type=\"date\">1912-1992</namePart>\n </name>\n
|
51
|
+
\ <name type=\"personal\" altRepGroup=\"14\" script=\"Latn\">\n <namePart>Shiina,
|
52
|
+
Rinzō</namePart>\n <namePart type=\"date\">1911-1973</namePart>\n
|
53
|
+
\ </name>\n <name type=\"corporate\" altRepGroup=\"16\" script=\"Latn\">\n
|
54
|
+
\ <namePart>Shintōhō Kabushiki Kaisha</namePart>\n </name>\n
|
55
|
+
\ <typeOfResource>moving image</typeOfResource>\n <genre authority=\"marcgt\">videorecording</genre>\n
|
56
|
+
\ <genre authority=\"lcgft\">Fiction films.</genre>\n <genre authority=\"lcgft\">Feature
|
57
|
+
films.</genre>\n <originInfo script=\"Latn\" altRepGroup=\"02\">\n <place>\n
|
58
|
+
\ <placeTerm type=\"code\" authority=\"marccountry\">ja</placeTerm>\n
|
59
|
+
\ </place>\n <place>\n <placeTerm type=\"text\">Tokyo]</placeTerm>\n
|
60
|
+
\ </place>\n <publisher>hatsubaimoto Kabushiki Kaisha IMAGICA</publisher>\n
|
61
|
+
\ <publisher>hanbaimoto Kabushiki Kaisha Bappu</publisher>\n <dateIssued>2005</dateIssued>\n
|
62
|
+
\ <issuance>monographic</issuance>\n </originInfo>\n <originInfo script=\"CJK\"
|
63
|
+
altRepGroup=\"02\">\n <place>\n <placeTerm type=\"text\">[Tokyo] :</placeTerm>\n
|
64
|
+
\ </place>\n <publisher>発売元株式会社IMAGICA
|
65
|
+
:</publisher>\n <dateIssued>2005.</dateIssued>\n </originInfo>\n <language>\n
|
66
|
+
\ <languageTerm authority=\"iso639-2b\" type=\"code\">jpn</languageTerm>\n
|
67
|
+
\ </language>\n <physicalDescription>\n <form authority=\"gmd\">videorecording</form>\n
|
68
|
+
\ <form authority=\"marccategory\">videorecording</form>\n <form authority=\"marcsmd\">videodisc</form>\n
|
69
|
+
\ <extent>1 DVD (108 min.) : sd., b&w ; 4 3/4 in.</extent>\n </physicalDescription>\n
|
70
|
+
\ <abstract type=\"Summary\">Based on \"Mujaki na hitobito\" by Shiina Rinzō.
|
71
|
+
\ The big chimneys at Kitasenju in Tōkyō are called \"obake
|
72
|
+
entotsu (ghost chimneys)\" because the number of chimneys that are visible
|
73
|
+
changes according to the spot one is looking at them from. Ogata Ryūkichi
|
74
|
+
is an ordinary man living where the chimneys are a part of the view. His life
|
75
|
+
is turned upside down when he finds a baby on the veranda of his house. Left
|
76
|
+
there by his wife Hiroko's former husband, Tsukahara.</abstract>\n <note
|
77
|
+
type=\"statement of responsibility\" altRepGroup=\"00\" script=\"Latn\">gensaku
|
78
|
+
Shiia Rinzō ; kyakuhon Oguni Hideo ; kantoku Gosho Heinosuke.</note>\n
|
79
|
+
\ <note>Originally released as a motion picture in 1953.</note>\n <note type=\"creation/production
|
80
|
+
credits\" altRepGroup=\"05\" script=\"Latn\">Seisaku, Uchiyama Yoshishige
|
81
|
+
; kyakuhon, Oguni Hideo ; satsuei, Miura Mitsuo ; ongaku, Akutagawa Yasushi.</note>\n
|
82
|
+
\ <note type=\"performers\" altRepGroup=\"04\" script=\"Latn\">Tanaka Kinuyo,
|
83
|
+
Uehara Ken, Takamine Hideko, Akutagawa Hiroshi, Seki Chieko, Tanaka Haruo.</note>\n
|
84
|
+
\ <note type=\"system details\">DVD ; Region Code 2 ; NTSC ; Dolby Digital.</note>\n
|
85
|
+
\ <note type=\"language\">In Japanese.</note>\n <subject authority=\"lcsh\">\n
|
86
|
+
\ <topic>Feature films</topic>\n </subject>\n <classification authority=\"lcc\">PN1997
|
87
|
+
. E665 1953</classification>\n <location>\n <physicalLocation>c-Moving
|
88
|
+
Image</physicalLocation>\n </location>\n <relatedItem type=\"series\" altRepGroup=\"03\"
|
89
|
+
script=\"Latn\">\n <titleInfo>\n <title>Shin Tōhō meiga
|
90
|
+
kessakusen</title>\n </titleInfo>\n </relatedItem>\n <relatedItem type=\"constituent\">\n
|
91
|
+
\ <titleInfo>\n <title>Mujaki na hitobito</title>\n </titleInfo>\n
|
92
|
+
\ <name type=\"personal\">\n <namePart>Shiina, Rinzō,</namePart>\n
|
93
|
+
\ <namePart type=\"date\">1911-1973</namePart>\n </name>\n </relatedItem>\n
|
94
|
+
\ <relatedItem type=\"constituent\">\n <titleInfo>\n <title>Mujaki
|
95
|
+
na hitobito</title>\n </titleInfo>\n </relatedItem>\n <relatedItem type=\"series\">\n
|
96
|
+
\ <titleInfo>\n <title>East Asian film collection</title>\n </titleInfo>\n
|
97
|
+
\ </relatedItem>\n <titleInfo altRepGroup=\"01\" script=\"CJK\">\n <title>煙突の見える場所</title>\n
|
98
|
+
\ </titleInfo>\n <note type=\"statement of responsibility\" altRepGroup=\"00\"
|
99
|
+
script=\"CJK\">原作椎名麟三 ; 脚本小国英雄
|
100
|
+
; 監督五所平之助.</note>\n <relatedItem
|
101
|
+
type=\"series\" altRepGroup=\"03\" script=\"CJK\">\n <titleInfo>\n <title>新東宝名画傑作選</title>\n
|
102
|
+
\ </titleInfo>\n </relatedItem>\n <note type=\"performers\" altRepGroup=\"04\"
|
103
|
+
script=\"CJK\">田中絹代, 上原謙,
|
104
|
+
高峰秀子, 芥川比呂志,
|
105
|
+
関千恵子, 田中春男.</note>\n
|
106
|
+
\ <note type=\"creation/production credits\" altRepGroup=\"05\" script=\"CJK\">製作,
|
107
|
+
上山義重 ; 脚本, 小國英雄
|
108
|
+
; 撮影, 三浦光雄 ; 音楽, 芥川也寸志.</note>\n
|
109
|
+
\ <name type=\"personal\" altRepGroup=\"06\" script=\"CJK\">\n <namePart>五所平之助</namePart>\n
|
110
|
+
\ <namePart type=\"date\">1902-1981</namePart>\n </name>\n <name type=\"personal\"
|
111
|
+
altRepGroup=\"07\" script=\"CJK\">\n <namePart>小国英雄</namePart>\n
|
112
|
+
\ <namePart type=\"date\">1904-1996</namePart>\n </name>\n <name type=\"personal\"
|
113
|
+
altRepGroup=\"08\" script=\"CJK\">\n <namePart>芥川也寸志</namePart>\n
|
114
|
+
\ <namePart type=\"date\">1925-1989</namePart>\n </name>\n <name type=\"personal\"
|
115
|
+
altRepGroup=\"09\" script=\"CJK\">\n <namePart>田中絹代</namePart>\n
|
116
|
+
\ <namePart type=\"date\">1909-1977</namePart>\n </name>\n <name type=\"personal\"
|
117
|
+
altRepGroup=\"10\" script=\"CJK\">\n <namePart>上原謙</namePart>\n
|
118
|
+
\ <namePart type=\"date\">1909-1991</namePart>\n </name>\n <name type=\"personal\"
|
119
|
+
altRepGroup=\"11\" script=\"CJK\">\n <namePart>高峰秀子</namePart>\n
|
120
|
+
\ <namePart type=\"date\">1924-</namePart>\n </name>\n <name type=\"personal\"
|
121
|
+
altRepGroup=\"12\" script=\"CJK\">\n <namePart>芥川比呂志</namePart>\n
|
122
|
+
\ <namePart type=\"date\">1920-1981</namePart>\n </name>\n <name type=\"personal\"
|
123
|
+
altRepGroup=\"13\" script=\"CJK\">\n <namePart>田中春男</namePart>\n
|
124
|
+
\ <namePart type=\"date\">1912-1992</namePart>\n </name>\n <name type=\"personal\"
|
125
|
+
altRepGroup=\"14\" script=\"CJK\">\n <namePart>椎名麟三</namePart>\n
|
126
|
+
\ <namePart type=\"date\">1911-1973</namePart>\n </name>\n <titleInfo
|
127
|
+
type=\"alternative\" altRepGroup=\"15\" script=\"CJK\">\n <title>無邪気な人々</title>\n
|
128
|
+
\ </titleInfo>\n <name type=\"corporate\" altRepGroup=\"16\" script=\"CJK\">\n
|
129
|
+
\ <namePart>新東宝株式会社</namePart>\n
|
130
|
+
\ </name>\n <identifier type=\"lccn\">2013385616</identifier>\n <identifier
|
131
|
+
type=\"videorecording identifier\">VPBT15262</identifier>\n <identifier type=\"oclc\">ocn213415869</identifier>\n
|
132
|
+
\ <recordInfo>\n <descriptionStandard>aacr</descriptionStandard>\n <recordContentSource
|
133
|
+
authority=\"marcorg\">KKU</recordContentSource>\n <recordCreationDate encoding=\"marc\">130509</recordCreationDate>\n
|
134
|
+
\ <recordChangeDate encoding=\"iso8601\">20140604082407.0</recordChangeDate>\n
|
135
|
+
\ <recordIdentifier>17731062</recordIdentifier>\n <recordOrigin>Converted
|
136
|
+
from MARCXML to MODS version 3.4 using MARC21slim2MODS3-4.xsl\n\t\t\t\t(Revision
|
137
|
+
1.94 2014/02/21)</recordOrigin>\n </recordInfo>\n</mods></zs:recordData><zs:recordPosition>1</zs:recordPosition></zs:record></zs:records></zs:searchRetrieveResponse>\n"
|
138
|
+
http_version: '1.1'
|
139
|
+
recorded_at: Mon, 11 Aug 2014 06:53:31 GMT
|
140
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://lx2.loc.gov:210/LCDB?maximumRecords=10&recordSchema=mods&query=bath.lccn=&version=1.1&operation=searchRetrieve
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- ! '*/*'
|
12
|
+
user-agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
content-length:
|
20
|
+
- '457'
|
21
|
+
server:
|
22
|
+
- Metaproxy/1.5.3
|
23
|
+
connection:
|
24
|
+
- Keep-Alive
|
25
|
+
content-type:
|
26
|
+
- text/xml
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: ! '<?xml version="1.0"?>
|
30
|
+
|
31
|
+
<zs:searchRetrieveResponse xmlns:zs="http://www.loc.gov/zing/srw/"><zs:version>1.1</zs:version><zs:diagnostics
|
32
|
+
xmlns:diag="http://www.loc.gov/zing/srw/diagnostic/"><diag:diagnostic><diag:uri>info:srw/diagnostic/1/10</diag:uri><diag:details>query_transform::query_transform:cql_parser_string
|
33
|
+
failed: bath.lccn=</diag:details><diag:message>Query syntax error</diag:message></diag:diagnostic></zs:diagnostics></zs:searchRetrieveResponse>
|
34
|
+
|
35
|
+
'
|
36
|
+
http_version: '1.1'
|
37
|
+
recorded_at: Mon, 11 Aug 2014 06:53:34 GMT
|
38
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe LocSearchController do
|
4
|
+
fixtures :all
|
5
|
+
|
6
|
+
it "should be a kind of enju_loc" do
|
7
|
+
assert_kind_of Module, EnjuLoc
|
8
|
+
end
|
9
|
+
|
10
|
+
describe "GET index" do
|
11
|
+
login_fixture_librarian
|
12
|
+
|
13
|
+
it "should get index", :vcr => true do
|
14
|
+
get :index, :query => 'library'
|
15
|
+
expect( assigns(:books) ).not_to be_empty
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should be empty if a query is not set", :vcr => true do
|
19
|
+
get :index
|
20
|
+
expect( assigns(:books) ).to be_empty
|
21
|
+
end
|
22
|
+
|
23
|
+
it "should get index with page parameter", :vcr => true do
|
24
|
+
get :index, :query => 'library', :page => 2
|
25
|
+
expect( assigns(:books) ).not_to be_empty
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe "POST create" do
|
30
|
+
login_fixture_librarian
|
31
|
+
|
32
|
+
it "should create a bibliographic record if lccn is set", :vcr => true do
|
33
|
+
post :create, :book => {:lccn => '2013385616'}
|
34
|
+
expect( assigns(:manifestation).identifier_contents(:lccn) ).to eq ['2013385616']
|
35
|
+
expect( response ).to redirect_to manifestation_url( assigns(:manifestation) )
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should not create a bibliographic record if lccn is not set", :vcr => true do
|
39
|
+
post :create, :book => {}
|
40
|
+
expect( assigns(:manifestation) ).to be_nil
|
41
|
+
expect( response ).to redirect_to loc_search_index_url
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
== README
|
2
|
+
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
4
|
+
application up and running.
|
5
|
+
|
6
|
+
Things you may want to cover:
|
7
|
+
|
8
|
+
* Ruby version
|
9
|
+
|
10
|
+
* System dependencies
|
11
|
+
|
12
|
+
* Configuration
|
13
|
+
|
14
|
+
* Database creation
|
15
|
+
|
16
|
+
* Database initialization
|
17
|
+
|
18
|
+
* How to run the test suite
|
19
|
+
|
20
|
+
* Services (job queues, cache servers, search engines, etc.)
|
21
|
+
|
22
|
+
* Deployment instructions
|
23
|
+
|
24
|
+
* ...
|
25
|
+
|
26
|
+
|
27
|
+
Please feel free to use a different markup language if you do not plan to run
|
28
|
+
<tt>rake doc:app</tt>.
|
data/spec/dummy/Rakefile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require_tree .
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
+
* file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Dummy</title>
|
5
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
6
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<%= yield %>
|
12
|
+
|
13
|
+
</body>
|
14
|
+
</html>
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require 'rails/all'
|
4
|
+
|
5
|
+
Bundler.require
|
6
|
+
require "enju_loc"
|
7
|
+
|
8
|
+
module Dummy
|
9
|
+
class Application < Rails::Application
|
10
|
+
# Settings in config/environments/* take precedence over those specified here.
|
11
|
+
# Application configuration should go into files in config/initializers
|
12
|
+
# -- all .rb files in that directory are automatically loaded.
|
13
|
+
|
14
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
15
|
+
# config.autoload_paths += %W(#{config.root}/extras)
|
16
|
+
|
17
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
18
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
19
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
20
|
+
|
21
|
+
# Activate observers that should always be running.
|
22
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
23
|
+
|
24
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
25
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
26
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
27
|
+
|
28
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
29
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
30
|
+
# config.i18n.default_locale = :de
|
31
|
+
|
32
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
33
|
+
config.encoding = "utf-8"
|
34
|
+
|
35
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
36
|
+
config.filter_parameters += [:password]
|
37
|
+
|
38
|
+
# Enable the asset pipeline
|
39
|
+
config.assets.enabled = true
|
40
|
+
|
41
|
+
# Version of your assets, change this if you want to expire all your assets
|
42
|
+
config.assets.version = '1.0'
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
require 'enju_leaf'
|
47
|
+
require "enju_subject"
|
@@ -0,0 +1,38 @@
|
|
1
|
+
defaults: &defaults
|
2
|
+
enju:
|
3
|
+
web_hostname: localhost
|
4
|
+
web_port_number: 3000
|
5
|
+
|
6
|
+
family_name_first: true
|
7
|
+
max_number_of_results: 500
|
8
|
+
write_search_log_to_file: true
|
9
|
+
csv_charset_conversion: true
|
10
|
+
|
11
|
+
# Choose a locale from 'ca', 'de', 'fr', 'jp', 'uk', 'us'
|
12
|
+
#AMAZON_AWS_HOSTNAME = 'ecs.amazonaws.com'
|
13
|
+
amazon:
|
14
|
+
aws_hostname: ecs.amazonaws.jp
|
15
|
+
hostname: www.amazon.co.jp
|
16
|
+
access_key: REPLACE_WITH_YOUR_AMAZON_ACCESS_KEY
|
17
|
+
secret_access_key: REPLACE_WITH_YOUR_AMAZON_SECRET_ACCESS_KEY
|
18
|
+
|
19
|
+
# :google, :amazon
|
20
|
+
book_jacket:
|
21
|
+
source: :google
|
22
|
+
unknown_resource:
|
23
|
+
|
24
|
+
# :mozshot, :simpleapi, :heartrails, :thumbalizr
|
25
|
+
screenshot:
|
26
|
+
generator: :mozshot
|
27
|
+
|
28
|
+
uploaded_file:
|
29
|
+
storage: :local
|
30
|
+
|
31
|
+
development:
|
32
|
+
<<: *defaults
|
33
|
+
|
34
|
+
test:
|
35
|
+
<<: *defaults
|
36
|
+
|
37
|
+
production:
|
38
|
+
<<: *defaults
|