v6.2.7
[6.2.7] - 2024-09-05
🥳 🎉
This update unifies the flow of media process between components. Now the media use the regenerate() method when the user upload media files, instead use a specific behavior.
Adds a control to different configurations and versions of ImageMagick to manage alpha and meta channels when alternative versions that support transparency are active. Read the ../config/sample_config.php
for more details.
Introduces the new component_indexation
which allows paging data and fetching its data from a calculation instead saving related data. It allows to show related tch and tchi heritage in the thesaurus tree. And now the thesaurus can display the indexations of the children in its parent, grouping all related heritage together in the parent term.
Bug Fixes
- [breaking] Fix diffusion sub-level bug where thesaurus parents publication blocks the deep level resolutions (case images in MHT game for example).
- Fix unit test error where component_input_text check 'get_permissions' instead 'get_component_permissions'
- Fix unit test error where
gettype
is check instead isset for test_debug_log - Fix tool_update_cache components_selection name coherence errors across client and server
- Fix
diffusion_sql
error where records from global_table_maps are not deleted on delete record (search_global2
case) - Fix bug where
Ffmpeg::build_av_alternate_command
fails after first call with same settings
Documentation
- Add Image Magick configuration documentation.
- Add Request Query Object documentation, unfinished.
Features
- Add check_normalized_files method for component_images, used to check if the uploaded files has the normalized and alternative image versions
- Add regeneration options to tool cache. Normalized components
get_regenerate_options
options - Add delete_normalized_files method. Used to move all images into delete directory and keep the uploaded files.
- Add delete_tipos() method into transform data. Used to delete some components data in updates.
Miscellaneous Tasks
- Add
magick_config
constant to sample config. It defines some specific behavior control of the ImageMagick library based in the difference of the library behavior in some OS. - Update chai js lib from 4.3.3 to 4.3.8. Moved from
/lib/mocha
to/lib/chai
- Add
DEDALO_SEARCH_PRESET_SECTION_TIPO
(dd623) to dd_tipos for convenience - Add bulk process to update cache.
- Add option to set the layers defined by the components to choose witch layer need to be processed by ImageMagick. Used by
component_pdf
to create the first page image. - Update composer libs
- Remove unused Leafleft libraries
- Delete unused code of
component_3d
- Check if the default file and alternative versions files exists before regenerate the component, if doesn't exists re-create doing a build
- Add specific build for
component_pdf
. Unify with the process of component_image. - Remove unused call to
get_section_elements_context
in search.js
Refactor
- Simplify
tool_media_version.render_file_versions
code for clarity - Change
dd_dcore_api::read
activity log code for clarity. Moved logic to new methoddd_dcore_api::log_activity
- Change delete and remove_component_media_files to get the extension of the file to be deleted. Now delete process take account the file extension to delete only the file with specific extension.
- Change the way to delete image files. Now all images are moved into the delete directory and his data is preserved when only 1 file (with specific extension) is deleted.
- Change the way to process uploaded files and convert the quality of them by regenerate processes.
- Unify the regenerate way to create image archives when user upload files or update cache. Now the process always call to regenerate the images instead done specific process
- Change
component_external->load_data_from_remote
component tipo iteration names and filter - Change diffusion methods related with delete for clarity
- Unify the way to create file versions in different quality. Now all file process will use
regenerate_component()
. - Unify the way to create file versions in different quality for component_av. Now all file process will use
regenerate_component()
. - Unify the way to delete normalized files in
component_common
. Now every component define his own normalized qualities to be delete before regenerate it. - Unify the way to create file versions in different quality for
component_svg
. Now all file process will useregenerate_component()
. - Unify the way to create file versions in different quality for
component_pdf
. Now all file process will useregenerate_component()
. - Unify the way to get text from pdf. Now the upload process and the tool use the same way to get the pdf text.
- Add some debug controls to
process_ocr
method incomponent_pdf
- Unify the way to regenerate
component_pdf
with all media components.
Change
- Add control of ImageMagick library for transparent images.
- Unify
reload_js_files
action in update_code (area_maintenance) - Change component_publication appearance in mobile. Restored box-shadow
- Remove
ckcachebust
from unit_test/index.html (unnecessary for development) - Add default value '0750' to core function
create_directory
- Change default tool_diffusion
skip_publication_state_check
default value form 0 to 1 - Delete all normalized files previously to regenerate process. Now is force to delete all generated - normalized images to recreate all versions and qualities.
- Add component_av posterframe outline to improve visualization when background is white
- Set thesaurus search typology_selector width as 10rem to prevent width changes when user changes the selection
- Unify the way to get regenerate options of the components. Used to show it into the tools as update_cache.
- Change default state for tool_cache regenerate options from 'opened' to 'closed'
- Set
async
property to true to create media version, used by component_av to generate it in background - Add control to show the components of section info into the selection list of components to search of export.
- Disallow the process of uploaded documents different of PDF files. this kind of documents can not be processed by OCR or get his text.
- Check if the file could be processed as PDF or is other kind of text file «doc», «pages».
- Add get_section_elements_context parameter
caller_tipo
to allow skip_permissions in area thesaurus context - Remove old thesaurus terms that are not used;
section_list_thesaurus
andsearch
. Now when a new hierarchy is build do not copy those nodes. - Remove
tchi9
from sql_thesaurus clean in the v6.2.7 update