From 635837ddddb1ea19b217139fa73e447e2fa0c80b Mon Sep 17 00:00:00 2001 From: Banana Date: Sat, 3 Apr 2021 18:24:54 +0200 Subject: [PATCH] fixed #5 and added #1 --- CHANGELOG | 2 + .../advancedsearch/advancedsearch.html | 2 +- .../view/default/collections/collections.html | 42 +++++-------------- .../collections/collections_pagination.html | 31 ++++++++++++++ webclient/view/default/tool/tool-imdbweb.html | 2 - 5 files changed, 45 insertions(+), 34 deletions(-) create mode 100644 webclient/view/default/collections/collections_pagination.html diff --git a/CHANGELOG b/CHANGELOG index 5804c49..e65a485 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -25,6 +25,8 @@ Currently used to allow whitespace in a tag * Mass edit of entries. Entries found with advanced search can now be editied. Upload fields are not supported yet. + * Fixed bug #5 + * Added feature #1. Collections overview has pagination at the bottom too. 1.0 - Castle 20210106 * First usable version diff --git a/webclient/view/default/advancedsearch/advancedsearch.html b/webclient/view/default/advancedsearch/advancedsearch.html index b46a57a..13ec271 100644 --- a/webclient/view/default/advancedsearch/advancedsearch.html +++ b/webclient/view/default/advancedsearch/advancedsearch.html @@ -46,7 +46,7 @@

Syntax

To search within the collection default search field, like the ordinary search, just type the search term and go.

-

To search within the possible fields of a collection type the field identifier followed by : and then a space.

+

To search within the possible fields of a collection type the field identifier followed by : and then a space. Not every search operator does make sense with tag search fields.

eg.: title: bourne

Available fields in are:

diff --git a/webclient/view/default/collections/collections.html b/webclient/view/default/collections/collections.html
index edd562b..7d49c42 100644
--- a/webclient/view/default/collections/collections.html
+++ b/webclient/view/default/collections/collections.html
@@ -2,37 +2,7 @@
 
    - 1) { - echo '
  • -
  • '; - } - $ellipsisShown = 0; - - for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) { - $active = ''; - if($i == $TemplateData['pagination']['curPage']) $active = 'uk-active'; - if(in_array($i,$TemplateData['pagination']['visibleRange'])) { - echo '
  • '.$i.'
  • '; - } - else { - if($i < $TemplateData['pagination']['currentRangeStart'] && $ellipsisShown == 0) { - echo '
  • '; - $ellipsisShown = 1; - } - if($i > $TemplateData['pagination']['currentRangeEnd'] && ($ellipsisShown == 0 || $ellipsisShown == 1)) { - echo '
  • '; - $ellipsisShown = 2; - } - } - } - - if($TemplateData['pagination']['curPage'] < $TemplateData['pagination']['pages']) { - echo '
  • -
  • '; - } - ?> +
@@ -122,3 +92,13 @@
+ + 1) { ?> +
+
+
    + +
+
+
+ diff --git a/webclient/view/default/collections/collections_pagination.html b/webclient/view/default/collections/collections_pagination.html new file mode 100644 index 0000000..fdfb8cc --- /dev/null +++ b/webclient/view/default/collections/collections_pagination.html @@ -0,0 +1,31 @@ + 1) { + echo '
  • +
  • '; +} +$ellipsisShown = 0; + +for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) { + $active = ''; + if($i == $TemplateData['pagination']['curPage']) $active = 'uk-active'; + if(in_array($i,$TemplateData['pagination']['visibleRange'])) { + echo '
  • '.$i.'
  • '; + } + else { + if($i < $TemplateData['pagination']['currentRangeStart'] && $ellipsisShown == 0) { + echo '
  • '; + $ellipsisShown = 1; + } + if($i > $TemplateData['pagination']['currentRangeEnd'] && ($ellipsisShown == 0 || $ellipsisShown == 1)) { + echo '
  • '; + $ellipsisShown = 2; + } + } +} + +if($TemplateData['pagination']['curPage'] < $TemplateData['pagination']['pages']) { + echo '
  • +
  • '; +} +?> diff --git a/webclient/view/default/tool/tool-imdbweb.html b/webclient/view/default/tool/tool-imdbweb.html index a2f2b0d..6ac167e 100644 --- a/webclient/view/default/tool/tool-imdbweb.html +++ b/webclient/view/default/tool/tool-imdbweb.html @@ -1,6 +1,4 @@

    Limitations

    -

    Picture: Use URL to manually save and upload.

    -

    Rating: Works only if the rating matches 1:1.

    Data will be overwritten

    -- 2.39.5