iqvoc 4.6.0 → 4.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (383) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/Gemfile +5 -3
  4. data/Gemfile.lock +50 -44
  5. data/README.md +1 -1
  6. data/app/assets/javascripts/framework.js +1 -1
  7. data/app/assets/javascripts/iqvoc/entityselect.js.erb +17 -20
  8. data/app/assets/javascripts/iqvoc/iqvoc.js +2 -2
  9. data/app/assets/javascripts/iqvoc/treeview.js +1 -0
  10. data/app/assets/stylesheets/framework.css.scss +3 -1
  11. data/app/assets/stylesheets/iqvoc/components/_treeview.css.scss.erb +1 -1
  12. data/app/assets/stylesheets/iqvoc/hacks/_jquery-ui_extensions.css.scss +5 -0
  13. data/app/concerns/reverse_match_errors.rb +1 -0
  14. data/app/controllers/reverse_matches_controller.rb +2 -0
  15. data/app/helpers/concepts_helper.rb +1 -1
  16. data/app/jobs/reverse_match_job.rb +11 -3
  17. data/app/models/collection/base.rb +3 -2
  18. data/app/models/concept/base.rb +0 -1
  19. data/app/models/note/base.rb +44 -3
  20. data/app/views/concepts/hierarchical/index.html.erb +1 -1
  21. data/app/views/search_results/sections/_languages.html.erb +1 -1
  22. data/config/locales/authlogic.en.yml +3 -3
  23. data/config/locales/en.yml +1 -1
  24. data/db/migrate/20140730132113_add_type_to_users.rb +1 -1
  25. data/db/schema.rb +79 -62
  26. data/lib/iqvoc/version.rb +1 -1
  27. data/public/export/{10110.nt → 33993.nt} +0 -0
  28. data/public/export/{10528.nt → 62809.nt} +0 -0
  29. data/public/uploads/import/{01cb889ac483ce809435db5e37d01010.nt → 3981aa91cf22e26fbf6b1312b2bcdcc8.nt} +0 -0
  30. data/public/uploads/import/{05c5e3cc92a18a3ce176065485caafeb.nt → 9f9d6b4293be8def1b406156a3e2bcd9.nt} +0 -0
  31. data/public/uploads/tmp/{1400683232-10539-5676 → 1417625624-7926-3861}/hobbies.nt +0 -0
  32. data/public/uploads/tmp/{1400683420-10634-8312 → 1417625658-7975-5171}/hobbies.nt +0 -0
  33. data/test/controllers/reverse_match_test.rb +25 -0
  34. data/test/integration/create_concept_test.rb +1 -1
  35. data/test/integration/search_test.rb +1 -2
  36. data/test/test_helper.rb +6 -0
  37. data/vendor/assets/javascripts/{jquery-ui.custom.js → jquery-ui.js} +3098 -2960
  38. data/vendor/assets/stylesheets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  39. data/vendor/assets/stylesheets/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
  40. data/vendor/assets/{images → stylesheets/images}/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  41. data/vendor/assets/{images → stylesheets/images}/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  42. data/vendor/assets/{images → stylesheets/images}/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  43. data/vendor/assets/{images → stylesheets/images}/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  44. data/vendor/assets/{images → stylesheets/images}/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  45. data/vendor/assets/{images → stylesheets/images}/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  46. data/vendor/assets/{images → stylesheets/images}/ui-icons_217bc0_256x240.png +0 -0
  47. data/vendor/assets/{images → stylesheets/images}/ui-icons_2e83ff_256x240.png +0 -0
  48. data/vendor/assets/{images → stylesheets/images}/ui-icons_469bdd_256x240.png +0 -0
  49. data/vendor/assets/{images → stylesheets/images}/ui-icons_6da8d5_256x240.png +0 -0
  50. data/vendor/assets/{images → stylesheets/images}/ui-icons_cd0a0a_256x240.png +0 -0
  51. data/vendor/assets/{images → stylesheets/images}/ui-icons_d8e7f3_256x240.png +0 -0
  52. data/vendor/assets/{images → stylesheets/images}/ui-icons_f9bd01_256x240.png +0 -0
  53. data/vendor/assets/stylesheets/{jquery-ui-1.10.3.custom.css.scss → jquery-ui.css.scss} +46 -61
  54. data/vendor/assets/stylesheets/jquery-ui.structure.css.scss +317 -0
  55. data/vendor/assets/stylesheets/jquery-ui.theme.css.scss +410 -0
  56. metadata +28 -352
  57. data/config/initializers/secret_token.rb +0 -28
  58. data/public/export/11105.nt +0 -28
  59. data/public/export/11353.nt +0 -28
  60. data/public/export/11790.nt +0 -28
  61. data/public/export/12931.nt +0 -1
  62. data/public/export/1385.nt +0 -28
  63. data/public/export/15083.nt +0 -28
  64. data/public/export/16538.nt +0 -28
  65. data/public/export/1879.nt +0 -28
  66. data/public/export/19502.nt +0 -28
  67. data/public/export/19834.nt +0 -28
  68. data/public/export/21183.nt +0 -28
  69. data/public/export/21512.nt +0 -28
  70. data/public/export/22034.nt +0 -28
  71. data/public/export/2434.nt +0 -28
  72. data/public/export/24841.nt +0 -28
  73. data/public/export/26109.nt +0 -28
  74. data/public/export/27784.nt +0 -28
  75. data/public/export/28422.nt +0 -28
  76. data/public/export/28627.nt +0 -28
  77. data/public/export/29185.nt +0 -28
  78. data/public/export/30124.nt +0 -28
  79. data/public/export/305768326302831570152374795088739069204.nt +0 -447
  80. data/public/export/3118.nt +0 -1
  81. data/public/export/31250.nt +0 -28
  82. data/public/export/31272.nt +0 -28
  83. data/public/export/31875.nt +0 -28
  84. data/public/export/32197.nt +0 -28
  85. data/public/export/32223.nt +0 -28
  86. data/public/export/32324.nt +0 -28
  87. data/public/export/33084.nt +0 -28
  88. data/public/export/33257.nt +0 -28
  89. data/public/export/33545.nt +0 -28
  90. data/public/export/34179.nt +0 -28
  91. data/public/export/34582.nt +0 -1
  92. data/public/export/35271.nt +0 -28
  93. data/public/export/35426.nt +0 -36
  94. data/public/export/36234.nt +0 -28
  95. data/public/export/36363.nt +0 -28
  96. data/public/export/36559.nt +0 -28
  97. data/public/export/37333.nt +0 -28
  98. data/public/export/38332.nt +0 -28
  99. data/public/export/38461.nt +0 -28
  100. data/public/export/38721.nt +0 -28
  101. data/public/export/39469.nt +0 -28
  102. data/public/export/40637.nt +0 -28
  103. data/public/export/40746.nt +0 -28
  104. data/public/export/40987.nt +0 -28
  105. data/public/export/4297.nt +0 -28
  106. data/public/export/43236.nt +0 -28
  107. data/public/export/43644.nt +0 -28
  108. data/public/export/45021.nt +0 -28
  109. data/public/export/45120.nt +0 -1
  110. data/public/export/45552.nt +0 -28
  111. data/public/export/46172.nt +0 -28
  112. data/public/export/46739.nt +0 -28
  113. data/public/export/4929.nt +0 -28
  114. data/public/export/50335.nt +0 -28
  115. data/public/export/51428.nt +0 -28
  116. data/public/export/51494.nt +0 -28
  117. data/public/export/51877.nt +0 -1
  118. data/public/export/5359.nt +0 -28
  119. data/public/export/53989.nt +0 -28
  120. data/public/export/54563.nt +0 -28
  121. data/public/export/54634.nt +0 -28
  122. data/public/export/54759.nt +0 -28
  123. data/public/export/54895.nt +0 -28
  124. data/public/export/55279.nt +0 -28
  125. data/public/export/5567.nt +0 -28
  126. data/public/export/57502.nt +0 -28
  127. data/public/export/58015.nt +0 -28
  128. data/public/export/58964.nt +0 -28
  129. data/public/export/60674.nt +0 -28
  130. data/public/export/61265.nt +0 -28
  131. data/public/export/61895.nt +0 -28
  132. data/public/export/62372.nt +0 -28
  133. data/public/export/62469.nt +0 -28
  134. data/public/export/62880.nt +0 -28
  135. data/public/export/63673.nt +0 -28
  136. data/public/export/64151.nt +0 -28
  137. data/public/export/64891.nt +0 -28
  138. data/public/export/7089.nt +0 -28
  139. data/public/export/7365.nt +0 -28
  140. data/public/export/7473.nt +0 -28
  141. data/public/export/7939.nt +0 -28
  142. data/public/export/8509.nt +0 -28
  143. data/public/export/9370.nt +0 -28
  144. data/public/export/9600.nt +0 -28
  145. data/public/uploads/import/0a539be7eb44e0aa1f4eebe485e67d32.nt +0 -260
  146. data/public/uploads/import/0ceccdec88406d5de2f9c91d6c32bd63.nt +0 -260
  147. data/public/uploads/import/0d199979d7a157c89b517b0121f220de.nt +0 -259
  148. data/public/uploads/import/0d1cb3a3c90c406735065c39ccf36882.nt +0 -260
  149. data/public/uploads/import/1146b2566f01d412f53aefb921b8abf6.nt +0 -259
  150. data/public/uploads/import/12f08c2e20a05620666d39cabb148b90.nt +0 -259
  151. data/public/uploads/import/136c72e86af49d44b885c609a97050e5.nt +0 -259
  152. data/public/uploads/import/1406b0ff2e1b68d38bdafe54a54e7981.nt +0 -259
  153. data/public/uploads/import/142764b92a63f20feb0e6d1398517394.nt +0 -259
  154. data/public/uploads/import/1618cd8f36abb0d25d5cee9eef4162dd.nt +0 -259
  155. data/public/uploads/import/1838327ebac2c062a9036e0187d8c607.nt +0 -259
  156. data/public/uploads/import/1be9a54bb74a467fbd6321190e10a23b.nt +0 -259
  157. data/public/uploads/import/1eb3eabccf76ddb2a6bba92eac8b84b9.nt +0 -259
  158. data/public/uploads/import/1f147a50c4203690ea4b1ac66f748537.nt +0 -259
  159. data/public/uploads/import/22be1db3763deeafb6e9bdc8af7de52f.nt +0 -259
  160. data/public/uploads/import/24ed4b1b10f4c9facb797d8055f3cc59.nt +0 -259
  161. data/public/uploads/import/25634d3f1c727c79e47104d45a169d22.nt +0 -259
  162. data/public/uploads/import/25eb335ad83136428eedfd427409f5bb.nt +0 -259
  163. data/public/uploads/import/283e799cc2342cf33550a1668e760021.nt +0 -259
  164. data/public/uploads/import/28848fff43a56cba0924478a015e4c8e.nt +0 -259
  165. data/public/uploads/import/28a2a5974b1eed79e85d92046fe58d22.nt +0 -260
  166. data/public/uploads/import/296bea9c560bb915222cb892124c9bab.nt +0 -260
  167. data/public/uploads/import/2ac22cf493b3991b6524e7bf7c9c9483.nt +0 -260
  168. data/public/uploads/import/2b0de64784aa4f574c74bd7a5ca67e81.nt +0 -259
  169. data/public/uploads/import/2be31e7e2493319f9cb7e210eabb84b6.nt +0 -259
  170. data/public/uploads/import/2f7a5213d7e134237b69cbdc9c8e0985.nt +0 -260
  171. data/public/uploads/import/3025f07688ed08e81c430eed8e5e2b2c.nt +0 -259
  172. data/public/uploads/import/3062df55d07d30a0db0b00fc59a066ef.nt +0 -259
  173. data/public/uploads/import/35901d7daa6f90eb09b508eab2f19f97.nt +0 -259
  174. data/public/uploads/import/35943ba240eb26dc43092746316a666a.nt +0 -260
  175. data/public/uploads/import/3a39842a235c47d341390bb5ff76b013.nt +0 -259
  176. data/public/uploads/import/4217de34967f03696a2d1c4ec832b395.nt +0 -259
  177. data/public/uploads/import/432a521429991340c75d39069672f200.nt +0 -259
  178. data/public/uploads/import/4410370b7349278a941ec73edc506afb.nt +0 -260
  179. data/public/uploads/import/44f43bafabc21e6a080bb820b86c8efa.nt +0 -259
  180. data/public/uploads/import/4910bf38577bcef7ca835225a22d04cf.nt +0 -259
  181. data/public/uploads/import/4a1092bfdd2c3e6cd684d00f2ebb48a0.nt +0 -259
  182. data/public/uploads/import/4a924fe4d94485b794a0ac4ae2dbe7b2.nt +0 -259
  183. data/public/uploads/import/4ab869eeeec7deaf5840548196350ffe.nt +0 -260
  184. data/public/uploads/import/4d8c90b9e5b7a06e40dc9b426f19d762.nt +0 -259
  185. data/public/uploads/import/4f884498309031e9a3b75c5d7c59b353.nt +0 -260
  186. data/public/uploads/import/503e198ce4ec0e311db1d06fc2b6962a.nt +0 -259
  187. data/public/uploads/import/51fcfdd1ba9e57f7afd8bfb3135b18be.nt +0 -259
  188. data/public/uploads/import/525b24358e3b1a5afd18bbbe930bcb35.nt +0 -259
  189. data/public/uploads/import/542a2a3b0a62b9599922a67a5085c625.nt +0 -259
  190. data/public/uploads/import/5572705385339b834e975f5d7f26f89a.nt +0 -259
  191. data/public/uploads/import/56aafaf5adcdd148722aeaf0b37a2ba3.nt +0 -259
  192. data/public/uploads/import/59b6122c9a524891ae8dadf34e04f925.nt +0 -259
  193. data/public/uploads/import/5d4578b7bb3e3f2067f354be5b68d08f.nt +0 -259
  194. data/public/uploads/import/645eb1a598ae7003b45b29176587088b.nt +0 -259
  195. data/public/uploads/import/64cea1620f460841301aa57d23e6223c.nt +0 -259
  196. data/public/uploads/import/6bee752d1b71422389551999e1c29af9.nt +0 -259
  197. data/public/uploads/import/6c03e1aa271ca4613340130d16722850.nt +0 -259
  198. data/public/uploads/import/6d829ce927bca0d0291d3ca94c87d47d.nt +0 -259
  199. data/public/uploads/import/7019eec0ddbd6deccfa69f564e03007d.nt +0 -259
  200. data/public/uploads/import/70dcaf9bcb39a21172db26e20ef3abb1.nt +0 -259
  201. data/public/uploads/import/7c7f872865d77373f4e5d12d3b46c6d1.nt +0 -259
  202. data/public/uploads/import/7d630e4ae70fcdef7a26a5f54be1c87d.nt +0 -260
  203. data/public/uploads/import/7e2154e0fb9ecfa38d7d1791ba1f91e2.nt +0 -259
  204. data/public/uploads/import/7f5864cd2bb3608a478b6cacf213b6ef.nt +0 -259
  205. data/public/uploads/import/7fd575d1e51e867294cc3c55dd7b86d3.nt +0 -259
  206. data/public/uploads/import/81e614eb844d0a6e07724df0e0a391af.nt +0 -259
  207. data/public/uploads/import/8635fc73b0ad52e5531f6542cf73aab0.nt +0 -259
  208. data/public/uploads/import/87e8ab3b30135925cd296a4f105fdf28.nt +0 -259
  209. data/public/uploads/import/88f3ede5c716bcdc9ac4b16361f6014c.nt +0 -259
  210. data/public/uploads/import/8a09903d5ce62375eb315fb5a28cfb1e.nt +0 -259
  211. data/public/uploads/import/8dd67edd0888cc10c181b0cb13f114a5.nt +0 -260
  212. data/public/uploads/import/945e467cd3b86903a712322622403350.nt +0 -259
  213. data/public/uploads/import/947fc847742818ad2f8946150fa68280.nt +0 -259
  214. data/public/uploads/import/9668f439f7429886747a4981c53d2f7b.nt +0 -259
  215. data/public/uploads/import/97bf213b1827e1b3fe4a93f660cd297b.nt +0 -260
  216. data/public/uploads/import/9cc1c8c8530900bb42723b35a85c997a.nt +0 -260
  217. data/public/uploads/import/a34ebe5f52348d8e0690efbbd7dbb29b.nt +0 -259
  218. data/public/uploads/import/a6362a3aa7b0154ee5881aa4e97e4fc1.nt +0 -259
  219. data/public/uploads/import/acfb67a494ba87573b3cdd7997c7aba2.nt +0 -259
  220. data/public/uploads/import/ae888974bc1697ae1949a95dbcaa104b.nt +0 -259
  221. data/public/uploads/import/b238195b0159fd1aca793e33ea179b1d.nt +0 -259
  222. data/public/uploads/import/b36159aad53d09f5e6ca12e0dcea000c.nt +0 -259
  223. data/public/uploads/import/b42cf56722b79ef7e6730d19130d9dfd.nt +0 -259
  224. data/public/uploads/import/b54ffcb43a4c939b339fca358223177d.nt +0 -260
  225. data/public/uploads/import/bc140bce0ab1818edd55350b793eb36c.nt +0 -259
  226. data/public/uploads/import/bdfe458413c233f7c2e96041b8c2aa9d.nt +0 -259
  227. data/public/uploads/import/bf0168c5d5f472442707ff76115480b0.nt +0 -259
  228. data/public/uploads/import/c0479e6569a5cbd8fc74702c165f71b5.nt +0 -259
  229. data/public/uploads/import/c2c0372e27f625ca1ce1aa527059d6d2.nt +0 -259
  230. data/public/uploads/import/c43fbad62457debced3e2b5f175b633a.nt +0 -259
  231. data/public/uploads/import/c4d8f635e4bb5601713bbf9bc456c797.nt +0 -259
  232. data/public/uploads/import/c61960b982b3a8308e41de6cf094255d.nt +0 -259
  233. data/public/uploads/import/c63faf859a988775b27acb8e8712f13b.nt +0 -259
  234. data/public/uploads/import/cb1b6b27edfcc404ca469fa3ec6b0664.nt +0 -259
  235. data/public/uploads/import/cb37615bf36a26ecbfd6e0f738302d17.nt +0 -259
  236. data/public/uploads/import/d0369e2cb8216ddc3858a5ae93307da2.nt +0 -259
  237. data/public/uploads/import/d395b7bd9126c74ee3586b849768ef14.nt +0 -260
  238. data/public/uploads/import/d5d835b59eae82a208653c1b30ad74c9.nt +0 -259
  239. data/public/uploads/import/d82612b6c9d65e2f2dcfbda202b59a90.nt +0 -259
  240. data/public/uploads/import/dced9c69e9da871dfb3ed21c19d30d4c.nt +0 -259
  241. data/public/uploads/import/df361efdd673094c731454a91d925850.nt +0 -259
  242. data/public/uploads/import/df66a381628757d745ae3b60642c3746.nt +0 -260
  243. data/public/uploads/import/e1c59deb5c9119a65787bc5c2d71d678.nt +0 -259
  244. data/public/uploads/import/e2242e8bc7216edacba54071db90e2f7.nt +0 -259
  245. data/public/uploads/import/e3d2d0b824f8c45aae697261a4dbe891.nt +0 -259
  246. data/public/uploads/import/e59bb2aced9152cc0c9a8b1be30bf7b0.nt +0 -259
  247. data/public/uploads/import/e9a6f6db0a5a7e13b6eb576a8f724347.nt +0 -259
  248. data/public/uploads/import/ea69b273df07fb624312cbf853c434f4.nt +0 -259
  249. data/public/uploads/import/eaa64a373eab2b1ccf3a0caf4b9a9b36.nt +0 -259
  250. data/public/uploads/import/eaec06e06215273b63df2bfbfcd1be1f.nt +0 -260
  251. data/public/uploads/import/ed37994c6a8c15cc9dfcc5f0fc98d25e.nt +0 -259
  252. data/public/uploads/import/ef8c5b07b56a2f5bfd0818d146b54ad0.nt +0 -259
  253. data/public/uploads/import/f02c74ffa5f9b0247ed608654d69afbe.nt +0 -260
  254. data/public/uploads/import/f19ecbe95745af34dc11c7ee3a185250.nt +0 -260
  255. data/public/uploads/import/f1f6bbcef457c577c6cf8a41c332ed52.nt +0 -259
  256. data/public/uploads/import/f24e1405527ac90b18fc4b9103b0356b.nt +0 -259
  257. data/public/uploads/import/f324628e42cd2165e0befb2dc9e19ec3.nt +0 -259
  258. data/public/uploads/import/f4f4b5eb4283efc264b2e29b728b45ce.nt +0 -259
  259. data/public/uploads/import/f6cda0379fadb6b9ed88b59b04d1544a.nt +0 -259
  260. data/public/uploads/import/f8eb5272e6cc4b691765b370685b634e.nt +0 -260
  261. data/public/uploads/import/f92c5202d53cf595d63051016ebe2aed.nt +0 -259
  262. data/public/uploads/import/f9948cb7e270f1582313d9d64a0013f4.nt +0 -259
  263. data/public/uploads/tmp/1399391854-10068-6618/hobbies.nt +0 -260
  264. data/public/uploads/tmp/1399391911-10213-8446/hobbies.nt +0 -260
  265. data/public/uploads/tmp/1399392015-10496-2495/hobbies.nt +0 -260
  266. data/public/uploads/tmp/1399465936-82819-2227/hobbies.nt +0 -260
  267. data/public/uploads/tmp/1399562287-11058-4844/hobbies.nt +0 -260
  268. data/public/uploads/tmp/1399562349-11220-5006/hobbies.nt +0 -260
  269. data/public/uploads/tmp/1399562606-12081-8172/hobbies.nt +0 -260
  270. data/public/uploads/tmp/1399562663-12419-6959/hobbies.nt +0 -260
  271. data/public/uploads/tmp/1399562758-12675-1044/hobbies.nt +0 -260
  272. data/public/uploads/tmp/1399563325-14184-4165/hobbies.nt +0 -260
  273. data/public/uploads/tmp/1399563511-14691-1597/hobbies.nt +0 -260
  274. data/public/uploads/tmp/1399563577-14899-9811/hobbies.nt +0 -260
  275. data/public/uploads/tmp/1399563654-15101-9704/hobbies.nt +0 -260
  276. data/public/uploads/tmp/1399563789-15465-3853/hobbies.nt +0 -260
  277. data/public/uploads/tmp/1399564038-16136-7758/hobbies.nt +0 -260
  278. data/public/uploads/tmp/1399564391-17273-4324/hobbies.nt +0 -260
  279. data/public/uploads/tmp/1399565011-19048-6725/hobbies.nt +0 -260
  280. data/public/uploads/tmp/1399565066-19204-6162/hobbies.nt +0 -260
  281. data/public/uploads/tmp/1399639727-33218-9866/hobbies.nt +0 -260
  282. data/public/uploads/tmp/1399642528-42021-8916/hobbies.nt +0 -260
  283. data/public/uploads/tmp/1399642763-42734-7348/hobbies.nt +0 -260
  284. data/public/uploads/tmp/1399886894-13606-2429/hobbies.nt +0 -260
  285. data/public/uploads/tmp/1400683468-10666-6540/hobbies.nt +0 -259
  286. data/public/uploads/tmp/1400684714-11424-9829/hobbies.nt +0 -259
  287. data/public/uploads/tmp/1400846672-62648-9413/hobbies.nt +0 -259
  288. data/public/uploads/tmp/1400846766-62697-7073/hobbies.nt +0 -259
  289. data/public/uploads/tmp/1401180379-3162-2871/hobbies.nt +0 -259
  290. data/public/uploads/tmp/1401185202-4377-2768/hobbies.nt +0 -259
  291. data/public/uploads/tmp/1401192012-6573-2832/hobbies.nt +0 -259
  292. data/public/uploads/tmp/1401194508-7699-9522/hobbies.nt +0 -259
  293. data/public/uploads/tmp/1401194627-7742-0813/hobbies.nt +0 -259
  294. data/public/uploads/tmp/1401194954-7841-9994/hobbies.nt +0 -259
  295. data/public/uploads/tmp/1401195326-7932-3790/hobbies.nt +0 -259
  296. data/public/uploads/tmp/1401206318-10643-2808/hobbies.nt +0 -259
  297. data/public/uploads/tmp/1401292131-92601-6112/hobbies.nt +0 -259
  298. data/public/uploads/tmp/1401292181-92670-8615/hobbies.nt +0 -259
  299. data/public/uploads/tmp/1401292252-92839-0886/hobbies.nt +0 -259
  300. data/public/uploads/tmp/1401292294-92900-5587/hobbies.nt +0 -259
  301. data/public/uploads/tmp/1401292390-92976-9639/hobbies.nt +0 -259
  302. data/public/uploads/tmp/1401701949-3140-4347/hobbies.nt +0 -259
  303. data/public/uploads/tmp/1401702355-40904-9058/hobbies.nt +0 -259
  304. data/public/uploads/tmp/1401702361-40926-1371/hobbies.nt +0 -259
  305. data/public/uploads/tmp/1401702406-40992-5615/hobbies.nt +0 -259
  306. data/public/uploads/tmp/1401702475-41050-2716/hobbies.nt +0 -259
  307. data/public/uploads/tmp/1401702625-41136-3304/hobbies.nt +0 -259
  308. data/public/uploads/tmp/1401702771-41202-1777/hobbies.nt +0 -259
  309. data/public/uploads/tmp/1401704263-41803-0906/hobbies.nt +0 -259
  310. data/public/uploads/tmp/1401704312-41845-2277/hobbies.nt +0 -259
  311. data/public/uploads/tmp/1401704455-41906-3348/hobbies.nt +0 -259
  312. data/public/uploads/tmp/1401704517-41941-3825/hobbies.nt +0 -259
  313. data/public/uploads/tmp/1401704557-42078-2926/hobbies.nt +0 -259
  314. data/public/uploads/tmp/1401704659-42140-2026/hobbies.nt +0 -259
  315. data/public/uploads/tmp/1401704727-42194-2926/hobbies.nt +0 -259
  316. data/public/uploads/tmp/1401704810-42233-0719/hobbies.nt +0 -259
  317. data/public/uploads/tmp/1401704877-42346-6423/hobbies.nt +0 -259
  318. data/public/uploads/tmp/1401704969-42396-2636/hobbies.nt +0 -259
  319. data/public/uploads/tmp/1401706200-42741-9489/hobbies.nt +0 -259
  320. data/public/uploads/tmp/1401706505-42885-6630/hobbies.nt +0 -259
  321. data/public/uploads/tmp/1401706579-42925-3938/hobbies.nt +0 -259
  322. data/public/uploads/tmp/1401706998-43068-7269/hobbies.nt +0 -259
  323. data/public/uploads/tmp/1401707073-43147-4480/hobbies.nt +0 -259
  324. data/public/uploads/tmp/1401707148-43190-8990/hobbies.nt +0 -259
  325. data/public/uploads/tmp/1401707185-43233-6339/hobbies.nt +0 -259
  326. data/public/uploads/tmp/1401707525-43306-5760/hobbies.nt +0 -259
  327. data/public/uploads/tmp/1401716194-45552-4247/hobbies.nt +0 -259
  328. data/public/uploads/tmp/1401716269-45634-6256/hobbies.nt +0 -259
  329. data/public/uploads/tmp/1401716431-45713-6690/hobbies.nt +0 -259
  330. data/public/uploads/tmp/1401717803-46392-3771/hobbies.nt +0 -259
  331. data/public/uploads/tmp/1401717970-46482-3771/hobbies.nt +0 -259
  332. data/public/uploads/tmp/1401719163-46906-3771/hobbies.nt +0 -259
  333. data/public/uploads/tmp/1401719307-46967-3771/hobbies.nt +0 -259
  334. data/public/uploads/tmp/1401719376-47013-3771/hobbies.nt +0 -259
  335. data/public/uploads/tmp/1401719630-47114-3771/hobbies.nt +0 -259
  336. data/public/uploads/tmp/1401719982-47199-3873/hobbies.nt +0 -259
  337. data/public/uploads/tmp/1401720178-47285-9163/hobbies.nt +0 -259
  338. data/public/uploads/tmp/1401720378-47376-3771/hobbies.nt +0 -259
  339. data/public/uploads/tmp/1401720550-47464-3771/hobbies.nt +0 -259
  340. data/public/uploads/tmp/1401720661-47532-3771/hobbies.nt +0 -259
  341. data/public/uploads/tmp/1401721032-47662-3771/hobbies.nt +0 -259
  342. data/public/uploads/tmp/1401721110-47707-3771/hobbies.nt +0 -259
  343. data/public/uploads/tmp/1401722057-48025-3771/hobbies.nt +0 -259
  344. data/public/uploads/tmp/1401722131-48079-3771/hobbies.nt +0 -259
  345. data/public/uploads/tmp/1401722177-48112-3771/hobbies.nt +0 -259
  346. data/public/uploads/tmp/1401722330-48176-3771/hobbies.nt +0 -259
  347. data/public/uploads/tmp/1401722430-48237-4227/hobbies.nt +0 -259
  348. data/public/uploads/tmp/1401722732-48343-4227/hobbies.nt +0 -259
  349. data/public/uploads/tmp/1401722909-48424-1412/hobbies.nt +0 -259
  350. data/public/uploads/tmp/1401723009-48482-7948/hobbies.nt +0 -259
  351. data/public/uploads/tmp/1401723431-48680-9071/hobbies.nt +0 -259
  352. data/public/uploads/tmp/1401724808-49229-3988/hobbies.nt +0 -259
  353. data/public/uploads/tmp/1401725005-49344-4227/hobbies.nt +0 -259
  354. data/public/uploads/tmp/1401801415-57643-7508/hobbies.nt +0 -259
  355. data/public/uploads/tmp/1401801470-57683-1511/hobbies.nt +0 -259
  356. data/public/uploads/tmp/1401801589-57766-6716/hobbies.nt +0 -259
  357. data/public/uploads/tmp/1401801648-57810-6653/hobbies.nt +0 -259
  358. data/public/uploads/tmp/1401801703-57902-1218/hobbies.nt +0 -259
  359. data/public/uploads/tmp/1401801780-57957-6963/hobbies.nt +0 -259
  360. data/public/uploads/tmp/1401801876-58010-6576/hobbies.nt +0 -259
  361. data/public/uploads/tmp/1401801925-58061-5018/hobbies.nt +0 -259
  362. data/public/uploads/tmp/1401801966-58088-4598/hobbies.nt +0 -259
  363. data/public/uploads/tmp/1401802064-58134-0309/hobbies.nt +0 -259
  364. data/public/uploads/tmp/1401802128-58183-5882/hobbies.nt +0 -259
  365. data/public/uploads/tmp/1401802254-58261-9292/hobbies.nt +0 -259
  366. data/public/uploads/tmp/1401802305-58305-0716/hobbies.nt +0 -259
  367. data/public/uploads/tmp/1401802559-58393-8087/hobbies.nt +0 -259
  368. data/public/uploads/tmp/1401802603-58429-5414/hobbies.nt +0 -259
  369. data/public/uploads/tmp/1401802704-58494-3176/hobbies.nt +0 -259
  370. data/public/uploads/tmp/1401876393-11719-7974/hobbies.nt +0 -259
  371. data/public/uploads/tmp/1401880994-13325-5134/hobbies.nt +0 -259
  372. data/public/uploads/tmp/1401881408-13497-2210/hobbies.nt +0 -259
  373. data/public/uploads/tmp/1402407940-72993-0117/hobbies.nt +0 -259
  374. data/public/uploads/tmp/1403276908-17566-3335/hobbies.nt +0 -259
  375. data/public/uploads/tmp/1403276972-17606-3705/hobbies.nt +0 -259
  376. data/public/uploads/tmp/1403277054-17662-2528/hobbies.nt +0 -259
  377. data/public/uploads/tmp/1405605924-28482-6761/hobbies.nt +0 -259
  378. data/public/uploads/tmp/1405606039-28627-4530/hobbies.nt +0 -259
  379. data/public/uploads/tmp/1405606796-29190-4080/hobbies.nt +0 -259
  380. data/public/uploads/tmp/1414071246-18076-3637/hobbies.nt +0 -259
  381. data/test/integration/client_augmentation_test.rb +0 -57
  382. data/vendor/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  383. data/vendor/assets/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e268fe56c175a3458dac065834dd636bf052d8d
