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
@@ -32,6 +32,8 @@ class Collection::Base < Concept::Base
32
32
  has_many :parent_collections,
33
33
  through: :parent_collection_members
34
34
 
35
+ include_to_deep_cloning(:members, :collection_members)
36
+
35
37
  after_save :regenerate_concept_members, :regenerate_collection_members
36
38
 
37
39
  validate :circular_subcollections
@@ -109,8 +111,7 @@ class Collection::Base < Concept::Base
109
111
  end
110
112
 
111
113
  def inline_member_collection_origins
112
- @member_collection_origins || collections.
113
- map { |m| m.origin }.uniq
114
+ @member_collection_origins || subcollections.map(&:origin).uniq
114
115
  end
115
116
 
116
117
  def inline_member_collections
@@ -128,7 +128,6 @@ class Concept::Base < ActiveRecord::Base
128
128
 
129
129
  has_many :collection_members, foreign_key: 'target_id', class_name: 'Collection::Member::Base', dependent: :destroy
130
130
  has_many :collections, through: :collection_members, class_name: Iqvoc::Collection.base_class_name
131
- include_to_deep_cloning(:collection_members)
132
131
 
133
132
  has_many :notations, class_name: 'Notation::Base', foreign_key: 'concept_id', dependent: :destroy
134
133
  include_to_deep_cloning :notations
@@ -28,8 +28,17 @@ class Note::Base < ActiveRecord::Base
28
28
  # ********** Associations
29
29
 
30
30
  belongs_to :owner, polymorphic: true
31
-
32
- has_many :annotations, class_name: 'Note::Annotated::Base', foreign_key: :note_id, dependent: :destroy
31
+ belongs_to :concept,
32
+ class_name: Iqvoc::Concept.base_class_name,
33
+ foreign_key: 'owner_id'
34
+ belongs_to :collection,
35
+ class_name: Iqvoc::Collection.base_class_name,
36
+ foreign_key: 'owner_id'
37
+
38
+ has_many :annotations,
39
+ class_name: 'Note::Annotated::Base',
40
+ foreign_key: :note_id,
41
+ dependent: :destroy
33
42
 
34
43
  accepts_nested_attributes_for :annotations
35
44
 
@@ -110,7 +119,39 @@ class Note::Base < ActiveRecord::Base
110
119
  def self.single_query(params = {})
111
120
  query_str = build_query_string(params)
112
121
 
113
- scope = by_query_value(query_str).by_language(params[:languages].to_a)
122
+ scope = by_query_value(query_str).
123
+ by_language(params[:languages].to_a)
124
+
125
+ case params[:for]
126
+ when 'concept'
127
+ scope = scope.where('concepts.type' => Iqvoc::Concept.base_class_name)
128
+ .references(:concepts)
129
+ owner = :concept
130
+ when 'collection'
131
+ scope = scope.where('concepts.type' => Iqvoc::Collection.base_class_name)
132
+ .references(:concepts)
133
+ owner = :collection
134
+ else
135
+ # no additional conditions
136
+ scope
137
+ end
138
+
139
+ if params[:collection_origin].present?
140
+ collection = Collection::Base.where(origin: params[:collection_origin]).last
141
+ if collection
142
+ if owner
143
+ scope = scope.includes(owner => :collection_members)
144
+ else
145
+ scope = scope.includes(:concept => :collection_members)
146
+ .includes(:collection => :collection_members)
147
+ end
148
+ scope = scope.where("#{Collection::Member::Base.table_name}.collection_id" => collection.id)
149
+ scope = scope.references(:collection_members)
150
+ else
151
+ raise "Collection with Origin #{params[:collection_origin]} not found!"
152
+ end
153
+ end
154
+
114
155
  scope = yield(scope) if block_given?
115
156
  scope.map { |result| SearchResult.new(result) }
116
157
  end
@@ -3,7 +3,7 @@
3
3
  <%= render 'concepts/sidebars/plural' %>
4
4
 
5
5
  <% if params[:published] == '0' %>
