from-version-1.5.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Added a new global search field
  2. As of version 1.6, the field 'Combined Search' provides a much better search base.
  3. How to change and use new field: Run the following sql query. Replace #REPLACEME# with the used DB prefix.
  4. ```
  5. INSERT INTO `#REPLACEME#_sys_fields` (`id`, `identifier`, `displayname`, `type`, `searchtype`, `createstring`, `inputValidation`, `value`, `apiinfo`, `created`, `modified`, `modificationuser`, `owner`, `group`, `rights`) VALUES (NULL, 'combSearch', 'Combined Search', 'hidden', 'entryText', '`combSearch` text NULL DEFAULT NULL, ADD FULLTEXT (`combSearch`)', '', NULL, 'mysql text - Content will be auto generated from other entry fields', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, NULL, '1', '1', 'rw-r--r--');
  6. ```
  7. Add the new field 'Combined Search' to a collection.
  8. Change the 'Default gloabal seach field' to 'Combined search' and save.
  9. After that check the 'Update combined search field data' option to create the search data
  10. for the selected collection. Do this for every collection.
  11. For all new entries the data will be created automatically.
  12. # Added new constants to config.php file.
  13. Use config.php.default as a help. The new lines are:
  14. ```
  15. const LOGFILE = PATH_SYSTEMOUT.'/bibliotheca.log';
  16. # CURL browser settings
  17. const BROWSER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0';
  18. const BROWSER_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8';
  19. const BROWSER_ACCEPT_LANG = 'en-US,en;q=0.5';
  20. ```
  21. # Updated tools configs
  22. Please compare the default config files for googlebooks, imdbweb and musicbrainz and make the required changes.
  23. # Added new theme config to config.php file
  24. Use config.php.default as a help. The new setting is:
  25. ```
  26. # additional config for each theme with fallback
  27. const UI_THEME_CONFIG = array(
  28. 'default' => array(
  29. 'coverImageMaxWidth' => 260 // in pixel. Supports image/jpeg, image/png, image/webp
  30. ),
  31. '98' => array(
  32. 'coverImageMaxWidth' => 500 // in pixel. Supports image/jpeg, image/png, image/webp
  33. )
  34. );
  35. ```