Skip to content

v6.2.3

Compare
Choose a tag to compare
@renderpci renderpci released this 07 Jun 12:56
· 1301 commits to master since this release

[6.2.3] - 2024-06-07

🥳 🎉

Major changes

  • This version added an optional OCR process to PDF files, now is possible to install OCR library to process every uploaded PDF. See the sample_config.php and documentation to install and configure this new option. Thanks to @pricua for his initiative and implementing this feature.
  • The Thesaurus of Conservation has been renamed to Restoration.

Bug Fixes

  • [breaking] Fix component_portal 'add_component_info' calculation error where 'ddinfo' was not found when no previous data already exists.
  • [breaking] Fix component_portal search error where some request config are not resolved correctly in search mode
  • [breaking] Fix common::get_ar_request_config error where components in tm mode (time machine) are using 'default' switch mode instead the expected: 'list'
  • Fix user search incorrect filter locator passed as array instead expected object
  • Fix get_columns_map errors where in search mode, term was not displayed
  • Fix keyup event issue where transcription field (text area editor) was blur on user key press ESC
  • Fix paginator missing vars page_row_begin, page_row_end in non defined label situations
  • Fix CSS issues on component_av and component_portal list views
  • Fix wrong URL from widget media_icons
  • Fix dd_grid get_record_link_column issue where 'session_save = false' was missing in URL
  • Fix component_image issue where image_container.object_node fails on fit_image. Now is checked before apply changes for safe
  • Fix active_fill_color error on vector_editor where null active_fill_color crash the application
  • Fix service_time_machine CSS issue where images from non component_text_area were set to 1rem in height
  • Fix section CSS issues in time_machine service
  • Fix bug where component properties CSS was applied into tool_time_machine list
  • Fix service_time_machine CSS issue where images in the mosaic portal were displayed too large
  • Fix modal iframe height issue where scrollbars are displayed incorrectly because wrong height definitions
  • Fix tool_propagate_component_data issue where change_data was not properly set before save to tmp section
  • Fix component_text_area issue where focus editor fails if ckeditor is not already initialized
  • Fix errors in start sequence client page where unavailable PHP or PostgreSQL servers were not managed properly
  • Fix page index environment js file path error
  • Fix process_uploaded_file issue where empty argument 'process_options' generates an error. Fixed both arguments to default value of null for compatibility with current tools (like tool_leaflet_special_tools)
  • Add missing 'mosaic' view definition to component_portal in list mode render
  • Removed double instantiation of tools.
  • Remove double JSON encode q value in get_hierarchy_sections_from_types
  • Service dropzone info node name
  • Service dropzone global_progress status set to 100% when previous uploads was done. Now the global_progress is reset to 0% when new file is added or when the queue is done.
  • Set extracted text data as array previously to save for the PDF in the text processing

Documentation

  • Change the Conservation thesaurus to Restoration names and tlds in documentation.
  • Change the example of file in tool_import_csv
  • Add OCR optional install and configuration documentation

Features

  • Add children_search when the thesaurus call to flat sections as rsc197 (People under study)
  • Added get_hierarchy_tld method in hierarchy, call to the hierarchy1 with the specific section_id to obtain his tld.
  • Added delete_virtual_section method in hierarchy, to delete all ontology definitions from the specified tld
  • Add to clone the property definition of the real_section when tool_hierarchy create new virtual section, is necessary to get the original properties to use rqo or sqo definitions
  • Added force_to_create option into the tool_hierarchy, to remove previous definition and recreate the virtual section with the changes.
  • Add component_image regenerate_component option to check and fix SVG file path
  • Add to get the tool_config of specific tool or his default definition.
  • Added an overwrite the config defined by ontology with the default or specific tool_config. Implemented for the buttons and components context.