6
- <%= render "concepts/hierarchical/treeview", concepts: @concepts, broader: false, dragabble: true %>
6
+ <%= treeview @concepts, false, true %>
7
7
  <% else %>
8
8
  <%= treeview @concepts %>
9
9
  <% end %>
@@ -1,6 +1,6 @@
1
1
  <div class="form-group">
2
2
  <%= label_tag 'ds', t('txt.views.search_results.language'), :class => 'col-sm-2 control-label' %>
3
- <div class="col-sm-4">
3
+ <div class="language-controls col-sm-4">
4
4
  <% @available_languages.sort.each do |lang_tag, label| %>
5
5
  <label for="languages_<%= lang_tag %>" class="checkbox-inline">
6
6
  <%= check_box_tag "l[]", lang_tag, search_language_selected?(lang_tag) %><%= lang_tag %>
@@ -17,12 +17,12 @@
17
17
  en:
18
18
  authlogic:
19
19
  error_messages:
20
- login_blank: "can not be blank"
20
+ login_blank: "must not be empty"
21
21
  login_not_found: "is not valid"
22
22
  login_invalid: "should use only letters, numbers, spaces, and .-_@ please."
23
23
  consecutive_failed_logins_limit_exceeded: "Consecutive failed logins limit exceeded, account is disabled."
24
24
  email_invalid: "should look like an email address."
25
- password_blank: "can not be blank"
25
+ password_blank: "must not be empty"
26
26
  password_invalid: "is not valid"
27
27
  not_active: "Your account is not active"
28
28
  not_confirmed: "Your account is not confirmed"
@@ -35,4 +35,4 @@ en:
35
35
  login: login
36
36
  email: Email
37
37
  password: Password
38
- remember_me: remember me
38
+ remember_me: remember me
@@ -131,7 +131,7 @@ en:
131
131
  classifiers: "Environment classes"
132
132
  pending_jobs_header: "Pending jobs"
133
133
  pending_jobs_message: "There are pending jobs for this concept."
134
- disabled_matches_form_message: "A concept have to be published before you can assign mapping properties."
134
+ disabled_matches_form_message: "A concept needs to be published before you can assign mapping properties."
135
135
  add_match: "Creation:"
136
136
  remove_match: "Deletion:"
137
137
  job_detail: "%{match_class}-Relation of concept %{subject} from remote ontology to %{target} pending."
@@ -1,5 +1,5 @@
1
1
  class AddTypeToUsers < ActiveRecord::Migration
2
2
  def change
3
- add_column :users, :type, :string
3
+ add_column :users, :type, :string, :default => 'User'
4
4
  end
5
5
  end
data/db/schema.rb CHANGED
@@ -11,61 +11,64 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20140807123413) do
14
+ ActiveRecord::Schema.define(version: 20141204151558) do
15
15
 
16
16
  create_table "collection_members", force: true do |t|
17
- t.integer "collection_id"
18
- t.integer "target_id"
19
- t.string "type"
17
+ t.integer "collection_id", limit: 4
18
+ t.integer "target_id", limit: 4
19
+ t.string "type", limit: 255
20
20
  end
21
21
 
22
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_207ac01588", using: :btree
23
24
 
24
25
  create_table "concept_relations", force: true do |t|
25
- t.string "type"
26
- t.integer "owner_id"
27
- t.integer "target_id"
26
+ t.string "type", limit: 255
27
+ t.integer "owner_id", limit: 4
28
+ t.integer "target_id", limit: 4
28
29
  t.datetime "created_at"
29
30
  t.datetime "updated_at"
30
- t.integer "rank", default: 100
31
+ t.integer "rank", limit: 4, default: 100
31
32
  end
32
33
 
33
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_59b5dcff61", using: :btree
34
36
 
35
37
  create_table "concepts", force: true do |t|
36
- t.string "type"
38
+ t.string "type", limit: 255
37
39
  t.string "origin", limit: 4000
