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,24 @@
|
|
1
|
+
html, body {height:100%; margin: 0; padding: 0; }
|
2
|
+
|
3
|
+
html>body {
|
4
|
+
font-size: 16px;
|
5
|
+
font-size: 68.75%;
|
6
|
+
} /* Reset Base Font Size */
|
7
|
+
|
8
|
+
body {
|
9
|
+
font-family: Verdana, helvetica, arial, sans-serif;
|
10
|
+
font-size: 68.75%;
|
11
|
+
background: #fff;
|
12
|
+
color: #333;
|
13
|
+
}
|
14
|
+
|
15
|
+
h1, h2 { font-family: 'trebuchet ms', verdana, arial; padding: 10px; margin: 0 }
|
16
|
+
h1 { font-size: large }
|
17
|
+
|
18
|
+
#banner { padding: 15px; background-color: #06b; color: white; font-size: large; border-bottom: 1px solid #ccc;
|
19
|
+
background: url(bg.gif) repeat-x; text-align: center }
|
20
|
+
#banner a { color: white; }
|
21
|
+
|
22
|
+
#main { padding: 1em; }
|
23
|
+
|
24
|
+
a img { border: none; }
|
@@ -0,0 +1,82 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
|
5
|
+
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
|
6
|
+
<title>jQuery treeView</title>
|
7
|
+
|
8
|
+
<link rel="stylesheet" href="../jquery.treeview.css" />
|
9
|
+
<link rel="stylesheet" href="../red-treeview.css" />
|
10
|
+
<link rel="stylesheet" href="screen.css" />
|
11
|
+
|
12
|
+
<script src="../lib/jquery.js" type="text/javascript"></script>
|
13
|
+
<script src="../lib/jquery.cookie.js" type="text/javascript"></script>
|
14
|
+
<script src="../jquery.treeview.js" type="text/javascript"></script>
|
15
|
+
|
16
|
+
<script type="text/javascript">
|
17
|
+
$(document).ready(function(){
|
18
|
+
$("#browser").treeview({
|
19
|
+
toggle: function() {
|
20
|
+
console.log("%s was toggled.", $(this).find(">span").text());
|
21
|
+
}
|
22
|
+
});
|
23
|
+
|
24
|
+
$("#add").click(function() {
|
25
|
+
var branches = $("<li><span class='folder'>New Sublist</span><ul>" +
|
26
|
+
"<li><span class='file'>Item1</span></li>" +
|
27
|
+
"<li><span class='file'>Item2</span></li></ul></li>").appendTo("#browser");
|
28
|
+
$("#browser").treeview({
|
29
|
+
add: branches
|
30
|
+
});
|
31
|
+
});
|
32
|
+
});
|
33
|
+
</script>
|
34
|
+
</head>
|
35
|
+
<body>
|
36
|
+
|
37
|
+
<h1 id="banner"><a href="http://bassistance.de/jquery-plugins/jquery-plugin-treeview/">jQuery Treeview Plugin</a> Demo</h1>
|
38
|
+
<div id="main">
|
39
|
+
|
40
|
+
<a href=".">Main Demo</a>
|
41
|
+
|
42
|
+
<ul id="browser" class="filetree treeview-famfamfam">
|
43
|
+
<li><span class="folder">Folder 1</span>
|
44
|
+
<ul>
|
45
|
+
<li><span class="folder">Item 1.1</span>
|
46
|
+
<ul>
|
47
|
+
<li><span class="file">Item 1.1.1</span></li>
|
48
|
+
</ul>
|
49
|
+
</li>
|
50
|
+
<li><span class="folder">Folder 2</span>
|
51
|
+
<ul>
|
52
|
+
<li><span class="folder">Subfolder 2.1</span>
|
53
|
+
<ul id="folder21">
|
54
|
+
<li><span class="file">File 2.1.1</span></li>
|
55
|
+
<li><span class="file">File 2.1.2</span></li>
|
56
|
+
</ul>
|
57
|
+
</li>
|
58
|
+
<li><span class="folder">Subfolder 2.2</span>
|
59
|
+
<ul>
|
60
|
+
<li><span class="file">File 2.2.1</span></li>
|
61
|
+
<li><span class="file">File 2.2.2</span></li>
|
62
|
+
</ul>
|
63
|
+
</li>
|
64
|
+
</ul>
|
65
|
+
</li>
|
66
|
+
<li class="closed"><span class="folder">Folder 3 (closed at start)</span>
|
67
|
+
<ul>
|
68
|
+
<li><span class="file">File 3.1</span></li>
|
69
|
+
</ul>
|
70
|
+
</li>
|
71
|
+
<li><span class="file">File 4</span></li>
|
72
|
+
</ul>
|
73
|
+
</li>
|
74
|
+
</ul>
|
75
|
+
|
76
|
+
<button id="add">Add!</button>
|
77
|
+
|
78
|
+
<p>+/- Icons from <a href="http://www.famfamfam.com/lab/icons/">famfamfam</a></p>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
</body></html>
|
@@ -0,0 +1,87 @@
|
|
1
|
+
<?php
|
2
|
+
if ($_REQUEST['root'] == "source"):
|
3
|
+
?>
|
4
|
+
[
|
5
|
+
{
|
6
|
+
"text": "1. Pre Lunch (120 min)",
|
7
|
+
"expanded": true,
|
8
|
+
"classes": "important",
|
9
|
+
"children":
|
10
|
+
[
|
11
|
+
{
|
12
|
+
"text": "1.1 The State of the Powerdome (30 min)"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"text": "1.2 The Future of jQuery (30 min)"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"text": "1.2 jQuery UI - A step to richnessy (60 min)"
|
19
|
+
}
|
20
|
+
]
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"text": "2. Lunch (60 min)"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"text": "3. After Lunch (120+ min)",
|
27
|
+
"children":
|
28
|
+
[
|
29
|
+
{
|
30
|
+
"text": "3.1 jQuery Calendar Success Story (20 min)"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"text": "3.2 jQuery and Ruby Web Frameworks (20 min)"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"text": "3.3 Hey, I Can Do That! (20 min)"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"text": "3.4 Taconite and Form (20 min)"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"text": "3.5 Server-side JavaScript with jQuery and AOLserver (20 min)"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"text": "3.6 The Onion: How to add features without adding features (20 min)",
|
46
|
+
"id": "36",
|
47
|
+
"hasChildren": true
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"text": "3.7 Visualizations with JavaScript and Canvas (20 min)"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"text": "3.8 ActiveDOM (20 min)"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"text": "3.8 Growing jQuery (20 min)"
|
57
|
+
}
|
58
|
+
]
|
59
|
+
}
|
60
|
+
]
|
61
|
+
<?php else: ?>
|
62
|
+
[
|
63
|
+
{
|
64
|
+
"text": "1. Review of existing structures",
|
65
|
+
"expanded": true,
|
66
|
+
"children":
|
67
|
+
[
|
68
|
+
{
|
69
|
+
"text": "1.1 jQuery core"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"text": "1.2 metaplugins"
|
73
|
+
}
|
74
|
+
]
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"text": "2. Wrapper plugins"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"text": "3. Summary"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"text": "4. Questions and answers"
|
84
|
+
}
|
85
|
+
|
86
|
+
]
|
87
|
+
<?php endif; ?>
|
@@ -0,0 +1,87 @@
|
|
1
|
+
<?php
|
2
|
+
if ($_REQUEST['root'] == "source"):
|
3
|
+
?>
|
4
|
+
[
|
5
|
+
{
|
6
|
+
"text": "1. Pre Lunch (120 min)",
|
7
|
+
"expanded": true,
|
8
|
+
"classes": "important",
|
9
|
+
"children":
|
10
|
+
[
|
11
|
+
{
|
12
|
+
"text": "1.1 The State of the Powerdome (30 min)"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"text": "1.2 The Future of jQuery (30 min)"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"text": "1.2 jQuery UI - A step to richnessy (60 min)"
|
19
|
+
}
|
20
|
+
]
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"text": "2. Lunch (60 min)"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"text": "3. After Lunch (120+ min)",
|
27
|
+
"children":
|
28
|
+
[
|
29
|
+
{
|
30
|
+
"text": "3.1 jQuery Calendar Success Story (20 min)"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"text": "3.2 jQuery and Ruby Web Frameworks (20 min)"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"text": "3.3 Hey, I Can Do That! (20 min)"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"text": "3.4 Taconite and Form (20 min)"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"text": "3.5 Server-side JavaScript with jQuery and AOLserver (20 min)"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"text": "3.6 The Onion: How to add features without adding features (20 min)",
|
46
|
+
"id": "36",
|
47
|
+
"hasChildren": true
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"text": "3.7 Visualizations with JavaScript and Canvas (20 min)"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"text": "3.8 ActiveDOM (20 min)"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"text": "3.8 Growing jQuery (20 min)"
|
57
|
+
}
|
58
|
+
]
|
59
|
+
}
|
60
|
+
]
|
61
|
+
<?php else: ?>
|
62
|
+
[
|
63
|
+
{
|
64
|
+
"text": "1. Review of existing structures",
|
65
|
+
"expanded": true,
|
66
|
+
"children":
|
67
|
+
[
|
68
|
+
{
|
69
|
+
"text": "1.1 jQuery core"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"text": "1.2 metaplugins"
|
73
|
+
}
|
74
|
+
]
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"text": "2. Wrapper plugins"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"text": "3. Summary"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"text": "4. Questions and answers"
|
84
|
+
}
|
85
|
+
|
86
|
+
]
|
87
|
+
<?php endif; ?>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,82 @@
|
|
1
|
+
/*
|
2
|
+
* Async Treeview 0.1 - Lazy-loading extension for Treeview
|
3
|
+
*
|
4
|
+
* http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
|
5
|
+
*
|
6
|
+
* Copyright (c) 2007 Jörn Zaefferer
|
7
|
+
*
|
8
|
+
* Dual licensed under the MIT and GPL licenses:
|
9
|
+
* http://www.opensource.org/licenses/mit-license.php
|
10
|
+
* http://www.gnu.org/licenses/gpl.html
|
11
|
+
*
|
12
|
+
* Revision: $Id$
|
13
|
+
*
|
14
|
+
*/
|
15
|
+
|
16
|
+
;
|
17
|
+
(function($) {
|
18
|
+
|
19
|
+
function load(settings, root, child, container) {
|
20
|
+
function createNode(parent) {
|
21
|
+
var current = $("<li/>").attr("id", this.id || "").html("<a href=\"" + this.url + "\" class=\"" + (this.classes || "") + "\">" + this.text + "</a>" + (this.additionalText ? this.additionalText : "")).appendTo(parent);
|
22
|
+
if (this.classes) {
|
23
|
+
current.children("span").addClass(this.classes);
|
24
|
+
}
|
25
|
+
if (this.expanded) {
|
26
|
+
current.addClass("open");
|
27
|
+
}
|
28
|
+
if (this.hasChildren || this.children && this.children.length) {
|
29
|
+
var branch = $("<ul/>").appendTo(current);
|
30
|
+
if (this.hasChildren) {
|
31
|
+
current.addClass("hasChildren");
|
32
|
+
createNode.call({
|
33
|
+
classes: "placeholder",
|
34
|
+
text: " ",
|
35
|
+
children:[]
|
36
|
+
}, branch);
|
37
|
+
}
|
38
|
+
if (this.children && this.children.length) {
|
39
|
+
$.each(this.children, createNode, [branch])
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
$.ajax($.extend(true, {
|
44
|
+
url: settings.url,
|
45
|
+
dataType: "json",
|
46
|
+
data: {
|
47
|
+
root: root
|
48
|
+
},
|
49
|
+
success: function(response) {
|
50
|
+
child.empty();
|
51
|
+
$.each(response, createNode, [child]);
|
52
|
+
$(container).treeview({add: child});
|
53
|
+
}
|
54
|
+
}, settings.ajax));
|
55
|
+
}
|
56
|
+
|
57
|
+
$.fn.treeviewLoad = load;
|
58
|
+
|
59
|
+
var proxied = $.fn.treeview;
|
60
|
+
$.fn.treeview = function(settings) {
|
61
|
+
if (!settings.url) {
|
62
|
+
return proxied.apply(this, arguments);
|
63
|
+
}
|
64
|
+
var container = this;
|
65
|
+
if (!container.children().size())
|
66
|
+
load(settings, (settings.root || "source"), this, container);
|
67
|
+
var userToggle = settings.toggle;
|
68
|
+
return proxied.call(this, $.extend({}, settings, {
|
69
|
+
collapsed: true,
|
70
|
+
toggle: function() {
|
71
|
+
var $this = $(this);
|
72
|
+
if ($this.hasClass("hasChildren")) {
|
73
|
+
var childList = $this.removeClass("hasChildren").find("ul");
|
74
|
+
load(settings, this.id, childList, container);
|
75
|
+
}
|
76
|
+
if (userToggle) {
|
77
|
+
userToggle.apply(this, arguments);
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}));
|
81
|
+
};
|
82
|
+
})(jQuery);
|
@@ -0,0 +1,75 @@
|
|
1
|
+
.treeview, .treeview ul {
|
2
|
+
padding: 0;
|
3
|
+
margin: 0;
|
4
|
+
list-style: none;
|
5
|
+
}
|
6
|
+
|
7
|
+
.treeview ul {
|
8
|
+
background-color: white;
|
9
|
+
margin-top: 4px;
|
10
|
+
}
|
11
|
+
|
12
|
+
.treeview .hitarea {
|
13
|
+
background: url(images/treeview-default.gif) -64px -25px no-repeat;
|
14
|
+
height: 16px;
|
15
|
+
width: 16px;
|
16
|
+
margin-left: -16px;
|
17
|
+
float: left;
|
18
|
+
cursor: pointer;
|
19
|
+
}
|
20
|
+
/* fix for IE6 */
|
21
|
+
* html .hitarea {
|
22
|
+
display: inline;
|
23
|
+
float:none;
|
24
|
+
}
|
25
|
+
|
26
|
+
.treeview li {
|
27
|
+
margin: 0;
|
28
|
+
padding: 3px 0pt 3px 16px;
|
29
|
+
}
|
30
|
+
|
31
|
+
.treeview a.selected {
|
32
|
+
background-color: #eee;
|
33
|
+
}
|
34
|
+
|
35
|
+
#treecontrol { margin: 1em 0; display: none; }
|
36
|
+
|
37
|
+
.treeview .hover { color: red; cursor: pointer; }
|
38
|
+
|
39
|
+
.treeview li { background: url(images/treeview-default-line.gif) 0 0 no-repeat; }
|
40
|
+
.treeview li.collapsable, .treeview li.expandable { background-position: 0 -176px; }
|
41
|
+
|
42
|
+
.treeview .expandable-hitarea { background-position: -80px -3px; }
|
43
|
+
|
44
|
+
.treeview li.last { background-position: 0 -1766px }
|
45
|
+
.treeview li.lastCollapsable, .treeview li.lastExpandable { background-image: url(images/treeview-default.gif); }
|
46
|
+
.treeview li.lastCollapsable { background-position: 0 -111px }
|
47
|
+
.treeview li.lastExpandable { background-position: -32px -67px }
|
48
|
+
|
49
|
+
.treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea { background-position: 0; }
|
50
|
+
|
51
|
+
.treeview-red li { background-image: url(images/treeview-red-line.gif); }
|
52
|
+
.treeview-red .hitarea, .treeview-red li.lastCollapsable, .treeview-red li.lastExpandable { background-image: url(images/treeview-red.gif); }
|
53
|
+
|
54
|
+
.treeview-black li { background-image: url(images/treeview-black-line.gif); }
|
55
|
+
.treeview-black .hitarea, .treeview-black li.lastCollapsable, .treeview-black li.lastExpandable { background-image: url(images/treeview-black.gif); }
|
56
|
+
|
57
|
+
.treeview-gray li { background-image: url(images/treeview-gray-line.gif); }
|
58
|
+
.treeview-gray .hitarea, .treeview-gray li.lastCollapsable, .treeview-gray li.lastExpandable { background-image: url(images/treeview-gray.gif); }
|
59
|
+
|
60
|
+
.treeview-famfamfam li { background-image: url(images/treeview-famfamfam-line.gif); }
|
61
|
+
.treeview-famfamfam .hitarea, .treeview-famfamfam li.lastCollapsable, .treeview-famfamfam li.lastExpandable { background-image: url(images/treeview-famfamfam.gif); }
|
62
|
+
|
63
|
+
|
64
|
+
.filetree li { padding: 3px 0 2px 16px; }
|
65
|
+
.filetree span.folder, .filetree span.file { padding: 1px 0 1px 16px; display: block; }
|
66
|
+
.filetree span.folder { background: url(images/folder.gif) 0 0 no-repeat; }
|
67
|
+
.filetree li.expandable span.folder { background: url(images/folder-closed.gif) 0 0 no-repeat; }
|
68
|
+
.filetree span.file { background: url(images/file.gif) 0 0 no-repeat; }
|
69
|
+
|
70
|
+
.treeview .placeholder {
|
71
|
+
background: url("images/ajax-loader.gif") no-repeat scroll 0 0 transparent;
|
72
|
+
display: block;
|
73
|
+
height: 16px;
|
74
|
+
width: 16px;
|
75
|
+
}
|