iqvoc 4.10.0 → 4.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile +3 -3
- data/Gemfile.lock +74 -71
- data/LICENSE +1 -1
- data/app/aides/rdfapi.rb +1 -0
- data/app/assets/javascripts/framework.js +1 -3
- data/app/assets/javascripts/iqvoc/federated_concept_mapper.js +1 -1
- data/app/assets/javascripts/iqvoc/iqvoc.js +18 -5
- data/app/assets/javascripts/iqvoc/label_resolver.js +10 -17
- data/app/assets/javascripts/iqvoc/onebox.js.erb +1 -17
- data/app/controllers/concepts/alphabetical_controller.rb +3 -1
- data/app/controllers/concepts_controller.rb +14 -3
- data/app/controllers/dashboard_controller.rb +2 -2
- data/app/controllers/rdf_controller.rb +5 -2
- data/app/controllers/reverse_matches_controller.rb +29 -23
- data/app/exceptions/matched_concept_unpublished.rb +7 -0
- data/app/jobs/reverse_match_job.rb +3 -1
- data/app/models/collection/base.rb +2 -2
- data/app/models/concept/base.rb +12 -16
- data/app/models/concept/validations.rb +2 -0
- data/app/models/dataset/adaptors/iqvoc/alphabetical_search_adaptor.rb +3 -3
- data/app/models/dataset/adaptors/iqvoc/http_adaptor.rb +3 -3
- data/app/models/dataset/adaptors/iqvoc/search_adaptor.rb +1 -2
- data/app/models/dataset/iqvoc_dataset.rb +14 -4
- data/app/models/match/base.rb +4 -0
- data/app/models/services/reverse_match_service.rb +7 -7
- data/app/presenters/alphabetical_search_result_remote.rb +6 -1
- data/app/views/concepts/_form.html.erb +15 -11
- data/app/views/layouts/_controls.html.erb +1 -1
- data/app/views/layouts/_navigation.html.erb +6 -5
- data/app/views/partials/collection/_member.html.erb +1 -1
- data/app/views/partials/note/_base.html.erb +1 -1
- data/app/views/partials/note/_edit_base.html.erb +1 -1
- data/app/views/partials/note/skos/_edit_change_note.html.erb +6 -0
- data/app/views/partials/note/skos/change_note/_search_result.html.erb +5 -3
- data/app/views/rdf/dataset.iqrdf +2 -2
- data/config/locales/de.yml +4 -3
- data/config/locales/defaults.de.yml +1 -1
- data/config/locales/en.yml +1 -0
- data/db/schema.rb +10 -10
- data/iqvoc.gemspec +5 -5
- data/lib/engine_tasks/db.rake +2 -1
- data/lib/iqvoc/version.rb +1 -1
- data/lib/tasks/matches.rake +1 -11
- data/public/export/10192805148978885837967844546781669290.nt +28 -0
- data/public/export/116918272411112416290066634905903813354.nt +28 -0
- data/public/export/13837.nt +28 -0
- data/public/export/1417.nt +28 -0
- data/public/export/153275568579348383693796155341871693100.nt +28 -0
- data/public/export/15332.nt +28 -0
- data/public/export/19005675879943976619209658028974932617.nt +28 -0
- data/public/export/208299769475402765740883052440976216922.nt +28 -0
- data/public/export/22367.nt +28 -0
- data/public/export/239842039859946079048284298581204422602.nt +28 -0
- data/public/export/24489.nt +28 -0
- data/public/export/263331012556698690896467806067510942801.nt +28 -0
- data/public/export/270933597086710360561526644701101107992.nt +28 -0
- data/public/export/30428904238451414062970608699950348184.nt +28 -0
- data/public/export/30747.nt +28 -0
- data/public/export/31194.nt +28 -0
- data/public/export/38674.nt +28 -0
- data/public/export/41895.nt +28 -0
- data/public/export/44382.nt +28 -0
- data/public/export/48640.nt +28 -0
- data/public/export/51540.nt +28 -0
- data/public/export/55305.nt +28 -0
- data/public/export/59453.nt +28 -0
- data/public/export/65515.nt +28 -0
- data/public/export/8784603487603018400727339241555940088.nt +28 -0
- data/public/uploads/import/0c65980ba25416fbc4d503426e1a8f25.nt +259 -0
- data/public/uploads/import/13b577babf078cb2daa4886acf527dab.nt +259 -0
- data/public/uploads/import/2630c1b010d4f6cd0bfc1a82b567c0f2.nt +259 -0
- data/public/uploads/import/2b4c8e8a0e717ec7482fbb0858a73ca9.nt +259 -0
- data/public/uploads/import/3b10e21d4d4ae99504757daea91e37ea.nt +259 -0
- data/public/uploads/import/3e2c6beca4bc3d1845c608e85a653b6b.nt +259 -0
- data/public/uploads/import/484589b64bb31625095e2aa461c7c5f5.nt +259 -0
- data/public/uploads/import/549f0c78be0d5a4071366cd5668b4fb8.nt +259 -0
- data/public/uploads/import/5d66b58c29807cd92be65cd536c4b237.nt +259 -0
- data/public/uploads/import/6c96310921be5d247e00badec43170ff.nt +259 -0
- data/public/uploads/import/76e98edd3edd803faa12c82047ebf7fc.nt +259 -0
- data/public/uploads/import/7a8c8a3531229829bf7b16380550cb8c.nt +259 -0
- data/public/uploads/import/876b3334d3fd4143d573e4e1c213a637.nt +259 -0
- data/public/uploads/import/8a39cdbeb92dcabb370bcc9a586a3d2e.nt +259 -0
- data/public/uploads/import/94a3ea41583c51b9c36ffe5ea2d0535c.nt +259 -0
- data/public/uploads/import/95d86f95ae7ef0a4c45f498587b51700.nt +259 -0
- data/public/uploads/import/a8398ee85fdd1f866c2051f1074638b1.nt +259 -0
- data/public/uploads/import/addcaf555e2cfcb8baf358fb469f8a0a.nt +259 -0
- data/public/uploads/import/ae54ee7fda3362df0f6de4da0459106d.nt +259 -0
- data/public/uploads/import/b220fb27294d324cc34a4f32dcb15613.nt +259 -0
- data/public/uploads/import/bc8a3cd089026ff128732c047e7b911f.nt +259 -0
- data/public/uploads/import/ca4a8b0c64170bc9e93d32be13b30136.nt +259 -0
- data/public/uploads/import/f2620905a23bbc9e0e49f186b10ac51a.nt +259 -0
- data/public/uploads/import/f3572e0f9e4ec2ef482789e048a11af8.nt +259 -0
- data/public/uploads/import/fad73d1341ee30e4888cd1698f502ab5.nt +259 -0
- data/public/uploads/tmp/1463649041-61474-2323/hobbies.nt +259 -0
- data/public/uploads/tmp/1463664346-5686-2298/hobbies.nt +259 -0
- data/public/uploads/tmp/1463665390-6932-0270/hobbies.nt +259 -0
- data/public/uploads/tmp/1463668304-9630-3251/hobbies.nt +259 -0
- data/public/uploads/tmp/1463669489-10839-0938/hobbies.nt +259 -0
- data/public/uploads/tmp/1466609043-45060-5576/hobbies.nt +259 -0
- data/public/uploads/tmp/1467099160-32022-0649/hobbies.nt +259 -0
- data/public/uploads/tmp/1467099195-32141-0911/hobbies.nt +259 -0
- data/public/uploads/tmp/1467104923-38750-3228/hobbies.nt +259 -0
- data/public/uploads/tmp/1467195067-15511-1862/hobbies.nt +259 -0
- data/public/uploads/tmp/1477904194-9559-9102/hobbies.nt +259 -0
- data/public/uploads/tmp/1478096083-30132-9555/hobbies.nt +259 -0
- data/public/uploads/tmp/1479132609-14928-7976/hobbies.nt +259 -0
- data/public/uploads/tmp/1479133367-19225-4523/hobbies.nt +259 -0
- data/public/uploads/tmp/1479139859-34556-4051/hobbies.nt +259 -0
- data/public/uploads/tmp/1479201601-72814-6787/hobbies.nt +259 -0
- data/public/uploads/tmp/1479208599-84188-0489/hobbies.nt +259 -0
- data/public/uploads/tmp/1479210883-89869-0006/hobbies.nt +259 -0
- data/public/uploads/tmp/1479219219-14488-9873/hobbies.nt +259 -0
- data/public/uploads/tmp/1479220116-16009-2099/hobbies.nt +259 -0
- data/public/uploads/tmp/1479221749-20446-1586/hobbies.nt +259 -0
- data/public/uploads/tmp/1479221819-21274-6192/hobbies.nt +259 -0
- data/public/uploads/tmp/1479292258-60665-3926/hobbies.nt +259 -0
- data/public/uploads/tmp/1479903704-8347-9444/hobbies.nt +259 -0
- data/public/uploads/tmp/1479905096-13975-7245/hobbies.nt +259 -0
- data/test/integration/concept_collection_assignment_test.rb +78 -0
- data/test/integration/note_annotations_test.rb +12 -3
- data/test/integration/reverse_match_job_test.rb +1 -1
- metadata +102 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 143155042a4ee4fd4b764ea25a0edd6c5c17ba5f
|
4
|
+
data.tar.gz: 26ec5fff04dd0df5036b5fb58bc8faa04b9e89ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85cd36d2c1f28d17c208a565c5177fabe8dd25b553162b90a8127bd66a2b16f55d4bb72870f65977834025d5f2d81ad753691b4ce6761f7e1860bde104b7d5fc
|
7
|
+
data.tar.gz: bf28fee39986a75999a53631ef9d781d86ad73955300bb1ecf14e51b5bbfdec7be4c7134ba1cd780a8a59399792b0c650731c7634041a520cd35bd75bac0369e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## [4.11.0]
|
2
|
+
|
3
|
+
* Added: render additional concept info in remote alphabetical search results (federated concept mapper)
|
4
|
+
* Fixed: duplicate concept collection assignment bug
|
5
|
+
* Fixed: optimize label search in concept creation/editing (contains)
|
6
|
+
* Fixed: some things related to reverse-matches mirroring
|
7
|
+
* Fixed: initial created change note creation
|
8
|
+
|
1
9
|
## [4.10.0]
|
2
10
|
|
3
11
|
* Fixed: several bugs (i18n, sorting)
|
data/Gemfile
CHANGED
@@ -19,7 +19,7 @@ source 'https://rubygems.org'
|
|
19
19
|
# TODO: The following dependencies could be included by the "gemspec" command.
|
20
20
|
# There is only one problem: gemspec puts the dependencies automatically to a
|
21
21
|
# group (:development by default). This is not what we need.
|
22
|
-
gem 'rails', '~> 4.2.
|
22
|
+
gem 'rails', '~> 4.2.8'
|
23
23
|
gem 'kaminari'
|
24
24
|
gem 'kaminari-bootstrap', '~> 3.0.1'
|
25
25
|
gem 'authlogic', '~> 3.4.2'
|
@@ -39,9 +39,9 @@ gem 'font-awesome-rails', '~> 4.3.0'
|
|
39
39
|
gem 'apipie-rails', '~> 0.3.5'
|
40
40
|
gem 'maruku', require: false
|
41
41
|
gem 'database_cleaner'
|
42
|
-
gem 'delayed_job_active_record', '~> 4.
|
42
|
+
gem 'delayed_job_active_record', '~> 4.1.1'
|
43
43
|
gem 'carrierwave'
|
44
|
-
gem 'autoprefixer-rails', '~> 5.1.
|
44
|
+
gem 'autoprefixer-rails', '~> 6.5.1.1'
|
45
45
|
|
46
46
|
# database adapters
|
47
47
|
# comment out those you do don't need or use a different Gemfile
|
data/Gemfile.lock
CHANGED
@@ -1,34 +1,34 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
actionmailer (4.2.
|
5
|
-
actionpack (= 4.2.
|
6
|
-
actionview (= 4.2.
|
7
|
-
activejob (= 4.2.
|
4
|
+
actionmailer (4.2.8)
|
5
|
+
actionpack (= 4.2.8)
|
6
|
+
actionview (= 4.2.8)
|
7
|
+
activejob (= 4.2.8)
|
8
8
|
mail (~> 2.5, >= 2.5.4)
|
9
9
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
10
|
-
actionpack (4.2.
|
11
|
-
actionview (= 4.2.
|
12
|
-
activesupport (= 4.2.
|
10
|
+
actionpack (4.2.8)
|
11
|
+
actionview (= 4.2.8)
|
12
|
+
activesupport (= 4.2.8)
|
13
13
|
rack (~> 1.6)
|
14
14
|
rack-test (~> 0.6.2)
|
15
15
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
16
16
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
17
|
-
actionview (4.2.
|
18
|
-
activesupport (= 4.2.
|
17
|
+
actionview (4.2.8)
|
18
|
+
activesupport (= 4.2.8)
|
19
19
|
builder (~> 3.1)
|
20
20
|
erubis (~> 2.7.0)
|
21
21
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
22
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
23
|
-
activejob (4.2.
|
24
|
-
activesupport (= 4.2.
|
22
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
23
|
+
activejob (4.2.8)
|
24
|
+
activesupport (= 4.2.8)
|
25
25
|
globalid (>= 0.3.0)
|
26
|
-
activemodel (4.2.
|
27
|
-
activesupport (= 4.2.
|
26
|
+
activemodel (4.2.8)
|
27
|
+
activesupport (= 4.2.8)
|
28
28
|
builder (~> 3.1)
|
29
|
-
activerecord (4.2.
|
30
|
-
activemodel (= 4.2.
|
31
|
-
activesupport (= 4.2.
|
29
|
+
activerecord (4.2.8)
|
30
|
+
activemodel (= 4.2.8)
|
31
|
+
activesupport (= 4.2.8)
|
32
32
|
arel (~> 6.0)
|
33
33
|
activerecord-jdbc-adapter (1.3.14)
|
34
34
|
activerecord (>= 2.2)
|
@@ -41,29 +41,27 @@ GEM
|
|
41
41
|
activerecord-jdbcsqlite3-adapter (1.3.14)
|
42
42
|
activerecord-jdbc-adapter (~> 1.3.14)
|
43
43
|
jdbc-sqlite3 (>= 3.7.2, < 3.9)
|
44
|
-
activesupport (4.2.
|
44
|
+
activesupport (4.2.8)
|
45
45
|
i18n (~> 0.7)
|
46
|
-
json (~> 1.7, >= 1.7.7)
|
47
46
|
minitest (~> 5.1)
|
48
47
|
thread_safe (~> 0.3, >= 0.3.4)
|
49
48
|
tzinfo (~> 1.1)
|
50
49
|
addressable (2.3.7)
|
51
50
|
apipie-rails (0.3.5)
|
52
51
|
json
|
53
|
-
arel (6.0.
|
52
|
+
arel (6.0.4)
|
54
53
|
authlogic (3.4.5)
|
55
54
|
activerecord (>= 3.2)
|
56
55
|
activesupport (>= 3.2)
|
57
56
|
request_store (~> 1.0)
|
58
57
|
scrypt (~> 1.2)
|
59
|
-
autoprefixer-rails (5.1.
|
58
|
+
autoprefixer-rails (6.5.1.1)
|
60
59
|
execjs
|
61
|
-
json
|
62
60
|
awesome_print (1.6.1)
|
63
61
|
binding_of_caller (0.7.3.pre1)
|
64
62
|
debug_inspector (>= 0.0.1)
|
65
63
|
bootstrap_form (2.2.0)
|
66
|
-
builder (3.2.
|
64
|
+
builder (3.2.3)
|
67
65
|
byebug (1.8.2)
|
68
66
|
columnize (~> 0.3.6)
|
69
67
|
debugger-linecache (~> 1.2.0)
|
@@ -84,16 +82,18 @@ GEM
|
|
84
82
|
cliver (0.3.2)
|
85
83
|
coderay (1.1.0)
|
86
84
|
columnize (0.3.6)
|
85
|
+
concurrent-ruby (1.0.5)
|
86
|
+
concurrent-ruby (1.0.5-java)
|
87
87
|
crack (0.4.2)
|
88
88
|
safe_yaml (~> 1.0.0)
|
89
89
|
database_cleaner (1.4.0)
|
90
90
|
debug_inspector (0.0.2)
|
91
91
|
debugger-linecache (1.2.0)
|
92
|
-
delayed_job (4.
|
93
|
-
activesupport (>= 3.0, < 5.
|
94
|
-
delayed_job_active_record (4.
|
95
|
-
activerecord (>= 3.0, < 5.
|
96
|
-
delayed_job (>= 3.0, <
|
92
|
+
delayed_job (4.1.2)
|
93
|
+
activesupport (>= 3.0, < 5.1)
|
94
|
+
delayed_job_active_record (4.1.1)
|
95
|
+
activerecord (>= 3.0, < 5.1)
|
96
|
+
delayed_job (>= 3.0, < 5)
|
97
97
|
docile (1.1.5)
|
98
98
|
ebnf (0.3.6)
|
99
99
|
haml (~> 4.0)
|
@@ -114,7 +114,7 @@ GEM
|
|
114
114
|
rake
|
115
115
|
font-awesome-rails (4.3.0.0)
|
116
116
|
railties (>= 3.2, < 5.0)
|
117
|
-
globalid (0.3.
|
117
|
+
globalid (0.3.7)
|
118
118
|
activesupport (>= 4.1.0)
|
119
119
|
haml (4.0.6)
|
120
120
|
tilt
|
@@ -123,7 +123,7 @@ GEM
|
|
123
123
|
hirb (~> 0.5)
|
124
124
|
unicode-display_width (~> 0.1.1)
|
125
125
|
htmlentities (4.3.3)
|
126
|
-
i18n (0.
|
126
|
+
i18n (0.8.1)
|
127
127
|
iq_rdf (0.1.15)
|
128
128
|
activesupport
|
129
129
|
builder
|
@@ -132,8 +132,8 @@ GEM
|
|
132
132
|
jdbc-mysql (5.1.33)
|
133
133
|
jdbc-postgres (9.4.1200)
|
134
134
|
jdbc-sqlite3 (3.8.7)
|
135
|
-
json (
|
136
|
-
json (
|
135
|
+
json (2.0.3)
|
136
|
+
json (2.0.3-java)
|
137
137
|
json-ld (1.1.8)
|
138
138
|
rdf (~> 1.1, >= 1.1.7)
|
139
139
|
kaminari (0.16.3)
|
@@ -163,22 +163,24 @@ GEM
|
|
163
163
|
sparql-client (~> 1.1, >= 1.1.3)
|
164
164
|
loofah (2.0.3)
|
165
165
|
nokogiri (>= 1.5.9)
|
166
|
-
mail (2.6.
|
167
|
-
mime-types (>= 1.16, <
|
166
|
+
mail (2.6.4)
|
167
|
+
mime-types (>= 1.16, < 4)
|
168
168
|
maruku (0.7.2)
|
169
169
|
method_source (0.8.2)
|
170
|
-
mime-types (
|
171
|
-
|
172
|
-
|
170
|
+
mime-types (3.1)
|
171
|
+
mime-types-data (~> 3.2015)
|
172
|
+
mime-types-data (3.2016.0521)
|
173
|
+
mini_portile2 (2.1.0)
|
174
|
+
minitest (5.10.1)
|
173
175
|
multi_json (1.11.2)
|
174
176
|
multipart-post (2.0.0)
|
175
177
|
mysql2 (0.3.18)
|
176
178
|
net-http-persistent (2.9.4)
|
177
|
-
nokogiri (1.6.
|
178
|
-
|
179
|
-
nokogiri (1.6.
|
179
|
+
nokogiri (1.6.8.1)
|
180
|
+
mini_portile2 (~> 2.1.0)
|
181
|
+
nokogiri (1.6.8.1-java)
|
180
182
|
parallel (1.4.1)
|
181
|
-
pg (0.
|
183
|
+
pg (0.19.0)
|
182
184
|
poltergeist (1.6.0)
|
183
185
|
capybara (~> 2.1)
|
184
186
|
cliver (~> 0.3.1)
|
@@ -203,27 +205,27 @@ GEM
|
|
203
205
|
slop (~> 3.0)
|
204
206
|
quiet_assets (1.1.0)
|
205
207
|
railties (>= 3.1, < 5.0)
|
206
|
-
rack (1.6.
|
208
|
+
rack (1.6.5)
|
207
209
|
rack-test (0.6.3)
|
208
210
|
rack (>= 1.0)
|
209
|
-
rails (4.2.
|
210
|
-
actionmailer (= 4.2.
|
211
|
-
actionpack (= 4.2.
|
212
|
-
actionview (= 4.2.
|
213
|
-
activejob (= 4.2.
|
214
|
-
activemodel (= 4.2.
|
215
|
-
activerecord (= 4.2.
|
216
|
-
activesupport (= 4.2.
|
211
|
+
rails (4.2.8)
|
212
|
+
actionmailer (= 4.2.8)
|
213
|
+
actionpack (= 4.2.8)
|
214
|
+
actionview (= 4.2.8)
|
215
|
+
activejob (= 4.2.8)
|
216
|
+
activemodel (= 4.2.8)
|
217
|
+
activerecord (= 4.2.8)
|
218
|
+
activesupport (= 4.2.8)
|
217
219
|
bundler (>= 1.3.0, < 2.0)
|
218
|
-
railties (= 4.2.
|
220
|
+
railties (= 4.2.8)
|
219
221
|
sprockets-rails
|
220
222
|
rails-deprecated_sanitizer (1.0.3)
|
221
223
|
activesupport (>= 4.2.0.alpha)
|
222
|
-
rails-dom-testing (1.0.
|
224
|
+
rails-dom-testing (1.0.8)
|
223
225
|
activesupport (>= 4.2.0.beta, < 5.0)
|
224
|
-
nokogiri (~> 1.6
|
226
|
+
nokogiri (~> 1.6)
|
225
227
|
rails-deprecated_sanitizer (>= 1.0.1)
|
226
|
-
rails-html-sanitizer (1.0.
|
228
|
+
rails-html-sanitizer (1.0.3)
|
227
229
|
loofah (~> 2.0)
|
228
230
|
rails_12factor (0.0.3)
|
229
231
|
rails_serve_static_assets
|
@@ -232,12 +234,12 @@ GEM
|
|
232
234
|
rails (> 3.1)
|
233
235
|
rails_serve_static_assets (0.0.4)
|
234
236
|
rails_stdout_logging (0.0.3)
|
235
|
-
railties (4.2.
|
236
|
-
actionpack (= 4.2.
|
237
|
-
activesupport (= 4.2.
|
237
|
+
railties (4.2.8)
|
238
|
+
actionpack (= 4.2.8)
|
239
|
+
activesupport (= 4.2.8)
|
238
240
|
rake (>= 0.8.7)
|
239
241
|
thor (>= 0.18.1, < 2.0)
|
240
|
-
rake (
|
242
|
+
rake (12.0.0)
|
241
243
|
rdf (1.1.9)
|
242
244
|
link_header (~> 0.0, >= 0.0.8)
|
243
245
|
rdf-aggregate-repo (1.1.0)
|
@@ -310,17 +312,18 @@ GEM
|
|
310
312
|
rdf (~> 1.1)
|
311
313
|
spoon (0.0.4)
|
312
314
|
ffi
|
313
|
-
sprockets (3.
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
315
|
+
sprockets (3.7.1)
|
316
|
+
concurrent-ruby (~> 1.0)
|
317
|
+
rack (> 1, < 3)
|
318
|
+
sprockets-rails (3.2.0)
|
319
|
+
actionpack (>= 4.0)
|
320
|
+
activesupport (>= 4.0)
|
321
|
+
sprockets (>= 3.0.0)
|
319
322
|
sqlite3 (1.3.10)
|
320
323
|
sxp (0.1.5)
|
321
|
-
thor (0.19.
|
322
|
-
thread_safe (0.3.
|
323
|
-
thread_safe (0.3.
|
324
|
+
thor (0.19.4)
|
325
|
+
thread_safe (0.3.6)
|
326
|
+
thread_safe (0.3.6-java)
|
324
327
|
tilt (2.0.1)
|
325
328
|
tzinfo (1.2.2)
|
326
329
|
thread_safe (~> 0.1)
|
@@ -356,7 +359,7 @@ DEPENDENCIES
|
|
356
359
|
activerecord-jdbcsqlite3-adapter
|
357
360
|
apipie-rails (~> 0.3.5)
|
358
361
|
authlogic (~> 3.4.2)
|
359
|
-
autoprefixer-rails (~> 5.1.
|
362
|
+
autoprefixer-rails (~> 6.5.1.1)
|
360
363
|
awesome_print
|
361
364
|
binding_of_caller (= 0.7.3.pre1)
|
362
365
|
bootstrap_form (~> 2.2.0)
|
@@ -365,7 +368,7 @@ DEPENDENCIES
|
|
365
368
|
capybara (~> 2.4.0)
|
366
369
|
carrierwave
|
367
370
|
database_cleaner
|
368
|
-
delayed_job_active_record (~> 4.
|
371
|
+
delayed_job_active_record (~> 4.1.1)
|
369
372
|
faraday (= 0.9.0)
|
370
373
|
faraday_middleware
|
371
374
|
font-awesome-rails (~> 4.3.0)
|
@@ -385,7 +388,7 @@ DEPENDENCIES
|
|
385
388
|
pry-rails
|
386
389
|
pry-remote
|
387
390
|
quiet_assets
|
388
|
-
rails (~> 4.2.
|
391
|
+
rails (~> 4.2.8)
|
389
392
|
rails_12factor
|
390
393
|
rails_autolink
|
391
394
|
sass-rails (~> 5.0.0)
|
@@ -397,4 +400,4 @@ DEPENDENCIES
|
|
397
400
|
webmock
|
398
401
|
|
399
402
|
BUNDLED WITH
|
400
|
-
1.
|
403
|
+
1.14.4
|
data/LICENSE
CHANGED
data/app/aides/rdfapi.rb
CHANGED
@@ -6,6 +6,4 @@
|
|
6
6
|
//= require typeahead.js/dist/typeahead.jquery.js
|
7
7
|
//= require URIjs/src/URI.js
|
8
8
|
//= require storage
|
9
|
-
//= require bootstrap-sass/assets/javascripts/bootstrap
|
10
|
-
//= require bootstrap-sass/assets/javascripts/bootstrap/tab
|
11
|
-
//= require bootstrap-sass/assets/javascripts/bootstrap/modal
|
9
|
+
//= require bootstrap-sass/assets/javascripts/bootstrap-sprockets
|
@@ -28,7 +28,7 @@ function FederatedConceptMapper(selector) {
|
|
28
28
|
var self = this;
|
29
29
|
var input = this.input.find("input")
|
30
30
|
|
31
|
-
IQVOC.autocomplete(input, $.proxy(this, "onChange"), {
|
31
|
+
IQVOC.autocomplete(input, IQVOC.debounce($.proxy(this, "onChange"), 500), {
|
32
32
|
noResultsMsg: this.root.data("no-results-msg"),
|
33
33
|
});
|
34
34
|
|
@@ -48,6 +48,22 @@ var createNote = function(ev) {
|
|
48
48
|
return false;
|
49
49
|
};
|
50
50
|
|
51
|
+
var debounce = function(fn, delay) {
|
52
|
+
var timer;
|
53
|
+
return function() {
|
54
|
+
var self = this;
|
55
|
+
var args = arguments;
|
56
|
+
if(timer) {
|
57
|
+
clearTimeout(timer);
|
58
|
+
timer = null;
|
59
|
+
}
|
60
|
+
timer = setTimeout(function() {
|
61
|
+
fn.apply(self, args);
|
62
|
+
timer = null;
|
63
|
+
}, delay);
|
64
|
+
};
|
65
|
+
};
|
66
|
+
|
51
67
|
// work around apparent capybara-webkit issue:
|
52
68
|
// https://github.com/thoughtbot/capybara-webkit/issues/43
|
53
69
|
var Storage = localStorage || null;
|
@@ -59,7 +75,8 @@ if(Storage === null) {
|
|
59
75
|
|
60
76
|
return {
|
61
77
|
Storage: Storage,
|
62
|
-
createNote: createNote
|
78
|
+
createNote: createNote,
|
79
|
+
debounce: debounce
|
63
80
|
};
|
64
81
|
|
65
82
|
}(jQuery));
|
@@ -69,10 +86,6 @@ jQuery(document).ready(function($) {
|
|
69
86
|
|
70
87
|
var locale = document.documentElement.getAttribute("lang");
|
71
88
|
|
72
|
-
// language selection
|
73
|
-
$(".dropdown-toggle").click(function(ev) { // use Bootstrap's Dropwdown, but without the side-effects
|
74
|
-
$(this).closest(".dropdown").toggleClass("open");
|
75
|
-
});
|
76
89
|
var langWidget = $("ul.lang-widget")[0];
|
77
90
|
// primary language (converting links to radio buttons)
|
78
91
|
$("a", langWidget).each(function(i, node) {
|
@@ -9,16 +9,18 @@ return function(context) {
|
|
9
9
|
function retrieveLabel(conceptURL, el, callback) {
|
10
10
|
var datasets = $("body").data("datasets");
|
11
11
|
var proxy = $("body").data("remote-label-path");
|
12
|
+
var matchedDatasets = Object.keys(datasets).filter(function(datasetURL) {
|
13
|
+
return conceptURL.indexOf(datasetURL, 0) === 0;
|
14
|
+
});
|
12
15
|
|
13
|
-
|
14
|
-
|
15
|
-
// try to get remote label if conceptBaseURL is a iqvoc instance
|
16
|
-
if(conceptBaseURL in datasets) {
|
17
|
-
$.get(proxy, { concept_url: conceptURL }, function(data, status, xhr) {
|
18
|
-
el.text(data.label);
|
19
|
-
el.removeClass("unlabeled");
|
20
|
-
});
|
16
|
+
if (matchedDatasets.length === 0) {
|
17
|
+
return false;
|
21
18
|
}
|
19
|
+
|
20
|
+
$.get(proxy, { concept_url: conceptURL }, function(data, status, xhr) {
|
21
|
+
el.text(data.label);
|
22
|
+
el.removeClass("unlabeled");
|
23
|
+
});
|
22
24
|
}
|
23
25
|
|
24
26
|
function processNode(i, node) {
|
@@ -27,13 +29,4 @@ function processNode(i, node) {
|
|
27
29
|
retrieveLabel(uri, el);
|
28
30
|
}
|
29
31
|
|
30
|
-
function getBaseURI(url) {
|
31
|
-
var uri = new URI(url);
|
32
|
-
var parts = {
|
33
|
-
protocol: uri.protocol(),
|
34
|
-
hostname: uri.host()
|
35
|
-
};
|
36
|
-
return URI.build(parts);
|
37
|
-
}
|
38
|
-
|
39
32
|
}(jQuery));
|