38
- t.integer "rev", default: 1
40
+ t.integer "rev", limit: 4, default: 1
39
41
  t.date "published_at"
40
- t.integer "published_version_id"
41
- t.integer "locked_by"
42
+ t.integer "published_version_id", limit: 4
43
+ t.integer "locked_by", limit: 4
42
44
  t.date "expired_at"
43
45
  t.date "follow_up"
44
- t.boolean "to_review"
46
+ t.boolean "to_review", limit: 1
45
47
  t.date "rdf_updated_at"
46
48
  t.datetime "created_at"
47
49
  t.datetime "updated_at"
48
- t.boolean "top_term", default: false
50
+ t.boolean "top_term", limit: 1, default: false
49
51
  end
50
52
 
53
+ add_index "concepts", ["locked_by"], name: "fk_rails_9ab9124960", using: :btree
51
54
  add_index "concepts", ["origin"], name: "ix_concepts_on_origin", length: {"origin"=>255}, using: :btree
52
55
  add_index "concepts", ["published_version_id"], name: "ix_concepts_publ_version_id", using: :btree
53
56
 
54
57
  create_table "configuration_settings", force: true do |t|
55
- t.string "key"
56
- t.string "value"
58
+ t.string "key", limit: 255
59
+ t.string "value", limit: 255
57
60
  end
58
61
 
59
62
  create_table "delayed_jobs", force: true do |t|
60
- t.integer "priority", default: 0, null: false
61
- t.integer "attempts", default: 0, null: false
62
- t.text "handler", null: false
63
- t.text "last_error"
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
64
67
  t.datetime "run_at"
65
68
  t.datetime "locked_at"
66
69
  t.datetime "failed_at"
67
- t.string "locked_by"
68
- t.string "queue"
70
+ t.string "locked_by", limit: 255
71
+ t.string "queue", limit: 255
69
72
  t.datetime "created_at"
70
73
  t.datetime "updated_at"
71
74
  end
@@ -73,57 +76,58 @@ ActiveRecord::Schema.define(version: 20140807123413) do
73
76
  add_index "delayed_jobs", ["priority", "run_at"], name: "delayed_jobs_priority", using: :btree
74
77
 
75
78
  create_table "exports", force: true do |t|
76
- t.integer "user_id"
77
- t.text "output"
78
- t.boolean "success", default: false
79
- t.integer "file_type"
80
- t.string "token"
79
+ t.integer "user_id", limit: 4
80
+ t.text "output", limit: 65535
81
+ t.boolean "success", limit: 1, default: false
82
+ t.integer "file_type", limit: 4
83
+ t.string "token", limit: 255
81
84
  t.datetime "created_at"
82
85
  t.datetime "updated_at"
83
86
  t.datetime "finished_at"
84
- t.string "default_namespace"
87
+ t.string "default_namespace", limit: 255
85
88
  end
86
89
 
87
90
  add_index "exports", ["user_id"], name: "index_exports_on_user_id", using: :btree
88
91
 
89
92
  create_table "imports", force: true do |t|
90
- t.integer "user_id"
91
- t.text "output"
92
- t.boolean "success", default: false
93
+ t.integer "user_id", limit: 4
94
+ t.text "output", limit: 65535
95
+ t.boolean "success", limit: 1, default: false
93
96
  t.datetime "created_at"
94
97
  t.datetime "updated_at"
95
98
  t.datetime "finished_at"
96
- t.string "import_file"
97
- t.boolean "publish"
98
- t.string "default_namespace"
99
+ t.string "import_file", limit: 255
100
+ t.boolean "publish", limit: 1
101
+ t.string "default_namespace", limit: 255
99
102
  end
100
103
 
101
104
  add_index "imports", ["user_id"], name: "index_imports_on_user_id", using: :btree
102
105
 
103
106
  create_table "job_relations", force: true do |t|
104
- t.string "type"
105
- t.string "owner_reference"
106
- t.string "job_id"
107
+ t.string "type", limit: 255
108
+ t.string "owner_reference", limit: 255
109
+ t.string "job_id", limit: 255
107
110
  t.datetime "created_at"
