iqvoc_skosxl 2.9.1 → 2.11.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +8 -10
  3. data/Gemfile.lock +475 -296
  4. data/README.md +1 -1
  5. data/app/assets/javascripts/iqvoc_skosxl/duplicate_check.js +104 -0
  6. data/app/assets/javascripts/iqvoc_skosxl/manifest.js +4 -0
  7. data/app/assets/javascripts/iqvoc_skosxl/new_label_modal.js +19 -0
  8. data/app/assets/javascripts/manifest.js +3 -3
  9. data/app/assets/stylesheets/manifest.scss +4 -0
  10. data/app/controllers/labels/versions_controller.rb +30 -50
  11. data/app/controllers/labels_controller.rb +71 -25
  12. data/app/controllers/rdf_controller.rb +8 -7
  13. data/app/controllers/xl_dashboard_controller.rb +43 -0
  14. data/app/helpers/iqvoc_skosxl_helper.rb +4 -0
  15. data/app/helpers/labels_helper.rb +8 -6
  16. data/app/models/application_record.rb +3 -0
  17. data/app/models/collection/skosxl/extension.rb +8 -0
  18. data/app/models/concept/skosxl/extension.rb +4 -2
  19. data/app/models/label/relation/base.rb +2 -2
  20. data/app/models/label/skosxl/base.rb +166 -29
  21. data/app/models/label/skosxl/properties/literal_form.rb +1 -1
  22. data/app/models/labeling/skosxl/alt_label.rb +12 -0
  23. data/app/models/labeling/skosxl/base.rb +65 -10
  24. data/app/models/labeling/skosxl/hidden_label.rb +2 -2
  25. data/app/models/labeling/skosxl/pref_label.rb +4 -0
  26. data/app/views/concepts/_form.html.erb +115 -0
  27. data/app/views/labels/_form.html.erb +11 -3
  28. data/app/views/labels/_language.html.erb +4 -0
  29. data/app/views/labels/_sidebar.html.erb +13 -7
  30. data/app/views/labels/duplicate.html.erb +4 -0
  31. data/app/views/labels/new.html.erb +1 -0
  32. data/app/views/labels/new_from_concept.html.erb +28 -0
  33. data/app/views/labels/notifications/_referenced_labels.html.erb +0 -1
  34. data/app/views/{rdf/show_label.iqrdf → labels/show.iqrdf} +1 -1
  35. data/app/views/labels/show_published.html.erb +5 -3
  36. data/app/views/labels/show_unpublished.html.erb +19 -22
  37. data/app/views/layouts/_label_in_concept_modal.html.erb +2 -0
  38. data/app/views/layouts/application.html.erb +51 -0
  39. data/app/views/partials/_modal.html.erb +17 -0
  40. data/app/views/partials/label/skosxl/_inline_base.html.erb +1 -0
  41. data/app/views/partials/label/skosxl/_new_link_base.html.erb +1 -1
  42. data/app/views/partials/labeling/skosxl/_base.html.erb +20 -13
  43. data/app/views/partials/labeling/skosxl/_edit_base.html.erb +3 -2
  44. data/config/application.rb +26 -14
  45. data/config/boot.rb +3 -3
  46. data/config/cable.yml +10 -0
  47. data/config/database.yml +21 -15
  48. data/config/database.yml.postgresql +12 -9
  49. data/config/environment.rb +1 -1
  50. data/config/initializers/content_security_policy.rb +25 -0
  51. data/config/initializers/filter_parameter_logging.rb +6 -2
  52. data/config/initializers/inflections.rb +4 -4
  53. data/config/initializers/iqvoc.rb +2 -0
  54. data/config/initializers/permissions_policy.rb +11 -0
  55. data/config/initializers/wrap_parameters.rb +2 -2
  56. data/config/initializers/zeitwerk.rb +7 -0
  57. data/config/locales/activerecord.de.yml +5 -2
  58. data/config/locales/activerecord.en.yml +3 -0
  59. data/config/locales/de.yml +13 -0
  60. data/config/locales/en.yml +13 -0
  61. data/config/routes.rb +8 -12
  62. data/config/storage.yml +34 -0
  63. data/db/migrate/20110408121540_extend_label.rb +3 -3
  64. data/db/migrate/20110408123644_add_label_relations.rb +1 -1
  65. data/db/migrate/20150108154312_add_fk_contraints_iqvoc_skosxl.rb +1 -1
  66. data/db/migrate/20150414083600_remove_fk_constraints_iqvoc_skosxl.rb +1 -1
  67. data/db/migrate/20231012174634_remove_locked_by_for_label.rb +5 -0
  68. data/db/schema.rb +173 -182
  69. data/iqvoc_skosxl.gemspec +2 -2
  70. data/lib/iqvoc/skosxl/version.rb +1 -1
  71. data/lib/iqvoc_skosxl.rb +8 -1
  72. data/public/assets/fonts/FiraMono-Regular-0b6138c5b386dc9125473fd851926f29.ttf +0 -0
  73. data/public/assets/fonts/FiraMono-Regular-690950e8d89c92cba41eeeb13f1de93e.woff +0 -0
  74. data/public/assets/fonts/FiraMono-Regular-98f97ed2dbf9d94d4fa5df048434b88d.eot +0 -0
  75. data/public/assets/fonts/FiraMono-Regular.eot +0 -0
  76. data/public/assets/fonts/FiraMono-Regular.ttf +0 -0
  77. data/public/assets/fonts/FiraMono-Regular.woff +0 -0
  78. data/public/assets/fonts/FiraSans-Bold-0de5f536bd0dc370449c0c67a49a6fe7.eot +0 -0
  79. data/public/assets/fonts/FiraSans-Bold-25037ef8d155e38b5df0c242a4c6cf2d.ttf +0 -0
  80. data/public/assets/fonts/FiraSans-Bold-494219a9639084eb9528ff47f79fcda1.woff +0 -0
  81. data/public/assets/fonts/FiraSans-Bold.eot +0 -0
  82. data/public/assets/fonts/FiraSans-Bold.ttf +0 -0
  83. data/public/assets/fonts/FiraSans-Bold.woff +0 -0
  84. data/public/assets/fonts/FiraSans-BoldItalic-5b3b812df9e1cb2b1f34baad65a2bdfb.ttf +0 -0
  85. data/public/assets/fonts/FiraSans-BoldItalic-90b8087c48feff2e828f658c49de5399.eot +0 -0
  86. data/public/assets/fonts/FiraSans-BoldItalic-b10e46158d50bf9b78968112acf87310.woff +0 -0
  87. data/public/assets/fonts/FiraSans-BoldItalic.eot +0 -0
  88. data/public/assets/fonts/FiraSans-BoldItalic.ttf +0 -0
  89. data/public/assets/fonts/FiraSans-BoldItalic.woff +0 -0
  90. data/public/assets/fonts/FiraSans-Book-659d252627051e785260ba445da8930f.woff +0 -0
  91. data/public/assets/fonts/FiraSans-Book-abc65ceb7bfaed729bff7a9d1367b7d4.eot +0 -0
  92. data/public/assets/fonts/FiraSans-Book-f0410501d5ecc5fe66bcdbc02b482c81.ttf +0 -0
  93. data/public/assets/fonts/FiraSans-Book.eot +0 -0
  94. data/public/assets/fonts/FiraSans-Book.ttf +0 -0
  95. data/public/assets/fonts/FiraSans-Book.woff +0 -0
  96. data/public/assets/fonts/FiraSans-ExtraLight-140f15ee97cb2099ff01c2b57dcd1a24.woff +0 -0
  97. data/public/assets/fonts/FiraSans-ExtraLight-28e5c2679df66406ebd117fbdded6753.eot +0 -0
  98. data/public/assets/fonts/FiraSans-ExtraLight-c15de70ebceffce178cbd2e82aa2c373.ttf +0 -0
  99. data/public/assets/fonts/FiraSans-ExtraLight.eot +0 -0
  100. data/public/assets/fonts/FiraSans-ExtraLight.ttf +0 -0
  101. data/public/assets/fonts/FiraSans-ExtraLight.woff +0 -0
  102. data/public/assets/fonts/FiraSans-Italic-ac4cb18fe14a7c90f29cdd2ce499ba59.woff +0 -0
  103. data/public/assets/fonts/FiraSans-Italic-bdea00fee0da5ca9176061e00c26a0da.eot +0 -0
  104. data/public/assets/fonts/FiraSans-Italic-e7e76a0ee170fd29b5d8100753eff569.ttf +0 -0
  105. data/public/assets/fonts/FiraSans-Italic.eot +0 -0
  106. data/public/assets/fonts/FiraSans-Italic.ttf +0 -0
  107. data/public/assets/fonts/FiraSans-Italic.woff +0 -0
  108. data/public/assets/fonts/FiraSans-Light-20adaf630b690c3e3184daaeae585f22.woff +0 -0
  109. data/public/assets/fonts/FiraSans-Light-3689e18b38d335ec0c43823adb6a2984.eot +0 -0
  110. data/public/assets/fonts/FiraSans-Light-55b04531e7a9ecdf58090d70b94b68e2.ttf +0 -0
  111. data/public/assets/fonts/FiraSans-Light-SC-098407a72b7ad46f7c2480d7ac11baf2.eot +0 -0
  112. data/public/assets/fonts/FiraSans-Light-SC-82763fe2ce9e6b897556c6f3c2aceb29.woff2 +0 -0
  113. data/public/assets/fonts/FiraSans-Light-SC-c73985985f0501c1845a5185b180fe6b.woff +0 -0
  114. data/public/assets/fonts/FiraSans-Light-SC-c9563f48d9cccd91f07e46801c27130f.ttf +0 -0
  115. data/public/assets/fonts/FiraSans-Light-SC.eot +0 -0
  116. data/public/assets/fonts/FiraSans-Light-SC.ttf +0 -0
  117. data/public/assets/fonts/FiraSans-Light-SC.woff +0 -0
  118. data/public/assets/fonts/FiraSans-Light-SC.woff2 +0 -0
  119. data/public/assets/fonts/FiraSans-Light.eot +0 -0
  120. data/public/assets/fonts/FiraSans-Light.ttf +0 -0
  121. data/public/assets/fonts/FiraSans-Light.woff +0 -0
  122. data/public/assets/fonts/FiraSans-Medium-082fab59048189168006bf2e914ba8b7.woff +0 -0
  123. data/public/assets/fonts/FiraSans-Medium-11706edfe8651c355b413bd24b4b5e10.eot +0 -0
  124. data/public/assets/fonts/FiraSans-Medium-3a0dacdeaba1b4c054f2d6cb5061965d.ttf +0 -0
  125. data/public/assets/fonts/FiraSans-Medium.eot +0 -0
  126. data/public/assets/fonts/FiraSans-Medium.ttf +0 -0
  127. data/public/assets/fonts/FiraSans-Medium.woff +0 -0
  128. data/public/assets/fonts/FiraSans-MediumItalic-6c8a2646d72641226527d574a8485b66.woff +0 -0
  129. data/public/assets/fonts/FiraSans-MediumItalic-b81e92794a6878b6c578d97b3ad5e6d7.ttf +0 -0
  130. data/public/assets/fonts/FiraSans-MediumItalic-eae7f4a3c4db9fe83025909ebfae5ad9.eot +0 -0
  131. data/public/assets/fonts/FiraSans-MediumItalic.eot +0 -0
  132. data/public/assets/fonts/FiraSans-MediumItalic.ttf +0 -0
  133. data/public/assets/fonts/FiraSans-MediumItalic.woff +0 -0
  134. data/public/assets/fonts/FiraSans-Regular-537188a19aeebdd74a92e114af7a02cb.ttf +0 -0
  135. data/public/assets/fonts/FiraSans-Regular-5d6a923de9be80ff5c2995cc03d93127.woff +0 -0
  136. data/public/assets/fonts/FiraSans-Regular-db689e5fea21ed4b7890811151968dc6.eot +0 -0
  137. data/public/assets/fonts/FiraSans-Regular.eot +0 -0
  138. data/public/assets/fonts/FiraSans-Regular.ttf +0 -0
  139. data/public/assets/fonts/FiraSans-Regular.woff +0 -0
  140. data/public/assets/fonts/FiraSans-UltraLight-3baefce4c224a0f0b26cdafe37dfa55d.eot +0 -0
  141. data/public/assets/fonts/FiraSans-UltraLight-e3909a352b87f853bb464836adfd602a.ttf +0 -0
  142. data/public/assets/fonts/FiraSans-UltraLight-f7289beeaa2353caf487553ee8b8ef03.woff +0 -0
  143. data/public/assets/fonts/FiraSans-UltraLight.eot +0 -0
  144. data/public/assets/fonts/FiraSans-UltraLight.ttf +0 -0
  145. data/public/assets/fonts/FiraSans-UltraLight.woff +0 -0
  146. data/public/assets/fonts/FontAwesome.otf +0 -0
  147. data/public/assets/fonts/fontawesome-webfont.eot +0 -0
  148. data/public/assets/fonts/fontawesome-webfont.svg +2671 -0
  149. data/public/assets/fonts/fontawesome-webfont.ttf +0 -0
  150. data/public/assets/fonts/fontawesome-webfont.woff +0 -0
  151. data/public/assets/fonts/fontawesome-webfont.woff2 +0 -0
  152. data/public/assets/images/ajax-loader-30d8e72bfdae694b1938658e1b087df0.gif +0 -0
  153. data/public/assets/images/ajax-loader.gif +0 -0
  154. data/public/assets/images/iqvoc_logo-165f17a46cf0a1bf9464db9d136fb843.svg +41 -0
  155. data/public/assets/images/iqvoc_logo.svg +41 -0
  156. data/public/assets/images/treeview-default-line-5e3c0e0c48f48c23c45aef7b72c739c0.gif +0 -0
  157. data/public/assets/images/treeview-default-line.gif +0 -0
  158. data/public/assets/javascripts/bootstrap.bundle.min-3e959f3b878396c38e4ca7787278131b.js +6 -0
  159. data/public/assets/javascripts/bootstrap.bundle.min-68b3c2f1c1f636f947fff1229d3ffbf5.js +7 -0
  160. data/public/assets/javascripts/bootstrap.bundle.min.js +31 -0
  161. data/public/assets/javascripts/jquery-d52dc3a9171f1fc89dd0f8e35e42c9d2.js +26 -0
  162. data/public/assets/javascripts/jquery.js +10701 -0
  163. data/public/assets/javascripts/manifest-d95423d4873e576e7ae0b6a57cf18ec5.js +5486 -0
  164. data/public/assets/javascripts/manifest.js +6981 -0
  165. data/public/assets/manifest.json +1 -0
  166. data/public/assets/stylesheets/manifest-bbb2857850990f13f777f3dec120a018.css +13 -0
  167. data/public/assets/stylesheets/manifest-c82b7dfb6cbb9f6284de38abacbf7d49.css +13 -0
  168. data/public/assets/stylesheets/manifest.css +13620 -0
  169. data/public/favicon.ico +0 -0
  170. data/test/controllers/rdf_rendering_test.rb +19 -0
  171. data/test/controllers/routing_test.rb +5 -1
  172. data/test/integration/concept_label_language_test.rb +1 -3
  173. data/test/integration/dashboard_test.rb +1 -1
  174. data/test/integration/duplicate_label_test.rb +52 -0
  175. data/test/integration/edit_labels_test.rb +2 -2
  176. data/test/integration/label_creation_test.rb +8 -0
  177. data/test/integration/label_relation_test.rb +2 -2
  178. data/test/integration/labels_order_test.rb +6 -6
  179. data/test/integration/search_test.rb +117 -0
  180. data/test/integration_test_helper.rb +2 -2
  181. data/test/models/concept_test.rb +12 -0
  182. data/test/models/skos_importer_test.rb +1 -1
  183. data/test/models/zeitwerk_compliance_test.rb +7 -0
  184. metadata +139 -26
  185. data/app/assets/stylesheets/manifest.css.scss +0 -4
  186. data/app/views/labels/_value_and_language.html.erb +0 -9
  187. data/config/initializers/backtrace_silencers.rb +0 -7
  188. data/config/initializers/cookies_serializer.rb +0 -3
  189. data/config/initializers/mime_types.rb +0 -4
  190. data/public/export/iqvoc_dump-2017-06-07_13-08.ttl +0 -70