4
- data.tar.gz: 2a5ca97086c34db6276438289449944b8d14b74a
3
+ metadata.gz: 132a0771d607c401f8087bcab326829c6cd5d2af
4
+ data.tar.gz: 5009421fd2fd764c13ef72b863431ad3df2363ff
5
5
  SHA512:
6
- metadata.gz: 6cd9c600d8a7239a853edcb2289c6b5eae38c7abce5eea6be58ab7eab964c2d67594f1b09a5416d75fb95b760d8d9f2eaf9582607830971fec3d371c5479bbab
7
- data.tar.gz: 9b78e701c581c5e483620338e2faf769702b351ed881455663d90b4a08e04496b130259c4289fa4ac05893818d57963fcf550f591b47691f02205c43308da023
6
+ metadata.gz: 8eea3290093190f8a3879501f72fb14291635ee0abac756fb5f15c31cc43424af6c3ffee8a41a35ef8fecf6712014ae23182d5eeea44b8734e9f10c16a899f02
7
+ data.tar.gz: 62625006312569ee9b214fd7475b9d7db70e5607019bd934e1ce186cbbd54d097c01548938869b0818882fff847825918822cb9f973dc83f31a6bf62200cacec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [4.6.1]
2
+
3
+ We're planning to release 4.7.0 shortly after this patch release:
4
+
5
+ * Fixed: users were prevented from logging in
6
+ * Fixed: collections lost their concepts after saving
7
+ * Fixed: search for notes didn't yield results when filtered for a certain
8
+ collection
9
+ * Fixed: right click was disabled on tree elements
10
+ * Fixed: several visual glitches in date pickers and autocomplete lists
11
+ * Bugfixes
12
+
1
13
  ## [4.6.0]
