iqvoc 3.2.11 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (351) hide show
  1. data/Gemfile +9 -9
  2. data/Gemfile.lock +108 -101
  3. data/{public/images/iqvoc → app/assets/images}/arrow_down.gif +0 -0
  4. data/{public/images/iqvoc → app/assets/images}/arrow_up.gif +0 -0
  5. data/{public/stylesheets/iqvoc → app/assets}/images/back.png +0 -0
  6. data/{public/stylesheets/iqvoc → app/assets}/images/branch.png +0 -0
  7. data/{public/stylesheets/iqvoc → app/assets}/images/categ.png +0 -0
  8. data/{public/stylesheets/iqvoc → app/assets}/images/categ_open.png +0 -0
  9. data/{public/images/iqvoc → app/assets/images}/footer.png +0 -0
  10. data/{public/stylesheets/iqvoc → app/assets}/images/go_there.png +0 -0
  11. data/{public/images/iqvoc → app/assets/images}/header_long.png +0 -0
  12. data/{public/stylesheets/iqvoc → app/assets}/images/iqvoc.png +0 -0
  13. data/{public/stylesheets/iqvoc → app/assets}/images/leaf_end.png +0 -0
  14. data/{public/stylesheets/iqvoc → app/assets}/images/leaf_end_filled.png +0 -0
  15. data/{public/stylesheets/iqvoc → app/assets}/images/leaf_mid.png +0 -0
  16. data/{public/stylesheets/iqvoc → app/assets}/images/leaf_mid_filled.png +0 -0
  17. data/{public/stylesheets/iqvoc → app/assets}/images/leaf_nothing.png +0 -0
  18. data/{public/stylesheets/iqvoc → app/assets}/images/leaf_only.png +0 -0
  19. data/{public/stylesheets/iqvoc → app/assets}/images/leaf_only_filled.png +0 -0
  20. data/{public/stylesheets/iqvoc → app/assets}/images/leaf_top.png +0 -0
  21. data/{public/stylesheets/iqvoc → app/assets}/images/leaf_top_filled.png +0 -0
  22. data/{public/stylesheets/iqvoc → app/assets}/images/nothing.png +0 -0
  23. data/{public/images/iqvoc → app/assets/images}/ok.png +0 -0
  24. data/{public/images/iqvoc → app/assets/images}/rdf_flyer.gif +0 -0
  25. data/{public/images/iqvoc → app/assets/images}/red_arrow.png +0 -0
  26. data/{public/images/iqvoc → app/assets/images}/shadow.png +0 -0
  27. data/{public/images/iqvoc → app/assets/images}/spinner.gif +0 -0
  28. data/{public/images/iqvoc → app/assets/images}/tokenizer_delete.png +0 -0
  29. data/{public/images/iqvoc → app/assets/images}/tokenizer_pencile.png +0 -0
  30. data/{public/images/iqvoc → app/assets/images}/tokenizer_show.png +0 -0
  31. data/{public/stylesheets/iqvoc → app/assets}/images/top_01.png +0 -0
  32. data/{public/stylesheets/iqvoc → app/assets}/images/trunk.png +0 -0
  33. data/{public/images/iqvoc → app/assets/images}/unfinished.png +0 -0
  34. data/app/assets/javascripts/framework.js +7 -0
  35. data/{public/javascripts/iqvoc/entityselect.js → app/assets/javascripts/iqvoc/entityselect.js.erb} +1 -1
  36. data/{public/javascripts/iqvoc/application.js → app/assets/javascripts/iqvoc/iqvoc.js} +118 -1
  37. data/{public → app/assets}/javascripts/iqvoc/langselect.js +0 -0
  38. data/app/assets/javascripts/iqvoc/manifest.js +3 -0
  39. data/{public → app/assets}/javascripts/iqvoc/visualization.js +0 -0
  40. data/app/assets/javascripts/manifest.js +2 -0
  41. data/app/assets/stylesheets/framework.css +4 -0
  42. data/{public/stylesheets/iqvoc/forms.css → app/assets/stylesheets/iqvoc/forms.css.erb} +1 -1
  43. data/app/assets/stylesheets/iqvoc/ie_fixes.css +6 -0
  44. data/{public/stylesheets/iqvoc/iqvoc.css → app/assets/stylesheets/iqvoc/iqvoc.css.erb} +3 -3
  45. data/app/assets/stylesheets/iqvoc/manifest.css +5 -0
  46. data/{public → app/assets}/stylesheets/iqvoc/widgets.css +0 -0
  47. data/app/assets/stylesheets/manifest.css +4 -0
  48. data/app/controllers/collections_controller.rb +10 -4
  49. data/app/controllers/concepts/alphabetical_controller.rb +1 -2
  50. data/app/controllers/concepts/hierarchical_controller.rb +1 -1
  51. data/app/controllers/concepts_controller.rb +7 -6
  52. data/app/helpers/concepts_helper.rb +0 -1
  53. data/app/helpers/dashboard_helper.rb +2 -2
  54. data/app/models/concept/base.rb +6 -7
  55. data/app/models/concept/relation/base.rb +1 -1
  56. data/app/models/labeling/base.rb +1 -1
  57. data/app/models/labeling/skos/base.rb +5 -10
  58. data/app/models/match/base.rb +1 -1
  59. data/app/models/note/base.rb +1 -1
  60. data/app/models/user.rb +1 -0
  61. data/app/views/concepts/_visualization.html.erb +2 -2
  62. data/app/views/concepts/index.iqrdf +6 -2
  63. data/app/views/layouts/application.html.erb +7 -27
  64. data/app/views/partials/_rdf_logo.html.erb +1 -2
  65. data/config/application.rb +12 -3
  66. data/config/database.yml +21 -13
  67. data/config/engine.rb +6 -5
  68. data/config/environments/development.rb +45 -37
  69. data/config/environments/production.rb +45 -34
  70. data/config/environments/test.rb +43 -34
  71. data/config/initializers/iqvoc.rb +4 -8
  72. data/config/initializers/secret_token.rb +30 -0
  73. data/config/initializers/session_store.rb +1 -1
  74. data/config/locales/activerecord.de.yml +85 -111
  75. data/config/locales/activerecord.en.yml +85 -111
  76. data/db/iqvoc_test.sqlite3 +0 -0
  77. data/db/schema.rb +67 -153
  78. data/iqvoc.gemspec +3 -1
  79. data/lib/iqvoc/deep_cloning.rb +5 -5
  80. data/lib/iqvoc/version.rb +1 -1
  81. data/lib/iqvoc/versioning.rb +1 -1
  82. data/lib/iqvoc.rb +0 -6
  83. metadata +103 -369
  84. checksums.yaml +0 -7
  85. data/public/export/104047454295817920610168807659129435311.nt +0 -28
  86. data/public/export/10726.nt +0 -28
  87. data/public/export/10751365034669120987598940220863369604.nt +0 -28
  88. data/public/export/111691466774189666307584118743393932328.nt +0 -28
  89. data/public/export/12325399400132639231204595208154762660.nt +0 -28
  90. data/public/export/15263706163704853684442315777380853572.nt +0 -28
  91. data/public/export/15327.nt +0 -28
  92. data/public/export/15666.nt +0 -28
  93. data/public/export/173626129450223321263719262149444213847.nt +0 -28
  94. data/public/export/18948.nt +0 -28
  95. data/public/export/199578749544886032300136278910417855540.nt +0 -28
  96. data/public/export/213890660005255527251394676521741138403.nt +0 -28
  97. data/public/export/21930.nt +0 -28
  98. data/public/export/24509.nt +0 -28
  99. data/public/export/249458227092013520089223290936103182178.nt +0 -28
  100. data/public/export/271163890329327117562409702966294853312.nt +0 -28
  101. data/public/export/27484.nt +0 -28
  102. data/public/export/287251617830426667971006908766107175810.nt +0 -28
  103. data/public/export/28754.nt +0 -28
  104. data/public/export/29022.nt +0 -28
  105. data/public/export/293720064238755056739270868818770835353.nt +0 -28
  106. data/public/export/29976.nt +0 -28
  107. data/public/export/30643.nt +0 -28
  108. data/public/export/309135899928267675232062298368405782595.nt +0 -28
  109. data/public/export/32054.nt +0 -28
  110. data/public/export/327890543532187929176278243423558506722.nt +0 -28
  111. data/public/export/33055.nt +0 -28
  112. data/public/export/337748600310244218106909976567220577473.nt +0 -28
  113. data/public/export/33936.nt +0 -28
  114. data/public/export/33993.nt +0 -28
  115. data/public/export/34906.nt +0 -28
  116. data/public/export/35365.nt +0 -28
  117. data/public/export/37098.nt +0 -28
  118. data/public/export/37534146541112437090211766955764945845.nt +0 -28
  119. data/public/export/39353594202090916952403280275602550330.nt +0 -28
  120. data/public/export/41272.nt +0 -28
  121. data/public/export/42271.nt +0 -28
  122. data/public/export/44392.nt +0 -28
  123. data/public/export/45675.nt +0 -28
  124. data/public/export/47529.nt +0 -28
  125. data/public/export/48309.nt +0 -28
  126. data/public/export/4956.nt +0 -28
  127. data/public/export/49623.nt +0 -28
  128. data/public/export/50516.nt +0 -28
  129. data/public/export/54880.nt +0 -28
  130. data/public/export/55142.nt +0 -28
  131. data/public/export/55398.nt +0 -28
  132. data/public/export/5754.nt +0 -28
  133. data/public/export/57727.nt +0 -28
  134. data/public/export/58069939020968861674794480549301466954.nt +0 -28
  135. data/public/export/5890.nt +0 -28
  136. data/public/export/62809.nt +0 -28
  137. data/public/export/65156.nt +0 -28
  138. data/public/export/6520.nt +0 -28
  139. data/public/export/863.nt +0 -28
  140. data/public/export/9372.nt +0 -28
  141. data/public/javascripts/iqvoc/excanvas.js +0 -35
  142. data/public/javascripts/iqvoc/iqvoc.js +0 -118
  143. data/public/javascripts/iqvoc/jit_rgraph.js +0 -153
  144. data/public/javascripts/iqvoc/jquery-1.6.2.min.js +0 -18
  145. data/public/javascripts/iqvoc/jquery-treeview/changelog.txt +0 -29
  146. data/public/javascripts/iqvoc/jquery-treeview/demo/async.html +0 -44
  147. data/public/javascripts/iqvoc/jquery-treeview/demo/bg.gif +0 -0
  148. data/public/javascripts/iqvoc/jquery-treeview/demo/demo.js +0 -43
  149. data/public/javascripts/iqvoc/jquery-treeview/demo/images.html +0 -56
  150. data/public/javascripts/iqvoc/jquery-treeview/demo/index.html +0 -340
  151. data/public/javascripts/iqvoc/jquery-treeview/demo/large.html +0 -559
  152. data/public/javascripts/iqvoc/jquery-treeview/demo/prerendered.html +0 -621
  153. data/public/javascripts/iqvoc/jquery-treeview/demo/screen.css +0 -24
  154. data/public/javascripts/iqvoc/jquery-treeview/demo/simple.html +0 -82
  155. data/public/javascripts/iqvoc/jquery-treeview/demo/source.php +0 -87
  156. data/public/javascripts/iqvoc/jquery-treeview/demo/source.phps +0 -87
  157. data/public/javascripts/iqvoc/jquery-treeview/images/ajax-loader.gif +0 -0
  158. data/public/javascripts/iqvoc/jquery-treeview/images/file.gif +0 -0
  159. data/public/javascripts/iqvoc/jquery-treeview/images/folder-closed.gif +0 -0
  160. data/public/javascripts/iqvoc/jquery-treeview/images/folder.gif +0 -0
  161. data/public/javascripts/iqvoc/jquery-treeview/images/minus.gif +0 -0
  162. data/public/javascripts/iqvoc/jquery-treeview/images/plus.gif +0 -0
  163. data/public/javascripts/iqvoc/jquery-treeview/images/treeview-black-line.gif +0 -0
  164. data/public/javascripts/iqvoc/jquery-treeview/images/treeview-black.gif +0 -0
  165. data/public/javascripts/iqvoc/jquery-treeview/images/treeview-default-line.gif +0 -0
  166. data/public/javascripts/iqvoc/jquery-treeview/images/treeview-default.gif +0 -0
  167. data/public/javascripts/iqvoc/jquery-treeview/images/treeview-famfamfam-line.gif +0 -0
  168. data/public/javascripts/iqvoc/jquery-treeview/images/treeview-famfamfam.gif +0 -0
  169. data/public/javascripts/iqvoc/jquery-treeview/images/treeview-gray-line.gif +0 -0
  170. data/public/javascripts/iqvoc/jquery-treeview/images/treeview-gray.gif +0 -0
  171. data/public/javascripts/iqvoc/jquery-treeview/images/treeview-red-line.gif +0 -0
  172. data/public/javascripts/iqvoc/jquery-treeview/images/treeview-red.gif +0 -0
  173. data/public/javascripts/iqvoc/jquery-treeview/jquery.treeview.async.js +0 -82
  174. data/public/javascripts/iqvoc/jquery-treeview/jquery.treeview.css +0 -75
  175. data/public/javascripts/iqvoc/jquery-treeview/jquery.treeview.js +0 -251
  176. data/public/javascripts/iqvoc/jquery-treeview/jquery.treeview.min.js +0 -15
  177. data/public/javascripts/iqvoc/jquery-treeview/jquery.treeview.pack.js +0 -16
  178. data/public/javascripts/iqvoc/jquery-treeview/lib/jquery.cookie.js +0 -92
  179. data/public/javascripts/iqvoc/jquery-treeview/lib/jquery.js +0 -3363
  180. data/public/javascripts/iqvoc/jquery-treeview/todo +0 -8
  181. data/public/javascripts/iqvoc/jquery-ui-1.8.16.custom.js +0 -3269
  182. data/public/javascripts/iqvoc/jquery-ui-1.8.16.custom.min.js +0 -165
  183. data/public/javascripts/iqvoc/jquery-ui.datepicker-de.js +0 -22
  184. data/public/javascripts/iqvoc/json2.js +0 -480
  185. data/public/javascripts/iqvoc/rails.js +0 -132
  186. data/public/javascripts/iqvoc/storage.js +0 -122
  187. data/public/stylesheets/iqvoc/blueprint/ie.css +0 -35
  188. data/public/stylesheets/iqvoc/blueprint/plugins/buttons/icons/cross.png +0 -0
  189. data/public/stylesheets/iqvoc/blueprint/plugins/buttons/icons/key.png +0 -0
  190. data/public/stylesheets/iqvoc/blueprint/plugins/buttons/icons/tick.png +0 -0
  191. data/public/stylesheets/iqvoc/blueprint/plugins/buttons/readme.txt +0 -32
  192. data/public/stylesheets/iqvoc/blueprint/plugins/buttons/screen.css +0 -97
  193. data/public/stylesheets/iqvoc/blueprint/plugins/fancy-type/readme.txt +0 -14
  194. data/public/stylesheets/iqvoc/blueprint/plugins/fancy-type/screen.css +0 -71
  195. data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/doc.png +0 -0
  196. data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/email.png +0 -0
  197. data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/external.png +0 -0
  198. data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/feed.png +0 -0
  199. data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/im.png +0 -0
  200. data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  201. data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/visited.png +0 -0
  202. data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/icons/xls.png +0 -0
  203. data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/readme.txt +0 -18
  204. data/public/stylesheets/iqvoc/blueprint/plugins/link-icons/screen.css +0 -40
  205. data/public/stylesheets/iqvoc/blueprint/plugins/rtl/readme.txt +0 -10
  206. data/public/stylesheets/iqvoc/blueprint/plugins/rtl/screen.css +0 -110
  207. data/public/stylesheets/iqvoc/blueprint/print.css +0 -29
  208. data/public/stylesheets/iqvoc/blueprint/screen.css +0 -258
  209. data/public/stylesheets/iqvoc/blueprint/src/forms.css +0 -65
  210. data/public/stylesheets/iqvoc/blueprint/src/grid.css +0 -280
  211. data/public/stylesheets/iqvoc/blueprint/src/grid.png +0 -0
  212. data/public/stylesheets/iqvoc/blueprint/src/ie.css +0 -76
  213. data/public/stylesheets/iqvoc/blueprint/src/print.css +0 -85
  214. data/public/stylesheets/iqvoc/blueprint/src/reset.css +0 -45
  215. data/public/stylesheets/iqvoc/blueprint/src/typography.css +0 -106
  216. data/public/stylesheets/iqvoc/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  217. data/public/stylesheets/iqvoc/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
  218. data/public/stylesheets/iqvoc/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  219. data/public/stylesheets/iqvoc/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  220. data/public/stylesheets/iqvoc/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  221. data/public/stylesheets/iqvoc/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  222. data/public/stylesheets/iqvoc/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  223. data/public/stylesheets/iqvoc/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  224. data/public/stylesheets/iqvoc/images/ui-icons_217bc0_256x240.png +0 -0
  225. data/public/stylesheets/iqvoc/images/ui-icons_2e83ff_256x240.png +0 -0
  226. data/public/stylesheets/iqvoc/images/ui-icons_469bdd_256x240.png +0 -0
  227. data/public/stylesheets/iqvoc/images/ui-icons_6da8d5_256x240.png +0 -0
  228. data/public/stylesheets/iqvoc/images/ui-icons_cd0a0a_256x240.png +0 -0
  229. data/public/stylesheets/iqvoc/images/ui-icons_d8e7f3_256x240.png +0 -0
  230. data/public/stylesheets/iqvoc/images/ui-icons_f9bd01_256x240.png +0 -0
  231. data/public/stylesheets/iqvoc/jquery-ui-1.8.16.custom.css +0 -410
  232. data/public/uploads/import/038dd516e01fe211375441c3af8d90e8.nt +0 -259
  233. data/public/uploads/import/07e71ca0235e798be39acd246114d962.nt +0 -259
  234. data/public/uploads/import/0a4c173bc9db7a5cd469c9454fdfa749.nt +0 -259
  235. data/public/uploads/import/0e8336cb2ef2c8b67767dfe8879d9cfb.nt +0 -259
  236. data/public/uploads/import/0f4eb8cd6390b1c5c5354a22e533ee0e.nt +0 -259
  237. data/public/uploads/import/105400714d68d2207209e23826345e76.nt +0 -259
  238. data/public/uploads/import/1147ab054ce55abf0a5bf93b99220231.nt +0 -259
  239. data/public/uploads/import/14b64b1f2252aba1e89d83f770d14e29.nt +0 -259
  240. data/public/uploads/import/1c6f11c300224248bf919885f8545daf.nt +0 -259
  241. data/public/uploads/import/21d34b65ef0a8156111e845992fd004f.nt +0 -259
  242. data/public/uploads/import/2783fade523132942999836a74228d64.nt +0 -259
  243. data/public/uploads/import/2bc90e07e5c42e5f26a1607756cc0ab3.nt +0 -259
  244. data/public/uploads/import/2e4073a94eeae98095de9f43b5e5774a.nt +0 -259
  245. data/public/uploads/import/32548678e7d47b3e256590d6eef6fb03.nt +0 -259
  246. data/public/uploads/import/330e08c32fde94fb80f656346d1f8383.nt +0 -259
  247. data/public/uploads/import/337790be2663214e66066b1215fdd137.nt +0 -259
  248. data/public/uploads/import/34b77ff970ca71511fb4b224b7dadd1c.nt +0 -259
  249. data/public/uploads/import/38de0d3c9cba92e8a3c312e7e95e7ec1.nt +0 -259
  250. data/public/uploads/import/3981aa91cf22e26fbf6b1312b2bcdcc8.nt +0 -259
  251. data/public/uploads/import/3d01f84539a62ebe6f76124e8cdbbb23.nt +0 -259
  252. data/public/uploads/import/3d05bb72c3751da3830cf53e966283d4.nt +0 -259
  253. data/public/uploads/import/3e1d2f770bfe3c79a367780731536a3a.nt +0 -259
  254. data/public/uploads/import/3e41bd1875dc23401278c73bd12be881.nt +0 -259
  255. data/public/uploads/import/3f3e3dbb09c3df6bfaed261311de3e7d.nt +0 -259
  256. data/public/uploads/import/4297d9970e47be5ced4991a083032eb9.nt +0 -259
  257. data/public/uploads/import/5925186958bd537ad5e79e76e3a1f714.nt +0 -259
  258. data/public/uploads/import/5dc5dcd978db1c59ec074e9137f0109c.nt +0 -259
  259. data/public/uploads/import/5e46663e7e2eb92e5e8846d7c0f8e713.nt +0 -259
  260. data/public/uploads/import/70022a2a7e808000dc3d55529d203480.nt +0 -259
  261. data/public/uploads/import/70b32583acaca5843ac7dbdc2a89de99.nt +0 -259
  262. data/public/uploads/import/8030e54313e2c7231c4c30cd4145d576.nt +0 -259
  263. data/public/uploads/import/8bb6484a9eb0c3266274c08ad8500669.nt +0 -259
  264. data/public/uploads/import/90711ea002f6b7b4e5476e414e185603.nt +0 -259
  265. data/public/uploads/import/918a5fc2c8fcdbaddc2a02588d599dcf.nt +0 -259
  266. data/public/uploads/import/923f9ebccb7b0e9e9fafddc60750b989.nt +0 -259
  267. data/public/uploads/import/933e4e2baee4d91b8f7681fa4d2ad9fa.nt +0 -259
  268. data/public/uploads/import/93f642eacd966c98645345d2ccdf578d.nt +0 -259
  269. data/public/uploads/import/9a3d0f8d1872d4ba5dd281194ddea4a2.nt +0 -259
  270. data/public/uploads/import/9a3f1c9de8e734b7e1d969d07ea57a83.nt +0 -259
  271. data/public/uploads/import/9f91263fee5275ecbf303c7da0a9e84d.nt +0 -259
  272. data/public/uploads/import/9f9d6b4293be8def1b406156a3e2bcd9.nt +0 -259
  273. data/public/uploads/import/a230b36c3666a6b16fec6283e99b221f.nt +0 -259
  274. data/public/uploads/import/a51b35089dc096f0f1f5d5250edb8d5c.nt +0 -259
  275. data/public/uploads/import/a5265a00946627588ecdac317c061c6c.nt +0 -259
  276. data/public/uploads/import/a95b7d93b7483116ff13c894a46b5c1c.nt +0 -259
  277. data/public/uploads/import/b5e47ea582afb81341f7b7084cc17a06.nt +0 -259
  278. data/public/uploads/import/b826bcfad8f18294a425d65482c46033.nt +0 -259
  279. data/public/uploads/import/bcf18c9e4dbe72745f4ec2878a4b1690.nt +0 -259
  280. data/public/uploads/import/c32855cb4b3e8616db2ef3f5f9cb5ca7.nt +0 -259
  281. data/public/uploads/import/c8ee5bc696312468c4354bad6c583321.nt +0 -259
  282. data/public/uploads/import/cfc73574fe398be7ce684fbc17aa1bb7.nt +0 -259
  283. data/public/uploads/import/d2366992f6e9e4377d02fc691fc2d3d3.nt +0 -259
  284. data/public/uploads/import/dc14a0fa30c105a5770da2c960daaf29.nt +0 -259
  285. data/public/uploads/import/e9289f6f920cf44d0e81599410b39090.nt +0 -259
  286. data/public/uploads/import/ed1c212d4f320e414caacda7a7988f83.nt +0 -259
  287. data/public/uploads/import/ed460af60bf4d0884d37a86bb02411e7.nt +0 -259
  288. data/public/uploads/import/f17024adf37be768041307528e848bd6.nt +0 -259
  289. data/public/uploads/import/f2f6025f6de90ee4609c2928a817c51d.nt +0 -259
  290. data/public/uploads/import/f427507b1c208ddf69204ea5414e5d18.nt +0 -259
  291. data/public/uploads/import/ffce91887b3ac5b7319a80926ff310ef.nt +0 -259
  292. data/public/uploads/tmp/1417625624-7926-3861/hobbies.nt +0 -259
  293. data/public/uploads/tmp/1417625658-7975-5171/hobbies.nt +0 -259
  294. data/public/uploads/tmp/1418649743-7886-1510/hobbies.nt +0 -259
  295. data/public/uploads/tmp/1418653029-9019-1572/hobbies.nt +0 -259
  296. data/public/uploads/tmp/1418656093-9614-5971/hobbies.nt +0 -259
  297. data/public/uploads/tmp/1418659992-10218-8665/hobbies.nt +0 -259
  298. data/public/uploads/tmp/1418664440-11199-8740/hobbies.nt +0 -259
  299. data/public/uploads/tmp/1418665022-11430-9919/hobbies.nt +0 -259
  300. data/public/uploads/tmp/1418665225-11485-5805/hobbies.nt +0 -259
  301. data/public/uploads/tmp/1418665744-11777-4958/hobbies.nt +0 -259
  302. data/public/uploads/tmp/1418666103-11837-9818/hobbies.nt +0 -259
  303. data/public/uploads/tmp/1418666157-11880-9002/hobbies.nt +0 -259
  304. data/public/uploads/tmp/1418666292-11920-9076/hobbies.nt +0 -259
  305. data/public/uploads/tmp/1418666482-11968-5799/hobbies.nt +0 -259
  306. data/public/uploads/tmp/1418666589-12006-6137/hobbies.nt +0 -259
  307. data/public/uploads/tmp/1419417707-62741-8601/hobbies.nt +0 -259
  308. data/public/uploads/tmp/1419418501-62977-9798/hobbies.nt +0 -259
  309. data/public/uploads/tmp/1419419091-63178-5200/hobbies.nt +0 -259
  310. data/public/uploads/tmp/1419845421-37940-7338/hobbies.nt +0 -259
  311. data/public/uploads/tmp/1419872019-93309-7785/hobbies.nt +0 -259
  312. data/public/uploads/tmp/1419872459-93489-7475/hobbies.nt +0 -259
  313. data/public/uploads/tmp/1420204292-55473-2339/hobbies.nt +0 -259
  314. data/public/uploads/tmp/1420469113-94913-1977/hobbies.nt +0 -259
  315. data/public/uploads/tmp/1420469218-94957-7818/hobbies.nt +0 -259
  316. data/public/uploads/tmp/1420471310-95437-1840/hobbies.nt +0 -259
  317. data/public/uploads/tmp/1420475764-97681-5693/hobbies.nt +0 -259
  318. data/public/uploads/tmp/1420475937-97729-2119/hobbies.nt +0 -259
  319. data/public/uploads/tmp/1420476857-98058-7891/hobbies.nt +0 -259
  320. data/public/uploads/tmp/1420535851-99018-0174/hobbies.nt +0 -259
  321. data/public/uploads/tmp/1420536204-1785-0172/hobbies.nt +0 -259
  322. data/public/uploads/tmp/1420551687-4559-4581/hobbies.nt +0 -259
  323. data/public/uploads/tmp/1420553228-5060-8398/hobbies.nt +0 -259
  324. data/public/uploads/tmp/1420554138-5330-1218/hobbies.nt +0 -259
  325. data/public/uploads/tmp/1420623682-11549-0730/hobbies.nt +0 -259
  326. data/public/uploads/tmp/1420627830-12489-1669/hobbies.nt +0 -259
  327. data/public/uploads/tmp/1420643849-18200-3932/hobbies.nt +0 -259
  328. data/public/uploads/tmp/1420649772-21728-5542/hobbies.nt +0 -259
  329. data/public/uploads/tmp/1420708117-27095-8292/hobbies.nt +0 -259
  330. data/public/uploads/tmp/1420708387-27223-6774/hobbies.nt +0 -259
  331. data/public/uploads/tmp/1420708470-27267-7475/hobbies.nt +0 -259
  332. data/public/uploads/tmp/1420708517-27294-4695/hobbies.nt +0 -259
  333. data/public/uploads/tmp/1420708539-27319-1354/hobbies.nt +0 -259
  334. data/public/uploads/tmp/1420708586-27334-3786/hobbies.nt +0 -259
  335. data/public/uploads/tmp/1420708992-27418-8019/hobbies.nt +0 -259
  336. data/public/uploads/tmp/1420709221-27495-1252/hobbies.nt +0 -259
  337. data/public/uploads/tmp/1420709888-27667-9904/hobbies.nt +0 -259
  338. data/public/uploads/tmp/1420710092-27729-5735/hobbies.nt +0 -259
  339. data/public/uploads/tmp/1420710448-27814-7190/hobbies.nt +0 -259
  340. data/public/uploads/tmp/1420710886-27909-4558/hobbies.nt +0 -259
  341. data/public/uploads/tmp/1420711474-28046-6914/hobbies.nt +0 -259
  342. data/public/uploads/tmp/1420711601-28081-0714/hobbies.nt +0 -259
  343. data/public/uploads/tmp/1420711904-28153-8591/hobbies.nt +0 -259
  344. data/public/uploads/tmp/1420712160-28240-2054/hobbies.nt +0 -259
  345. data/public/uploads/tmp/1420712349-28303-3685/hobbies.nt +0 -259
  346. data/public/uploads/tmp/1420712756-28475-0893/hobbies.nt +0 -259
  347. data/public/uploads/tmp/1420712995-28567-4743/hobbies.nt +0 -259
  348. data/public/uploads/tmp/1420722946-31448-5312/hobbies.nt +0 -259
  349. data/public/uploads/tmp/1420723021-31498-6069/hobbies.nt +0 -259
  350. data/public/uploads/tmp/1420723172-31541-4390/hobbies.nt +0 -259
  351. data/public/uploads/tmp/1420723249-31574-6508/hobbies.nt +0 -259