@@ -0,0 +1,34 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("tmp/storage") %>
4
+
5
+ local:
6
+ service: Disk
7
+ root: <%= Rails.root.join("storage") %>
8
+
9
+ # Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
+ # amazon:
11
+ # service: S3
12
+ # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13
+ # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14
+ # region: us-east-1
15
+ # bucket: your_own_bucket
16
+
17
+ # Remember not to checkin your GCS keyfile to a repository
18
+ # google:
19
+ # service: GCS
20
+ # project: your_project
21
+ # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22
+ # bucket: your_own_bucket
23
+
24
+ # Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25
+ # microsoft:
26
+ # service: AzureStorage
27
+ # storage_account_name: your_account_name
28
+ # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29
+ # container: your_container_name
30
+
31
+ # mirror:
32
+ # service: Mirror
33
+ # primary: local
34
+ # mirrors: [ amazon, google, microsoft ]
@@ -1,4 +1,4 @@
1
- class ExtendLabel < ActiveRecord::Migration
1
+ class ExtendLabel < ActiveRecord::Migration[4.2]
2
2
  FIELDS = [
3
3
  {'rev' => {type: :integer, options: {default: 1}}},
4
4
  {'published_version_id' => {type: :integer}},
@@ -14,7 +14,7 @@ class ExtendLabel < ActiveRecord::Migration
14
14
  FIELDS.each do |hsh|
15
15
  hsh.each do |column_name, hsh2|
16
16
  unless column_exists?(:labels, column_name)
17
- add_column(:labels, column_name, hsh2[:type], (hsh2[:options] || {}))
17
+ add_column(:labels, column_name, hsh2[:type], **(hsh2[:options] || {}))
18
18
  end
19
19
  end
20
20
  end
@@ -31,4 +31,4 @@ class ExtendLabel < ActiveRecord::Migration
31
31
  end
32
32
  end
33
33
  end
34
- end
34
+ end
@@ -1,4 +1,4 @@
1
- class AddLabelRelations < ActiveRecord::Migration
1
+ class AddLabelRelations < ActiveRecord::Migration[4.2]
2
2
  def self.up
3
3
  unless table_exists?('label_relations')
4
4
  create_table 'label_relations', force: true do |t|
@@ -1,4 +1,4 @@
1
- class AddFkContraintsIqvocSkosxl < ActiveRecord::Migration
1
+ class AddFkContraintsIqvocSkosxl < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_foreign_key :labels, :labels, column: 'published_version_id', on_update: :cascade, on_delete: :cascade
4
4
  add_foreign_key :label_relations, :labels, column: 'domain_id', on_update: :cascade, on_delete: :cascade
@@ -1,4 +1,4 @@
1
- class RemoveFkConstraintsIqvocSkosxl < ActiveRecord::Migration
1
+ class RemoveFkConstraintsIqvocSkosxl < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  remove_foreign_key :labels, column: 'published_version_id'
4
4
  end
@@ -0,0 +1,5 @@
1
+ class RemoveLockedByForLabel < ActiveRecord::Migration[7.0]
2
+ def change
3
+ remove_column :labels, :locked_by
4
+ end
5
+ end
data/db/schema.rb CHANGED
@@ -1,227 +1,218 @@
1
- # encoding: UTF-8
2
1
  # This file is auto-generated from the current state of the database. Instead
3
2
  # of editing this file, please use the migrations feature of Active Record to
4
3
  # incrementally modify your database, and then regenerate this schema definition.
5
4
  #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
5
+ # This file is the source Rails uses to define your schema when running `bin/rails
6
+ # db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
7
+ # be faster and is potentially less error prone than running all of your
8
+ # migrations from scratch. Old migrations may fail to apply correctly if those
9
+ # migrations use external dependencies or application code.
11
10
  #
12
11
  # It's strongly recommended that you check this file into your version control system.
13
12
 
14
- ActiveRecord::Schema.define(version: 20150414083600) do
13
+ ActiveRecord::Schema[7.0].define(version: 2023_10_12_174634) do
14
+ # These are extensions that must be enabled in order to support this database
15
+ enable_extension "plpgsql"
15
16
 
16
- create_table "collection_members", force: :cascade do |t|
17
- t.integer "collection_id", limit: 4
18
- t.integer "target_id", limit: 4
19
- t.string "type", limit: 255
17
+ create_table "collection_members", id: :serial, force: :cascade do |t|
18
+ t.integer "collection_id"
19
+ t.integer "target_id"
20
+ t.string "type"
21
+ t.index ["collection_id", "target_id", "type"], name: "ix_collections_fk_type"
22
+ t.index ["type"], name: "index_collection_members_on_type"
20
23
  end
21
24
 
22
- add_index "collection_members", ["collection_id", "target_id", "type"], name: "ix_collections_fk_type", using: :btree
23
- add_index "collection_members", ["target_id"], name: "fk_rails_2a51b48094", using: :btree
24
-
25
- create_table "concept_relations", force: :cascade do |t|
26
- t.string "type", limit: 255
27
- t.integer "owner_id", limit: 4
28
- t.integer "target_id", limit: 4
29
- t.datetime "created_at"
30
- t.datetime "updated_at"
31
- t.integer "rank", limit: 4, default: 100
25
+ create_table "concept_relations", id: :serial, force: :cascade do |t|
26
+ t.string "type"
27
+ t.integer "owner_id"
28
+ t.integer "target_id"
29
+ t.datetime "created_at", precision: nil
30
+ t.datetime "updated_at", precision: nil
31
+ t.integer "rank", default: 100
32
+ t.index ["owner_id", "target_id"], name: "ix_concept_relations_fk"
32
33
  end
33
34
 
34
- add_index "concept_relations", ["owner_id", "target_id"], name: "ix_concept_relations_fk", using: :btree
35
- add_index "concept_relations", ["target_id"], name: "fk_rails_fd6c6e6fd7", using: :btree
36
-
37
- create_table "concepts", force: :cascade do |t|
38
- t.string "type", limit: 255
39
- t.string "origin", limit: 4000
40
- t.integer "rev", limit: 4, default: 1
41
- t.date "published_at"
42
- t.integer "published_version_id", limit: 4
43
- t.integer "locked_by", limit: 4
44
- t.date "expired_at"
45
- t.date "follow_up"
46
- t.boolean "to_review", limit: 1
47
- t.date "rdf_updated_at"
48
- t.datetime "created_at"
49
- t.datetime "updated_at"
50
- t.boolean "top_term", limit: 1, default: false
35
+ create_table "concepts", id: :serial, force: :cascade do |t|
36
+ t.string "type"
37
+ t.string "origin", limit: 4000
38
+ t.integer "rev", default: 1
39
+ t.date "published_at"
40
+ t.integer "published_version_id"
41
+ t.date "expired_at"
42
+ t.date "follow_up"
43
+ t.boolean "to_review"
44
+ t.date "rdf_updated_at"
45
+ t.datetime "created_at", precision: nil
46
+ t.datetime "updated_at", precision: nil
47
+ t.boolean "top_term", default: false
48
+ t.index ["origin"], name: "ix_concepts_on_origin"
49
+ t.index ["published_version_id"], name: "ix_concepts_publ_version_id"
51
50
  end
52
51
 
53
- add_index "concepts", ["locked_by"], name: "fk_rails_69655c7fd3", using: :btree
54
- add_index "concepts", ["origin"], name: "ix_concepts_on_origin", length: {"origin"=>255}, using: :btree
55
- add_index "concepts", ["published_version_id"], name: "ix_concepts_publ_version_id", using: :btree
56
-
57
- create_table "configuration_settings", force: :cascade do |t|
58
- t.string "key", limit: 255
59
- t.string "value", limit: 255
52
+ create_table "configuration_settings", id: :serial, force: :cascade do |t|
53
+ t.string "key"
54
+ t.string "value"
60
55
  end
61
56
 
62
- create_table "delayed_jobs", force: :cascade do |t|
63
- t.integer "priority", limit: 4, default: 0, null: false
64
- t.integer "attempts", limit: 4, default: 0, null: false
65
- t.text "handler", limit: 65535, null: false
66
- t.text "last_error", limit: 65535
67
- t.datetime "run_at"
68
- t.datetime "locked_at"
69
- t.datetime "failed_at"
70
- t.string "locked_by", limit: 255
71
- t.string "queue", limit: 255
72
- t.datetime "created_at"
73
- t.datetime "updated_at"
74
- t.string "error_message", limit: 255
75
- t.string "delayed_reference_type", limit: 255
76
- t.integer "delayed_reference_id", limit: 4
77
- t.string "delayed_global_reference_id", limit: 255
57
+ create_table "delayed_jobs", id: :serial, force: :cascade do |t|
58
+ t.integer "priority", default: 0, null: false
59
+ t.integer "attempts", default: 0, null: false
60
+ t.text "handler", null: false
61
+ t.text "last_error"
62
+ t.datetime "run_at", precision: nil
63
+ t.datetime "locked_at", precision: nil
64
+ t.datetime "failed_at", precision: nil
65
+ t.string "locked_by"
66
+ t.string "queue"
67
+ t.datetime "created_at", precision: nil
68
+ t.datetime "updated_at", precision: nil
69
+ t.string "error_message"
70
+ t.string "delayed_reference_type"
71
+ t.integer "delayed_reference_id"
72
+ t.string "delayed_global_reference_id"
73
+ t.index ["delayed_global_reference_id"], name: "delayed_jobs_delayed_global_reference_id"
74
+ t.index ["delayed_reference_id"], name: "delayed_jobs_delayed_reference_id"
75
+ t.index ["delayed_reference_type"], name: "delayed_jobs_delayed_reference_type"
76
+ t.index ["priority", "run_at"], name: "delayed_jobs_priority"
77
+ t.index ["queue"], name: "delayed_jobs_queue"
78
78
  end
79
79
 
80
- add_index "delayed_jobs", ["delayed_global_reference_id"], name: "delayed_jobs_delayed_global_reference_id", using: :btree
81
- add_index "delayed_jobs", ["delayed_reference_id"], name: "delayed_jobs_delayed_reference_id", using: :btree
82
- add_index "delayed_jobs", ["delayed_reference_type"], name: "delayed_jobs_delayed_reference_type", using: :btree
83
- add_index "delayed_jobs", ["priority", "run_at"], name: "delayed_jobs_priority", using: :btree
84
- add_index "delayed_jobs", ["queue"], name: "delayed_jobs_queue", using: :btree
85
-
86
- create_table "exports", force: :cascade do |t|
87
- t.integer "user_id", limit: 4
88
- t.text "output", limit: 65535
89
- t.boolean "success", limit: 1, default: false
90
- t.integer "file_type", limit: 4
91
- t.string "token", limit: 255
92
- t.datetime "created_at"
93
- t.datetime "updated_at"
94
- t.datetime "finished_at"
95
- t.string "default_namespace", limit: 255
80
+ create_table "exports", id: :serial, force: :cascade do |t|
81
+ t.integer "user_id"
82
+ t.text "output"
83
+ t.boolean "success", default: false
84
+ t.integer "file_type"
85
+ t.string "token"
86
+ t.datetime "created_at", precision: nil
87
+ t.datetime "updated_at", precision: nil
88
+ t.datetime "finished_at", precision: nil
89
+ t.string "default_namespace"
90
+ t.index ["user_id"], name: "index_exports_on_user_id"
96
91
  end
97
92
 
98
- add_index "exports", ["user_id"], name: "index_exports_on_user_id", using: :btree
99
-
100
- create_table "imports", force: :cascade do |t|
101
- t.integer "user_id", limit: 4
102
- t.text "output", limit: 65535
103
- t.boolean "success", limit: 1, default: false
104
- t.datetime "created_at"
105
- t.datetime "updated_at"
106
- t.datetime "finished_at"
107
- t.string "import_file", limit: 255
108
- t.boolean "publish", limit: 1
109
- t.string "default_namespace", limit: 255
93
+ create_table "imports", id: :serial, force: :cascade do |t|
94
+ t.integer "user_id"
95
+ t.text "output"
96
+ t.boolean "success", default: false
97
+ t.datetime "created_at", precision: nil
98
+ t.datetime "updated_at", precision: nil
99
+ t.datetime "finished_at", precision: nil
100
+ t.string "import_file"
101
+ t.boolean "publish"
102
+ t.string "default_namespace"
103
+ t.index ["user_id"], name: "index_imports_on_user_id"
110
104
  end
111
105
 
112
- add_index "imports", ["user_id"], name: "index_imports_on_user_id", using: :btree
113
-
114
- create_table "label_relations", force: :cascade do |t|
115
- t.string "type", limit: 255
116
- t.integer "domain_id", limit: 4
117
- t.integer "range_id", limit: 4
118
- t.datetime "created_at"
119
- t.datetime "updated_at"
106
+ create_table "label_relations", id: :serial, force: :cascade do |t|
107
+ t.string "type"
108
+ t.integer "domain_id"
109
+ t.integer "range_id"
110
+ t.datetime "created_at", precision: nil
111
+ t.datetime "updated_at", precision: nil
112
+ t.index ["domain_id", "range_id", "type"], name: "ix_label_rel_dom_rng_type"
113
+ t.index ["type"], name: "ix_label_relations_on_type"
120
114
  end
121
115
 
122
- add_index "label_relations", ["domain_id", "range_id", "type"], name: "ix_label_rel_dom_rng_type", using: :btree
123
- add_index "label_relations", ["range_id"], name: "fk_rails_a56a2bdf28", using: :btree
124
- add_index "label_relations", ["type"], name: "ix_label_relations_on_type", using: :btree
125
-
126
- create_table "labelings", force: :cascade do |t|
127
- t.string "type", limit: 255
128
- t.integer "owner_id", limit: 4
129
- t.integer "target_id", limit: 4
130
- t.datetime "created_at"
131
- t.datetime "updated_at"
116
+ create_table "labelings", id: :serial, force: :cascade do |t|
117
+ t.string "type"
118
+ t.integer "owner_id"
119
+ t.integer "target_id"
120
+ t.datetime "created_at", precision: nil
121
+ t.datetime "updated_at", precision: nil
122
+ t.index ["owner_id", "target_id", "type"], name: "ix_labelings_fk_type"
123
+ t.index ["type"], name: "ix_labelings_on_type"
132
124
  end
133
125
 
134
- add_index "labelings", ["owner_id", "target_id", "type"], name: "ix_labelings_fk_type", using: :btree
135
- add_index "labelings", ["target_id"], name: "fk_rails_5897707e64", using: :btree
136
- add_index "labelings", ["type"], name: "ix_labelings_on_type", using: :btree
137
-
138
- create_table "labels", force: :cascade do |t|
139
- t.string "type", limit: 255
140
- t.string "origin", limit: 4000
141
- t.string "language", limit: 255
142
- t.string "value", limit: 1024
143
- t.datetime "created_at"
144
- t.datetime "updated_at"
145
- t.integer "rev", limit: 4, default: 1
146
- t.integer "published_version_id", limit: 4
147
- t.date "published_at"
148
- t.integer "locked_by", limit: 4
149
- t.date "expired_at"
150
- t.date "follow_up"
151
- t.boolean "to_review", limit: 1
152
- t.date "rdf_updated_at"
126
+ create_table "labels", id: :serial, force: :cascade do |t|
127
+ t.string "type"
128
+ t.string "origin", limit: 4000
129
+ t.string "language"
130
+ t.string "value", limit: 1024
131
+ t.datetime "created_at", precision: nil
132
+ t.datetime "updated_at", precision: nil
133
+ t.integer "rev", default: 1
134
+ t.integer "published_version_id"
135
+ t.date "published_at"
136
+ t.date "expired_at"
137
+ t.date "follow_up"
138
+ t.boolean "to_review"
139
+ t.date "rdf_updated_at"
140
+ t.index ["language"], name: "ix_labels_on_language"
141
+ t.index ["origin"], name: "ix_labels_on_origin"
142
+ t.index ["published_version_id"], name: "ix_labels_on_published_v"
153
143
  end
154
144
 
155
- add_index "labels", ["language"], name: "ix_labels_on_language", using: :btree
156
- add_index "labels", ["origin"], name: "ix_labels_on_origin", length: {"origin"=>255}, using: :btree
157
- add_index "labels", ["published_version_id"], name: "ix_labels_on_published_v", using: :btree
158
-
159
- create_table "matches", force: :cascade do |t|
160
- t.integer "concept_id", limit: 4
161
- t.string "type", limit: 255
162
- t.string "value", limit: 255
163
- t.datetime "created_at"
164
- t.datetime "updated_at"
145
+ create_table "matches", id: :serial, force: :cascade do |t|
146
+ t.integer "concept_id"
147
+ t.string "type"
148
+ t.string "value"
149
+ t.datetime "created_at", precision: nil
150
+ t.datetime "updated_at", precision: nil
151
+ t.index ["concept_id", "type"], name: "ix_matches_fk_type"
152
+ t.index ["type"], name: "ix_matches_on_type"
165
153
  end
166
154
 
167
- add_index "matches", ["concept_id", "type"], name: "ix_matches_fk_type", using: :btree
168
- add_index "matches", ["type"], name: "ix_matches_on_type", using: :btree
169
-
170
- create_table "notations", force: :cascade do |t|
171
- t.integer "concept_id", limit: 4
172
- t.string "value", limit: 4000
173
- t.string "data_type", limit: 4000
155
+ create_table "notations", id: :serial, force: :cascade do |t|
156
+ t.integer "concept_id"
157
+ t.string "value", limit: 4000
158
+ t.string "data_type", limit: 4000
159
+ t.index ["concept_id"], name: "index_notations_on_concept_id"
174
160
  end
175
161
 
176
- add_index "notations", ["concept_id"], name: "index_notations_on_concept_id", using: :btree
177
-
178
- create_table "note_annotations", force: :cascade do |t|
179
- t.integer "note_id", limit: 4
180
- t.string "predicate", limit: 50
181
- t.string "value", limit: 1024
182
- t.datetime "created_at"
183
- t.datetime "updated_at"
184
- t.string "namespace", limit: 50
185
- t.string "language", limit: 255
162
+ create_table "note_annotations", id: :serial, force: :cascade do |t|
163
+ t.integer "note_id"
164
+ t.string "predicate", limit: 50
165
+ t.string "value", limit: 1024
166
+ t.datetime "created_at", precision: nil
167
+ t.datetime "updated_at", precision: nil
168
+ t.string "namespace", limit: 50
169
+ t.string "language"
170
+ t.index ["note_id"], name: "ix_note_annotations_fk"
171
+ t.index ["value"], name: "index_note_annotations_on_value"
186
172
  end
187
173
 
188
- add_index "note_annotations", ["note_id"], name: "ix_note_annotations_fk", using: :btree
189
-
190
- create_table "notes", force: :cascade do |t|
191
- t.string "language", limit: 2
192
- t.string "value", limit: 4000
193
- t.string "type", limit: 50
194
- t.datetime "created_at"
195
- t.datetime "updated_at"
196
- t.integer "owner_id", limit: 4
197
- t.string "owner_type", limit: 255, null: false
174
+ create_table "notes", id: :serial, force: :cascade do |t|
175
+ t.string "language", limit: 2
176
+ t.string "value", limit: 4000
177
+ t.string "type", limit: 50
178
+ t.datetime "created_at", precision: nil
179
+ t.datetime "updated_at", precision: nil
180
+ t.integer "owner_id"
181
+ t.string "owner_type", null: false
182
+ t.integer "position"
183
+ t.index ["language"], name: "ix_notes_on_language"
184
+ t.index ["owner_id", "owner_type", "type"], name: "ix_notes_fk_type"
185
+ t.index ["type"], name: "ix_notes_on_type"
198
186
  end
199
187
 
200
- add_index "notes", ["language"], name: "ix_notes_on_language", using: :btree
201
- add_index "notes", ["owner_id", "owner_type", "type"], name: "ix_notes_fk_type", using: :btree
202
- add_index "notes", ["type"], name: "ix_notes_on_type", using: :btree
203
-
204
- create_table "users", force: :cascade do |t|
205
- t.string "forename", limit: 255
206
- t.string "surname", limit: 255
207
- t.string "email", limit: 255
208
- t.string "crypted_password", limit: 255
209
- t.boolean "active", limit: 1
210
- t.datetime "created_at"
211
- t.datetime "updated_at"
212
- t.string "password_salt", limit: 255
213
- t.string "persistence_token", limit: 255
214
- t.string "perishable_token", limit: 255
215
- t.string "role", limit: 255
216
- t.string "telephone_number", limit: 255
217
- t.string "type", limit: 255, default: "User"
188
+ create_table "users", id: :serial, force: :cascade do |t|
189
+ t.string "forename"
190
+ t.string "surname"
191
+ t.string "email"
192
+ t.string "crypted_password"
193
+ t.boolean "active"
194
+ t.datetime "created_at", precision: nil
195
+ t.datetime "updated_at", precision: nil
196
+ t.string "password_salt"
197
+ t.string "persistence_token"
198
+ t.string "perishable_token"
199
+ t.string "role"
200
+ t.string "telephone_number"
201
+ t.string "type", default: "User"
202
+ t.text "comment"
203
+ t.integer "login_count", default: 0, null: false
204
+ t.integer "failed_login_count", default: 0, null: false
205
+ t.datetime "last_request_at", precision: nil
206
+ t.datetime "current_login_at", precision: nil
207
+ t.datetime "last_login_at", precision: nil
208
+ t.string "current_login_ip"
209
+ t.string "last_login_ip"
218
210
  end
219
211
 
220
212
  add_foreign_key "collection_members", "concepts", column: "collection_id", on_update: :cascade
221
213
  add_foreign_key "collection_members", "concepts", column: "target_id", on_update: :cascade
222
214
  add_foreign_key "concept_relations", "concepts", column: "owner_id", on_update: :cascade
223
215
  add_foreign_key "concept_relations", "concepts", column: "target_id", on_update: :cascade
224
- add_foreign_key "concepts", "users", column: "locked_by", on_update: :cascade, on_delete: :nullify
225
216
  add_foreign_key "exports", "users", on_update: :cascade, on_delete: :nullify
226
217
  add_foreign_key "imports", "users", on_update: :cascade, on_delete: :nullify
227
218
  add_foreign_key "label_relations", "labels", column: "domain_id", on_update: :cascade, on_delete: :cascade
data/iqvoc_skosxl.gemspec CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  s.license = 'Apache License 2.0'
14
14
  s.description = 'iQvoc - a SKOS(-XL) vocabulary management system built on the Semantic Web'
15
15
 
16
- s.add_dependency 'iqvoc', '>= 4.4.0', '~> 4.11'
17
- s.add_development_dependency 'bundler', '~> 1.6'
16
+ s.add_dependency 'iqvoc', '~> 4.14.5'
17
+ s.add_development_dependency 'bundler'
18
18
 
19
19
  s.files = %w(README.md Gemfile Gemfile.lock Rakefile iqvoc_skosxl.gemspec) +
20
20
  Dir.glob('{app,config,db,public,lib,test}/**/*')
@@ -1,5 +1,5 @@
1
1
  module Iqvoc
2
2
  module SKOSXL
3
- VERSION = "2.9.1"
3
+ VERSION = "2.11.4"
4
4
  end
5
5
  end
data/lib/iqvoc_skosxl.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require 'iqvoc/xllabel'
2
+ require 'iqvoc/skosxl/version'
3
+
1
4
  module IqvocSKOSXL
2
5
  unless Iqvoc.const_defined?(:SKOSXL) && Iqvoc::SKOSXL.const_defined?(:Application)
3
6
  require File.join(File.dirname(__FILE__), '../config/engine')
@@ -11,7 +14,8 @@ module IqvocSKOSXL
11
14
  cfg.deregister_setting("#{prefix}Labeling::SKOS::AltLabel") # iQvoc core default
12
15
  cfg.register_settings({
13
16
  'title' => 'iQvoc SKOS-XL',
14
- "#{prefix}Labeling::SKOSXL::AltLabel" => ['en', 'de']
17
+ "#{prefix}Labeling::SKOSXL::AltLabel" => ['en', 'de'],
18
+ "label_duplicate_check_mode" => "contains"
15
19
  })
16
20
  end
17
21
 
@@ -22,6 +26,9 @@ module IqvocSKOSXL
22
26
  Iqvoc::Concept.include_module_names << 'Concept::SKOSXL::Extension'
23
27
  Iqvoc::Concept.pref_labeling_class_name = 'Labeling::SKOSXL::PrefLabel'
24
28
  Iqvoc::Concept.alt_labeling_class_name = 'Labeling::SKOSXL::AltLabel'
29
+ Iqvoc::Concept.hidden_labeling_class_name = 'Labeling::SKOSXL::HiddenLabel'
30
+
31
+ Iqvoc::Collection.include_module_names << 'Collection::SKOSXL::Extension'
25
32
 
26
33
  # TODO
27
34
  # Iqvoc.searchable_class_names = Iqvoc::Concept.labeling_class_names.keys +