Miscellaneous Tasks

  • Improve service autocomplete autocomplete_data_li CSS line-height
  • Add to change peri1 section to dc1 section to unify thesaurus tlds
  • Update composer files (autoload, etc.)
  • Add search thesaurus 'children_search' for People section case (rsc197 from hierarchy1)
  • First change of the duplicated SQL search, is not operative!
  • Add vector_editor missing stopPropagation for click events
  • Add 'get_structure_context_simple' to tool_common for consistency with common calls
  • Add $add_request_config===true clause to ar_target_section_ddo calculation in common::get_structure_context to prevent calculate target-sections and their request config when the function call explicit set add_request_config = false
  • Add view_tool_time_machine_list class name 'mode'
  • Add 'Invalid tipo' error to start sequence from API when received tipo model cannot be resolved
  • Prepare API environment for future calls

Refactor

  • [breaking] Refactor core function 'session_start_manager' for easy debug
  • [breaking] Refactor environment.js.php for easy debug
  • [breaking] Unify dd_core_api::start calls to use 'get_structure_context_simple' instead of the (more expensive) 'get_structure_context'.
  • Change the SQL to use to find duplicates, now it use a HAVING clause and the window return the id in the same way that other searches.
  • Unify open viewer in media components (3d, av, image, pdf, svg). Implement media common handler for this
  • Service dropzone with more sense class names
  • Add process_options to component_3d, component_av, component_image, component_json, component_svg and component_media_common process_uploaded_file
  • Unify the process of OCR to PDF files as process options flow

Change

  • Update main index.html CSS cachebust
  • Remove environment display_errors = 0 (environment errors are useful in some situations)
  • Remove common->get_json debug duplicated data properties
  • Add new label into tool_lang_multi to use his own label definition
  • Replace Spanish label with English label in render paginator
  • Change default display_json value for some render stream process
  • Add check if the term has children when the caller is a hierarchy of a flat section as rsc197(people under study)
  • Add target_section_tipo to the get_children API call from ts_object
  • Add check if the ts_object have children to change the style of the arrow
  • Update the register file of tool_hierarchy to include new labels and translations
  • Add pagination total to get_children_data on children_search
  • Add filter of not null values to find duplicates.
  • Add common var $buttons_context, used to store calculated buttons context value
  • Add 'set_permissions' to get_structure_context_simple to prevent calculate context permissions in simple mode
  • Move set_dato_default permissions check to the end of the function to prevent unnecessary permissions calculation on set_dato_default
  • Add active_component_instance to tool_hierarchy
  • Set the default limit to get thesaurus terms, set with 300
  • Change default DEDALO_ROOT_WEB for CLI as '/dedalo' instead '/' (solve path problems using processes)
  • Add caller_options to set the section caller and the component/button caller to the tools. implemented in tool_common
  • Change the restoration hierarchies definition in hierarchies
  • Add to get 2 characters in the name of the files into the tool_import_file. Now the regex could get 2 letter for the field definition.
  • Add tool_common.open_tool options to receive options.tool_context as string such as 'tool_upload' and calculate tool context by itself
  • Change component_3d file name from view_column_list_3d to view_default_list_3d
  • Homogenise media_wrapper CSS image components
  • Upgrade dropzone to v7.1.2 from the fork: https://github.com/NicolasCARPi/dropzone
  • Show the log of the process only when the show debug is active
  • Remove the min-with of the service autocomplete in small screens
  • Change the flex-direction of the service tmp section in small screens
  • Re style CSS of the tool_import_files and create new layout for small screens
  • Add to set the destination field when an image is dropped in the tool import files. Now if the control field is active the image dropped will be assign to the correct field.
  • Set the regex of tool import files to get the field name with 1 or 2 characters. Now the files can set the field control with 2 letters as my_file-An.jpg
  • Add cache to get the tools config. Now if the tool has been resolved it will returned directly without calling the DDBB
  • Add modal close action re-select the caller component for easy user
  • Style the OCR options in tool_upload
  • Enforce the shell command for OCR processing PDF files
  • Remove PHPUnit function from component_pdf
  • Change the typology 10 name from Conservation to Restoration
  • Check if the data and value is set for render view mini of component_number
  • Check if is set fields_separator else use the default. Changed in component_number and component_input text render edit.