@@ -32,8 +32,7 @@ class Concepts::AlphabeticalController < ConceptsController
32
32
 
33
33
  # When in single query mode, AR handles ALL includes to be loaded by that
34
34
  # one query. We don't want that! So let's do it manually :-)
35
- Iqvoc::Concept.pref_labeling_class.send(:preload_associations,
36
- @pref_labelings, :owner => Iqvoc::Concept.base_class.default_includes)
35
+ ActiveRecord::Associations::Preloader.new(@pref_labelings, :owner => Iqvoc::Concept.base_class.default_includes).run
37
36
  end
38
37
 
39
38
  end
@@ -48,7 +48,7 @@ class Concepts::HierarchicalController < ConceptsController
48
48
  end
49
49
  # When in single query mode, AR handles ALL includes to be loaded by that
50
50
  # one query. We don't want that! So let's do it manually :-)
51
- Iqvoc::Concept.base_class.send(:preload_associations, @concepts, Iqvoc::Concept.base_class.default_includes + [:pref_labels])
51
+ ActiveRecord::Associations::Preloader.new(@concepts, Iqvoc::Concept.base_class.default_includes + [:pref_labels]).run
52
52
 
53
53
  @concepts.sort! do |a, b|
54
54
  a.pref_label.to_s <=> b.pref_label.to_s
