mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Remove Tika server mode, update version [SCI-8367]
This commit is contained in:
parent
f9a41a9203
commit
f8f3fd8c5e
2 changed files with 3 additions and 9 deletions
|
@ -58,7 +58,7 @@ GIT
|
||||||
|
|
||||||
GIT
|
GIT
|
||||||
remote: https://github.com/scinote-eln/yomu
|
remote: https://github.com/scinote-eln/yomu
|
||||||
revision: d115f8964f76f2dd461b7af04f7a1f1a5317e725
|
revision: 019e7cf6e29c066f0a35100be2031947324f4b2b
|
||||||
branch: master
|
branch: master
|
||||||
specs:
|
specs:
|
||||||
yomu (0.2.4)
|
yomu (0.2.4)
|
||||||
|
|
|
@ -295,15 +295,9 @@ class Asset < ApplicationRecord
|
||||||
mjs_doc.remove_namespaces!
|
mjs_doc.remove_namespaces!
|
||||||
text_data = mjs_doc.search("//Field[@name='text']").collect(&:text).join(' ')
|
text_data = mjs_doc.search("//Field[@name='text']").collect(&:text).join(' ')
|
||||||
else
|
else
|
||||||
# Start Tika as a server
|
|
||||||
Yomu.server(:text)
|
|
||||||
begin
|
|
||||||
blob.open do |tmp_file|
|
blob.open do |tmp_file|
|
||||||
text_data = Yomu.new(tmp_file.path).text
|
text_data = Yomu.new(tmp_file.path).text
|
||||||
end
|
end
|
||||||
ensure
|
|
||||||
Yomu.kill_server!
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if asset_text_datum.present?
|
if asset_text_datum.present?
|
||||||
|
|
Loading…
Reference in a new issue