enju_leaf 1.3.5 → 2.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -4
- data/app/assets/javascripts/enju_leaf/application.js +12 -0
- data/app/assets/javascripts/{autocomplete_agent.js → enju_leaf/autocomplete_agent.js} +0 -0
- data/app/assets/javascripts/{menu.js → enju_leaf/menu.js} +0 -0
- data/app/assets/javascripts/enju_leaf/mobile.js +5 -0
- data/app/assets/javascripts/{portlets.js → enju_leaf/portlets.js} +0 -0
- data/app/assets/javascripts/{select_locale.js → enju_leaf/select_locale.js} +0 -0
- data/app/assets/stylesheets/{enju_leaf.css → enju_leaf/application.scss} +6 -6
- data/app/assets/stylesheets/{enju.css → enju_leaf/enju.css} +0 -0
- data/app/assets/stylesheets/{enju_mobile.css → enju_leaf/enju_mobile.css} +0 -0
- data/app/assets/stylesheets/{enju_print.css → enju_leaf/enju_print.css} +0 -0
- data/app/assets/stylesheets/{mobile.css → enju_leaf/mobile.css} +1 -1
- data/app/assets/stylesheets/{pagination.css → enju_leaf/pagination.css} +0 -0
- data/app/assets/stylesheets/{portlets.css → enju_leaf/portlets.css} +0 -0
- data/app/assets/stylesheets/{print.css → enju_leaf/print.css} +1 -1
- data/app/assets/stylesheets/{scaffold_modified.css → enju_leaf/scaffold_modified.css} +0 -0
- data/app/views/devise/registrations/edit.html.erb +1 -1
- data/app/views/layouts/application.html.erb +4 -4
- data/app/views/page/_include.html.erb +1 -1
- data/app/views/page/_index.html+phone.erb +1 -1
- data/app/views/page/_menu.html.erb +1 -1
- data/app/views/page/_mobile.html+phone.erb +2 -2
- data/app/views/page/about.en.html.erb +4 -4
- data/app/views/page/about.ja.html.erb +4 -4
- data/app/views/page/advanced_search.html.erb +5 -5
- data/app/views/page/configuration.html.erb +0 -2
- data/app/views/page/opensearch.xml.builder +2 -2
- data/config/initializers/mime_types.rb +1 -0
- data/config/locales/en.yml +0 -4
- data/config/locales/ja.yml +0 -4
- data/lib/enju_leaf/engine.rb +1 -1
- data/lib/enju_leaf/version.rb +1 -1
- data/lib/generators/enju_leaf/quick_install/quick_install_generator.rb +5 -2
- data/lib/generators/enju_leaf/setup/setup_generator.rb +22 -17
- data/lib/generators/enju_leaf/setup/templates/Procfile +2 -2
- data/lib/generators/enju_leaf/setup/templates/config/schedule.rb +2 -2
- data/lib/generators/enju_leaf/setup/templates/db/seeds.rb +0 -4
- data/lib/tasks/enju_leaf_tasks.rake +2 -5
- data/spec/acceptance/profile.rb +9 -0
- data/spec/controllers/page_controller_spec.rb +1 -1
- data/spec/dummy/app/assets/javascripts/application.js +3 -0
- data/spec/dummy/app/assets/stylesheets/application.css +1 -0
- data/spec/dummy/app/controllers/application_controller.rb +0 -1
- data/spec/dummy/bin/bundle +1 -1
- data/spec/dummy/bin/setup +1 -3
- data/spec/dummy/bin/update +4 -2
- data/spec/dummy/bin/yarn +3 -3
- data/spec/dummy/config/application.rb +3 -2
- data/spec/dummy/config/boot.rb +4 -9
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/database.yml +70 -9
- data/spec/dummy/config/environments/development.rb +9 -2
- data/spec/dummy/config/environments/production.rb +7 -4
- data/spec/dummy/config/environments/test.rb +7 -1
- data/spec/dummy/config/initializers/assets.rb +1 -2
- data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
- data/spec/dummy/config/locales/en.yml +30 -2
- data/spec/dummy/config/puma.rb +34 -0
- data/spec/dummy/config/routes.rb +2 -58
- data/spec/dummy/config/spring.rb +6 -0
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/config.ru +3 -2
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/005_create_manifestations.rb +3 -3
- data/spec/dummy/db/migrate/127_create_use_restrictions.rb +3 -7
- data/spec/dummy/db/migrate/132_create_circulation_statuses.rb +3 -7
- data/spec/dummy/db/migrate/149_create_message_templates.rb +3 -8
- data/spec/dummy/db/migrate/154_create_messages.rb +6 -14
- data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +4 -4
- data/spec/dummy/db/migrate/20081025083323_create_countries.rb +6 -5
- data/spec/dummy/db/migrate/20081025083905_create_languages.rb +1 -0
- data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +1 -1
- data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
- data/spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb +2 -4
- data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +1 -1
- data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +1 -1
- data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +1 -1
- data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +1 -0
- data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +1 -0
- data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +1 -0
- data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +1 -1
- data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +1 -1
- data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +4 -5
- data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +4 -9
- data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +4 -9
- data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20160319144230_create_issn_records.rb +11 -0
- data/spec/dummy/db/migrate/20160506144040_create_isbn_records.rb +11 -0
- data/spec/dummy/db/migrate/20160703185015_add_most_recent_to_message_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20160813191533_add_book_jacket_source_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20160813191820_add_screenshot_generator_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20160814165332_add_most_recent_to_message_request_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb +11 -0
- data/spec/dummy/db/migrate/20170114174536_add_profile_id_to_user.rb +5 -0
- data/spec/dummy/db/migrate/20170116134107_create_issn_record_and_manifestations.rb +11 -0
- data/spec/dummy/db/migrate/20170116134120_create_isbn_record_and_manifestations.rb +11 -0
- data/spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb +5 -0
- data/spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107162659_add_constraints_to_most_recent_for_message_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107162711_add_constraints_to_most_recent_for_message_request_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20181030072731_add_not_null_to_position_on_carrier_type.rb +14 -0
- data/spec/dummy/db/migrate/20190102034126_create_doi_records.rb +13 -0
- data/spec/dummy/db/migrate/20190208135957_create_active_storage_tables.active_storage.rb +27 -0
- data/spec/dummy/db/migrate/20190630113817_add_display_name_translations_to_library_group.rb +12 -0
- data/spec/dummy/db/migrate/20190630115523_add_login_banner_translations_to_library_group.rb +6 -0
- data/spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb +5 -0
- data/spec/dummy/db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb +21 -0
- data/spec/dummy/db/schema.rb +265 -135
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/node_modules/jquery/AUTHORS.txt +278 -0
- data/spec/dummy/node_modules/jquery/LICENSE.txt +36 -0
- data/spec/dummy/node_modules/jquery/README.md +65 -0
- data/spec/dummy/node_modules/jquery/bower.json +14 -0
- data/spec/dummy/node_modules/jquery/dist/jquery.js +9814 -0
- data/spec/dummy/node_modules/jquery/dist/jquery.min.js +4 -0
- data/spec/dummy/node_modules/jquery/dist/jquery.min.map +1 -0
- data/spec/dummy/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
- data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.js +2143 -0
- data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/spec/dummy/node_modules/jquery/package.json +84 -0
- data/spec/dummy/node_modules/jquery/src/ajax/jsonp.js +100 -0
- data/spec/dummy/node_modules/jquery/src/ajax/load.js +83 -0
- data/spec/dummy/node_modules/jquery/src/ajax/parseJSON.js +13 -0
- data/spec/dummy/node_modules/jquery/src/ajax/parseXML.js +27 -0
- data/spec/dummy/node_modules/jquery/src/ajax/script.js +68 -0
- data/spec/dummy/node_modules/jquery/src/ajax/var/location.js +3 -0
- data/spec/dummy/node_modules/jquery/src/ajax/var/nonce.js +5 -0
- data/spec/dummy/node_modules/jquery/src/ajax/var/rquery.js +3 -0
- data/spec/dummy/node_modules/jquery/src/ajax/xhr.js +167 -0
- data/spec/dummy/node_modules/jquery/src/ajax.js +845 -0
- data/spec/dummy/node_modules/jquery/src/attributes/attr.js +142 -0
- data/spec/dummy/node_modules/jquery/src/attributes/classes.js +177 -0
- data/spec/dummy/node_modules/jquery/src/attributes/prop.js +125 -0
- data/spec/dummy/node_modules/jquery/src/attributes/support.js +36 -0
- data/spec/dummy/node_modules/jquery/src/attributes/val.js +177 -0
- data/spec/dummy/node_modules/jquery/src/attributes.js +11 -0
- data/spec/dummy/node_modules/jquery/src/callbacks.js +232 -0
- data/spec/dummy/node_modules/jquery/src/core/access.js +65 -0
- data/spec/dummy/node_modules/jquery/src/core/init.js +134 -0
- data/spec/dummy/node_modules/jquery/src/core/parseHTML.js +41 -0
- data/spec/dummy/node_modules/jquery/src/core/ready.js +103 -0
- data/spec/dummy/node_modules/jquery/src/core/var/rsingleTag.js +5 -0
- data/spec/dummy/node_modules/jquery/src/core.js +494 -0
- data/spec/dummy/node_modules/jquery/src/css/addGetHookIf.js +24 -0
- data/spec/dummy/node_modules/jquery/src/css/adjustCSS.js +65 -0
- data/spec/dummy/node_modules/jquery/src/css/curCSS.js +60 -0
- data/spec/dummy/node_modules/jquery/src/css/defaultDisplay.js +72 -0
- data/spec/dummy/node_modules/jquery/src/css/hiddenVisibleSelectors.js +18 -0
- data/spec/dummy/node_modules/jquery/src/css/showHide.js +48 -0
- data/spec/dummy/node_modules/jquery/src/css/support.js +121 -0
- data/spec/dummy/node_modules/jquery/src/css/var/cssExpand.js +3 -0
- data/spec/dummy/node_modules/jquery/src/css/var/getStyles.js +15 -0
- data/spec/dummy/node_modules/jquery/src/css/var/isHidden.js +16 -0
- data/spec/dummy/node_modules/jquery/src/css/var/rmargin.js +3 -0
- data/spec/dummy/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
- data/spec/dummy/node_modules/jquery/src/css/var/swap.js +24 -0
- data/spec/dummy/node_modules/jquery/src/css.js +502 -0
- data/spec/dummy/node_modules/jquery/src/data/Data.js +200 -0
- data/spec/dummy/node_modules/jquery/src/data/var/acceptData.js +18 -0
- data/spec/dummy/node_modules/jquery/src/data/var/dataPriv.js +5 -0
- data/spec/dummy/node_modules/jquery/src/data/var/dataUser.js +5 -0
- data/spec/dummy/node_modules/jquery/src/data.js +187 -0
- data/spec/dummy/node_modules/jquery/src/deferred.js +158 -0
- data/spec/dummy/node_modules/jquery/src/deprecated.js +32 -0
- data/spec/dummy/node_modules/jquery/src/dimensions.js +54 -0
- data/spec/dummy/node_modules/jquery/src/effects/Tween.js +121 -0
- data/spec/dummy/node_modules/jquery/src/effects/animatedSelector.js +13 -0
- data/spec/dummy/node_modules/jquery/src/effects.js +629 -0
- data/spec/dummy/node_modules/jquery/src/event/ajax.js +20 -0
- data/spec/dummy/node_modules/jquery/src/event/alias.js +27 -0
- data/spec/dummy/node_modules/jquery/src/event/focusin.js +53 -0
- data/spec/dummy/node_modules/jquery/src/event/support.js +9 -0
- data/spec/dummy/node_modules/jquery/src/event/trigger.js +183 -0
- data/spec/dummy/node_modules/jquery/src/event.js +711 -0
- data/spec/dummy/node_modules/jquery/src/exports/amd.js +24 -0
- data/spec/dummy/node_modules/jquery/src/exports/global.js +26 -0
- data/spec/dummy/node_modules/jquery/src/intro.js +44 -0
- data/spec/dummy/node_modules/jquery/src/jquery.js +37 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/_evalUrl.js +20 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/buildFragment.js +102 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/getAll.js +21 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/setGlobalEval.js +20 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/support.js +33 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/var/rscriptType.js +3 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/var/rtagName.js +3 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/wrapMap.js +27 -0
- data/spec/dummy/node_modules/jquery/src/manipulation.js +481 -0
- data/spec/dummy/node_modules/jquery/src/offset.js +218 -0
- data/spec/dummy/node_modules/jquery/src/outro.js +2 -0
- data/spec/dummy/node_modules/jquery/src/queue/delay.js +22 -0
- data/spec/dummy/node_modules/jquery/src/queue.js +143 -0
- data/spec/dummy/node_modules/jquery/src/selector-native.js +211 -0
- data/spec/dummy/node_modules/jquery/src/selector-sizzle.js +14 -0
- data/spec/dummy/node_modules/jquery/src/selector.js +1 -0
- data/spec/dummy/node_modules/jquery/src/serialize.js +125 -0
- data/spec/dummy/node_modules/jquery/src/traversing/findFilter.js +100 -0
- data/spec/dummy/node_modules/jquery/src/traversing/var/dir.js +20 -0
- data/spec/dummy/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/spec/dummy/node_modules/jquery/src/traversing/var/siblings.js +15 -0
- data/spec/dummy/node_modules/jquery/src/traversing.js +175 -0
- data/spec/dummy/node_modules/jquery/src/var/arr.js +3 -0
- data/spec/dummy/node_modules/jquery/src/var/class2type.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/concat.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/document.js +3 -0
- data/spec/dummy/node_modules/jquery/src/var/documentElement.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/hasOwn.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/indexOf.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/pnum.js +3 -0
- data/spec/dummy/node_modules/jquery/src/var/push.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/rcssNum.js +7 -0
- data/spec/dummy/node_modules/jquery/src/var/rnotwhite.js +3 -0
- data/spec/dummy/node_modules/jquery/src/var/slice.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/support.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/toString.js +5 -0
- data/spec/dummy/node_modules/jquery/src/wrap.js +79 -0
- data/spec/dummy/package.json +5 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141214-44379-1fdvvdb.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141225-67268-nerc4o.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20150123-14447-1lf8lc5.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141214-44379-1exy9mg.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58343-ztcmne.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58490-hnqvxg.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58609-5iyax7.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58776-1e9gg8b.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58951-zfxzc6.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59095-l3yd2t.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59220-1mgboh1.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59533-1ie807t.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59716-m8uy9h.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59834-1fcv3ir.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59932-14y6v8m.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60422-ksg8ww.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60507-j2u5ra.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60619-2j2h65.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60822-1xdqwcc.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60925-4d4ce1.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-61046-y4nspn.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-62053-1qsuqzd.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-62204-3quf6j.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-62472-w05wkf.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67112-1viizrs.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67232-11tcrfq.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67342-1bajplt.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67475-gmnmq4.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-74670-mxvkc6.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-74954-1m11avl.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75054-1ac0xmz.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75135-1r3z1p.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75289-18xm9sx.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75372-1ab1rn4.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75612-14gavh8.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75709-xgjjja.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75832-uej6ye.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75905-13kbauv.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76001-13yt1kv.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76158-1pitds8.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76526-q0rb2j.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76848-ya95k2.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-88475-165899e.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-89902-paupo2.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-90001-1eg9w1e.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-90157-bcu8m7.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141221-7985-u6s6l1.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141224-44711-1amcibm.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141224-44828-ap6n8d.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-48701-14hbzl1.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-49875-1pc6esj.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-64608-1wo1bpq.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-64763-daej3l.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65000-1a7srlh.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65196-ggad1c.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65273-tt5ev2.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65424-1d17hts.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65662-1gqvlj3.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65725-1qpz2tm.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65807-t7cfln.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65962-161pm01.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-66069-h9ftv6.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-66327-hsz0j4.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-67268-hqxt6v.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150119-54567-1exwx4r.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150120-80886-1whqn2s.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150120-81115-hlvwc4.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150121-86495-navftm.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150121-86986-894a3i.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150122-4492-vaml86.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150123-14447-gy0ver.txt +8 -0
- data/spec/dummy/yarn.lock +8 -0
- data/spec/factories/agent.rb +1 -1
- data/spec/factories/library.rb +1 -1
- data/spec/factories/profile.rb +3 -3
- data/spec/factories/user.rb +25 -31
- data/spec/fixtures/carrier_types.yml +23 -24
- data/spec/fixtures/content_types.yml +78 -22
- data/spec/fixtures/libraries.yml +28 -31
- data/spec/fixtures/library_groups.yml +33 -16
- data/spec/fixtures/manifestations.yml +32 -27
- data/spec/fixtures/roles.yml +11 -12
- data/spec/fixtures/shelves.yml +14 -15
- data/spec/fixtures/user_groups.yml +9 -16
- data/spec/fixtures/user_has_roles.yml +2 -1
- data/spec/rails_helper.rb +11 -1
- data/spec/system/page_spec.rb +35 -0
- data/spec/views/page/configuration.html.erb_spec.rb +1 -1
- metadata +723 -337
- data/app/assets/javascripts/enju_leaf.js +0 -12
- data/app/assets/javascripts/mobile.js +0 -4
- data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +0 -25
- data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +0 -22
- data/vendor/assets/javascripts/jquery.colorbox.js +0 -1105
- data/vendor/assets/javascripts/jquery.powertip.js +0 -1395
- data/vendor/assets/stylesheets/colorbox.css +0 -70
- data/vendor/assets/stylesheets/jquery.powertip.css +0 -105
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,9 +10,13 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2019_07_12_163038) do
|
14
14
|
|
15
|
-
|
15
|
+
# These are extensions that must be enabled in order to support this database
|
16
|
+
enable_extension "pgcrypto"
|
17
|
+
enable_extension "plpgsql"
|
18
|
+
|
19
|
+
create_table "accepts", id: :serial, force: :cascade do |t|
|
16
20
|
t.integer "basket_id"
|
17
21
|
t.integer "item_id"
|
18
22
|
t.integer "librarian_id"
|
@@ -23,19 +27,41 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
23
27
|
t.index ["librarian_id"], name: "index_accepts_on_librarian_id"
|
24
28
|
end
|
25
29
|
|
26
|
-
create_table "
|
30
|
+
create_table "active_storage_attachments", force: :cascade do |t|
|
31
|
+
t.string "name", null: false
|
32
|
+
t.string "record_type", null: false
|
33
|
+
t.bigint "record_id", null: false
|
34
|
+
t.bigint "blob_id", null: false
|
35
|
+
t.datetime "created_at", null: false
|
36
|
+
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
|
37
|
+
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
|
38
|
+
end
|
39
|
+
|
40
|
+
create_table "active_storage_blobs", force: :cascade do |t|
|
41
|
+
t.string "key", null: false
|
42
|
+
t.string "filename", null: false
|
43
|
+
t.string "content_type"
|
44
|
+
t.text "metadata"
|
45
|
+
t.bigint "byte_size", null: false
|
46
|
+
t.string "checksum", null: false
|
47
|
+
t.datetime "created_at", null: false
|
48
|
+
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
|
49
|
+
end
|
50
|
+
|
51
|
+
create_table "agent_import_file_transitions", id: :serial, force: :cascade do |t|
|
27
52
|
t.string "to_state"
|
28
53
|
t.text "metadata", default: "{}"
|
29
54
|
t.integer "sort_key"
|
30
55
|
t.integer "agent_import_file_id"
|
31
56
|
t.datetime "created_at"
|
32
57
|
t.datetime "updated_at"
|
33
|
-
t.boolean "most_recent"
|
58
|
+
t.boolean "most_recent", null: false
|
59
|
+
t.index ["agent_import_file_id", "most_recent"], name: "index_agent_import_file_transitions_parent_most_recent", unique: true, where: "most_recent"
|
34
60
|
t.index ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
|
35
61
|
t.index ["sort_key", "agent_import_file_id"], name: "index_agent_import_file_transitions_on_sort_key_and_file_id", unique: true
|
36
62
|
end
|
37
63
|
|
38
|
-
create_table "agent_import_files", force: :cascade do |t|
|
64
|
+
create_table "agent_import_files", id: :serial, force: :cascade do |t|
|
39
65
|
t.integer "parent_id"
|
40
66
|
t.string "content_type"
|
41
67
|
t.integer "size"
|
@@ -56,7 +82,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
56
82
|
t.index ["user_id"], name: "index_agent_import_files_on_user_id"
|
57
83
|
end
|
58
84
|
|
59
|
-
create_table "agent_import_results", force: :cascade do |t|
|
85
|
+
create_table "agent_import_results", id: :serial, force: :cascade do |t|
|
60
86
|
t.integer "agent_import_file_id"
|
61
87
|
t.integer "agent_id"
|
62
88
|
t.text "body"
|
@@ -64,13 +90,13 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
64
90
|
t.datetime "updated_at"
|
65
91
|
end
|
66
92
|
|
67
|
-
create_table "agent_merge_lists", force: :cascade do |t|
|
93
|
+
create_table "agent_merge_lists", id: :serial, force: :cascade do |t|
|
68
94
|
t.string "title"
|
69
95
|
t.datetime "created_at"
|
70
96
|
t.datetime "updated_at"
|
71
97
|
end
|
72
98
|
|
73
|
-
create_table "agent_merges", force: :cascade do |t|
|
99
|
+
create_table "agent_merges", id: :serial, force: :cascade do |t|
|
74
100
|
t.integer "agent_id", null: false
|
75
101
|
t.integer "agent_merge_list_id", null: false
|
76
102
|
t.datetime "created_at"
|
@@ -79,16 +105,17 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
79
105
|
t.index ["agent_merge_list_id"], name: "index_agent_merges_on_agent_merge_list_id"
|
80
106
|
end
|
81
107
|
|
82
|
-
create_table "agent_relationship_types", force: :cascade do |t|
|
108
|
+
create_table "agent_relationship_types", id: :serial, force: :cascade do |t|
|
83
109
|
t.string "name", null: false
|
84
110
|
t.text "display_name"
|
85
111
|
t.text "note"
|
86
112
|
t.integer "position"
|
87
113
|
t.datetime "created_at"
|
88
114
|
t.datetime "updated_at"
|
115
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
89
116
|
end
|
90
117
|
|
91
|
-
create_table "agent_relationships", force: :cascade do |t|
|
118
|
+
create_table "agent_relationships", id: :serial, force: :cascade do |t|
|
92
119
|
t.integer "parent_id"
|
93
120
|
t.integer "child_id"
|
94
121
|
t.integer "agent_relationship_type_id"
|
@@ -99,16 +126,17 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
99
126
|
t.index ["parent_id"], name: "index_agent_relationships_on_parent_id"
|
100
127
|
end
|
101
128
|
|
102
|
-
create_table "agent_types", force: :cascade do |t|
|
129
|
+
create_table "agent_types", id: :serial, force: :cascade do |t|
|
103
130
|
t.string "name", null: false
|
104
131
|
t.text "display_name"
|
105
132
|
t.text "note"
|
106
|
-
t.integer "position"
|
133
|
+
t.integer "position", default: 1, null: false
|
107
134
|
t.datetime "created_at"
|
108
135
|
t.datetime "updated_at"
|
136
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
109
137
|
end
|
110
138
|
|
111
|
-
create_table "agents", force: :cascade do |t|
|
139
|
+
create_table "agents", id: :serial, force: :cascade do |t|
|
112
140
|
t.string "last_name"
|
113
141
|
t.string "middle_name"
|
114
142
|
t.string "first_name"
|
@@ -163,7 +191,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
163
191
|
t.index ["required_role_id"], name: "index_agents_on_required_role_id"
|
164
192
|
end
|
165
193
|
|
166
|
-
create_table "baskets", force: :cascade do |t|
|
194
|
+
create_table "baskets", id: :serial, force: :cascade do |t|
|
167
195
|
t.integer "user_id"
|
168
196
|
t.text "note"
|
169
197
|
t.integer "lock_version", default: 0, null: false
|
@@ -172,7 +200,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
172
200
|
t.index ["user_id"], name: "index_baskets_on_user_id"
|
173
201
|
end
|
174
202
|
|
175
|
-
create_table "bookstores", force: :cascade do |t|
|
203
|
+
create_table "bookstores", id: :serial, force: :cascade do |t|
|
176
204
|
t.text "name", null: false
|
177
205
|
t.string "zip_code"
|
178
206
|
t.text "address"
|
@@ -186,34 +214,40 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
186
214
|
t.datetime "updated_at"
|
187
215
|
end
|
188
216
|
|
189
|
-
create_table "budget_types", force: :cascade do |t|
|
217
|
+
create_table "budget_types", id: :serial, force: :cascade do |t|
|
190
218
|
t.string "name"
|
191
219
|
t.text "display_name"
|
192
220
|
t.text "note"
|
193
221
|
t.integer "position"
|
194
222
|
t.datetime "created_at"
|
195
223
|
t.datetime "updated_at"
|
224
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
196
225
|
end
|
197
226
|
|
198
|
-
create_table "carrier_types", force: :cascade do |t|
|
227
|
+
create_table "carrier_types", id: :serial, force: :cascade do |t|
|
199
228
|
t.string "name", null: false
|
200
229
|
t.text "display_name"
|
201
230
|
t.text "note"
|
202
|
-
t.integer "position"
|
231
|
+
t.integer "position", default: 1, null: false
|
203
232
|
t.datetime "created_at"
|
204
233
|
t.datetime "updated_at"
|
234
|
+
t.string "attachment_file_name"
|
235
|
+
t.string "attachment_content_type"
|
236
|
+
t.bigint "attachment_file_size"
|
237
|
+
t.datetime "attachment_updated_at"
|
238
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
205
239
|
end
|
206
240
|
|
207
241
|
create_table "circulation_statuses", force: :cascade do |t|
|
208
242
|
t.string "name", null: false
|
209
|
-
t.
|
243
|
+
t.jsonb "display_name", default: {}, null: false
|
210
244
|
t.text "note"
|
211
245
|
t.integer "position"
|
212
|
-
t.datetime "created_at"
|
213
|
-
t.datetime "updated_at"
|
246
|
+
t.datetime "created_at", null: false
|
247
|
+
t.datetime "updated_at", null: false
|
214
248
|
end
|
215
249
|
|
216
|
-
create_table "colors", force: :cascade do |t|
|
250
|
+
create_table "colors", id: :serial, force: :cascade do |t|
|
217
251
|
t.integer "library_group_id"
|
218
252
|
t.string "property"
|
219
253
|
t.string "code"
|
@@ -223,16 +257,17 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
223
257
|
t.index ["library_group_id"], name: "index_colors_on_library_group_id"
|
224
258
|
end
|
225
259
|
|
226
|
-
create_table "content_types", force: :cascade do |t|
|
260
|
+
create_table "content_types", id: :serial, force: :cascade do |t|
|
227
261
|
t.string "name", null: false
|
228
262
|
t.text "display_name"
|
229
263
|
t.text "note"
|
230
|
-
t.integer "position"
|
264
|
+
t.integer "position", default: 1, null: false
|
231
265
|
t.datetime "created_at"
|
232
266
|
t.datetime "updated_at"
|
267
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
233
268
|
end
|
234
269
|
|
235
|
-
create_table "countries", force: :cascade do |t|
|
270
|
+
create_table "countries", id: :serial, force: :cascade do |t|
|
236
271
|
t.string "name", null: false
|
237
272
|
t.text "display_name"
|
238
273
|
t.string "alpha_2"
|
@@ -246,19 +281,20 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
246
281
|
t.index ["numeric_3"], name: "index_countries_on_numeric_3"
|
247
282
|
end
|
248
283
|
|
249
|
-
create_table "create_types", force: :cascade do |t|
|
284
|
+
create_table "create_types", id: :serial, force: :cascade do |t|
|
250
285
|
t.string "name"
|
251
286
|
t.text "display_name"
|
252
287
|
t.text "note"
|
253
288
|
t.integer "position"
|
254
289
|
t.datetime "created_at"
|
255
290
|
t.datetime "updated_at"
|
291
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
256
292
|
end
|
257
293
|
|
258
|
-
create_table "creates", force: :cascade do |t|
|
294
|
+
create_table "creates", id: :serial, force: :cascade do |t|
|
259
295
|
t.integer "agent_id", null: false
|
260
296
|
t.integer "work_id", null: false
|
261
|
-
t.integer "position"
|
297
|
+
t.integer "position", default: 1, null: false
|
262
298
|
t.datetime "created_at"
|
263
299
|
t.datetime "updated_at"
|
264
300
|
t.integer "create_type_id"
|
@@ -266,7 +302,19 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
266
302
|
t.index ["work_id"], name: "index_creates_on_work_id"
|
267
303
|
end
|
268
304
|
|
269
|
-
create_table "
|
305
|
+
create_table "doi_records", force: :cascade do |t|
|
306
|
+
t.string "body", null: false
|
307
|
+
t.string "display_body", null: false
|
308
|
+
t.string "source"
|
309
|
+
t.jsonb "response", default: {}, null: false
|
310
|
+
t.bigint "manifestation_id", null: false
|
311
|
+
t.datetime "created_at", null: false
|
312
|
+
t.datetime "updated_at", null: false
|
313
|
+
t.index ["body"], name: "index_doi_records_on_body", unique: true
|
314
|
+
t.index ["manifestation_id"], name: "index_doi_records_on_manifestation_id"
|
315
|
+
end
|
316
|
+
|
317
|
+
create_table "donates", id: :serial, force: :cascade do |t|
|
270
318
|
t.integer "agent_id", null: false
|
271
319
|
t.integer "item_id", null: false
|
272
320
|
t.datetime "created_at"
|
@@ -275,7 +323,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
275
323
|
t.index ["item_id"], name: "index_donates_on_item_id"
|
276
324
|
end
|
277
325
|
|
278
|
-
create_table "event_categories", force: :cascade do |t|
|
326
|
+
create_table "event_categories", id: :serial, force: :cascade do |t|
|
279
327
|
t.string "name", null: false
|
280
328
|
t.text "display_name"
|
281
329
|
t.text "note"
|
@@ -284,7 +332,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
284
332
|
t.datetime "updated_at"
|
285
333
|
end
|
286
334
|
|
287
|
-
create_table "events", force: :cascade do |t|
|
335
|
+
create_table "events", id: :serial, force: :cascade do |t|
|
288
336
|
t.integer "library_id", default: 1, null: false
|
289
337
|
t.integer "event_category_id", default: 1, null: false
|
290
338
|
t.string "name"
|
@@ -300,7 +348,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
300
348
|
t.index ["library_id"], name: "index_events_on_library_id"
|
301
349
|
end
|
302
350
|
|
303
|
-
create_table "exemplifies", force: :cascade do |t|
|
351
|
+
create_table "exemplifies", id: :serial, force: :cascade do |t|
|
304
352
|
t.integer "manifestation_id", null: false
|
305
353
|
t.integer "item_id", null: false
|
306
354
|
t.integer "position"
|
@@ -310,7 +358,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
310
358
|
t.index ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
|
311
359
|
end
|
312
360
|
|
313
|
-
create_table "extents", force: :cascade do |t|
|
361
|
+
create_table "extents", id: :serial, force: :cascade do |t|
|
314
362
|
t.string "name", null: false
|
315
363
|
t.text "display_name"
|
316
364
|
t.text "note"
|
@@ -319,25 +367,27 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
319
367
|
t.datetime "updated_at"
|
320
368
|
end
|
321
369
|
|
322
|
-
create_table "form_of_works", force: :cascade do |t|
|
370
|
+
create_table "form_of_works", id: :serial, force: :cascade do |t|
|
323
371
|
t.string "name", null: false
|
324
372
|
t.text "display_name"
|
325
373
|
t.text "note"
|
326
|
-
t.integer "position"
|
374
|
+
t.integer "position", default: 1, null: false
|
327
375
|
t.datetime "created_at"
|
328
376
|
t.datetime "updated_at"
|
377
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
329
378
|
end
|
330
379
|
|
331
|
-
create_table "frequencies", force: :cascade do |t|
|
380
|
+
create_table "frequencies", id: :serial, force: :cascade do |t|
|
332
381
|
t.string "name", null: false
|
333
382
|
t.text "display_name"
|
334
383
|
t.text "note"
|
335
|
-
t.integer "position"
|
384
|
+
t.integer "position", default: 1, null: false
|
336
385
|
t.datetime "created_at"
|
337
386
|
t.datetime "updated_at"
|
387
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
338
388
|
end
|
339
389
|
|
340
|
-
create_table "identifier_types", force: :cascade do |t|
|
390
|
+
create_table "identifier_types", id: :serial, force: :cascade do |t|
|
341
391
|
t.string "name"
|
342
392
|
t.text "display_name"
|
343
393
|
t.text "note"
|
@@ -346,7 +396,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
346
396
|
t.datetime "updated_at"
|
347
397
|
end
|
348
398
|
|
349
|
-
create_table "identifiers", force: :cascade do |t|
|
399
|
+
create_table "identifiers", id: :serial, force: :cascade do |t|
|
350
400
|
t.string "body", null: false
|
351
401
|
t.integer "identifier_type_id", null: false
|
352
402
|
t.integer "manifestation_id"
|
@@ -358,19 +408,20 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
358
408
|
t.index ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
|
359
409
|
end
|
360
410
|
|
361
|
-
create_table "import_request_transitions", force: :cascade do |t|
|
411
|
+
create_table "import_request_transitions", id: :serial, force: :cascade do |t|
|
362
412
|
t.string "to_state"
|
363
413
|
t.text "metadata", default: "{}"
|
364
414
|
t.integer "sort_key"
|
365
415
|
t.integer "import_request_id"
|
366
416
|
t.datetime "created_at"
|
367
417
|
t.datetime "updated_at"
|
368
|
-
t.boolean "most_recent"
|
418
|
+
t.boolean "most_recent", null: false
|
419
|
+
t.index ["import_request_id", "most_recent"], name: "index_import_request_transitions_parent_most_recent", unique: true, where: "most_recent"
|
369
420
|
t.index ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
|
370
421
|
t.index ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
|
371
422
|
end
|
372
423
|
|
373
|
-
create_table "import_requests", force: :cascade do |t|
|
424
|
+
create_table "import_requests", id: :serial, force: :cascade do |t|
|
374
425
|
t.string "isbn"
|
375
426
|
t.integer "manifestation_id"
|
376
427
|
t.integer "user_id"
|
@@ -381,7 +432,45 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
381
432
|
t.index ["user_id"], name: "index_import_requests_on_user_id"
|
382
433
|
end
|
383
434
|
|
384
|
-
create_table "
|
435
|
+
create_table "isbn_record_and_manifestations", force: :cascade do |t|
|
436
|
+
t.bigint "isbn_record_id", null: false
|
437
|
+
t.bigint "manifestation_id", null: false
|
438
|
+
t.integer "position"
|
439
|
+
t.datetime "created_at", null: false
|
440
|
+
t.datetime "updated_at", null: false
|
441
|
+
t.index ["isbn_record_id"], name: "index_isbn_record_and_manifestations_on_isbn_record_id"
|
442
|
+
t.index ["manifestation_id"], name: "index_isbn_record_and_manifestations_on_manifestation_id"
|
443
|
+
end
|
444
|
+
|
445
|
+
create_table "isbn_records", force: :cascade do |t|
|
446
|
+
t.string "body", null: false
|
447
|
+
t.string "isbn_type"
|
448
|
+
t.string "source"
|
449
|
+
t.datetime "created_at", null: false
|
450
|
+
t.datetime "updated_at", null: false
|
451
|
+
t.index ["body"], name: "index_isbn_records_on_body", unique: true
|
452
|
+
end
|
453
|
+
|
454
|
+
create_table "issn_record_and_manifestations", force: :cascade do |t|
|
455
|
+
t.bigint "issn_record_id", null: false
|
456
|
+
t.bigint "manifestation_id", null: false
|
457
|
+
t.integer "position"
|
458
|
+
t.datetime "created_at", null: false
|
459
|
+
t.datetime "updated_at", null: false
|
460
|
+
t.index ["issn_record_id"], name: "index_issn_record_and_manifestations_on_issn_record_id"
|
461
|
+
t.index ["manifestation_id"], name: "index_issn_record_and_manifestations_on_manifestation_id"
|
462
|
+
end
|
463
|
+
|
464
|
+
create_table "issn_records", force: :cascade do |t|
|
465
|
+
t.string "body", null: false
|
466
|
+
t.string "issn_type"
|
467
|
+
t.string "source"
|
468
|
+
t.datetime "created_at", null: false
|
469
|
+
t.datetime "updated_at", null: false
|
470
|
+
t.index ["body"], name: "index_issn_records_on_body", unique: true
|
471
|
+
end
|
472
|
+
|
473
|
+
create_table "items", id: :serial, force: :cascade do |t|
|
385
474
|
t.string "call_number"
|
386
475
|
t.string "item_identifier"
|
387
476
|
t.datetime "created_at"
|
@@ -410,7 +499,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
410
499
|
t.index ["shelf_id"], name: "index_items_on_shelf_id"
|
411
500
|
end
|
412
501
|
|
413
|
-
create_table "languages", force: :cascade do |t|
|
502
|
+
create_table "languages", id: :serial, force: :cascade do |t|
|
414
503
|
t.string "name", null: false
|
415
504
|
t.string "native_name"
|
416
505
|
t.text "display_name"
|
@@ -419,13 +508,14 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
419
508
|
t.string "iso_639_3"
|
420
509
|
t.text "note"
|
421
510
|
t.integer "position"
|
511
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
422
512
|
t.index ["iso_639_1"], name: "index_languages_on_iso_639_1"
|
423
513
|
t.index ["iso_639_2"], name: "index_languages_on_iso_639_2"
|
424
514
|
t.index ["iso_639_3"], name: "index_languages_on_iso_639_3"
|
425
515
|
t.index ["name"], name: "index_languages_on_name", unique: true
|
426
516
|
end
|
427
517
|
|
428
|
-
create_table "libraries", force: :cascade do |t|
|
518
|
+
create_table "libraries", id: :serial, force: :cascade do |t|
|
429
519
|
t.string "name", null: false
|
430
520
|
t.text "display_name"
|
431
521
|
t.string "short_display_name", null: false
|
@@ -450,22 +540,12 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
450
540
|
t.string "isil"
|
451
541
|
t.float "latitude"
|
452
542
|
t.float "longitude"
|
543
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
453
544
|
t.index ["library_group_id"], name: "index_libraries_on_library_group_id"
|
454
545
|
t.index ["name"], name: "index_libraries_on_name"
|
455
546
|
end
|
456
547
|
|
457
|
-
create_table "
|
458
|
-
t.integer "library_group_id", null: false
|
459
|
-
t.string "locale", null: false
|
460
|
-
t.datetime "created_at", null: false
|
461
|
-
t.datetime "updated_at", null: false
|
462
|
-
t.text "login_banner"
|
463
|
-
t.text "footer_banner"
|
464
|
-
t.index ["library_group_id"], name: "index_library_group_translations_on_library_group_id"
|
465
|
-
t.index ["locale"], name: "index_library_group_translations_on_locale"
|
466
|
-
end
|
467
|
-
|
468
|
-
create_table "library_groups", force: :cascade do |t|
|
548
|
+
create_table "library_groups", id: :serial, force: :cascade do |t|
|
469
549
|
t.string "name", null: false
|
470
550
|
t.text "display_name"
|
471
551
|
t.string "short_name", null: false
|
@@ -487,30 +567,39 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
487
567
|
t.integer "pub_year_facet_range_interval", default: 10
|
488
568
|
t.integer "user_id"
|
489
569
|
t.boolean "csv_charset_conversion", default: false, null: false
|
570
|
+
t.string "header_logo_file_name"
|
571
|
+
t.string "header_logo_content_type"
|
572
|
+
t.bigint "header_logo_file_size"
|
573
|
+
t.datetime "header_logo_updated_at"
|
490
574
|
t.text "header_logo_meta"
|
575
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
576
|
+
t.jsonb "login_banner_translations", default: {}, null: false
|
577
|
+
t.jsonb "footer_banner_translations", default: {}, null: false
|
491
578
|
t.index ["short_name"], name: "index_library_groups_on_short_name"
|
492
579
|
t.index ["user_id"], name: "index_library_groups_on_user_id"
|
493
580
|
end
|
494
581
|
|
495
|
-
create_table "licenses", force: :cascade do |t|
|
582
|
+
create_table "licenses", id: :serial, force: :cascade do |t|
|
496
583
|
t.string "name", null: false
|
497
584
|
t.string "display_name"
|
498
585
|
t.text "note"
|
499
|
-
t.integer "position"
|
586
|
+
t.integer "position", default: 1, null: false
|
500
587
|
t.datetime "created_at"
|
501
588
|
t.datetime "updated_at"
|
589
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
502
590
|
end
|
503
591
|
|
504
|
-
create_table "manifestation_relationship_types", force: :cascade do |t|
|
592
|
+
create_table "manifestation_relationship_types", id: :serial, force: :cascade do |t|
|
505
593
|
t.string "name", null: false
|
506
594
|
t.text "display_name"
|
507
595
|
t.text "note"
|
508
596
|
t.integer "position"
|
509
597
|
t.datetime "created_at"
|
510
598
|
t.datetime "updated_at"
|
599
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
511
600
|
end
|
512
601
|
|
513
|
-
create_table "manifestation_relationships", force: :cascade do |t|
|
602
|
+
create_table "manifestation_relationships", id: :serial, force: :cascade do |t|
|
514
603
|
t.integer "parent_id"
|
515
604
|
t.integer "child_id"
|
516
605
|
t.integer "manifestation_relationship_type_id"
|
@@ -521,7 +610,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
521
610
|
t.index ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
|
522
611
|
end
|
523
612
|
|
524
|
-
create_table "manifestations", force: :cascade do |t|
|
613
|
+
create_table "manifestations", id: :serial, force: :cascade do |t|
|
525
614
|
t.text "original_title", null: false
|
526
615
|
t.text "title_alternative"
|
527
616
|
t.text "title_transcription"
|
@@ -553,6 +642,10 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
553
642
|
t.integer "required_score", default: 0, null: false
|
554
643
|
t.integer "frequency_id", default: 1, null: false
|
555
644
|
t.boolean "subscription_master", default: false, null: false
|
645
|
+
t.string "attachment_file_name"
|
646
|
+
t.string "attachment_content_type"
|
647
|
+
t.integer "attachment_file_size"
|
648
|
+
t.datetime "attachment_updated_at"
|
556
649
|
t.text "title_alternative_transcription"
|
557
650
|
t.text "description"
|
558
651
|
t.text "abstract"
|
@@ -569,6 +662,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
569
662
|
t.string "ndc"
|
570
663
|
t.integer "content_type_id", default: 1
|
571
664
|
t.integer "year_of_publication"
|
665
|
+
t.text "attachment_meta"
|
572
666
|
t.integer "month_of_publication"
|
573
667
|
t.boolean "fulltext_content"
|
574
668
|
t.boolean "serial"
|
@@ -582,35 +676,41 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
582
676
|
t.index ["updated_at"], name: "index_manifestations_on_updated_at"
|
583
677
|
end
|
584
678
|
|
585
|
-
create_table "medium_of_performances", force: :cascade do |t|
|
679
|
+
create_table "medium_of_performances", id: :serial, force: :cascade do |t|
|
586
680
|
t.string "name", null: false
|
587
681
|
t.text "display_name"
|
588
682
|
t.text "note"
|
589
683
|
t.integer "position"
|
590
684
|
t.datetime "created_at"
|
591
685
|
t.datetime "updated_at"
|
686
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
592
687
|
end
|
593
688
|
|
594
689
|
create_table "message_request_transitions", force: :cascade do |t|
|
595
690
|
t.string "to_state"
|
596
|
-
t.
|
691
|
+
t.jsonb "metadata", default: {}
|
597
692
|
t.integer "sort_key"
|
598
|
-
t.
|
599
|
-
t.datetime "created_at"
|
600
|
-
t.datetime "updated_at"
|
693
|
+
t.bigint "message_request_id"
|
694
|
+
t.datetime "created_at", null: false
|
695
|
+
t.datetime "updated_at", null: false
|
696
|
+
t.boolean "most_recent", null: false
|
697
|
+
t.index ["message_request_id", "most_recent"], name: "index_message_request_transitions_parent_most_recent", unique: true, where: "most_recent"
|
601
698
|
t.index ["message_request_id"], name: "index_message_request_transitions_on_message_request_id"
|
602
699
|
t.index ["sort_key", "message_request_id"], name: "index_message_request_transitions_on_sort_key_and_request_id", unique: true
|
603
700
|
end
|
604
701
|
|
605
702
|
create_table "message_requests", force: :cascade do |t|
|
606
|
-
t.
|
607
|
-
t.
|
608
|
-
t.
|
703
|
+
t.bigint "sender_id"
|
704
|
+
t.bigint "receiver_id"
|
705
|
+
t.bigint "message_template_id"
|
609
706
|
t.datetime "sent_at"
|
610
707
|
t.datetime "deleted_at"
|
611
708
|
t.text "body"
|
612
|
-
t.datetime "created_at"
|
613
|
-
t.datetime "updated_at"
|
709
|
+
t.datetime "created_at", null: false
|
710
|
+
t.datetime "updated_at", null: false
|
711
|
+
t.index ["message_template_id"], name: "index_message_requests_on_message_template_id"
|
712
|
+
t.index ["receiver_id"], name: "index_message_requests_on_receiver_id"
|
713
|
+
t.index ["sender_id"], name: "index_message_requests_on_sender_id"
|
614
714
|
end
|
615
715
|
|
616
716
|
create_table "message_templates", force: :cascade do |t|
|
@@ -619,33 +719,34 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
619
719
|
t.text "body", null: false
|
620
720
|
t.integer "position"
|
621
721
|
t.string "locale", default: "en"
|
622
|
-
t.datetime "created_at"
|
623
|
-
t.datetime "updated_at"
|
722
|
+
t.datetime "created_at", null: false
|
723
|
+
t.datetime "updated_at", null: false
|
624
724
|
t.index ["status"], name: "index_message_templates_on_status", unique: true
|
625
725
|
end
|
626
726
|
|
627
727
|
create_table "message_transitions", force: :cascade do |t|
|
628
728
|
t.string "to_state"
|
629
|
-
t.
|
729
|
+
t.jsonb "metadata", default: {}
|
630
730
|
t.integer "sort_key"
|
631
|
-
t.
|
632
|
-
t.datetime "created_at"
|
633
|
-
t.datetime "updated_at"
|
634
|
-
t.boolean "most_recent"
|
731
|
+
t.bigint "message_id"
|
732
|
+
t.datetime "created_at", null: false
|
733
|
+
t.datetime "updated_at", null: false
|
734
|
+
t.boolean "most_recent", null: false
|
735
|
+
t.index ["message_id", "most_recent"], name: "index_message_transitions_parent_most_recent", unique: true, where: "most_recent"
|
635
736
|
t.index ["message_id"], name: "index_message_transitions_on_message_id"
|
636
737
|
t.index ["sort_key", "message_id"], name: "index_message_transitions_on_sort_key_and_message_id", unique: true
|
637
738
|
end
|
638
739
|
|
639
740
|
create_table "messages", force: :cascade do |t|
|
640
741
|
t.datetime "read_at"
|
641
|
-
t.
|
642
|
-
t.
|
742
|
+
t.bigint "sender_id"
|
743
|
+
t.bigint "receiver_id"
|
643
744
|
t.string "subject", null: false
|
644
745
|
t.text "body"
|
645
|
-
t.
|
646
|
-
t.
|
647
|
-
t.datetime "created_at"
|
648
|
-
t.datetime "updated_at"
|
746
|
+
t.bigint "message_request_id"
|
747
|
+
t.bigint "parent_id"
|
748
|
+
t.datetime "created_at", null: false
|
749
|
+
t.datetime "updated_at", null: false
|
649
750
|
t.integer "lft"
|
650
751
|
t.integer "rgt"
|
651
752
|
t.integer "depth"
|
@@ -655,17 +756,17 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
655
756
|
t.index ["sender_id"], name: "index_messages_on_sender_id"
|
656
757
|
end
|
657
758
|
|
658
|
-
create_table "owns", force: :cascade do |t|
|
759
|
+
create_table "owns", id: :serial, force: :cascade do |t|
|
659
760
|
t.integer "agent_id", null: false
|
660
761
|
t.integer "item_id", null: false
|
661
|
-
t.integer "position"
|
762
|
+
t.integer "position", default: 1, null: false
|
662
763
|
t.datetime "created_at"
|
663
764
|
t.datetime "updated_at"
|
664
765
|
t.index ["agent_id"], name: "index_owns_on_agent_id"
|
665
766
|
t.index ["item_id"], name: "index_owns_on_item_id"
|
666
767
|
end
|
667
768
|
|
668
|
-
create_table "picture_files", force: :cascade do |t|
|
769
|
+
create_table "picture_files", id: :serial, force: :cascade do |t|
|
669
770
|
t.integer "picture_attachable_id"
|
670
771
|
t.string "picture_attachable_type"
|
671
772
|
t.string "content_type"
|
@@ -685,19 +786,20 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
685
786
|
t.index ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
|
686
787
|
end
|
687
788
|
|
688
|
-
create_table "produce_types", force: :cascade do |t|
|
789
|
+
create_table "produce_types", id: :serial, force: :cascade do |t|
|
689
790
|
t.string "name"
|
690
791
|
t.text "display_name"
|
691
792
|
t.text "note"
|
692
793
|
t.integer "position"
|
693
794
|
t.datetime "created_at"
|
694
795
|
t.datetime "updated_at"
|
796
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
695
797
|
end
|
696
798
|
|
697
|
-
create_table "produces", force: :cascade do |t|
|
799
|
+
create_table "produces", id: :serial, force: :cascade do |t|
|
698
800
|
t.integer "agent_id", null: false
|
699
801
|
t.integer "manifestation_id", null: false
|
700
|
-
t.integer "position"
|
802
|
+
t.integer "position", default: 1, null: false
|
701
803
|
t.datetime "created_at"
|
702
804
|
t.datetime "updated_at"
|
703
805
|
t.integer "produce_type_id"
|
@@ -705,7 +807,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
705
807
|
t.index ["manifestation_id"], name: "index_produces_on_manifestation_id"
|
706
808
|
end
|
707
809
|
|
708
|
-
create_table "profiles", force: :cascade do |t|
|
810
|
+
create_table "profiles", id: :serial, force: :cascade do |t|
|
709
811
|
t.integer "user_id"
|
710
812
|
t.integer "user_group_id"
|
711
813
|
t.integer "library_id"
|
@@ -721,23 +823,26 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
721
823
|
t.boolean "save_search_history"
|
722
824
|
t.text "full_name_transcription"
|
723
825
|
t.datetime "date_of_birth"
|
826
|
+
t.index ["library_id"], name: "index_profiles_on_library_id"
|
827
|
+
t.index ["user_group_id"], name: "index_profiles_on_user_group_id"
|
724
828
|
t.index ["user_id"], name: "index_profiles_on_user_id"
|
725
829
|
t.index ["user_number"], name: "index_profiles_on_user_number", unique: true
|
726
830
|
end
|
727
831
|
|
728
|
-
create_table "realize_types", force: :cascade do |t|
|
832
|
+
create_table "realize_types", id: :serial, force: :cascade do |t|
|
729
833
|
t.string "name"
|
730
834
|
t.text "display_name"
|
731
835
|
t.text "note"
|
732
836
|
t.integer "position"
|
733
837
|
t.datetime "created_at"
|
734
838
|
t.datetime "updated_at"
|
839
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
735
840
|
end
|
736
841
|
|
737
|
-
create_table "realizes", force: :cascade do |t|
|
842
|
+
create_table "realizes", id: :serial, force: :cascade do |t|
|
738
843
|
t.integer "agent_id", null: false
|
739
844
|
t.integer "expression_id", null: false
|
740
|
-
t.integer "position"
|
845
|
+
t.integer "position", default: 1, null: false
|
741
846
|
t.datetime "created_at"
|
742
847
|
t.datetime "updated_at"
|
743
848
|
t.integer "realize_type_id"
|
@@ -745,60 +850,64 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
745
850
|
t.index ["expression_id"], name: "index_realizes_on_expression_id"
|
746
851
|
end
|
747
852
|
|
748
|
-
create_table "request_status_types", force: :cascade do |t|
|
853
|
+
create_table "request_status_types", id: :serial, force: :cascade do |t|
|
749
854
|
t.string "name", null: false
|
750
855
|
t.text "display_name"
|
751
856
|
t.text "note"
|
752
857
|
t.integer "position"
|
753
858
|
t.datetime "created_at"
|
754
859
|
t.datetime "updated_at"
|
860
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
755
861
|
end
|
756
862
|
|
757
|
-
create_table "request_types", force: :cascade do |t|
|
863
|
+
create_table "request_types", id: :serial, force: :cascade do |t|
|
758
864
|
t.string "name", null: false
|
759
865
|
t.text "display_name"
|
760
866
|
t.text "note"
|
761
867
|
t.integer "position"
|
762
868
|
t.datetime "created_at"
|
763
869
|
t.datetime "updated_at"
|
870
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
764
871
|
end
|
765
872
|
|
766
|
-
create_table "resource_export_file_transitions", force: :cascade do |t|
|
873
|
+
create_table "resource_export_file_transitions", id: :serial, force: :cascade do |t|
|
767
874
|
t.string "to_state"
|
768
875
|
t.text "metadata", default: "{}"
|
769
876
|
t.integer "sort_key"
|
770
877
|
t.integer "resource_export_file_id"
|
771
878
|
t.datetime "created_at"
|
772
879
|
t.datetime "updated_at"
|
773
|
-
t.boolean "most_recent"
|
880
|
+
t.boolean "most_recent", null: false
|
881
|
+
t.index ["resource_export_file_id", "most_recent"], name: "index_resource_export_file_transitions_parent_most_recent", unique: true, where: "most_recent"
|
774
882
|
t.index ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
|
775
883
|
t.index ["sort_key", "resource_export_file_id"], name: "index_resource_export_file_transitions_on_sort_key_and_file_id", unique: true
|
776
884
|
end
|
777
885
|
|
778
|
-
create_table "resource_export_files", force: :cascade do |t|
|
886
|
+
create_table "resource_export_files", id: :serial, force: :cascade do |t|
|
779
887
|
t.integer "user_id"
|
780
888
|
t.string "resource_export_file_name"
|
781
889
|
t.string "resource_export_content_type"
|
782
|
-
t.
|
890
|
+
t.bigint "resource_export_file_size"
|
783
891
|
t.datetime "resource_export_updated_at"
|
784
892
|
t.datetime "executed_at"
|
785
893
|
t.datetime "created_at"
|
786
894
|
t.datetime "updated_at"
|
787
895
|
end
|
788
896
|
|
789
|
-
create_table "resource_import_file_transitions", force: :cascade do |t|
|
897
|
+
create_table "resource_import_file_transitions", id: :serial, force: :cascade do |t|
|
790
898
|
t.string "to_state"
|
791
899
|
t.text "metadata", default: "{}"
|
792
900
|
t.integer "sort_key"
|
793
901
|
t.integer "resource_import_file_id"
|
794
902
|
t.datetime "created_at"
|
795
903
|
t.datetime "updated_at"
|
796
|
-
t.boolean "most_recent"
|
904
|
+
t.boolean "most_recent", null: false
|
905
|
+
t.index ["resource_import_file_id", "most_recent"], name: "index_resource_import_file_transitions_parent_most_recent", unique: true, where: "most_recent"
|
797
906
|
t.index ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
|
798
907
|
t.index ["sort_key", "resource_import_file_id"], name: "index_resource_import_file_transitions_on_sort_key_and_file_id", unique: true
|
799
908
|
end
|
800
909
|
|
801
|
-
create_table "resource_import_files", force: :cascade do |t|
|
910
|
+
create_table "resource_import_files", id: :serial, force: :cascade do |t|
|
802
911
|
t.integer "parent_id"
|
803
912
|
t.string "content_type"
|
804
913
|
t.integer "size"
|
@@ -820,7 +929,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
820
929
|
t.index ["user_id"], name: "index_resource_import_files_on_user_id"
|
821
930
|
end
|
822
931
|
|
823
|
-
create_table "resource_import_results", force: :cascade do |t|
|
932
|
+
create_table "resource_import_results", id: :serial, force: :cascade do |t|
|
824
933
|
t.integer "resource_import_file_id"
|
825
934
|
t.integer "manifestation_id"
|
826
935
|
t.integer "item_id"
|
@@ -833,7 +942,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
833
942
|
t.index ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
|
834
943
|
end
|
835
944
|
|
836
|
-
create_table "roles", force: :cascade do |t|
|
945
|
+
create_table "roles", id: :serial, force: :cascade do |t|
|
837
946
|
t.string "name", null: false
|
838
947
|
t.string "display_name"
|
839
948
|
t.text "note"
|
@@ -841,9 +950,10 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
841
950
|
t.datetime "updated_at"
|
842
951
|
t.integer "score", default: 0, null: false
|
843
952
|
t.integer "position"
|
953
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
844
954
|
end
|
845
955
|
|
846
|
-
create_table "search_engines", force: :cascade do |t|
|
956
|
+
create_table "search_engines", id: :serial, force: :cascade do |t|
|
847
957
|
t.string "name", null: false
|
848
958
|
t.text "display_name"
|
849
959
|
t.string "url", null: false
|
@@ -855,9 +965,10 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
855
965
|
t.integer "position"
|
856
966
|
t.datetime "created_at"
|
857
967
|
t.datetime "updated_at"
|
968
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
858
969
|
end
|
859
970
|
|
860
|
-
create_table "search_histories", force: :cascade do |t|
|
971
|
+
create_table "search_histories", id: :serial, force: :cascade do |t|
|
861
972
|
t.integer "user_id"
|
862
973
|
t.string "operation", default: "searchRetrieve"
|
863
974
|
t.float "sru_version", default: 1.2
|
@@ -882,7 +993,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
882
993
|
t.index ["user_id"], name: "index_search_histories_on_user_id"
|
883
994
|
end
|
884
995
|
|
885
|
-
create_table "series_has_manifestations", force: :cascade do |t|
|
996
|
+
create_table "series_has_manifestations", id: :serial, force: :cascade do |t|
|
886
997
|
t.integer "series_statement_id"
|
887
998
|
t.integer "manifestation_id"
|
888
999
|
t.integer "position"
|
@@ -892,13 +1003,13 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
892
1003
|
t.index ["series_statement_id"], name: "index_series_has_manifestations_on_series_statement_id"
|
893
1004
|
end
|
894
1005
|
|
895
|
-
create_table "series_statement_merge_lists", force: :cascade do |t|
|
1006
|
+
create_table "series_statement_merge_lists", id: :serial, force: :cascade do |t|
|
896
1007
|
t.string "title"
|
897
1008
|
t.datetime "created_at"
|
898
1009
|
t.datetime "updated_at"
|
899
1010
|
end
|
900
1011
|
|
901
|
-
create_table "series_statement_merges", force: :cascade do |t|
|
1012
|
+
create_table "series_statement_merges", id: :serial, force: :cascade do |t|
|
902
1013
|
t.integer "series_statement_id", null: false
|
903
1014
|
t.integer "series_statement_merge_list_id", null: false
|
904
1015
|
t.datetime "created_at"
|
@@ -907,7 +1018,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
907
1018
|
t.index ["series_statement_merge_list_id"], name: "index_series_statement_merges_on_list_id"
|
908
1019
|
end
|
909
1020
|
|
910
|
-
create_table "series_statement_relationships", force: :cascade do |t|
|
1021
|
+
create_table "series_statement_relationships", id: :serial, force: :cascade do |t|
|
911
1022
|
t.integer "parent_id"
|
912
1023
|
t.integer "child_id"
|
913
1024
|
t.integer "position"
|
@@ -915,7 +1026,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
915
1026
|
t.datetime "updated_at"
|
916
1027
|
end
|
917
1028
|
|
918
|
-
create_table "series_statements", force: :cascade do |t|
|
1029
|
+
create_table "series_statements", id: :serial, force: :cascade do |t|
|
919
1030
|
t.text "original_title"
|
920
1031
|
t.text "numbering"
|
921
1032
|
t.text "title_subseries"
|
@@ -940,7 +1051,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
940
1051
|
t.index ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
|
941
1052
|
end
|
942
1053
|
|
943
|
-
create_table "shelves", force: :cascade do |t|
|
1054
|
+
create_table "shelves", id: :serial, force: :cascade do |t|
|
944
1055
|
t.string "name", null: false
|
945
1056
|
t.text "display_name"
|
946
1057
|
t.text "note"
|
@@ -951,10 +1062,11 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
951
1062
|
t.datetime "updated_at"
|
952
1063
|
t.datetime "deleted_at"
|
953
1064
|
t.boolean "closed", default: false, null: false
|
1065
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
954
1066
|
t.index ["library_id"], name: "index_shelves_on_library_id"
|
955
1067
|
end
|
956
1068
|
|
957
|
-
create_table "subscribes", force: :cascade do |t|
|
1069
|
+
create_table "subscribes", id: :serial, force: :cascade do |t|
|
958
1070
|
t.integer "subscription_id", null: false
|
959
1071
|
t.integer "work_id", null: false
|
960
1072
|
t.datetime "start_at", null: false
|
@@ -965,7 +1077,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
965
1077
|
t.index ["work_id"], name: "index_subscribes_on_work_id"
|
966
1078
|
end
|
967
1079
|
|
968
|
-
create_table "subscriptions", force: :cascade do |t|
|
1080
|
+
create_table "subscriptions", id: :serial, force: :cascade do |t|
|
969
1081
|
t.text "title", null: false
|
970
1082
|
t.text "note"
|
971
1083
|
t.integer "user_id"
|
@@ -978,7 +1090,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
978
1090
|
t.index ["user_id"], name: "index_subscriptions_on_user_id"
|
979
1091
|
end
|
980
1092
|
|
981
|
-
create_table "taggings", force: :cascade do |t|
|
1093
|
+
create_table "taggings", id: :serial, force: :cascade do |t|
|
982
1094
|
t.integer "tag_id"
|
983
1095
|
t.string "taggable_type"
|
984
1096
|
t.integer "taggable_id"
|
@@ -990,7 +1102,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
990
1102
|
t.index ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context"
|
991
1103
|
end
|
992
1104
|
|
993
|
-
create_table "tags", force: :cascade do |t|
|
1105
|
+
create_table "tags", id: :serial, force: :cascade do |t|
|
994
1106
|
t.string "name"
|
995
1107
|
t.string "name_transcription"
|
996
1108
|
t.datetime "created_at"
|
@@ -1000,31 +1112,32 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
1000
1112
|
|
1001
1113
|
create_table "use_restrictions", force: :cascade do |t|
|
1002
1114
|
t.string "name", null: false
|
1003
|
-
t.
|
1115
|
+
t.jsonb "display_name", default: {}, null: false
|
1004
1116
|
t.text "note"
|
1005
1117
|
t.integer "position"
|
1006
|
-
t.datetime "created_at"
|
1007
|
-
t.datetime "updated_at"
|
1118
|
+
t.datetime "created_at", null: false
|
1119
|
+
t.datetime "updated_at", null: false
|
1008
1120
|
end
|
1009
1121
|
|
1010
|
-
create_table "user_export_file_transitions", force: :cascade do |t|
|
1122
|
+
create_table "user_export_file_transitions", id: :serial, force: :cascade do |t|
|
1011
1123
|
t.string "to_state"
|
1012
1124
|
t.text "metadata", default: "{}"
|
1013
1125
|
t.integer "sort_key"
|
1014
1126
|
t.integer "user_export_file_id"
|
1015
1127
|
t.datetime "created_at"
|
1016
1128
|
t.datetime "updated_at"
|
1017
|
-
t.boolean "most_recent"
|
1129
|
+
t.boolean "most_recent", null: false
|
1018
1130
|
t.index ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
|
1131
|
+
t.index ["user_export_file_id", "most_recent"], name: "index_user_export_file_transitions_parent_most_recent", unique: true, where: "most_recent"
|
1019
1132
|
t.index ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
|
1020
1133
|
t.index ["user_export_file_id"], name: "index_user_export_file_transitions_on_user_export_file_id"
|
1021
1134
|
end
|
1022
1135
|
|
1023
|
-
create_table "user_export_files", force: :cascade do |t|
|
1136
|
+
create_table "user_export_files", id: :serial, force: :cascade do |t|
|
1024
1137
|
t.integer "user_id"
|
1025
1138
|
t.string "user_export_file_name"
|
1026
1139
|
t.string "user_export_content_type"
|
1027
|
-
t.
|
1140
|
+
t.bigint "user_export_file_size"
|
1028
1141
|
t.datetime "user_export_updated_at"
|
1029
1142
|
t.datetime "executed_at"
|
1030
1143
|
t.datetime "created_at"
|
@@ -1032,7 +1145,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
1032
1145
|
t.index ["user_id"], name: "index_user_export_files_on_user_id"
|
1033
1146
|
end
|
1034
1147
|
|
1035
|
-
create_table "user_groups", force: :cascade do |t|
|
1148
|
+
create_table "user_groups", id: :serial, force: :cascade do |t|
|
1036
1149
|
t.string "name"
|
1037
1150
|
t.text "display_name"
|
1038
1151
|
t.text "note"
|
@@ -1045,30 +1158,32 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
1045
1158
|
t.integer "number_of_day_to_notify_overdue", default: 1, null: false
|
1046
1159
|
t.integer "number_of_day_to_notify_due_date", default: 7, null: false
|
1047
1160
|
t.integer "number_of_time_to_notify_overdue", default: 3, null: false
|
1161
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
1048
1162
|
end
|
1049
1163
|
|
1050
|
-
create_table "user_has_roles", force: :cascade do |t|
|
1051
|
-
t.integer "user_id"
|
1052
|
-
t.integer "role_id"
|
1164
|
+
create_table "user_has_roles", id: :serial, force: :cascade do |t|
|
1165
|
+
t.integer "user_id", null: false
|
1166
|
+
t.integer "role_id", null: false
|
1053
1167
|
t.datetime "created_at"
|
1054
1168
|
t.datetime "updated_at"
|
1055
1169
|
t.index ["role_id"], name: "index_user_has_roles_on_role_id"
|
1056
1170
|
t.index ["user_id"], name: "index_user_has_roles_on_user_id"
|
1057
1171
|
end
|
1058
1172
|
|
1059
|
-
create_table "user_import_file_transitions", force: :cascade do |t|
|
1173
|
+
create_table "user_import_file_transitions", id: :serial, force: :cascade do |t|
|
1060
1174
|
t.string "to_state"
|
1061
1175
|
t.text "metadata", default: "{}"
|
1062
1176
|
t.integer "sort_key"
|
1063
1177
|
t.integer "user_import_file_id"
|
1064
1178
|
t.datetime "created_at"
|
1065
1179
|
t.datetime "updated_at"
|
1066
|
-
t.boolean "most_recent"
|
1180
|
+
t.boolean "most_recent", null: false
|
1067
1181
|
t.index ["sort_key", "user_import_file_id"], name: "index_user_import_file_transitions_on_sort_key_and_file_id", unique: true
|
1182
|
+
t.index ["user_import_file_id", "most_recent"], name: "index_user_import_file_transitions_parent_most_recent", unique: true, where: "most_recent"
|
1068
1183
|
t.index ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
|
1069
1184
|
end
|
1070
1185
|
|
1071
|
-
create_table "user_import_files", force: :cascade do |t|
|
1186
|
+
create_table "user_import_files", id: :serial, force: :cascade do |t|
|
1072
1187
|
t.integer "user_id"
|
1073
1188
|
t.text "note"
|
1074
1189
|
t.datetime "executed_at"
|
@@ -1087,7 +1202,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
1087
1202
|
t.index ["user_id"], name: "index_user_import_files_on_user_id"
|
1088
1203
|
end
|
1089
1204
|
|
1090
|
-
create_table "user_import_results", force: :cascade do |t|
|
1205
|
+
create_table "user_import_results", id: :serial, force: :cascade do |t|
|
1091
1206
|
t.integer "user_import_file_id"
|
1092
1207
|
t.integer "user_id"
|
1093
1208
|
t.text "body"
|
@@ -1098,7 +1213,7 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
1098
1213
|
t.index ["user_import_file_id"], name: "index_user_import_results_on_user_import_file_id"
|
1099
1214
|
end
|
1100
1215
|
|
1101
|
-
create_table "users", force: :cascade do |t|
|
1216
|
+
create_table "users", id: :serial, force: :cascade do |t|
|
1102
1217
|
t.string "email", default: "", null: false
|
1103
1218
|
t.string "encrypted_password", default: "", null: false
|
1104
1219
|
t.string "reset_password_token"
|
@@ -1119,13 +1234,15 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
1119
1234
|
t.string "unlock_token"
|
1120
1235
|
t.datetime "locked_at"
|
1121
1236
|
t.datetime "confirmed_at"
|
1237
|
+
t.bigint "profile_id"
|
1122
1238
|
t.index ["email"], name: "index_users_on_email"
|
1239
|
+
t.index ["profile_id"], name: "index_users_on_profile_id"
|
1123
1240
|
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
|
1124
1241
|
t.index ["unlock_token"], name: "index_users_on_unlock_token", unique: true
|
1125
1242
|
t.index ["username"], name: "index_users_on_username", unique: true
|
1126
1243
|
end
|
1127
1244
|
|
1128
|
-
create_table "withdraws", force: :cascade do |t|
|
1245
|
+
create_table "withdraws", id: :serial, force: :cascade do |t|
|
1129
1246
|
t.integer "basket_id"
|
1130
1247
|
t.integer "item_id"
|
1131
1248
|
t.integer "librarian_id"
|
@@ -1136,4 +1253,17 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
1136
1253
|
t.index ["librarian_id"], name: "index_withdraws_on_librarian_id"
|
1137
1254
|
end
|
1138
1255
|
|
1256
|
+
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
|
1257
|
+
add_foreign_key "doi_records", "manifestations"
|
1258
|
+
add_foreign_key "isbn_record_and_manifestations", "isbn_records"
|
1259
|
+
add_foreign_key "isbn_record_and_manifestations", "manifestations"
|
1260
|
+
add_foreign_key "issn_record_and_manifestations", "issn_records"
|
1261
|
+
add_foreign_key "issn_record_and_manifestations", "manifestations"
|
1262
|
+
add_foreign_key "items", "manifestations"
|
1263
|
+
add_foreign_key "libraries", "library_groups"
|
1264
|
+
add_foreign_key "library_groups", "users"
|
1265
|
+
add_foreign_key "profiles", "users"
|
1266
|
+
add_foreign_key "user_has_roles", "roles"
|
1267
|
+
add_foreign_key "user_has_roles", "users"
|
1268
|
+
add_foreign_key "users", "profiles", on_delete: :cascade
|
1139
1269
|
end
|