@@ -55,18 +55,19 @@ class ConceptsController < ApplicationController
55
55
  format.html do
56
56
  # When in single query mode, AR handles ALL includes to be loaded by that
57
57
  # one query. We don't want that! So let's do it manually :-)
58
- Concept::Base.send(:preload_associations, @concept, Iqvoc::Concept.base_class.default_includes +
59
- [:collection_members => {:collection => :labels},
60
- :broader_relations => {:target => [:pref_labels, :broader_relations]},
61
- :narrower_relations => {:target => [:pref_labels, :narrower_relations]}])
58
+ ActiveRecord::Associations::Preloader.new(@concept,
59
+ Iqvoc::Concept.base_class.default_includes + [:collection_members => {:collection => :labels},
60
+ :broader_relations => {:target => [:pref_labels, :broader_relations]},
61
+ :narrower_relations => {:target => [:pref_labels, :narrower_relations]}]).run
62
62
 
63
63
  published ? render('show_published') : render('show_unpublished')
64
64
  end
65
65
  format.json do
66
66
  # When in single query mode, AR handles ALL includes to be loaded by that
67
67
  # one query. We don't want that! So let's do it manually :-)
68
- Concept::Base.send(:preload_associations, @concept, [:labels,
69
- { :relations => { :target => [:labelings, :relations] } }])
68
+ ActiveRecord::Associations::Preloader.new(@concept,
69
+ [:labels,
70
+ { :relations => { :target => [:labelings, :relations] } }]).run
70
71
 
