From: Banana Date: Sat, 3 Apr 2021 16:24:54 +0000 (+0200) Subject: fixed #5 and added #1 X-Git-Tag: 1.1~13 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=635837ddddb1ea19b217139fa73e447e2fa0c80b;p=bibliotheca-php.git fixed #5 and added #1 --- 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