108
111
  t.datetime "updated_at"
109
- t.string "response_error"
112
+ t.string "response_error", limit: 255
110
113
  end
111
114
 
112
115
  create_table "labelings", force: true do |t|
113
- t.string "type"
114
- t.integer "owner_id"
115
- t.integer "target_id"
116
+ t.string "type", limit: 255
117
+ t.integer "owner_id", limit: 4
118
+ t.integer "target_id", limit: 4
116
119
  t.datetime "created_at"
117
120
  t.datetime "updated_at"
118
121
  end
119
122
 
120
123
  add_index "labelings", ["owner_id", "target_id", "type"], name: "ix_labelings_fk_type", using: :btree
124
+ add_index "labelings", ["target_id"], name: "fk_rails_d3560f2025", using: :btree
121
125
  add_index "labelings", ["type"], name: "ix_labelings_on_type", using: :btree
122
126
 
123
127
  create_table "labels", force: true do |t|
124
- t.string "type"
128
+ t.string "type", limit: 255
125
129
  t.string "origin", limit: 4000
126
- t.string "language"
130
+ t.string "language", limit: 255
127
131
  t.string "value", limit: 1024
128
132
  t.datetime "created_at"
129
133
  t.datetime "updated_at"
@@ -134,9 +138,9 @@ ActiveRecord::Schema.define(version: 20140807123413) do
134
138
  add_index "labels", ["origin"], name: "ix_labels_on_origin", length: {"origin"=>255}, using: :btree
135
139
 
136
140
  create_table "matches", force: true do |t|
137
- t.integer "concept_id"
138
- t.string "type"
139
- t.string "value"
141
+ t.integer "concept_id", limit: 4
142
+ t.string "type", limit: 255
143
+ t.string "value", limit: 255
140
144
  t.datetime "created_at"
141
145
  t.datetime "updated_at"
142
146
  end
@@ -145,7 +149,7 @@ ActiveRecord::Schema.define(version: 20140807123413) do
145
149
  add_index "matches", ["type"], name: "ix_matches_on_type", using: :btree
146
150
 
147
151
  create_table "notations", force: true do |t|
148
- t.integer "concept_id"
152
+ t.integer "concept_id", limit: 4
149
153
  t.string "value", limit: 4000
150
154
  t.string "data_type", limit: 4000
151
155
  end
@@ -153,13 +157,13 @@ ActiveRecord::Schema.define(version: 20140807123413) do
153
157
  add_index "notations", ["concept_id"], name: "index_notations_on_concept_id", using: :btree
154
158
 
155
159
  create_table "note_annotations", force: true do |t|
156
- t.integer "note_id"
160
+ t.integer "note_id", limit: 4
157
161
  t.string "predicate", limit: 50
158
162
  t.string "value", limit: 1024
159
163
  t.datetime "created_at"
160
164
  t.datetime "updated_at"
161
165
  t.string "namespace", limit: 50
162
- t.string "language"
166
+ t.string "language", limit: 255
163
167
  end
164
168
 
165
169
  add_index "note_annotations", ["note_id"], name: "ix_note_annotations_fk", using: :btree
@@ -170,8 +174,8 @@ ActiveRecord::Schema.define(version: 20140807123413) do
170
174
  t.string "type", limit: 50
171
175
  t.datetime "created_at"
172
176
  t.datetime "updated_at"
173
- t.integer "owner_id"
174
- t.string "owner_type", null: false
177
+ t.integer "owner_id", limit: 4
178
+ t.string "owner_type", limit: 255, null: false
175
179
  end
176
180
 
177
181
  add_index "notes", ["language"], name: "ix_notes_on_language", using: :btree
@@ -179,19 +183,32 @@ ActiveRecord::Schema.define(version: 20140807123413) do
179
183
  add_index "notes", ["type"], name: "ix_notes_on_type", using: :btree
180
184
 
