From: Banana Date: Mon, 20 May 2024 08:50:14 +0000 (+0200) Subject: testing feedback X-Git-Tag: 1.7~3 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=68142345cf3c2826eb12712fbf804dffdc1de50b;p=bibliotheca-php.git testing feedback Signed-off-by: Banana --- diff --git a/upgrade/from-version-1.5.txt b/upgrade/from-version-1.5.txt index 65517b8..760da8d 100644 --- a/upgrade/from-version-1.5.txt +++ b/upgrade/from-version-1.5.txt @@ -2,7 +2,7 @@ As of version 1.6, the field 'Combined Search' provides a much better search base. How to change and use new field: Run the following sql query. Replace #REPLACEME# with the used DB prefix. ``` -INSERT INTO `bib_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--'); +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--'); ``` Add the new field 'Combined Search' to a collection. Change the 'Default gloabal seach field' to 'Combined search' and save. diff --git a/upgrade/from-version-1.6.txt b/upgrade/from-version-1.6.txt index d81ca5b..5dc7b31 100644 --- a/upgrade/from-version-1.6.txt +++ b/upgrade/from-version-1.6.txt @@ -13,7 +13,7 @@ Replace #REPLACEME# with your table prefix. Default is bib ``` UPDATE `#REPLACEME#_sys_fields` SET `value` = 'DOS,Windows 1,Windows 2,Windows 3,Windows 95,Windows 98,Windows XP,Windows 2000,Windows ME,Windows Vista,Windows 7,Windows 8,Windows 10,Windows 11', `apiinfo` = 'One of DOS,Windows 1,Windows 2,Windows 3,Windows 95,Windows 98,Windows XP,Windows 2000,Windows ME,Windows Vista,Windows 7,Windows 8,Windows 10,Windows 11' WHERE `#REPLACEME#_sys_fields`.`id` = 17; UPDATE `#REPLACEME#_menu` SET `action` = 'dashboard' WHERE `#REPLACEME#_menu`.`id` = 1; -UPDATE `#REPLACEME#_menu_menu` SET `text` = 'menu.show.dashboard' WHERE `#REPLACEME#_menu`.`id` = 1; +UPDATE `#REPLACEME#_menu` SET `text` = 'menu.show.dashboard' WHERE `#REPLACEME#_menu`.`id` = 1; UPDATE `#REPLACEME#_menu` SET `text` = 'menu.show.collections' WHERE `#REPLACEME#_menu`.`id` = 2; UPDATE `#REPLACEME#_menu` SET `text` = 'menu.show.tags' WHERE `#REPLACEME#_menu`.`id` = 3; UPDATE `#REPLACEME#_menu` SET `text` = 'menu.show.sysinfo' WHERE `#REPLACEME#_menu`.`id` = 19; @@ -28,7 +28,7 @@ UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.description' WHERE UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.content' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'content'; UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.tag' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'tag'; UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.category' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'category'; -UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.category' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'publisher'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.publisher' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'publisher'; UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.developer' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'developer'; UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.platform' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'platform'; UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.storage' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'storage'; diff --git a/webclient/i18n/deu.ini b/webclient/i18n/deu.ini index 04a7e0a..3d5e753 100644 --- a/webclient/i18n/deu.ini +++ b/webclient/i18n/deu.ini @@ -173,8 +173,9 @@ managetags.message.executionError = "Ausgewählte Optionen können nicht durchge managetags.message.notTagsAvailable = "Es sind keine Tags vorhanden oder es liegt ein Fehler vor." managetags.moveorrename = "Verschieben nach (Umbenennen zu bestehenden)" managetags.rename = "Umbenennen" +managetags.save = reuse.global.save managetags.tagfield = "Tagfeld" -managetags.user = "Nutze" +managetags.use = "Nutze" manageuser.addormodify = "Benutzer bearbeiten oder hinzufügen" manageuser.availableusers = "Verfügbare Benutzer" @@ -256,7 +257,7 @@ sysfield.genres = "Genres" sysfield.imdbrating = "IMDB Wertung" sysfield.isbn = "ISBN" sysfield.languages = "Sprachen" -sysfield.localizedTitle = "Lokalisierter Title" +sysfield.localizedTitle = "Lokalisierter Titel" sysfield.os = "Betriebssystem und Version" sysfield.platform = "Platform" sysfield.publisher = "Verlag" diff --git a/webclient/i18n/eng.ini b/webclient/i18n/eng.ini index 4b6d674..e605be7 100644 --- a/webclient/i18n/eng.ini +++ b/webclient/i18n/eng.ini @@ -173,8 +173,9 @@ managetags.message.executionError = "Can not execute given options. See logs for managetags.message.notTagsAvailable = "No tags available or something went wrong." managetags.moveorrename = "Move to (rename to existig)" managetags.rename = "Rename" +managetags.save = reuse.global.save managetags.tagfield = "Tagfield" -managetags.user = "Use" +managetags.use = "Use" manageuser.addormodify = "Add or modify a user" manageuser.availableusers = "Available users" diff --git a/webclient/lib/imdbwebparser.class.php b/webclient/lib/imdbwebparser.class.php index 2feca7e..bae9e90 100644 --- a/webclient/lib/imdbwebparser.class.php +++ b/webclient/lib/imdbwebparser.class.php @@ -339,7 +339,7 @@ class IMDB } // Was the movie found? - $sMatch = $this->matchRegex($sSource, self::IMDB_SEARCH, "1"); + $sMatch = $this->matchRegex($sSource, self::IMDB_SEARCH_ADV, "1"); if (false !== $sMatch) { $sUrl = 'https://www.imdb.com/title/' . $sMatch . '/reference'; if ($this->IMDB_DEBUG) { @@ -351,7 +351,7 @@ class IMDB return true; } - $sMatch = $this->matchRegex($sSource, self::IMDB_NOT_FOUND, "0"); + $sMatch = $this->matchRegex($sSource, self::IMDB_NOT_FOUND_ADV, "0"); if (false !== $sMatch) { if ($this->IMDB_DEBUG) { echo '
Movie not found: ' . $sSearch . '
'; @@ -890,7 +890,7 @@ class IMDB public function getDescription() { if (true === $this->isReady) { - $sMatch = $this->matchRegex($this->sSource, self::IMDB_DESCRIPTION, "1"); + $sMatch = $this->matchRegex($this->sSource, self::IMDB_MOVIE_DESC, "1"); if (false !== $sMatch) { return $this->cleanString($sMatch); } diff --git a/webclient/view/98/collections/collections.html b/webclient/view/98/collections/collections.html index e655957..0acc9a9 100644 --- a/webclient/view/98/collections/collections.html +++ b/webclient/view/98/collections/collections.html @@ -74,7 +74,7 @@ <?php echo $entry['fields']['coverimage']['displayname']; ?> diff --git a/webclient/view/98/collections/collections_pagination.html b/webclient/view/98/collections/collections_pagination.html index 6ba8683..7c2fe4d 100644 --- a/webclient/view/98/collections/collections_pagination.html +++ b/webclient/view/98/collections/collections_pagination.html @@ -12,7 +12,7 @@ for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) { if(in_array($i,$TemplateData['pagination']['visibleRange'])) { echo ''.$i.''; + title="'.$I18n->t('pagination.gotopage').' '.$i.'">'.$i.''; } else { if($i < $TemplateData['pagination']['currentRangeStart'] && $ellipsisShown == 0) { diff --git a/webclient/view/98/managecolletions/managecolletions.html b/webclient/view/98/managecolletions/managecolletions.html index f879750..b71d890 100644 --- a/webclient/view/98/managecolletions/managecolletions.html +++ b/webclient/view/98/managecolletions/managecolletions.html @@ -137,7 +137,7 @@ - + diff --git a/webclient/view/compact/collections/collections.html b/webclient/view/compact/collections/collections.html index c1de870..79acda5 100644 --- a/webclient/view/compact/collections/collections.html +++ b/webclient/view/compact/collections/collections.html @@ -61,7 +61,7 @@ <?php echo $entry['fields']['coverimage']['displayname']; ?> + alt="t($entry['fields']['coverimage']['displayname']); ?>" uk-cover> diff --git a/webclient/view/compact/collections/collections_pagination.html b/webclient/view/compact/collections/collections_pagination.html index 3ba8aba..134db60 100644 --- a/webclient/view/compact/collections/collections_pagination.html +++ b/webclient/view/compact/collections/collections_pagination.html @@ -13,7 +13,7 @@ for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) { if(in_array($i,$TemplateData['pagination']['visibleRange'])) { echo '
  • '.$i.'
  • '; + title="'.$I18n->t('pagination.gotopage').' '.$i.'">'.$i.''; } else { if($i < $TemplateData['pagination']['currentRangeStart'] && $ellipsisShown == 0) { diff --git a/webclient/view/default/collections/collections.html b/webclient/view/default/collections/collections.html index 6047d6a..b06e015 100644 --- a/webclient/view/default/collections/collections.html +++ b/webclient/view/default/collections/collections.html @@ -60,7 +60,7 @@ <?php echo $entry['fields']['coverimage']['displayname']; ?> + alt="t($entry['fields']['coverimage']['displayname']); ?>"> @@ -74,7 +74,7 @@ diff --git a/webclient/view/default/collections/collections_pagination.html b/webclient/view/default/collections/collections_pagination.html index 633990c..76d31b3 100644 --- a/webclient/view/default/collections/collections_pagination.html +++ b/webclient/view/default/collections/collections_pagination.html @@ -11,7 +11,7 @@ for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) { if(in_array($i,$TemplateData['pagination']['visibleRange'])) { echo '
  • '.$i.'
  • '; + title="'.$I18n->t('pagination.gotopage').' '.$i.'">'.$i.''; } else { if($i < $TemplateData['pagination']['currentRangeStart'] && $ellipsisShown == 0) { diff --git a/webclient/view/default/entry/entry.html b/webclient/view/default/entry/entry.html index ac3229f..79d3293 100644 --- a/webclient/view/default/entry/entry.html +++ b/webclient/view/default/entry/entry.html @@ -3,7 +3,7 @@
    - + getExistingFields(false, true); if(!empty($collectionFields)) { foreach ($collectionFields as $k=>$v) { - $TemplateData['saveToSelection'] .= "\n"; + $TemplateData['saveToSelection'] .= "\n"; } } diff --git a/webclient/view/default/tool/tool-imdbweb.php b/webclient/view/default/tool/tool-imdbweb.php index 5b40745..dd46dc8 100644 --- a/webclient/view/default/tool/tool-imdbweb.php +++ b/webclient/view/default/tool/tool-imdbweb.php @@ -48,7 +48,7 @@ $TemplateData['showMatchingForm'] = false; $collectionFields = $ManangeCollectionsFields->getExistingFields(false, true); if(!empty($collectionFields)) { foreach ($collectionFields as $k=>$v) { - $TemplateData['saveToSelection'] .= "\n"; + $TemplateData['saveToSelection'] .= "\n"; } } diff --git a/webclient/view/default/tool/tool-musicbrainz.php b/webclient/view/default/tool/tool-musicbrainz.php index 10d99b2..7092eab 100644 --- a/webclient/view/default/tool/tool-musicbrainz.php +++ b/webclient/view/default/tool/tool-musicbrainz.php @@ -49,7 +49,7 @@ $TemplateData['saveToSelection'] = ''; $collectionFields = $ManangeCollectionsFields->getExistingFields(false, true); if(!empty($collectionFields)) { foreach ($collectionFields as $k=>$v) { - $TemplateData['saveToSelection'] .= "\n"; + $TemplateData['saveToSelection'] .= "\n"; } }
    t('global.user ?>t('global.user'); ?> t('global.group'); ?> t('global.other'); ?>