Commit Graph

53 Commits

Author SHA1 Message Date
Alexander Bigga 5134e1d46a Remove old updater class (use update wizards for new issues) 2022-03-11 14:31:24 +01:00
Alexander Bigga 2f89797f76 Fix double escaped slashes in format upgrade wizard.
In Kitodo.Presentation 2.x the `tx_dlf_formats`.`class` names have the format like `tx_dlf_alto`.

In Kitodo.Presentation 3.x the format of the namespace based classes is
like `Kitodo\Dlf\Format\Alto`.

An update wizard task is provided to convert these entries. But it adds
a double encoding of the slashes which does not work finally.

Wrong is `Kitodo\\Dlf\\Format\\Alto`.

This patch fixes this issue.
2021-06-28 11:16:10 +02:00
Scrutinizer Auto-Fixer 4bc8a76e33 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2021-06-23 08:50:58 +00:00
Sebastian Meyer 5c9d79ae2d Make Solr instantiation more robust 2020-12-21 09:13:19 +01:00
Sebastian Meyer b9ca493018 Update Solarium to 5.2.x 2020-12-20 16:06:00 +01:00
Sebastian Meyer 6070c222c0 Remove $hsc parameter from getLL() 2020-05-11 17:35:41 +02:00
erik-konrad c7bf60816b [FIX] refactores oldFormatClasses() Method in class.ext_update.php and removes the escaped backslashes for better DB compatibility 2020-04-09 09:05:29 +02:00
erik-konrad a00079a3fa 9LTS Codacity quality review fix 2020-04-08 16:41:05 +02:00
erik-konrad e95e9d7d6d [9LTS] Codacy code quality review fixes 2020-04-07 15:58:11 +02:00
erik-konrad 73240230eb [9LTS] code review fixes 2020-04-07 15:45:43 +02:00
erik-konrad 301e1df573 [9LTS] static code analyzer fixes 2020-04-06 15:42:32 +02:00
erik-konrad 04cff89a17 [9LTS] cleanup 2020-04-06 14:29:49 +02:00
erik-konrad 1d28417e4a [9LTS] upgrade method refactoring 2020-04-06 10:48:29 +02:00
erik-konrad 3720dd7894 [9LTS] Extensions module and dlf extension configuration is now working (update script partially upgraded) 2020-04-02 16:25:36 +02:00
Sebastian Meyer e1dd24f973 Check for non-existing and empty "document_format" 2020-02-18 14:47:05 +01:00
Sebastian Meyer 07aeb01d71 Fix update script 2019-11-14 11:52:08 +01:00
Sebastian Meyer e832d94e20 Use lower case for all reserved types and keywords 2019-11-13 13:09:00 +01:00
Sebastian Meyer 5e4ad588a2 Use short form of type keywords 2019-11-13 12:51:19 +01:00
Sebastian Meyer c99f292f70 Fix xpath return values 2019-11-08 19:23:54 +01:00
Sebastian Meyer 605787e0d7 Check for boolean return values as well 2019-11-05 15:51:16 +01:00
Sebastian Meyer cb953184d7 Explicitly check for boolean value 2019-11-04 16:16:15 +01:00
Sebastian Meyer f1e488278f Capitalize TRUE, FALSE, NULL 2019-10-30 15:56:21 +01:00
Sebastian Meyer 6f48dcb9a5 Use PSR-12 code styling 2019-10-30 15:37:44 +01:00
Beatrycze Volk df7e3584b5 Fix return type for array of old format classes 2019-08-22 09:43:37 +02:00
Sebastian Meyer 80347c923c
Updated for consistent formatting 2019-07-26 11:56:27 +02:00
Alexander Bigga d037b55980 fix broken SQL statement in updater script
Opening the extension manager leads to a SQL error which is visible in
development mode:

  You have an error in your SQL syntax; check the manual that corresponds
  to your MySQL server version for the right syntax to use near
  'AND `tx_dlf_solrcores`.`deleted` = 0' at line 1

The query itself is

  SELECT index_name FROM tx_dlf_solrcores WHERE AND `tx_dlf_solrcores`.`deleted` = 0'

The WHERE statement is wrong because it starts with AND from
Helper::whereClause().
2019-07-26 11:02:48 +02:00
Sebastian Meyer bfd418f618 Remove unnecessary GROUP and ORDER statements 2019-07-17 09:21:43 +02:00
Sebastian Meyer a2181b1738 Use Helper functions to exclude deleted records 2019-07-10 11:51:19 +02:00
Lutz Helm f6278323a3 Revert renaming of xpath to metadataquery 2019-06-17 13:29:54 +02:00
Lutz Helm d7c7071e85 Codacy fixes 2019-06-17 13:29:54 +02:00
Lutz Helm 07d3c05312 Codacy Fixes 2019-06-17 13:29:54 +02:00
Lutz Helm f394321232 Improve ext_update::access() checks
- Use the correct database name for restricting the schema queries to the
current database
- Exclude formats without classes from format class update check
2019-06-17 13:12:33 +02:00
Lutz Helm a910001b95 Use upper case for columns consistently 2019-06-17 13:12:33 +02:00
Lutz Helm 2d789e9206 Use Helper methods to create and render flash messages 2019-06-17 13:12:33 +02:00
Lutz Helm 5640c8ef7d Apply changes from IIIF feature branch - DB / model changes 2019-06-17 12:57:51 +02:00
Sebastian Meyer daffff6bda Escape the hell out of those backslashes! 2019-03-16 22:17:25 +01:00
Sebastian Meyer 81b00a87b1 Fix error in Solr core update 2019-03-16 22:03:30 +01:00
Sebastian Meyer f6088068bd Change namespaces to singular 2019-03-16 18:49:55 +01:00
Sebastian Meyer 83d6523fe2 Allow HTML tags in flash messages 2019-03-16 13:41:20 +01:00
Sebastian Meyer c149450cf5 Update flashMessage service 2019-03-16 13:04:06 +01:00
Sebastian Meyer da5d8ff337 Switch tabs for whitespaces 2019-03-16 12:03:25 +01:00
Sebastian Meyer b3887bdbad Update code style 2019-03-14 22:41:35 +01:00
Sebastian Meyer 425aedde5a Update code style 2019-03-14 20:53:16 +01:00
Sebastian Meyer 919ee33f82 Move plugins to Classes/Plugins and add namespaces 2019-03-14 15:42:34 +01:00
Sebastian Meyer bb7ac1ba6e Add namespaces to all common classes 2019-03-13 17:55:50 +01:00
Sebastian Meyer 87296bd703 Add namespaces to all common classes 2019-03-13 08:29:51 +01:00
Frank Ulrich Weber 69bb08d9d8 Fix wrong Solr core name in class.ext_update.php 2018-11-12 09:14:37 +01:00
Sebastian Meyer dacda107ec
Fix typo 2018-11-08 18:21:39 +01:00
Frank Ulrich Weber 21a7dca70d Update script for Solr cores added 2018-11-08 14:22:52 +01:00
Sebastian Meyer e5f080db69 Fix Codacy code patterns 2017-12-23 12:53:10 +01:00