iqvoc 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +69 -0
- data/Gemfile.lock +134 -0
- data/LICENSE +13 -0
- data/README.md +68 -0
- data/Rakefile +23 -0
- data/app/controllers/application_controller.rb +125 -0
- data/app/controllers/collections/hierarchical_controller.rb +44 -0
- data/app/controllers/collections_controller.rb +124 -0
- data/app/controllers/concepts/alphabetical_controller.rb +39 -0
- data/app/controllers/concepts/hierarchical_controller.rb +74 -0
- data/app/controllers/concepts/untranslated_controller.rb +38 -0
- data/app/controllers/concepts/versions_controller.rb +119 -0
- data/app/controllers/concepts_controller.rb +174 -0
- data/app/controllers/dashboard_controller.rb +43 -0
- data/app/controllers/pages_controller.rb +22 -0
- data/app/controllers/rdf_controller.rb +43 -0
- data/app/controllers/search_results_controller.rb +101 -0
- data/app/controllers/triple_store_syncs_controller.rb +45 -0
- data/app/controllers/user_sessions_controller.rb +48 -0
- data/app/controllers/users_controller.rb +81 -0
- data/app/helpers/application_helper.rb +60 -0
- data/app/helpers/concepts_helper.rb +86 -0
- data/app/helpers/dashboard_helper.rb +46 -0
- data/app/helpers/rdf_helper.rb +63 -0
- data/app/helpers/search_results_helper.rb +32 -0
- data/app/models/collection/base.rb +161 -0
- data/app/models/collection/member/base.rb +23 -0
- data/app/models/collection/member/collection.rb +33 -0
- data/app/models/collection/member/concept.rb +33 -0
- data/app/models/collection/unordered.rb +18 -0
- data/app/models/concept/base.rb +418 -0
- data/app/models/concept/relation/base.rb +95 -0
- data/app/models/concept/relation/reverse_relation_extension.rb +49 -0
- data/app/models/concept/relation/skos/base.rb +37 -0
- data/app/models/concept/relation/skos/broader/base.rb +41 -0
- data/app/models/concept/relation/skos/broader/mono.rb +28 -0
- data/app/models/concept/relation/skos/broader/poly.rb +23 -0
- data/app/models/concept/relation/skos/narrower/base.rb +37 -0
- data/app/models/concept/relation/skos/related.rb +21 -0
- data/app/models/concept/skos/base.rb +28 -0
- data/app/models/label/base.rb +98 -0
- data/app/models/label/skos/base.rb +27 -0
- data/app/models/labeling/base.rb +81 -0
- data/app/models/labeling/skos/alt_label.rb +21 -0
- data/app/models/labeling/skos/base.rb +99 -0
- data/app/models/labeling/skos/hidden_label.rb +25 -0
- data/app/models/labeling/skos/pref_label.rb +30 -0
- data/app/models/match/base.rb +57 -0
- data/app/models/match/skos/base.rb +23 -0
- data/app/models/match/skos/broad_match.rb +21 -0
- data/app/models/match/skos/close_match.rb +21 -0
- data/app/models/match/skos/exact_match.rb +21 -0
- data/app/models/match/skos/mapping_relation.rb +21 -0
- data/app/models/match/skos/narrow_match.rb +21 -0
- data/app/models/match/skos/related_match.rb +21 -0
- data/app/models/note/annotated/base.rb +29 -0
- data/app/models/note/base.rb +127 -0
- data/app/models/note/skos/base.rb +52 -0
- data/app/models/note/skos/change_note.rb +38 -0
- data/app/models/note/skos/definition.rb +33 -0
- data/app/models/note/skos/editorial_note.rb +21 -0
- data/app/models/note/skos/example.rb +21 -0
- data/app/models/note/skos/history_note.rb +21 -0
- data/app/models/note/skos/scope_note.rb +21 -0
- data/app/models/origin_mapping.rb +58 -0
- data/app/models/rdf_store.rb +96 -0
- data/app/models/search_extension.rb +58 -0
- data/app/models/user.rb +49 -0
- data/app/models/user_session.rb +23 -0
- data/app/views/collections/_collection.html.erb +10 -0
- data/app/views/collections/_form.html.erb +47 -0
- data/app/views/collections/edit.html.erb +11 -0
- data/app/views/collections/index.html.erb +12 -0
- data/app/views/collections/new.html.erb +7 -0
- data/app/views/collections/show.html.erb +53 -0
- data/app/views/collections/show.iqrdf +22 -0
- data/app/views/concepts/_base_data.html.erb +72 -0
- data/app/views/concepts/_close_match.html.erb +16 -0
- data/app/views/concepts/_show_head.html.erb +23 -0
- data/app/views/concepts/_visualization.html.erb +9 -0
- data/app/views/concepts/alphabetical/_pref_labeling.html.erb +6 -0
- data/app/views/concepts/alphabetical/index.html.erb +17 -0
- data/app/views/concepts/edit.html.erb +32 -0
- data/app/views/concepts/hierarchical/_treeview.html.erb +20 -0
- data/app/views/concepts/hierarchical/index.html.erb +5 -0
- data/app/views/concepts/index.iqrdf +24 -0
- data/app/views/concepts/new.html.erb +3 -0
- data/app/views/concepts/show_published.html.erb +16 -0
- data/app/views/concepts/show_unpublished.html.erb +43 -0
- data/app/views/concepts/untranslated/index.html.erb +23 -0
- data/app/views/dashboard/index.html.erb +47 -0
- data/app/views/errors/access_denied.html.erb +3 -0
- data/app/views/errors/multiple_choices.html.erb +11 -0
- data/app/views/errors/not_found.html.erb +8 -0
- data/app/views/kaminari/_page.html.erb +6 -0
- data/app/views/kaminari/_paginator.html.erb +15 -0
- data/app/views/layouts/_controls.html.erb +37 -0
- data/app/views/layouts/_header.html.erb +1 -0
- data/app/views/layouts/_navigation.html.erb +27 -0
- data/app/views/layouts/_sections.html.erb +8 -0
- data/app/views/layouts/application.html.erb +83 -0
- data/app/views/pages/about.html.erb +77 -0
- data/app/views/partials/_rdf_logo.html.erb +4 -0
- data/app/views/partials/collection/_member.html.erb +14 -0
- data/app/views/partials/collection_label/_search_result.html.erb +5 -0
- data/app/views/partials/concept/_edit_link_base.html.erb +4 -0
- data/app/views/partials/concept/_inline_base.html.erb +4 -0
- data/app/views/partials/concept/_new_link_base.html.erb +4 -0
- data/app/views/partials/concept/relation/_base.html.erb +8 -0
- data/app/views/partials/concept/relation/_edit_base.html.erb +15 -0
- data/app/views/partials/concept/relation/skos/_narrower.html.erb +12 -0
- data/app/views/partials/concept/relation/skos/broader/_mono.html.erb +28 -0
- data/app/views/partials/concept/relation/skos/broader/_poly.html.erb +14 -0
- data/app/views/partials/labeling/skos/_base.html.erb +17 -0
- data/app/views/partials/labeling/skos/_edit_base.html.erb +7 -0
- data/app/views/partials/labeling/skos/_search_result.html.erb +12 -0
- data/app/views/partials/match/_base.html.erb +13 -0
- data/app/views/partials/match/_edit_base.html.erb +6 -0
- data/app/views/partials/note/_base.html.erb +15 -0
- data/app/views/partials/note/_edit_base.html.erb +28 -0
- data/app/views/partials/note/_note.html.erb +14 -0
- data/app/views/partials/note/_search_result.html.erb +8 -0
- data/app/views/partials/note/skos/_edit_change_note.html.erb +47 -0
- data/app/views/partials/note/skos/definition/_search_result.html.erb +8 -0
- data/app/views/rdf/show_concept.iqrdf +5 -0
- data/app/views/search_results/_head_contents.html.erb +4 -0
- data/app/views/search_results/_rdf_links.html.erb +4 -0
- data/app/views/search_results/index.html.erb +92 -0
- data/app/views/search_results/index.iqrdf +33 -0
- data/app/views/triple_store_syncs/new.html.erb +7 -0
- data/app/views/user_sessions/new.html.erb +11 -0
- data/app/views/users/_form.html.erb +45 -0
- data/app/views/users/_user_preference.html.erb +12 -0
- data/app/views/users/edit.html.erb +14 -0
- data/app/views/users/index.html.erb +29 -0
- data/app/views/users/new.html.erb +13 -0
- data/config/application.rb +82 -0
- data/config/boot.rb +29 -0
- data/config/database.template.yml +43 -0
- data/config/database.yml +40 -0
- data/config/deploy/common.rb +79 -0
- data/config/deploy/ec2.rb +43 -0
- data/config/deploy/history.rb +29 -0
- data/config/deploy/innoq.rb +37 -0
- data/config/deploy.rb +72 -0
- data/config/engine.rb +25 -0
- data/config/environment.rb +21 -0
- data/config/environments/development.rb +74 -0
- data/config/environments/production.rb +65 -0
- data/config/environments/production.template.rb +65 -0
- data/config/environments/production_internal.rb +65 -0
- data/config/environments/test.rb +51 -0
- data/config/initializers/action_view.rb +23 -0
- data/config/initializers/active_record.rb +18 -0
- data/config/initializers/backtrace_silencers.rb +23 -0
- data/config/initializers/inflections.rb +26 -0
- data/config/initializers/iqvoc.rb +50 -0
- data/config/initializers/jdbc.rb +23 -0
- data/config/initializers/kaminari_config.rb +8 -0
- data/config/initializers/language.rb +6 -0
- data/config/initializers/mime_types.rb +24 -0
- data/config/initializers/secret_token.rb +29 -0
- data/config/initializers/secret_token.rb.template +29 -0
- data/config/initializers/session_store.rb +24 -0
- data/config/locales/activerecord.de.yml +135 -0
- data/config/locales/activerecord.en.yml +135 -0
- data/config/locales/authlogic.de.yml +38 -0
- data/config/locales/authlogic.en.yml +38 -0
- data/config/locales/de.yml +326 -0
- data/config/locales/defaults.de.yml +153 -0
- data/config/locales/en.yml +332 -0
- data/config/routes.rb +53 -0
- data/config/warble.rb +158 -0
- data/db/iqvoc_test.sqlite3 +0 -0
- data/db/migrate/20100927101502_create_schema.rb +174 -0
- data/db/migrate/20101125141218_add_collection_tables.rb +32 -0
- data/db/migrate/20101129161528_add_type_to_collections.rb +24 -0
- data/db/migrate/20101202094602_add_origin_to_collections.rb +25 -0
- data/db/migrate/20101202135420_rename_collection_contents_to_collection_members.rb +25 -0
- data/db/migrate/20101208103531_add_type_to_collection_contents.rb +27 -0
- data/db/migrate/20101210153916_add_indexes_to_collections.rb +25 -0
- data/db/migrate/20110204121244_create_collection_labels.rb +32 -0
- data/db/migrate/20110208084250_change_origin_lengths.rb +27 -0
- data/db/migrate/20110328124300_discard_collection_specifics.rb +27 -0
- data/db/migrate/20110408120357_remove_classifications_and_classifiers.rb +32 -0
- data/db/migrate/20110408120740_remove_xl_specfic_stuff.rb +39 -0
- data/db/migrate/20110420133640_change_value_in_notes.rb +8 -0
- data/db/migrate/20110427120534_add_published_at_to_labels.rb +9 -0
- data/db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb +13 -0
- data/db/migrate/20110512132624_extend_notes_value_field_length.rb +8 -0
- data/db/migrate/20110525103100_separate_note_annotation_predicates.rb +38 -0
- data/db/migrate/20110615134040_change_umt_note_annotations_to_dct.rb +9 -0
- data/db/schema.rb +127 -0
- data/db/seeds.rb +37 -0
- data/iqvoc.gemspec +27 -0
- data/lib/engine_tasks/assets.rake +49 -0
- data/lib/engine_tasks/db.rake +18 -0
- data/lib/engine_tasks/release.rake +118 -0
- data/lib/iqvoc/ability.rb +44 -0
- data/lib/iqvoc/data_helper.rb +27 -0
- data/lib/iqvoc/deep_cloning.rb +92 -0
- data/lib/iqvoc/rdf_helper.rb +67 -0
- data/lib/iqvoc/skos_importer.rb +144 -0
- data/lib/iqvoc/version.rb +19 -0
- data/lib/iqvoc/versioning.rb +151 -0
- data/lib/iqvoc.rb +228 -0
- data/lib/maker.rb +144 -0
- data/lib/ojdbc14.jar +0 -0
- data/lib/string.rb +23 -0
- data/lib/tasks/importer.rake +16 -0
- data/lib/tasks/jdbc.rake +24 -0
- data/public/404.html +26 -0
- data/public/422.html +26 -0
- data/public/500.html +26 -0
- data/public/favicon.ico +0 -0
- data/public/images/iqvoc/add.png +0 -0
- data/public/images/iqvoc/arrow_down.gif +0 -0
- data/public/images/iqvoc/arrow_up.gif +0 -0
- data/public/images/iqvoc/footer.png +0 -0
- data/public/images/iqvoc/go_there.png +0 -0
- data/public/images/iqvoc/header.png +0 -0
- data/public/images/iqvoc/header_long.png +0 -0
- data/public/images/iqvoc/iqvoc.png +0 -0
- data/public/images/iqvoc/note_add.png +0 -0
- data/public/images/iqvoc/note_delete.png +0 -0
- data/public/images/iqvoc/note_edit.png +0 -0
- data/public/images/iqvoc/ok.png +0 -0
- data/public/images/iqvoc/rails.png +0 -0
- data/public/images/iqvoc/rdf_flyer.gif +0 -0
- data/public/images/iqvoc/red_arrow.png +0 -0
- data/public/images/iqvoc/remove.png +0 -0
- data/public/images/iqvoc/shadow.png +0 -0
- data/public/images/iqvoc/spinner.gif +0 -0
- data/public/images/iqvoc/tokenizer_delete.png +0 -0
- data/public/images/iqvoc/tokenizer_pencile.png +0 -0
- data/public/images/iqvoc/tokenizer_show.png +0 -0
- data/public/images/iqvoc/unfinished.png +0 -0
- data/public/javascripts/iqvoc/application.js +123 -0
- data/public/javascripts/iqvoc/entityselect.js +121 -0
- data/public/javascripts/iqvoc/excanvas.js +35 -0
- data/public/javascripts/iqvoc/iqvoc.js +118 -0
- data/public/javascripts/iqvoc/jit_rgraph.js +153 -0
- data/public/javascripts/iqvoc/jquery-1.6.2.min.js +18 -0
- data/public/javascripts/iqvoc/jquery-treeview/changelog.txt +29 -0
- data/public/javascripts/iqvoc/jquery-treeview/demo/async.html +44 -0
- data/public/javascripts/iqvoc/jquery-treeview/demo/bg.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/demo/demo.js +43 -0
- data/public/javascripts/iqvoc/jquery-treeview/demo/images.html +56 -0
- data/public/javascripts/iqvoc/jquery-treeview/demo/index.html +340 -0
- data/public/javascripts/iqvoc/jquery-treeview/demo/large.html +559 -0
- data/public/javascripts/iqvoc/jquery-treeview/demo/prerendered.html +621 -0
- data/public/javascripts/iqvoc/jquery-treeview/demo/screen.css +24 -0
- data/public/javascripts/iqvoc/jquery-treeview/demo/simple.html +82 -0
- data/public/javascripts/iqvoc/jquery-treeview/demo/source.php +87 -0
- data/public/javascripts/iqvoc/jquery-treeview/demo/source.phps +87 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/ajax-loader.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/file.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/folder-closed.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/folder.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/minus.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/plus.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/treeview-black-line.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/treeview-black.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/treeview-default-line.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/treeview-default.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/treeview-famfamfam-line.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/treeview-famfamfam.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/treeview-gray-line.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/treeview-gray.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/treeview-red-line.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/images/treeview-red.gif +0 -0
- data/public/javascripts/iqvoc/jquery-treeview/jquery.treeview.async.js +82 -0
- data/public/javascripts/iqvoc/jquery-treeview/jquery.treeview.css +75 -0
- data/public/javascripts/iqvoc/jquery-treeview/jquery.treeview.js +251 -0
- data/public/javascripts/iqvoc/jquery-treeview/jquery.treeview.min.js +15 -0
- data/public/javascripts/iqvoc/jquery-treeview/jquery.treeview.pack.js +16 -0
- data/public/javascripts/iqvoc/jquery-treeview/lib/jquery.cookie.js +92 -0
- data/public/javascripts/iqvoc/jquery-treeview/lib/jquery.js +3363 -0
- data/public/javascripts/iqvoc/jquery-treeview/todo +8 -0
- data/public/javascripts/iqvoc/jquery-ui-1.8.13.custom.js +3229 -0
- data/public/javascripts/iqvoc/jquery-ui-1.8.13.custom.min.js +163 -0
- data/public/javascripts/iqvoc/jquery-ui.datepicker-de.js +22 -0
- data/public/javascripts/iqvoc/json2.js +480 -0
- data/public/javascripts/iqvoc/langselect.js +73 -0
- data/public/javascripts/iqvoc/rails.js +132 -0
- data/public/javascripts/iqvoc/storage.js +122 -0
- data/public/javascripts/iqvoc/visualization.js +321 -0
- data/public/robots.txt +5 -0
- data/public/stylesheets/iqvoc/blueprint/ie.css +35 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/buttons/icons/cross.png +0 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/buttons/icons/key.png +0 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/buttons/icons/tick.png +0 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/buttons/readme.txt +32 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/buttons/screen.css +97 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/fancy-type/readme.txt +14 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/fancy-type/screen.css +71 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/doc.png +0 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/email.png +0 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/external.png +0 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/feed.png +0 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/im.png +0 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/pdf.png +0 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/visited.png +0 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/xls.png +0 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/readme.txt +18 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/screen.css +40 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/rtl/readme.txt +10 -0
- data/public/stylesheets/iqvoc/blueprint/plugins/rtl/screen.css +110 -0
- data/public/stylesheets/iqvoc/blueprint/print.css +29 -0
- data/public/stylesheets/iqvoc/blueprint/screen.css +258 -0
- data/public/stylesheets/iqvoc/blueprint/src/forms.css +65 -0
- data/public/stylesheets/iqvoc/blueprint/src/grid.css +280 -0
- data/public/stylesheets/iqvoc/blueprint/src/grid.png +0 -0
- data/public/stylesheets/iqvoc/blueprint/src/ie.css +76 -0
- data/public/stylesheets/iqvoc/blueprint/src/print.css +85 -0
- data/public/stylesheets/iqvoc/blueprint/src/reset.css +45 -0
- data/public/stylesheets/iqvoc/blueprint/src/typography.css +106 -0
- data/public/stylesheets/iqvoc/forms.css +71 -0
- data/public/stylesheets/iqvoc/images/back.png +0 -0
- data/public/stylesheets/iqvoc/images/branch.png +0 -0
- data/public/stylesheets/iqvoc/images/categ.png +0 -0
- data/public/stylesheets/iqvoc/images/categ_open.png +0 -0
- data/public/stylesheets/iqvoc/images/go_there.png +0 -0
- data/public/stylesheets/iqvoc/images/iqvoc.png +0 -0
- data/public/stylesheets/iqvoc/images/leaf_end.png +0 -0
- data/public/stylesheets/iqvoc/images/leaf_end_filled.png +0 -0
- data/public/stylesheets/iqvoc/images/leaf_mid.png +0 -0
- data/public/stylesheets/iqvoc/images/leaf_mid_filled.png +0 -0
- data/public/stylesheets/iqvoc/images/leaf_nothing.png +0 -0
- data/public/stylesheets/iqvoc/images/leaf_only.png +0 -0
- data/public/stylesheets/iqvoc/images/leaf_only_filled.png +0 -0
- data/public/stylesheets/iqvoc/images/leaf_top.png +0 -0
- data/public/stylesheets/iqvoc/images/leaf_top_filled.png +0 -0
- data/public/stylesheets/iqvoc/images/nothing.png +0 -0
- data/public/stylesheets/iqvoc/images/top_01.png +0 -0
- data/public/stylesheets/iqvoc/images/trunk.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-icons_217bc0_256x240.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-icons_2e83ff_256x240.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-icons_469bdd_256x240.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-icons_6da8d5_256x240.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-icons_d8e7f3_256x240.png +0 -0
- data/public/stylesheets/iqvoc/images/ui-icons_f9bd01_256x240.png +0 -0
- data/public/stylesheets/iqvoc/iqvoc.css +477 -0
- data/public/stylesheets/iqvoc/jquery-ui-1.8.13.custom.css +415 -0
- data/public/stylesheets/iqvoc/widgets.css +81 -0
- data/test/factories.rb +74 -0
- data/test/integration/alphabetical_test.rb +53 -0
- data/test/integration/authentication_test.rb +41 -0
- data/test/integration/browse_concepts_and_labels_test.rb +61 -0
- data/test/integration/browse_static_pages_test.rb +29 -0
- data/test/integration/client_augmentation_test.rb +42 -0
- data/test/integration/client_edit_concept_test.rb +72 -0
- data/test/integration/collection_circularity_test.rb +110 -0
- data/test/integration/concept_test.rb +61 -0
- data/test/integration/edit_concepts_test.rb +40 -0
- data/test/integration/note_annotations_test.rb +86 -0
- data/test/integration/search_test.rb +205 -0
- data/test/integration/tree_test.rb +31 -0
- data/test/integration/untranslated_test.rb +60 -0
- data/test/integration_test_helper.rb +45 -0
- data/test/performance/browsing_test.rb +25 -0
- data/test/test_helper.rb +29 -0
- data/test/unit/concept_test.rb +93 -0
- data/test/unit/note_test.rb +32 -0
- data/test/unit/origin_mapping_test.rb +70 -0
- data/test/unit/skos_import_test.rb +100 -0
- metadata +522 -0
@@ -0,0 +1,10 @@
|
|
1
|
+
<%- has_children = collection.subcollections.any? -%>
|
2
|
+
<li class="<%= has_children ? "hasChildren" : "" %>" id="<%= collection.id %>">
|
3
|
+
<%= link_to collection.pref_label.to_s,
|
4
|
+
collection_path(:id => collection) %>
|
5
|
+
<%- if has_children -%>
|
6
|
+
<ul>
|
7
|
+
<li><span class="placeholder"> </span></li>
|
8
|
+
</ul>
|
9
|
+
<%- end -%>
|
10
|
+
</li>
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<%-
|
2
|
+
# TODO: Change Concept.labeling_classes to Collection.labeling_classes (in model
|
3
|
+
# too). If those two settings differ (e.g. in spez) don't forget to add
|
4
|
+
# migrations to update existing data.
|
5
|
+
-%>
|
6
|
+
<fieldset>
|
7
|
+
<legend>Labelings</legend>
|
8
|
+
<ol>
|
9
|
+
<%- Iqvoc::Concept.labeling_classes.each do |labeling_class, languages| -%>
|
10
|
+
<%- languages.each do |language| -%>
|
11
|
+
<%= render labeling_class.edit_partial_name(@collection), :f => f,
|
12
|
+
:concept => @collection, :klass => labeling_class, :language => language %>
|
13
|
+
<%- end -%>
|
14
|
+
<%- end -%>
|
15
|
+
</ol>
|
16
|
+
</fieldset>
|
17
|
+
|
18
|
+
<%- # TODO: Add a Collection config for Note classes. %>
|
19
|
+
<% [ Note::SKOS::Definition ].each do |klass| %>
|
20
|
+
<%= render :partial => klass.edit_partial_name(@collection),
|
21
|
+
:locals => { :owner_klass => @collection, :assoc_klass => klass, :f => f } %>
|
22
|
+
<% end %>
|
23
|
+
|
24
|
+
<fieldset>
|
25
|
+
<legend><%= Iqvoc::Concept.base_class.model_name.human(:count => 2) %></legend>
|
26
|
+
<%= text_field_tag "concept[inline_member_concept_origins]",
|
27
|
+
@collection.inline_member_concept_origins.join(Iqvoc::InlineDataHelper::Joiner),
|
28
|
+
:class => "entity_select",
|
29
|
+
:"data-query-url" => concepts_path(:format => :json),
|
30
|
+
:"data-entity-uri" => concept_path(:id => "{id}"),
|
31
|
+
:"data-entities" => @collection.inline_member_concepts.
|
32
|
+
map { |c| concept_widget_data(c) }.to_json %>
|
33
|
+
</fieldset>
|
34
|
+
|
35
|
+
<fieldset>
|
36
|
+
<legend><%= Iqvoc::Collection.base_class.model_name.human(:count => 2) %></legend>
|
37
|
+
<%= text_field_tag "concept[inline_member_collection_origins]",
|
38
|
+
@collection.inline_member_collection_origins.join(Iqvoc::InlineDataHelper::Joiner),
|
39
|
+
:class => "entity_select",
|
40
|
+
:"data-query-url" => collections_path(:format => :json),
|
41
|
+
:"data-entity-uri" => collection_path(:id => "{id}"),
|
42
|
+
:"data-exclude" => @collection.origin,
|
43
|
+
:"data-entities" => @collection.inline_member_collections.
|
44
|
+
map { |c| collection_widget_data(c) }.to_json %>
|
45
|
+
</fieldset>
|
46
|
+
|
47
|
+
<%= f.submit t("txt.common.save") %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%= error_messages_for @collection %>
|
2
|
+
|
3
|
+
<h3><%= Iqvoc::Collection.base_class.model_name.human %></h3>
|
4
|
+
|
5
|
+
<%= form_for @collection, :as => 'concept',
|
6
|
+
:url => collection_path(:id => @collection),
|
7
|
+
:html => { :class => 'form' } do |f| %>
|
8
|
+
|
9
|
+
<%= render :partial => 'form', :locals => { :f => f } %>
|
10
|
+
|
11
|
+
<% end %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<h2><%= Iqvoc::Collection.base_class.model_name.human(:count => 2) %></h2>
|
2
|
+
|
3
|
+
<% if can?(:create, Iqvoc::Collection.base_class) %>
|
4
|
+
<p>
|
5
|
+
<%= link_to t("txt.views.collections.new"), new_collection_path,
|
6
|
+
:class => "button" %>
|
7
|
+
</p>
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<ul class="hybrid-treeview" data-url="<%= hierarchical_collections_path(:format => :json) %>">
|
11
|
+
<%= render :partial => 'collection', :collection => @top_collections %>
|
12
|
+
</ul>
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<%= content_for :head do -%>
|
2
|
+
<link href="<%= collection_url(@collection.origin, :format => :ttl, :lang => nil) %>" type="text/turtle" rel="alternate" title=""/>
|
3
|
+
<link href="<%= collection_url(@collection.origin, :format => :rdf, :lang => nil) %>" type="application/rdf+xml" rel="alternate" title=""/>
|
4
|
+
<% end -%>
|
5
|
+
|
6
|
+
<h2><%= @collection.class.model_name.human %>: <%= @collection.pref_label.to_s %></h2>
|
7
|
+
<div id="abstract_uri">
|
8
|
+
<%= render :partial => "partials/rdf_logo" %>
|
9
|
+
<%= collection_url(@collection.origin, :format => nil, :lang => nil) %>
|
10
|
+
(<%= link_to "Turtle", collection_url(@collection.origin, :format => :ttl, :lang => nil) %>, <%= link_to "RDF/XML", collection_url(@collection.origin, :format => :rdf, :lang => nil) %>)
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<% if can?(:manage, @collection) %>
|
14
|
+
<div class="editing_versioning_toolbar ui-corner-all ui-widget ui-widget-content">
|
15
|
+
<%= link_to t('txt.common.edit'), edit_collection_path(:id => @collection), :class => "button" %>
|
16
|
+
<%= button_to I18n.t('txt.common.delete'), collection_path(:id => @collection), :method => :delete, :confirm => t('txt.views.users.sure', :default => 'Sure?') %>
|
17
|
+
</div>
|
18
|
+
<% end %>
|
19
|
+
|
20
|
+
<%-
|
21
|
+
# TODO: We'll need a 'collection_view_data' helper (containing the following
|
22
|
+
# "Note" stuff too).
|
23
|
+
-%>
|
24
|
+
<%= render 'layouts/sections', :sections => ["labels"], :data => concept_view_data(@collection) %>
|
25
|
+
|
26
|
+
<div class="relation">
|
27
|
+
<h3><%= Note::SKOS::Definition.model_name.human(:count => 2) %></h3>
|
28
|
+
<ul>
|
29
|
+
<% @collection.note_skos_definitions.each do |definition| %>
|
30
|
+
<li><%= definition.value %> (<%= definition.language %>)</li>
|
31
|
+
<% end %>
|
32
|
+
</ul>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="relation">
|
36
|
+
<h3><%= Iqvoc::Concept.base_class.model_name.human(:count => 2) %></h3>
|
37
|
+
<div class="relation-body">
|
38
|
+
<ul>
|
39
|
+
<%- @collection.concepts.sort {|a, b| a.pref_label <=> b.pref_label }.each do |concept| -%>
|
40
|
+
<%- if concept.published? || (!concept.published_version_id && can?(:update, concept)) -%>
|
41
|
+
<li><%= render concept.class.inline_partial_name, :concept => concept %></li>
|
42
|
+
<%- end -%>
|
43
|
+
<%- end -%>
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<div class="relation">
|
49
|
+
<h3><%= Iqvoc::Collection.base_class.model_name.human(:count => 2) %></h3>
|
50
|
+
<ul class="hybrid-treeview" data-url="<%= hierarchical_collections_path(:format => :json) %>">
|
51
|
+
<%= render :partial => 'collection', :collection => @collection.subcollections.sort {|a, b| a.pref_label <=> b.pref_label } %>
|
52
|
+
</ul>
|
53
|
+
</div>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
Iqvoc.default_rdf_namespace_helper_methods.each do |meth|
|
2
|
+
document.namespaces(self.send(meth))
|
3
|
+
end
|
4
|
+
|
5
|
+
document << @collection.build_rdf_subject(document, controller) do |collection|
|
6
|
+
@collection.labelings.each do |labeling|
|
7
|
+
labeling.build_rdf(document, collection)
|
8
|
+
end
|
9
|
+
|
10
|
+
@collection.note_skos_definitions.each do |n|
|
11
|
+
n.build_rdf(document, collection)
|
12
|
+
end
|
13
|
+
|
14
|
+
@collection.concepts.each do |concept|
|
15
|
+
collection.Skos::member(IqRdf.build_uri(concept.origin))
|
16
|
+
end
|
17
|
+
|
18
|
+
@collection.subcollections.each do |subcollection|
|
19
|
+
collection.Skos::member(IqRdf::Coll.build_uri(subcollection.origin))
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<h3><%= Iqvoc::Concept.base_class.model_name.human %></h3>
|
2
|
+
<%= form_for @concept, :as => 'concept',
|
3
|
+
:url => @concept.new_record? ? concepts_path : concept_path(:published => 0, :id => @concept),
|
4
|
+
:html => {:class => "form"} do |f| %>
|
5
|
+
<fieldset id="label_base_data">
|
6
|
+
<legend><%= t("txt.common.attributes") %></legend>
|
7
|
+
<ol>
|
8
|
+
<li>
|
9
|
+
<%= f.label :follow_up %>
|
10
|
+
<%= f.text_field :follow_up, :class => "datepicker" %>
|
11
|
+
</li>
|
12
|
+
<li>
|
13
|
+
<%= f.label :expired_at %>
|
14
|
+
<%= f.text_field :expired_at, :class => "datepicker" %>
|
15
|
+
</li>
|
16
|
+
<%- Iqvoc::Concept.additional_association_classes.keys.each do |assoc_class| -%>
|
17
|
+
<%= render assoc_class.edit_partial_name(@concept),
|
18
|
+
:concept => @concept, :klass => assoc_class, :f => f %>
|
19
|
+
<%- end -%>
|
20
|
+
</ol>
|
21
|
+
</fieldset>
|
22
|
+
|
23
|
+
<fieldset>
|
24
|
+
<legend>Labelings</legend>
|
25
|
+
<ol>
|
26
|
+
<%- Iqvoc::Concept.labeling_classes.each do |labeling_class, languages| -%>
|
27
|
+
<%- languages.each do |language| -%>
|
28
|
+
<%= render labeling_class.edit_partial_name(@concept), :f => f,
|
29
|
+
:concept => @concept, :klass => labeling_class, :language => language %>
|
30
|
+
<%- end -%>
|
31
|
+
<%- end -%>
|
32
|
+
</ol>
|
33
|
+
</fieldset>
|
34
|
+
|
35
|
+
<% Iqvoc::Concept.note_classes.each do |note_class| %>
|
36
|
+
<%= render :partial => note_class.edit_partial_name(@concept),
|
37
|
+
:locals => { :owner_klass => @concept, :assoc_klass => note_class, :f => f } %>
|
38
|
+
<% end %>
|
39
|
+
|
40
|
+
<fieldset>
|
41
|
+
<legend>Relations</legend>
|
42
|
+
<ol>
|
43
|
+
<%- if Iqvoc::Concept.broader_relation_class.narrower_editable -%>
|
44
|
+
<%= render Iqvoc::Concept.broader_relation_class.narrower_class.edit_partial_name(@concept),
|
45
|
+
:concept => @concept, :klass => Iqvoc::Concept.broader_relation_class.narrower_class %>
|
46
|
+
<%- end -%>
|
47
|
+
|
48
|
+
<%= render Iqvoc::Concept.broader_relation_class.edit_partial_name(@concept),
|
49
|
+
:concept => @concept, :klass => Iqvoc::Concept.broader_relation_class %>
|
50
|
+
|
51
|
+
<%- Iqvoc::Concept.further_relation_classes.each do |relation_class| -%>
|
52
|
+
<%= render relation_class.edit_partial_name(@concept), :concept => @concept, :klass => relation_class %>
|
53
|
+
<%- end -%>
|
54
|
+
</ol>
|
55
|
+
</fieldset>
|
56
|
+
|
57
|
+
<fieldset>
|
58
|
+
<legend>Matches</legend>
|
59
|
+
<ol>
|
60
|
+
<% Iqvoc::Concept.match_classes.each do |match_class| %>
|
61
|
+
<%= render :partial => match_class.edit_partial_name(@concept),
|
62
|
+
:locals => { :owner_klass => @concept, :assoc_klass => match_class, :f => f } %>
|
63
|
+
<% end %>
|
64
|
+
</ol>
|
65
|
+
</fieldset>
|
66
|
+
|
67
|
+
<%= f.submit t("txt.common.save") %>
|
68
|
+
|
69
|
+
<% unless controller.action_name == "new" || controller.action_name == "create" %>
|
70
|
+
<%= link_to t("txt.common.reset"), nil, :class => "button" %>
|
71
|
+
<% end %>
|
72
|
+
<% end %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<%= f.fields_for :close_matches do |close_match| %>
|
2
|
+
<fieldset class="matches">
|
3
|
+
<legend><%= t("txt.views.concepts.close_match") %></legend>
|
4
|
+
<ol>
|
5
|
+
<li class="matches <%= "new" if close_match.object.new_record? %>" >
|
6
|
+
<%= close_match.label :value, t("txt.common.value") %>
|
7
|
+
<%= close_match.text_field :value %>
|
8
|
+
|
9
|
+
<% unless close_match.object.new_record? %>
|
10
|
+
<%= close_match.check_box :"_destroy" %>
|
11
|
+
<%= close_match.label :"_destroy", t("txt.common.delete") %>
|
12
|
+
<% end %>
|
13
|
+
</li>
|
14
|
+
</ol>
|
15
|
+
</fieldset>
|
16
|
+
<% end %>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<%- published_param = @concept.published? ? nil : 0 %>
|
2
|
+
<%= content_for :head do -%>
|
3
|
+
<link href="<%= rdf_url(@concept.origin, :format => :ttl, :published => published_param, :lang => nil) %>" type="text/turtle" rel="alternate" title=""/>
|
4
|
+
<link href="<%= rdf_url(@concept.origin, :format => :rdf, :published => published_param, :lang => nil) %>" type="application/rdf+xml" rel="alternate" title=""/>
|
5
|
+
<link href="<%= concept_path(@concept, :format => :json, :published => published_param, :lang => @active_language) %>" type="application/json" rel="alternate"/>
|
6
|
+
<% end -%>
|
7
|
+
|
8
|
+
<h2>
|
9
|
+
<%= Iqvoc::Concept.base_class.model_name.human %>:
|
10
|
+
<%= @concept.pref_label.to_s %>
|
11
|
+
<%- unless @concept.published? %>
|
12
|
+
(<%= t('txt.common.unpublished_version') %>)
|
13
|
+
<%- end -%>
|
14
|
+
</h2>
|
15
|
+
<div id="abstract_uri">
|
16
|
+
<%= render :partial => "partials/rdf_logo" %>
|
17
|
+
<%= rdf_url(@concept.origin, :format => nil, :published => published_param, :lang => nil) %>
|
18
|
+
(<%= link_to "Turtle", rdf_url(@concept.origin, :format => :ttl, :published => published_param, :lang => nil) %>,
|
19
|
+
<%= link_to "RDF/XML", rdf_url(@concept.origin, :format => :rdf, :published => published_param, :lang => nil) %>)
|
20
|
+
</div>
|
21
|
+
<%- if @concept.expired_at -%>
|
22
|
+
<h4><%= t('txt.views.concepts.expired_at', :date => l(@concept.expired_at, :format => :long)) %></h4>
|
23
|
+
<%- end -%>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<div id="infovis"></div>
|
2
|
+
|
3
|
+
<%= content_for :scripts do %>
|
4
|
+
<!--[if IE]>
|
5
|
+
<%= javascript_include_tag "iqvoc/excanvas.js" %>
|
6
|
+
<![endif]-->
|
7
|
+
<%= javascript_include_tag "iqvoc/jit_rgraph.js" %>
|
8
|
+
<%= javascript_include_tag "iqvoc/visualization.js" %>
|
9
|
+
<% end %>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<h2><%= Iqvoc::Concept.base_class.model_name.human(:count => 2) %></h2>
|
2
|
+
|
3
|
+
<% if I18n.locale != Iqvoc::Concept.pref_labeling_languages.first %>
|
4
|
+
<%= link_to t("txt.views.untranslated_concepts.caption"),
|
5
|
+
untranslated_concepts_path(:letter => params[:letter]),
|
6
|
+
:id => "untranslated" %>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<p><%= t("txt.views.concepts.select", :concept_class_name => Iqvoc::Concept.base_class.model_name.human(:count => 1)) %></p>
|
10
|
+
|
11
|
+
<%= letter_selector { |letter| alphabetical_concepts_path(:letter => letter.to_s.downcase) } %>
|
12
|
+
|
13
|
+
<ul>
|
14
|
+
<%= render :partial => "pref_labeling", :collection => @pref_labelings %>
|
15
|
+
</ul>
|
16
|
+
|
17
|
+
<%= paginate @pref_labelings %>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<%= error_messages_for @concept %>
|
2
|
+
|
3
|
+
<h2>
|
4
|
+
<%= Iqvoc::Concept.base_class.model_name.human %>:
|
5
|
+
<%= link_to(@concept.origin, concept_path(:id => @concept.origin)) %>
|
6
|
+
</h2>
|
7
|
+
|
8
|
+
<% if @association_objects_in_editing_mode.present? %>
|
9
|
+
<% if @association_objects_in_editing_mode[:concept_relations].present? %>
|
10
|
+
<h4><%= t("txt.common.referenced_concepts") %></h4>
|
11
|
+
<ul>
|
12
|
+
<% @association_objects_in_editing_mode[:concept_relations].each do |concept_relation| %>
|
13
|
+
<li>
|
14
|
+
<%= concept_relation.class.model_name.human %>:
|
15
|
+
<%= link_to(concept_relation.target.pref_label.to_s,
|
16
|
+
concept_path(:published => 0, :id => concept_relation.target)) %>
|
17
|
+
[<%= t("txt.common.editor") %>: <%= user_details(concept_relation.target.locking_user) %>]
|
18
|
+
</li>
|
19
|
+
<% end %>
|
20
|
+
</ul>
|
21
|
+
<% end %>
|
22
|
+
<% end %>
|
23
|
+
|
24
|
+
<%= render :partial => "concepts/base_data" %>
|
25
|
+
|
26
|
+
<%= content_for :sub_navigation do %>
|
27
|
+
<ul>
|
28
|
+
<li>
|
29
|
+
<%= link_to t('txt.views.navigation.back_to_preview'), concept_path(:published => 0, :id => @concept), :class => 'back' %>
|
30
|
+
</li>
|
31
|
+
</ul>
|
32
|
+
<% end %>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<%- hcpath = hierarchical_concepts_path(:format => :json,
|
2
|
+
:published => params[:published], :broader => broader || nil) -%>
|
3
|
+
<ul class="hybrid-treeview" data-url="<%= hcpath %>">
|
4
|
+
|
5
|
+
<%- concepts.each do |concept| -%>
|
6
|
+
<%- has_children = broader ? concept.broader_relations.any? : concept.narrower_relations.any? -%>
|
7
|
+
|
8
|
+
<li class="<%= has_children ? "hasChildren" : "" %>" id="<%= concept.id %>">
|
9
|
+
<%= link_to(concept.pref_label.to_s, concept_url(:id => concept)) %>
|
10
|
+
<%- if concept.additional_info.present? -%>
|
11
|
+
(<%= concept.additional_info %>)
|
12
|
+
<%- end -%>
|
13
|
+
<%- if has_children -%>
|
14
|
+
<ul>
|
15
|
+
<li><span class="placeholder"> </span></li>
|
16
|
+
</ul>
|
17
|
+
<%- end -%>
|
18
|
+
</li>
|
19
|
+
<%- end -%>
|
20
|
+
</ul>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
Iqvoc.default_rdf_namespace_helper_methods.each do |meth|
|
2
|
+
document.namespaces(self.send(meth))
|
3
|
+
end
|
4
|
+
|
5
|
+
offset = 0
|
6
|
+
while true
|
7
|
+
# The following code doesn't have much to do with MVC programming. Due to the
|
8
|
+
# fact you can't render a view from a controller multiple times we had to
|
9
|
+
# move the logic to the view.
|
10
|
+
|
11
|
+
concepts = Iqvoc::Concept.base_class.published.order("id").limit(100).offset(offset).all
|
12
|
+
break if concepts.size == 0
|
13
|
+
|
14
|
+
# When in single query mode, AR handles ALL includes to be loaded by that
|
15
|
+
# one query. We don't want that! So let's do it manually :-)
|
16
|
+
Concept::Base.send(:preload_associations, concepts, Iqvoc::Concept.base_class.default_includes + [:matches, :collection_members, {:relations => :target, :labelings => :target, :notes => :annotations}])
|
17
|
+
|
18
|
+
concepts.each do |concept|
|
19
|
+
render_concept(document, concept)
|
20
|
+
end
|
21
|
+
|
22
|
+
offset+= concepts.size # Size is important!
|
23
|
+
|
24
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<%= render 'show_head' %>
|
2
|
+
|
3
|
+
<% if @new_concept_version.blank? && can?(:branch, @concept) %>
|
4
|
+
<div class="editing_versioning_toolbar ui-corner-all ui-widget ui-widget-content">
|
5
|
+
<%= button_to t("txt.views.versioning.versioning_mode"),
|
6
|
+
concept_versions_branch_path(:origin => @concept.origin) %>
|
7
|
+
</div>
|
8
|
+
<% elsif can?(:read, @new_concept_version) %>
|
9
|
+
<div class="editing_versioning_toolbar ui-corner-all ui-widget ui-widget-content">
|
10
|
+
<%= link_to t("txt.views.versioning.preview_new_version"),
|
11
|
+
concept_path(:published => 0, :id => @new_concept_version), :class => 'button' %>
|
12
|
+
</div>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<%= render 'visualization' %>
|
16
|
+
<%= render 'layouts/sections', :sections => Iqvoc::Concept.view_sections, :data => concept_view_data(@concept) %>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<%= render 'show_head' %>
|
2
|
+
|
3
|
+
<p class="flash_notice">
|
4
|
+
<%= t("txt.views.versioning.current_revision") %> <%= @concept.rev %>
|
5
|
+
<% if @concept.locked? %>
|
6
|
+
<%= t("txt.views.versioning.in_ongoing_editing_by") %>
|
7
|
+
<%= @concept.locking_user.name %>
|
8
|
+
<% end %>
|
9
|
+
</p>
|
10
|
+
|
11
|
+
<div class="editing_versioning_toolbar ui-corner-all ui-widget ui-widget-content">
|
12
|
+
|
13
|
+
<% if (not @concept.locked?) || @concept.locked_by == @current_user.id %>
|
14
|
+
<%= button_to t("txt.views.versioning.publishing"),
|
15
|
+
concept_versions_merge_path(:origin => @concept.origin) %>
|
16
|
+
<% end %>
|
17
|
+
<%= button_to t("txt.views.versioning.consistency_check"),
|
18
|
+
concept_versions_consistency_check_path(:origin => @concept.origin),
|
19
|
+
:method => :get %>
|
20
|
+
|
21
|
+
<% if (not @concept.in_review?) && @concept.locked_by == @current_user.id %>
|
22
|
+
<%= button_to t("txt.common.to_review"),
|
23
|
+
concept_versions_to_review_path(:origin => @concept.origin) %>
|
24
|
+
<% end %>
|
25
|
+
|
26
|
+
<% unless @concept.locked? %>
|
27
|
+
<%= button_to t("txt.views.versioning.to_edit_mode"),
|
28
|
+
concept_versions_lock_path(:origin => @concept.origin) %>
|
29
|
+
<%= button_to t("txt.views.versioning.delete"),
|
30
|
+
concept_path(:published => 0, :id => @concept.origin),
|
31
|
+
:method => :delete,
|
32
|
+
:confirm => I18n.t("txt.views.versioning.delete_confirm") if can?(:destroy, @concept) %>
|
33
|
+
<% else %>
|
34
|
+
<%= button_to t("txt.views.versioning.unlock"),
|
35
|
+
concept_versions_unlock_path(:origin => @concept.origin) if can?(:unlock, @concept) %>
|
36
|
+
<%= link_to t("txt.views.versioning.edit_mode"),
|
37
|
+
edit_concept_path(:published => 0, :id => @concept.origin),
|
38
|
+
:class => 'button' if can?(:update, @concept) %>
|
39
|
+
<% end %>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<%= render 'visualization' %>
|
43
|
+
<%= render 'layouts/sections', :sections => Iqvoc::Concept.view_sections, :data => concept_view_data(@concept) %>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<h2><%= t("txt.views.untranslated_concepts.caption") %></h2>
|
2
|
+
|
3
|
+
<% if I18n.locale != Iqvoc::Concept.pref_labeling_languages.first %>
|
4
|
+
|
5
|
+
<%= letter_selector { |letter| untranslated_concepts_path(:letter => letter.to_s.downcase) } %>
|
6
|
+
|
7
|
+
<ul>
|
8
|
+
<% for label in @labels %>
|
9
|
+
<li>
|
10
|
+
<% if label.pref_labeled_concepts.length > 1 %>
|
11
|
+
<%= label.value %>:
|
12
|
+
<% for concept in label.pref_labeled_concepts %>
|
13
|
+
<%= link_to concept.origin, concept_path(concept) %>
|
14
|
+
<% end %>
|
15
|
+
<% else %>
|
16
|
+
<%= link_to label.value, concept_path(label.pref_labeled_concepts[0]) %>
|
17
|
+
<% end %>
|
18
|
+
</li>
|
19
|
+
<% end %>
|
20
|
+
</ul>
|
21
|
+
|
22
|
+
<%= paginate @labels %>
|
23
|
+
<% end %>
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<h2>Dashboard</h2>
|
2
|
+
<ul id="dashboard_controls">
|
3
|
+
<%- Iqvoc.first_level_classes.each { |klass| %>
|
4
|
+
<%= content_tag :li, render(klass.new_link_partial_name) %>
|
5
|
+
<%- } -%>
|
6
|
+
|
7
|
+
<%- if can?(:full_export, Concept::Base) -%>
|
8
|
+
<li>
|
9
|
+
<%= t('txt.views.dashboard.full_rdf_export') %>:
|
10
|
+
<%= link_to("Turtle", concepts_url(:format => :ttl)) %>,
|
11
|
+
<%= link_to("RDF/XML", concepts_url(:format => :rdf)) %>
|
12
|
+
</li>
|
13
|
+
<%- end -%>
|
14
|
+
<%#= link_to "Triple Store Sync", new_triple_store_sync_path %>
|
15
|
+
</ul>
|
16
|
+
<table>
|
17
|
+
<tr>
|
18
|
+
<th><%= t("txt.views.dashboard.type") %><%= sorting_arrows_for(:class) %></th>
|
19
|
+
<th><%= t("txt.views.dashboard.value") %><%= sorting_arrows_for(:value) %></th>
|
20
|
+
<th><%= t("txt.views.dashboard.locking_user") %><%= sorting_arrows_for(:locking_user) %></th>
|
21
|
+
<th><%= t("txt.views.dashboard.follow_up") %><%= sorting_arrows_for(:follow_up) %></th>
|
22
|
+
<th><%= t("txt.views.dashboard.updated_at") %><%= sorting_arrows_for(:updated_at) %></th>
|
23
|
+
<th><%= t("txt.views.dashboard.state") %><%= sorting_arrows_for(:state) %></th>
|
24
|
+
<%- if params[:check_consistency] == "1" -%>
|
25
|
+
<th><%= t("txt.views.dashboard.consistent") %>?</th>
|
26
|
+
<%- else -%>
|
27
|
+
<th><%= link_to t("txt.views.dashboard.check_consistency"), dashboard_url(request.query_parameters.merge(:check_consistency => 1)) %></th>
|
28
|
+
<%- end -%>
|
29
|
+
</tr>
|
30
|
+
<% @items.each do |item| -%>
|
31
|
+
<tr class="highlightable" data-url="<%= link_to_dashboard_item(item) %>">
|
32
|
+
<td><%= item.class.model_name.human %></td>
|
33
|
+
<td>
|
34
|
+
<%= render item.class.edit_link_partial_name, :item => item %>
|
35
|
+
</td>
|
36
|
+
<td><%= item.locking_user.blank? ? "" : item.locking_user.name %></td>
|
37
|
+
<td><%= l(item.follow_up) if item.follow_up.present? %></td>
|
38
|
+
<td><%= l(item.updated_at, :format => :short) %></td>
|
39
|
+
<td><%= item.state %></td>
|
40
|
+
<%- if params[:check_consistency] == "1" -%>
|
41
|
+
<td><%= consistency_status(item) %></td>
|
42
|
+
<%- end -%>
|
43
|
+
</tr>
|
44
|
+
<% end -%>
|
45
|
+
</table>
|
46
|
+
|
47
|
+
<%= paginate @items %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<h2>Multiple Choices</h2>
|
2
|
+
|
3
|
+
<p><em><%= @exception.message %></em></p>
|
4
|
+
|
5
|
+
<p>You may find what you seek by trying one of the following links:</p>
|
6
|
+
|
7
|
+
<ul>
|
8
|
+
<% for choice, url in @exception.choices %>
|
9
|
+
<li><%= link_to choice, url %></li>
|
10
|
+
<% end %>
|
11
|
+
</ul>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%= paginator.render do -%>
|
2
|
+
<div class="nav pagination">
|
3
|
+
<%= first_page_tag unless current_page.first? %>
|
4
|
+
<%= prev_page_tag unless current_page.first? %>
|
5
|
+
<% each_page do |page| -%>
|
6
|
+
<% if page.left_outer? || page.right_outer? || page.inside_window? -%>
|
7
|
+
<%= page_tag page %>
|
8
|
+
<% elsif !page.was_truncated? -%>
|
9
|
+
<%= gap_tag %>
|
10
|
+
<% end -%>
|
11
|
+
<% end -%>
|
12
|
+
<%= next_page_tag unless current_page.last? %>
|
13
|
+
<%= last_page_tag unless current_page.last? %>
|
14
|
+
</div>
|
15
|
+
<% end -%>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<ul id="controls" class="menu">
|
2
|
+
<li id="auth_controls">
|
3
|
+
<% if current_user %>
|
4
|
+
<%= link_to t("txt.views.layouts.application.logout"), user_session_path, :method => :delete %>
|
5
|
+
<% else %>
|
6
|
+
<%= link_to t("txt.views.layouts.application.login"), new_user_session_path() %>
|
7
|
+
<ul class="hidden"><li><%= t("txt.common.pending") %></li></ul>
|
8
|
+
<% end %>
|
9
|
+
</li>
|
10
|
+
|
11
|
+
<li>
|
12
|
+
<a href="javascript:;" class="lang-widget"><%= t("txt.views.lang_widget.caption") %> ▼</a>
|
13
|
+
<ul class="lang-widget">
|
14
|
+
<%- unless Iqvoc::Concept.pref_labeling_languages.reject(&:nil?).length == 0 -%>
|
15
|
+
<li><h3><%= t("txt.views.lang_widget.primary") %></h3></li>
|
16
|
+
|
17
|
+
<% Iqvoc::Concept.pref_labeling_languages.each do |lang| %>
|
18
|
+
<li>
|
19
|
+
<%= link_to t("languages.#{lang}"), params.merge(:lang => lang),
|
20
|
+
:class => lang == I18n.locale ? "current" : nil %>
|
21
|
+
</li>
|
22
|
+
<% end %>
|
23
|
+
<% end %>
|
24
|
+
|
25
|
+
<% if Iqvoc::available_languages.length > 1 %>
|
26
|
+
<li><h3><%= t("txt.views.lang_widget.secondary") %></h3></li>
|
27
|
+
<% Iqvoc::available_languages.reject { |lang| lang == I18n.locale }.each do |lang| %>
|
28
|
+
<li>
|
29
|
+
<label>
|
30
|
+
<input type="checkbox" value="<%= lang %>"> <%= t("languages.#{lang}") %>
|
31
|
+
</label>
|
32
|
+
</li>
|
33
|
+
<% end %>
|
34
|
+
<% end %>
|
35
|
+
</ul>
|
36
|
+
</li>
|
37
|
+
</ul>
|
@@ -0,0 +1 @@
|
|
1
|
+
<h1 class="header"><%= Iqvoc.title || t("txt.common.iqvoc_title") %></h1>
|