181
185
  create_table "users", force: true do |t|
182
- t.string "forename"
183
- t.string "surname"
184
- t.string "email"
185
- t.string "crypted_password"
186
- t.boolean "active"
186
+ t.string "forename", limit: 255
187
+ t.string "surname", limit: 255
188
+ t.string "email", limit: 255
189
+ t.string "crypted_password", limit: 255
190
+ t.boolean "active", limit: 1
187
191
  t.datetime "created_at"
188
192
  t.datetime "updated_at"
189
- t.string "password_salt"
190
- t.string "persistence_token"
191
- t.string "perishable_token"
192
- t.string "role"
193
- t.string "telephone_number"
194
- t.string "type"
193
+ t.string "password_salt", limit: 255
194
+ t.string "persistence_token", limit: 255
195
+ t.string "perishable_token", limit: 255
196
+ t.string "role", limit: 255
197
+ t.string "telephone_number", limit: 255
198
+ t.string "type", limit: 255
195
199
  end
196
200
 
201
+ add_foreign_key "collection_members", "concepts", column: "collection_id", on_update: :cascade
202
+ add_foreign_key "collection_members", "concepts", column: "target_id", on_update: :cascade
203
+ add_foreign_key "concept_relations", "concepts", column: "owner_id", on_update: :cascade
204
+ add_foreign_key "concept_relations", "concepts", column: "target_id", on_update: :cascade
205
+ add_foreign_key "concepts", "users", column: "locked_by", on_update: :cascade, on_delete: :nullify
206
+ add_foreign_key "exports", "users", on_update: :cascade, on_delete: :nullify
207
+ add_foreign_key "imports", "users", on_update: :cascade, on_delete: :nullify
208
+ add_foreign_key "labelings", "concepts", column: "owner_id", on_update: :cascade
209
+ add_foreign_key "labelings", "labels", column: "target_id", on_update: :cascade, on_delete: :cascade
210
+ add_foreign_key "matches", "concepts", on_update: :cascade, on_delete: :cascade
211
+ add_foreign_key "notations", "concepts", on_update: :cascade
212
+ add_foreign_key "note_annotations", "notes", on_update: :cascade, on_delete: :cascade
213
+ add_foreign_key "notes", "concepts", column: "owner_id", on_update: :cascade, on_delete: :cascade
197
214
  end
data/lib/iqvoc/version.rb CHANGED
@@ -15,5 +15,5 @@
15
15
  # limitations under the License.
16
16
 
17
17
  module Iqvoc
18
- VERSION = "4.6.0"
18
+ VERSION = "4.6.1"
19
19
  end
File without changes
File without changes
@@ -93,6 +93,31 @@ class ReverseMatchTest < ActionController::TestCase
93
93
  assert_equal 2, new_concept_version.rev
94
94
  end
95
95
 
96
+ test 'add already existing match' do
97
+ patch :add_match,
98
+ origin: @achievement_hobbies.origin,
99
+ match_class: 'match_skos_broadmatch',
100
+ uri: 'http://google.de'
101
+ assert_response 200
102
+ body = JSON.parse response.body
103
+ assert_equal body['type'], 'mapping_added'
104
+
105
+ new_concept_version = Iqvoc::Concept.base_class.by_origin(@achievement_hobbies.origin).last
106
+ assert_equal 2, new_concept_version.rev
107
+
108
+ patch :add_match,
109
+ origin: @achievement_hobbies.origin,
110
+ match_class: 'match_skos_broadmatch',
111
+ uri: 'http://google.de'
112
+ assert_response 409
113
+ body = JSON.parse response.body
114
+ assert_equal body['type'], 'mapping_exists'
115
+
116
+ new_concept_version = Iqvoc::Concept.base_class.by_origin(@achievement_hobbies.origin).last
117
+ assert_equal 2, new_concept_version.rev
118
+ end
119
+
120
+
96
121
  test 'no referer' do
97
122
  @request.env['HTTP_REFERER'] = nil
98
123
  patch :add_match,