2
14
 
3
15
  * [Reverse matches](https://github.com/innoq/iqvoc/wiki/Interconnecting-iQvoc#reverse-matches)
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.1.3'
22
+ gem 'rails', '4.1.8'
23
23
  gem 'kaminari'
24
24
  gem 'kaminari-bootstrap', '~> 3.0.1'
25
25
  gem 'authlogic', '~> 3.4.2'
@@ -35,8 +35,8 @@ gem 'nokogiri', '~> 1.6.0'
35
35
  gem 'linkeddata'
36
36
  gem 'uglifier'
37
37
  gem 'sass-rails', '~> 4.0.3'
38
- gem 'bootstrap-sass', '~> 3.1.1.0'
39
- gem 'bootstrap_form', '~> 2.1.1'
38
+ gem 'bootstrap-sass', '~> 3.3.1.0'
39
+ gem 'bootstrap_form', '~> 2.2.0'
40
40
  gem 'font-awesome-rails'
41
41
  gem 'apipie-rails'
42
42
  gem 'maruku', require: false
@@ -59,6 +59,7 @@ group :development, :test do
59
59
  gem 'sqlite3'
60
60
  gem 'spring'
61
61
  gem 'pry-rails'
62
+ gem 'pry-remote'
62
63
  gem 'hirb-unicode'
63
64
  gem 'cane'
64
65
  end
@@ -75,6 +76,7 @@ group :test do
75
76
  gem 'capybara', '~> 2.2.1'
76
77
  gem 'poltergeist', '~> 1.5.0'
77
78
  gem 'webmock'
79
+ gem 'simplecov'
78
80
  end
79
81
 
80
82
  group :production do
data/Gemfile.lock CHANGED
@@ -1,25 +1,25 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- actionmailer (4.1.3)
5
- actionpack (= 4.1.3)
6
- actionview (= 4.1.3)
7
- mail (~> 2.5.4)
8
- actionpack (4.1.3)
9
- actionview (= 4.1.3)
10
- activesupport (= 4.1.3)
4
+ actionmailer (4.1.8)
5
+ actionpack (= 4.1.8)
6
+ actionview (= 4.1.8)
7
+ mail (~> 2.5, >= 2.5.4)
8
+ actionpack (4.1.8)
9
+ actionview (= 4.1.8)
10
+ activesupport (= 4.1.8)
11
11
  rack (~> 1.5.2)
12
12
  rack-test (~> 0.6.2)
13
- actionview (4.1.3)
14
- activesupport (= 4.1.3)
13
+ actionview (4.1.8)
14
+ activesupport (= 4.1.8)
15
15
  builder (~> 3.1)
16
16
  erubis (~> 2.7.0)
17
- activemodel (4.1.3)
18
- activesupport (= 4.1.3)
17
+ activemodel (4.1.8)
18
+ activesupport (= 4.1.8)
19
19
  builder (~> 3.1)
20
- activerecord (4.1.3)
21
- activemodel (= 4.1.3)
22
- activesupport (= 4.1.3)
20
+ activerecord (4.1.8)
21
+ activemodel (= 4.1.8)
22
+ activesupport (= 4.1.8)
23
23
  arel (~> 5.0.0)
24
24
  activerecord-jdbc-adapter (1.3.9)
25
25
  activerecord (>= 2.2)
@@ -29,7 +29,7 @@ GEM
29
29
  activerecord-jdbcsqlite3-adapter (1.3.9)
30
30
  activerecord-jdbc-adapter (~> 1.3.9)
31
31
  jdbc-sqlite3 (~> 3.7.2)
32
- activesupport (4.1.3)
32
+ activesupport (4.1.8)
33
33
  i18n (~> 0.6, >= 0.6.9)
34
34
  json (~> 1.7, >= 1.7.7)
35
35
  minitest (~> 5.1)
@@ -49,9 +49,9 @@ GEM
49
49
  erubis (>= 2.6.6)
50
50
  binding_of_caller (0.7.2)
51
51
  debug_inspector (>= 0.0.1)
52
- bootstrap-sass (3.1.1.1)
52
+ bootstrap-sass (3.3.1.0)
53
53
  sass (~> 3.2)
54
- bootstrap_form (2.1.1)
54
+ bootstrap_form (2.2.0)
55
55
  builder (3.2.2)
56
56
  byebug (1.8.2)
57
57
  columnize (~> 0.3.6)
@@ -83,6 +83,7 @@ GEM
83
83
  delayed_job_active_record (4.0.1)
84
84
  activerecord (>= 3.0, < 4.2)
85
85
  delayed_job (>= 3.0, < 4.1)
86
+ docile (1.1.5)
86
87
  ebnf (0.3.6)
87
88
  haml (~> 4.0)
88
89
  rdf (~> 1.1)
@@ -141,14 +142,13 @@ GEM
141
142
  rdf-turtle (>= 1.1.2)
142
143
  sparql (>= 1.1.2)
143
144
  sparql-client (>= 1.1.1)
144
- mail (2.5.4)
145
- mime-types (~> 1.16)
146
- treetop (~> 1.4.8)
145
+ mail (2.6.3)
146
+ mime-types (>= 1.16, < 3)
147
147
  maruku (0.7.2)
148
148
  method_source (0.8.2)
149
- mime-types (1.25.1)
149
+ mime-types (2.4.3)
150
150
  mini_portile (0.6.0)
151
- minitest (5.4.0)
151
+ minitest (5.4.3)
152
152
  multi_json (1.10.1)
153
153
  multipart-post (2.0.0)
154
154
  mysql2 (0.3.13)
@@ -163,7 +163,6 @@ GEM
163
163
  cliver (~> 0.3.1)
164
164
  multi_json (~> 1.0)
165
165
  websocket-driver (>= 0.2.0)
166
- polyglot (0.3.5)
167
166
  pry (0.9.12.6)
168
167
  coderay (~> 1.0)
169
168
  method_source (~> 0.8)
@@ -173,20 +172,23 @@ GEM
173
172
  pry (~> 0.9.12)
174
173
  pry-rails (0.3.2)
175
174
  pry (>= 0.9.10)
175
+ pry-remote (0.1.8)
176
+ pry (~> 0.9)
177
+ slop (~> 3.0)
176
178
  quiet_assets (1.0.3)
177
179
  railties (>= 3.1, < 5.0)
178
180
  rack (1.5.2)
179
181
  rack-test (0.6.2)
180
182
  rack (>= 1.0)
181
- rails (4.1.3)
182
- actionmailer (= 4.1.3)
183
- actionpack (= 4.1.3)
184
- actionview (= 4.1.3)
185
- activemodel (= 4.1.3)
186
- activerecord (= 4.1.3)
187
- activesupport (= 4.1.3)
183
+ rails (4.1.8)
184
+ actionmailer (= 4.1.8)
185
+ actionpack (= 4.1.8)
186
+ actionview (= 4.1.8)
187
+ activemodel (= 4.1.8)
188
+ activerecord (= 4.1.8)
189
+ activesupport (= 4.1.8)
188
190
  bundler (>= 1.3.0, < 2.0)
189
- railties (= 4.1.3)
191
+ railties (= 4.1.8)
190
192
  sprockets-rails (~> 2.0)
191
193
  rails_12factor (0.0.2)
192
194
  rails_serve_static_assets
@@ -195,12 +197,12 @@ GEM
195
197
  rails (> 3.1)
196
198
  rails_serve_static_assets (0.0.2)
197
199
  rails_stdout_logging (0.0.3)
198
- railties (4.1.3)
199
- actionpack (= 4.1.3)
200
- activesupport (= 4.1.3)
200
+ railties (4.1.8)
201
+ actionpack (= 4.1.8)
202
+ activesupport (= 4.1.8)
201
203
  rake (>= 0.8.7)
202
204
  thor (>= 0.18.1, < 2.0)
203
- rake (10.3.2)
205
+ rake (10.4.0)
204
206
  rdf (1.1.4.2)
205
207
  rdf-aggregate-repo (1.1.0)
206
208
  rdf (>= 1.1)
@@ -243,6 +245,11 @@ GEM
243
245
  sass (~> 3.2.0)
244
246
  sprockets (~> 2.8, <= 2.11.0)
245
247
  sprockets-rails (~> 2.0)
248
+ simplecov (0.9.1)
249
+ docile (~> 1.1.0)
250
+ multi_json (~> 1.0)
251
+ simplecov-html (~> 0.8.0)
252
+ simplecov-html (0.8.0)
246
253
  slop (3.6.0)
247
254
  sparql (1.1.4)
248
255
  builder (~> 3.0)
@@ -261,20 +268,17 @@ GEM
261
268
  multi_json (~> 1.0)
262
269
  rack (~> 1.0)
263
270
  tilt (~> 1.1, != 1.3.0)
264
- sprockets-rails (2.1.3)
271
+ sprockets-rails (2.2.1)
265
272
  actionpack (>= 3.0)
266
273
  activesupport (>= 3.0)
267
- sprockets (~> 2.8)
274
+ sprockets (>= 2.8, < 4.0)
268
275
  sqlite3 (1.3.9)
269
276
  sxp (0.1.5)
270
277
  thor (0.19.1)
271
278
  thread_safe (0.3.4)
272
279
  thread_safe (0.3.4-java)
273
280
  tilt (1.4.1)
274
- treetop (1.4.15)
275
- polyglot
276
- polyglot (>= 0.3.1)
277
- tzinfo (1.2.1)
281
+ tzinfo (1.2.2)
278
282
  thread_safe (~> 0.1)
279
283
  uglifier (2.5.3)
280
284
  execjs (>= 0.3.0)
@@ -302,8 +306,8 @@ DEPENDENCIES
302
306
  awesome_print
303
307
  better_errors
304
308
  binding_of_caller
305
- bootstrap-sass (~> 3.1.1.0)
306
- bootstrap_form (~> 2.1.1)
309
+ bootstrap-sass (~> 3.3.1.0)
310
+ bootstrap_form (~> 2.2.0)
307
311
  cancancan
308
312
  cane
309
313
  capybara (~> 2.2.1)
@@ -328,11 +332,13 @@ DEPENDENCIES
328
332
  poltergeist (~> 1.5.0)
329
333
  pry-byebug (~> 1.1.2)
330
334
  pry-rails
335
+ pry-remote
331
336
  quiet_assets
332
- rails (= 4.1.3)
337
+ rails (= 4.1.8)
333
338
  rails_12factor
334
339
  rails_autolink
335
340
  sass-rails (~> 4.0.3)
341
+ simplecov
336
342
  spring
337
343
  sqlite3
338
344
  uglifier
data/README.md CHANGED
@@ -86,7 +86,7 @@ overview of the possibilities.
86
86
 
87
87
  ## Documentation
88
88
 
89
- Documentation resources can be found in the [wiki](https://github.com/innoq/iqvoc/wiki/_pages).
89
+ Documentation resources can be found in the [wiki](https://github.com/innoq/iqvoc/wiki).
90
90
 
91
91
  ## Versioning
92
92
 
@@ -1,6 +1,6 @@
1
1
  //= require jquery-1.7.1
2
2
  //= require rails
3
- //= require jquery-ui.custom
3
+ //= require jquery-ui
4
4
  //= require jquery-ui.datepicker-de
5
5
  //= require tree.jquery.js
6
6
  //= require URI.js
@@ -21,16 +21,13 @@ var EntitySelector = function(node) {
21
21
  this.entities = this.getSelection();
22
22
  this.uriTemplate = this.el.data("entity-uri");
23
23
 
24
- this.noResultsMsg = {
25
- label: this.el.data("no-results-msg"),
26
- value: ''
27
- };
28
-
29
24
  var self = this;
25
+ var noResultsMsg = this.el.data("no-results-msg");
30
26
 
31
27
  this.indicator.css("visibility", "hidden");
32
28
 
33
- var selection = $.map(this.el.data("entities"), function(entity, i) {
29
+ var selection = this.el.data("entities") || [];
30
+ selection = $.map(selection, function(entity, i) {
34
31
  return self.createEntity(entity);
35
32
  });
36
33
  selection = $('<ul class="entity_list" />').append(selection);
@@ -42,15 +39,17 @@ var EntitySelector = function(node) {
42
39
  focus: function(ev, ui) { return false; },
43
40
  select: this.onSelect,
44
41
  response: function(ev, ui) {
45
- if (!ui.content.length) {
46
- ui.content.push(self.noResultsMsg);
42
+ if(!ui.content.length && noResultsMsg) {
43
+ ui.content.push({ label: noResultsMsg, value: "" });
47
44
  }
48
45
  }
46
+ }).on("keydown", function(ev){
47
+ if(ev.which === 13) { // Enter; prevent form submission
48
+ ev.preventDefault();
49
+ }
49
50
  });
50
51
 
51
- // jQuery UI does not add a type attribute
52
- // Bootstrap expects it to be there
53
- this.input.attr('type', 'text').addClass('form-control');
52
+ this.input.attr("type", "text").addClass("form-control"); // for Bootstrap
54
53
 
55
54
  this.container.append(this.bootstrapInputGroup.append(this.input).append(this.indicatorWrapper.append(this.indicator))).
56
55
  append(selection).insertAfter(node).prepend(node);
@@ -80,14 +79,6 @@ EntitySelector.sourceSelectors = {
80
79
  "default": function(callback) {
81
80
  var uri = this.el.data("query-url");
82
81
  callback(uri);
83
- },
84
- "dummy-prompt": function(callback) {
85
- var uri = this.el.data("query-url");
86
- var sources = { iQvoc: "hello", GEMET: "world" };
87
- var params = $.map(sources, function(id, name) {
88
- return confirm("include " + name) ? 'source=' + id : null;
89
- }).join("&");
90
- callback(uri + "?" + params);
91
82
  }
92
83
  };
93
84
  $.extend(EntitySelector.prototype, {
@@ -112,7 +103,13 @@ $.extend(EntitySelector.prototype, {
112
103
  if(widget.add(ui.item.value)) {
113
104
  var entity = widget.
114
105
  createEntity({ id: ui.item.value, name: ui.item.label });
115
- widget.container.find("ul").append(entity);
106
+ var list = widget.container.find("ul").append(entity);
107
+ // force redraw to work around Safari rendering bug -- FIXME: crude and uninformed
108
+ list.css("overflow", "auto");
109
+ setTimeout(function() {
110
+ list.css("overflow", "");
111
+ }, 1);
112
+
116
113
  if(widget.singular) {
117
114
  widget.input.hide();
118
115
  widget.indicatorWrapper.hide();
@@ -165,10 +165,10 @@ jQuery(document).ready(function($) {
165
165
 
166
166
  // Search
167
167
  $(".checkbox-select-all").click(function() {
168
- $(this).closest('.controls').find("input:checkbox").attr("checked", true);
168
+ $(this).closest('.language-controls').find("input:checkbox").attr("checked", true);
169
169
  });
170
170
  $(".checkbox-select-none").click(function() {
171
- $(this).closest('.controls').find("input:checkbox").attr("checked", false);
171
+ $(this).closest('.language-controls').find("input:checkbox").attr("checked", false);
172
172
  });
173
173
  $("select.search_type").change(function() {
174
174
  var result_type_filter = $(".result_type_filter");
@@ -38,6 +38,7 @@ function Treeview(container) {
38
38
  dragAndDrop: dragabbleSupport ? true : false,
39
39
  autoEscape: false,
40
40
  selectable: false,
41
+ useContextMenu: false,
41
42
  closedIcon: $('<i class="fa fa-plus-square-o"></i>'),
42
43
  openedIcon: $('<i class="fa fa-minus-square-o"></i>'),
43
44
  data: data,
@@ -1,4 +1,6 @@
1
- @import 'jquery-ui-1.10.3.custom';
1
+ @import 'jquery-ui';
2
+ @import 'jquery-ui.structure';
3
+ @import 'jquery-ui.theme';
2
4
 
3
5
  @import 'bootstrap';
4
6
  body {
@@ -68,7 +68,7 @@ ul.jqtree-tree {
68
68
  }
69
69
 
70
70
  .jqtree-toggler {
71
- background-color: #fff;
71
+ position: absolute;
72
72
  border-bottom: 0;
73
73
  color: #333;
74
74
  cursor: pointer;
@@ -7,3 +7,8 @@
7
7
  font-size: inherit;
8
8
  }
9
9
  }
10
+
11
+ .datepicker {
12
+ position: relative;
13
+ z-index: $zindex-modal;
14
+ }
@@ -12,6 +12,7 @@ module ReverseMatchErrors
12
12
  unknown_match: { status: 400, json: { type: 'unknown_match', message: 'Unknown match class.' } },
13
13
  no_referer: { status: 400, json: { type: 'no_referer', message: 'Referer is not set.' } },
14
14
  unknown_referer: { status: 403, json: { type: 'unknown_referer', message: 'Unknown referer.' } },
15
+ mapping_exists: { status: 409, json: { type: 'mapping_exists', message: 'Concept mapping exists.'} },
15
16
  in_processing: { status: 403, json: { type: 'in_processing', message: 'Concept in processing' } },
16
17
  server_error: { status: 500, json: {} }
17
18
  }
@@ -7,6 +7,8 @@ class ReverseMatchesController < ApplicationController
7
7
  # NOTE: currently it's only allowed to add matches to published concepts
8
8
  # which are _NOT_ in processing. See older commits how to work with
9
9
  # currently edited concepts
10
+ matches = @target_match_class.constantize.find_by(concept_id: @published_concept.id, value: @uri)
11
+ render_response :mapping_exists and return if matches
10
12
  unpublished_concept = @published_concept.branch(@botuser)
11
13
  unpublished_concept.save
12
14
  @target_match_class.constantize.create(concept_id: unpublished_concept.id, value: @uri)
@@ -17,7 +17,7 @@
17
17
  module ConceptsHelper
18
18
  # if `broader` is supplied, the tree's direction is reversed (descendants represent broader relations)
19
19
  def treeview(concepts, broader = false, dragabble = false)
20
- render "concepts/hierarchical/treeview", concepts: concepts, broader: broader, dragabble: false
20
+ render "concepts/hierarchical/treeview", concepts: concepts, broader: broader, dragabble: dragabble
21
21
  end
22
22
 
23
23
  # turns a hash of concept/relations pairs of arbitrary nesting depth into the
@@ -11,10 +11,18 @@ class ReverseMatchJob < Struct.new(:type, :match_class, :subject, :object, :refe
11
11
  request_method = link['method']
12
12
 
13
13
  conn = connection(request_url, { content_type: 'application/json', referer: referer })
14
- response = conn.send(request_method) do |req|
15
- req.params['match_class'] = match_class
16
- req.params['uri'] = object
14
+
15
+ begin
16
+ response = conn.send(request_method) do |req|
17
+ req.params['match_class'] = match_class
18
+ req.params['uri'] = object
19
+ end
20
+ rescue Faraday::ClientError => e
21
+ if e.response.nil? || response[:status] != 409
22
+ raise e
23
+ end
17
24
  end
25
+
18
26
  end
19
27
 
20
28
  def error(job, exception)