mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 19:24:10 +08:00
adds asset_text_data to global search options
This commit is contained in:
parent
3253cac86f
commit
e0908fb85f
2 changed files with 4 additions and 2 deletions
|
@ -176,6 +176,7 @@ class Constants
|
|||
#=============================================================================
|
||||
|
||||
TEXT_EXTRACT_FILE_TYPES = [
|
||||
'application/msword',
|
||||
'application/pdf',
|
||||
'application/rtf',
|
||||
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
||||
|
|
|
@ -53,12 +53,13 @@ class Extends
|
|||
# are only supported
|
||||
REPOSITORY_EXTRA_SEARCH_ATTR = ['repository_text_values.data',
|
||||
'repository_list_items.data',
|
||||
'assets.file_file_name']
|
||||
'assets.file_file_name',
|
||||
'asset_text_data.data']
|
||||
|
||||
# Array of includes used in search query for repository rows
|
||||
REPOSITORY_SEARCH_INCLUDES = [:repository_text_value,
|
||||
repository_list_value: :repository_list_item,
|
||||
repository_asset_value: :asset]
|
||||
repository_asset_value: { asset: :asset_text_datum }]
|
||||
|
||||
# List of implemented core API versions
|
||||
API_VERSIONS = ['20170715']
|
||||
|
|
Loading…
Reference in a new issue