71
72
  concept_data = {
72
73
  :origin => @concept.origin,
@@ -18,7 +18,6 @@ module ConceptsHelper
18
18
 
19
19
  # if `broader` is supplied, the tree's direction is reversed (descendants represent broader relations)
20
20
  def treeview(concepts, broader = false)
21
- concepts = concepts.sort { |a, b| a.pref_label.to_s <=> b.pref_label.to_s }
22
21
  render :partial => "concepts/hierarchical/treeview",
23
22
  :locals => { :concepts => concepts, :broader => broader }
24
23
  end
@@ -18,9 +18,9 @@ module DashboardHelper
18
18
 
19
19
  def sorting_arrows_for(name)
20
20
  content_tag :div, :class => "sorting_arrows" do
21
- link_to(image_tag("iqvoc/arrow_down.gif", :class => "arrow_down"),
21
+ link_to(image_tag("arrow_down.gif", :class => "arrow_down"),
22
22
  dashboard_path(:order => "asc", :by => name.to_s)) +
23
- link_to(image_tag("iqvoc/arrow_up.gif", :class => "arrow_up"),
23
+ link_to(image_tag("arrow_up.gif", :class => "arrow_up"),
24
24
  dashboard_path(:order => "desc", :by => name.to_s))
25
25
  end
26
26
  end
@@ -20,10 +20,10 @@ class Concept::Base < ActiveRecord::Base
20
20
 
21
21
  include Iqvoc::Versioning
22
22
 
23
- class_inheritable_accessor :default_includes
23
+ class_attribute :default_includes
24
24
  self.default_includes = []
25
25
 
26
- class_inheritable_accessor :rdf_namespace, :rdf_class
26
+ class_attribute :rdf_namespace, :rdf_class
27
27
  self.rdf_namespace = nil
28
28
  self.rdf_class = nil
29
29
 
@@ -44,6 +44,10 @@ class Concept::Base < ActiveRecord::Base
44
44
  end
45
45
 
46
46
  # ********** Hooks
47
+
48
+ after_initialize do
49
+ @full_validation = false
50
+ end
47
51
 
48
52
  before_validation do |concept|
49
53
  # Handle save or destruction of inline relations (relations or labelings)
@@ -264,11 +268,6 @@ class Concept::Base < ActiveRecord::Base
264
268
 
265
269
  # ********** Methods
266
270
 
267
- def initialize(params = {})
268
- super(params)
269
- @full_validation = false
270
- end
271
-
272
271
  def labelings_by_text=(hash)
273
272
  @labelings_by_text = hash
274
273
 
@@ -30,7 +30,7 @@ class Concept::Relation::Base < ActiveRecord::Base
30
30
 
31
31
  set_table_name 'concept_relations'
32
32
 
33
- class_inheritable_accessor :rdf_namespace, :rdf_predicate
33
+ class_attribute :rdf_namespace, :rdf_predicate
34
34
  self.rdf_namespace = nil
35
35
  self.rdf_predicate = nil
36
36
 
@@ -18,7 +18,7 @@ class Labeling::Base < ActiveRecord::Base
18
18
 
19
19
  set_table_name 'labelings'
20
20
 
21
- class_inheritable_accessor :rdf_namespace, :rdf_predicate
21
+ class_attribute :rdf_namespace, :rdf_predicate
22
22
  self.rdf_namespace = nil
23
23
  self.rdf_predicate = nil
24
24
 
@@ -56,29 +56,24 @@ class Labeling::SKOS::Base < Labeling::Base
56
56
  if params[:collection_origin].present?
57
57
  collection = Collection::Unordered.where(:origin => params[:collection_origin]).last
58
58
  if collection
59
- # scope = scope.includes(:owner => :collection_members)
60
- scope = scope.joins("LEFT OUTER JOIN collection_members ON collection_members.target_id = concepts.id")
59
+ scope = scope.includes(:owner => :collection_members)
61
60
  scope = scope.where("#{Collection::Member::Base.table_name}.collection_id" => collection)
62
61
  else
63
62
  raise "Collection with Origin #{params[:collection_origin]} not found!"
64
63
  end
65
64
  end
66
65
  scope = scope.includes(:owner)
67
-
66
+
68
67
  scope = case params[:for]
69
68
  when "concept"
70
69
  scope.where("concepts.type" => Iqvoc::Concept.base_class_name).merge(Concept::Base.published)
71
70
  when "collection"
72
- scope = scope.where("concepts.type" => Iqvoc::Collection.base_class_name)
73
- if collection
74
- scope = scope.where("collection_members.type" => 'Collection::Member::Collection')
75
- end
76
- scope
71
+ scope.where("concepts.type" => Iqvoc::Collection.base_class_name)
77
72
  else
78
73
  # no additional conditions
79
74
  scope
80
75
  end
81
-
76
+
82
77
  scope
83
78
  end
84
79
 
@@ -89,7 +84,7 @@ class Labeling::SKOS::Base < Labeling::Base
89
84
  def self.build_from_rdf(subject, predicate, object)
90
85
  raise "Labeling::SKOS::Base#build_from_rdf: Subject (#{subject}) must be a Concept." unless subject.is_a?(Concept::Base)
91
86
  raise "Labeling::SKOS::Base#build_from_rdf: Object (#{object}) must be a string literal" unless object =~ /^"(.+)"(@(.+))$/
92
-
87
+
93
88
  lang = $3
94
89
  value = JSON.parse(%Q{["#{$1}"]})[0].gsub("\\n", "\n") # Trick to decode \uHHHHH chars
95
90
 
@@ -18,7 +18,7 @@ class Match::Base < ActiveRecord::Base
18
18
 
19
19
  set_table_name 'matches'
20
20
 
21
- class_inheritable_accessor :rdf_namespace, :rdf_predicate
21
+ class_attribute :rdf_namespace, :rdf_predicate
22
22
  self.rdf_namespace = nil
23
23
  self.rdf_predicate = nil
24
24
 
@@ -18,7 +18,7 @@ class Note::Base < ActiveRecord::Base
18
18
 
19
19
  set_table_name 'notes'
20
20
 
21
- class_inheritable_accessor :rdf_namespace, :rdf_predicate
21
+ class_attribute :rdf_namespace, :rdf_predicate
22
22
  self.rdf_namespace = nil
23
23
  self.rdf_predicate = nil
24
24
 
data/app/models/user.rb CHANGED
@@ -28,6 +28,7 @@ class User < ActiveRecord::Base
28
28
 
29
29
  acts_as_authentic do |config|
30
30
  config.validate_email_field = false
31
+ config.maintain_sessions = false
31
32
  end
32
33
 
33
34
  def self.default_role
@@ -2,8 +2,8 @@
2
2
 
3
3
  <%= content_for :scripts do %>
4
4
  <!--[if IE]>
5
- <%= javascript_include_tag "iqvoc/excanvas.js" %>
5
+ <%= javascript_include_tag "excanvas.js" %>
6
6
  <![endif]-->
7
- <%= javascript_include_tag "iqvoc/jit_rgraph.js" %>
7
+ <%= javascript_include_tag "jit_rgraph.js" %>
8
8
  <%= javascript_include_tag "iqvoc/visualization.js" %>
9
9
  <% end %>
@@ -8,12 +8,16 @@ while true
8
8
  # fact you can't render a view from a controller multiple times we had to
9
9
  # move the logic to the view.
10
10
 
11
- concepts = Iqvoc::Concept.base_class.published.order("id").limit(50).offset(offset).all
11
+ concepts = Iqvoc::Concept.base_class.published.order("id").limit(100).offset(offset).all
12
12
  break if concepts.size == 0
13
13
 
14
14
  # When in single query mode, AR handles ALL includes to be loaded by that
15
15
  # one query. We don't want that! So let's do it manually :-)
16
- Concept::Base.send(:preload_associations, concepts, Iqvoc::Concept.base_class.default_includes + [:matches, :collection_members, {:relations => :target, :labelings => :target, :notes => :annotations}])
16
+ ActiveRecord::Associations::Preloader.new(concepts,
17
+ Iqvoc::Concept.base_class.default_includes + [
18
+ :matches,
19
+ :collection_members,
20
+ {:relations => :target, :labelings => :target, :notes => :annotations}]).run
17
21
 
18
22
  concepts.each do |concept|
19
23
  render_concept(document, concept)
@@ -6,21 +6,14 @@
6
6
  <%= csrf_meta_tag %>
7
7
 
8
8
  <title><%= Iqvoc.title || t("txt.common.iqvoc_title") %></title>
9
- <%= stylesheet_link_tag "iqvoc/blueprint/screen.css", :media => "screen, projection" %>
10
- <%= stylesheet_link_tag "iqvoc/blueprint/print.css", :media => "print" %>
9
+ <%= stylesheet_link_tag "blueprint/screen", :media => "screen, projection" %>
10
+ <%= stylesheet_link_tag "blueprint/print", :media => "print" %>
11
11
  <!--[if lt IE 8]>
12
- <%= stylesheet_link_tag "iqvoc/blueprint/ie.css", :media => "screen, projection" %>
12
+ <%= stylesheet_link_tag "blueprint/ie", :media => "screen, projection" %>
13
13
  <![endif]-->
14
- <%= stylesheet_link_tag "iqvoc/iqvoc.css", :media => "all" %>
15
- <%= stylesheet_link_tag "iqvoc/forms.css" %>
16
- <%= stylesheet_link_tag "/javascripts/iqvoc/jquery-treeview/jquery.treeview.css" %>
17
- <%= stylesheet_link_tag "iqvoc/jquery-ui-1.8.16.custom.css" %>
18
- <%= stylesheet_link_tag "iqvoc/widgets.css" %>
19
- <% Iqvoc.additional_css_files.each do |file| %>
20
- <%= stylesheet_link_tag file %>
21
- <% end %>
14
+ <%= stylesheet_link_tag "manifest" %>
22
15
  <!--[if (gte IE 6)&(lte IE 8)]>
23
- <%= stylesheet_link_tag "iqvoc/ie_fixes.css" %>
16
+ <%= stylesheet_link_tag "iqvoc/ie_fixes" %>
24
17
  <![endif]-->
25
18
 
26
19
  <%= yield :head %>
@@ -64,23 +57,10 @@
64
57
  <script>
65
58
  // load JSON polyfill only if necessary
66
59
  if(typeof JSON === "undefined") {
67
- document.write("<script src=\"<%= javascript_path "iqvoc/json2.js" %>\"><\/script>");
60
+ document.write("<script src=\"<%= javascript_path "json2.js" %>\"><\/script>");
68
61
  }
69
62
  </script>
70
- <%= javascript_include_tag "iqvoc/jquery-1.6.2.min.js" %>
71
- <%= javascript_include_tag "iqvoc/jquery-ui-1.8.16.custom.min.js" %>
72
- <%= javascript_include_tag "iqvoc/jquery-ui.datepicker-de.js" %>
73
- <%= javascript_include_tag "iqvoc/jquery-treeview/jquery.treeview.js" %>
74
- <%= javascript_include_tag "iqvoc/jquery-treeview/jquery.treeview.async.js" %>
75
- <%= javascript_include_tag "iqvoc/rails.js" %>
76
- <%= javascript_include_tag "iqvoc/storage.js" %>
77
- <%= javascript_include_tag "iqvoc/iqvoc.js" %>
78
- <%= javascript_include_tag "iqvoc/langselect.js" %>
79
- <%= javascript_include_tag "iqvoc/entityselect.js" %>
80
- <%= javascript_include_tag "iqvoc/application.js" %>
63
+ <%= javascript_include_tag "manifest" %>
81
64
  <%= yield :scripts %>
82
- <% Iqvoc.additional_js_files.each do |file| %>
83
- <%= javascript_include_tag file %>
84
- <% end %>
85
65
  </body>
86
66
  </html>
@@ -1,4 +1,3 @@
1
1
  <a href="http://www.w3.org/RDF/" title="RDF Resource Description Framework">
2
- <%= image_tag "iqvoc/rdf_flyer.gif",
3
- :alt => "RDF Resource Description Framework Flyer Icon" %>
2
+ <%= image_tag "rdf_flyer.gif", :alt => "RDF Resource Description Framework Flyer Icon" %>
4
3
  </a>
@@ -18,9 +18,12 @@ require File.expand_path('../boot', __FILE__)
18
18
 
19
19
  require 'rails/all'
20
20
 
21
- # If you have a Gemfile, require the gems listed there, including any gems
22
- # you've limited to :test, :development, or :production.
23
- Bundler.require(:default, Rails.env) if defined?(Bundler)
21
+ if defined?(Bundler)
22
+ # If you precompile assets before deploying to production, use this line
23
+ Bundler.require *Rails.groups(:assets => %w(development test))
24
+ # If you want your assets lazily compiled in production, use this line
25
+ # Bundler.require(:default, :assets, Rails.env)
26
+ end
24
27
 
25
28
  module Iqvoc
26
29
  class Application < Rails::Application
@@ -56,6 +59,12 @@ module Iqvoc
56
59
 
57
60
  # Configure sensitive parameters which will be filtered from the log file.
58
61
  config.filter_parameters += [:password, :password_confirmation]
62
+
63
+ # Enable the asset pipeline
64
+ config.assets.enabled = true
65
+
66
+ # Version of your assets, change this if you want to expire all your assets
67
+ config.assets.version = '1.0'
59
68
 
60
69
  # TODO This must be refactored!
61
70
 
data/config/database.yml CHANGED
@@ -1,34 +1,42 @@
1
- # development:
2
- # adapter: postgresql
3
- # encoding: unicode
4
- # database: iqvoc_development
5
- # username: iqvoc
6
- # password:
7
- # pool: 5
8
-
1
+ # MySQL. Versions 4.1 and 5.0 are recommended.
2
+ #
3
+ # Install the MYSQL driver
4
+ # gem install mysql2
5
+ #
6
+ # Ensure the MySQL gem is defined in your Gemfile
7
+ # gem 'mysql2'
8
+ #
9
+ # And be sure to use new-style password hashing:
10
+ # http://dev.mysql.com/doc/refman/5.0/en/old-client.html
9
11
  development:
10
12
  adapter: mysql2
11
13
  encoding: utf8
12
14
  reconnect: false
13
15
  database: iqvoc_development
16
+ pool: 5
14
17
  username: root
15
18
  password:
16
- host: 127.0.0.1
19
+ socket: /tmp/mysql.sock
17
20
 
21
+ # Warning: The database defined as "test" will be erased and
22
+ # re-generated from your development database when you run "rake".
23
+ # Do not set this db to the same as development or production.
18
24
  test:
19
25
  adapter: mysql2
20
26
  encoding: utf8
21
27
  reconnect: false
22
28
  database: iqvoc_test
29
+ pool: 5
23
30
  username: root
24
31
  password:
25
- host: 127.0.0.1
32
+ socket: /tmp/mysql.sock
26
33
 
27
34
  production:
28
- adapter: mysql2
35
+ adapter:
29
36
  encoding: utf8
30
37
  reconnect: false
31
- database: iqvoc_development
38
+ database: iqvoc_production
39
+ pool: 5
32
40
  username: root
33
41
  password:
34
- host: 127.0.0.1
42
+ socket: /tmp/mysql.sock
data/config/engine.rb CHANGED
@@ -7,18 +7,19 @@ require 'authlogic'
7
7
  require 'kaminari'
8
8
  require 'iq_rdf'
9
9
  require 'json'
10
+ require 'rails_autolink'
10
11
 
11
12
  module Iqvoc
12
13
 
13
14
  class Engine < Rails::Engine
14
15
 
15
- paths.lib.tasks << "lib/engine_tasks"
16
+ # paths.lib.tasks << "lib/engine_tasks"
16
17
 
17
18
  # This will be defined in Rails 3.1 (as well as all the tasks in lib/engine_tasks)
18
- def self.load_seed
19
- seed_file = Iqvoc::Engine.find_root_with_flag("db").join('db/seeds.rb')
20
- load(seed_file) if File.exist?(seed_file)
21
- end
19
+ # def self.load_seed
20
+ # seed_file = Iqvoc::Engine.find_root_with_flag("db").join('db/seeds.rb')
21
+ # load(seed_file) if File.exist?(seed_file)
22
+ # end
22
23
 
23
24
  end
24
25
 
@@ -25,50 +25,58 @@ class ActionController::Base
25
25
 
26
26
  end
27
27
 
28
- Iqvoc::Application.configure do
29
- # Settings specified here will take precedence over those in config/environment.rb
28
+ if Iqvoc.const_defined?(:Application)
29
+ Iqvoc::Application.configure do
30
+ # Settings specified here will take precedence over those in config/environment.rb
30
31
 
31
- # In the development environment your application's code is reloaded on
32
- # every request. This slows down response time but is perfect for development
33
- # since you don't have to restart the webserver when you make code changes.
34
- config.cache_classes = false
32
+ # In the development environment your application's code is reloaded on
33
+ # every request. This slows down response time but is perfect for development
34
+ # since you don't have to restart the webserver when you make code changes.
35
+ config.cache_classes = false
35
36
 
36
- # Log error messages when you accidentally call methods on nil.
37
- config.whiny_nils = true
37
+ # Log error messages when you accidentally call methods on nil.
38
+ config.whiny_nils = true
38
39
 
39
- # Show full error reports and disable caching
40
- config.consider_all_requests_local = true
41
- config.action_controller.perform_caching = false
40
+ # Show full error reports and disable caching
41
+ config.consider_all_requests_local = true
42
+ config.action_controller.perform_caching = false
42
43
 
43
- # Don't care if the mailer can't send
44
- config.action_mailer.raise_delivery_errors = false
44
+ # Don't care if the mailer can't send
45
+ config.action_mailer.raise_delivery_errors = false
45
46
 
46
- # Print deprecation notices to the Rails logger
47
- config.active_support.deprecation = :log
47
+ # Print deprecation notices to the Rails logger
48
+ config.active_support.deprecation = :log
48
49
 
49
- # Only use best-standards-support built into browsers
50
- config.action_dispatch.best_standards_support = :builtin
50
+ # Only use best-standards-support built into browsers
51
+ config.action_dispatch.best_standards_support = :builtin
52
+
53
+ # Do not compress assets
54
+ config.assets.compress = false
51
55
 
52
- # The default URI prefix for RDF data. This will be followed by a document
53
- # specific shnippet like (specimenType) and the id.
56
+ # Expands the lines which load the assets
57
+ config.assets.debug = true
54
58
 
55
- # The JDBC driver url for the coinnection to the virtuoso triple store.
56
- # Login crdentials have to be stored here too. See
57
- # http://docs.openlinksw.com/virtuoso/VirtuosoDriverJDBC.html#jdbcurl4mat for
58
- # more details.
59
- # Example: "jdbc:virtuoso://localhost:1111/UID=dba/PWD=dba"
60
- # Use nil to disable virtuoso triple synchronization
61
- # Rails.application.config.virtuoso_jdbc_driver_url = "jdbc:virtuoso://virtuoso.dyndns.org:1111/UID=iqvoc/PWD=vocpass!/charset=UTF-8"
62
- config.virtuoso_jdbc_driver_url = nil
59
+ # The default URI prefix for RDF data. This will be followed by a document
60
+ # specific shnippet like (specimenType) and the id.
63
61
 
64
- # Set up the virtuoso synchronization (which is a triggered pull from the
65
- # virtuoso server) to be run in a new thread.
66
- # This is needed in environments where the webserver only runs in a single
67
- # process/thread (mostly in development environments).
68
- # When a synchronizaion would be triggered e.g. from a running
69
- # update action in the UPB, the update would trigger virtuoso to do a HTTP GET
70
- # back to the UPB to fetch the RDF data. But the only process in the UPB would be
71
- # blocked by the update... => Deadlock. You can avoid this by using the threaded
72
- # mode.
73
- config.virtuoso_sync_threaded = false
62
+ # The JDBC driver url for the coinnection to the virtuoso triple store.
63
+ # Login crdentials have to be stored here too. See
64
+ # http://docs.openlinksw.com/virtuoso/VirtuosoDriverJDBC.html#jdbcurl4mat for
65
+ # more details.
66
+ # Example: "jdbc:virtuoso://localhost:1111/UID=dba/PWD=dba"
67
+ # Use nil to disable virtuoso triple synchronization
68
+ # Rails.application.config.virtuoso_jdbc_driver_url = "jdbc:virtuoso://virtuoso.dyndns.org:1111/UID=iqvoc/PWD=vocpass!/charset=UTF-8"
69
+ config.virtuoso_jdbc_driver_url = nil
70
+
71
+ # Set up the virtuoso synchronization (which is a triggered pull from the
72
+ # virtuoso server) to be run in a new thread.
73
+ # This is needed in environments where the webserver only runs in a single
74
+ # process/thread (mostly in development environments).
75
+ # When a synchronizaion would be triggered e.g. from a running
76
+ # update action in the UPB, the update would trigger virtuoso to do a HTTP GET
77
+ # back to the UPB to fetch the RDF data. But the only process in the UPB would be
78
+ # blocked by the update... => Deadlock. You can avoid this by using the threaded
79
+ # mode.
80
+ config.virtuoso_sync_threaded = false
81
+ end
74
82
  end
@@ -14,52 +14,63 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
 
17
- Iqvoc::Application.configure do
18
- # Settings specified here will take precedence over those in config/environment.rb
17
+ if Iqvoc.const_defined?(:Application)
18
+ Iqvoc::Application.configure do
19
+ # Settings specified here will take precedence over those in config/environment.rb
19
20
 
20
- # The production environment is meant for finished, "live" apps.
21
- # Code is not reloaded between requests
22
- config.cache_classes = true
21
+ # The production environment is meant for finished, "live" apps.
22
+ # Code is not reloaded between requests
23
+ config.cache_classes = true
23
24
 
24
- # Full error reports are disabled and caching is turned on
25
- config.consider_all_requests_local = false
26
- config.action_controller.perform_caching = true
25
+ # Full error reports are disabled and caching is turned on
26
+ config.consider_all_requests_local = false
27
+ config.action_controller.perform_caching = true
27
28
 
28
- # Specifies the header that your server uses for sending files
29
- config.action_dispatch.x_sendfile_header = "X-Sendfile"
29
+ # Specifies the header that your server uses for sending files
30
+ config.action_dispatch.x_sendfile_header = "X-Sendfile"
30
31
 
31
- # For nginx:
32
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
32
+ # For nginx:
33
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
33
34
 
34
- # If you have no front-end server that supports something like X-Sendfile,
35
- # just comment this out and Rails will serve the files
35
+ # If you have no front-end server that supports something like X-Sendfile,
36
+ # just comment this out and Rails will serve the files
36
37
 
37
- # See everything in the log (default is :info)
38
- # config.log_level = :debug
38
+ # See everything in the log (default is :info)
39
+ # config.log_level = :debug
39
40
 
40
- # Use a different logger for distributed setups
41
- # config.logger = SyslogLogger.new
41
+ # Use a different logger for distributed setups
42
+ # config.logger = SyslogLogger.new
42
43
 
43
- # Use a different cache store in production
44
- # config.cache_store = :mem_cache_store
44
+ # Use a different cache store in production
45
+ # config.cache_store = :mem_cache_store
45
46
 
46
- # Disable Rails's static asset server
47
- # In production, Apache or nginx will already do this
48
- config.serve_static_assets = false
47
+ # Disable Rails's static asset server
48
+ # In production, Apache or nginx will already do this
49
+ config.serve_static_assets = false
50
+
51
+ # Compress JavaScripts and CSS
52
+ config.assets.compress = true
49
53
 
50
- # Enable serving of images, stylesheets, and javascripts from an asset server
51
- # config.action_controller.asset_host = "http://assets.example.com"
54
+ # Don't fallback to assets pipeline if a precompiled asset is missed
55
+ config.assets.compile = false
52
56
 
53
- # Disable delivery errors, bad email addresses will be ignored
54
- # config.action_mailer.raise_delivery_errors = false
57
+ # Generate digests for assets URLs
58
+ config.assets.digest = true
55
59
 
56
- # Enable threaded mode
57
- # config.threadsafe!
60
+ # Enable serving of images, stylesheets, and javascripts from an asset server
61
+ # config.action_controller.asset_host = "http://assets.example.com"
58
62
 
59
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
60
- # the I18n.default_locale when a translation can not be found)
61
- config.i18n.fallbacks = true
63
+ # Disable delivery errors, bad email addresses will be ignored
64
+ # config.action_mailer.raise_delivery_errors = false
62
65
 
63
- # Send deprecation notices to registered listeners
64
- config.active_support.deprecation = :notify
66
+ # Enable threaded mode
67
+ # config.threadsafe!
68
+
69
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
70
+ # the I18n.default_locale when a translation can not be found)
71
+ config.i18n.fallbacks = true
72
+
73
+ # Send deprecation notices to registered listeners
74
+ config.active_support.deprecation = :notify
75
+ end
65
76
  end