]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
init of manage tags
authorBanana <mail@bananas-playground.net>
Sun, 3 Jan 2021 15:25:30 +0000 (16:25 +0100)
committerBanana <mail@bananas-playground.net>
Sun, 3 Jan 2021 15:25:30 +0000 (16:25 +0100)
TODO
webclient/index.php
webclient/lib/mancubus.class.php
webclient/view/default/advancedsearch/advancedsearch.php
webclient/view/default/managetags/managetags.html [new file with mode: 0644]
webclient/view/default/managetags/managetags.php [new file with mode: 0644]

diff --git a/TODO b/TODO
index ff02451918ff4448191c16d94df9e59cf375fae2..32c4c686373984e88abeb67c64553a2a04fbf499 100644 (file)
--- a/TODO
+++ b/TODO
@@ -5,6 +5,10 @@
 * Mass edit of entries
 * delete of a collection
 * Better error handling and display while adding / update and delete
+* rights example setup and also check if it maches the menu and actions
+       + admin
+       + Management
+       + User (only its data)
 * responsive and breakpoints
 * stats overview page. amount of entries. file and db storage.
 * Export of an entry, collection or everything. Stored on disk.
index 1af3a240e1c94a01a7bd1667d00aeeaa99c577b0..61aa3d638c01c68c2142d950c8619df259141b18 100644 (file)
@@ -17,7 +17,7 @@
  */
 
 # set to true if you need debug messages in error log file
-define('DEBUG',false);
+define('DEBUG',true);
 # set to ture if you need query log messages in error log file.
 define('QUERY_DEBUG',true);
 
index ce2b34604ebfcc857221d4ecd4bf1d73e1eff16d..c2b7a10e511a8692b43ed23f8a9c257c27f5183f 100644 (file)
@@ -689,7 +689,7 @@ class Mancubus {
        }
 
        /**
-        * Get the distinct data from a col and optionaml search term
+        * Get the distinct data from a col and optional search term
         *
         * @param string $colname
         * @param string $search
index 7443331a62fcee9075b0ffcb24e778a8d5ff2ed6..6a216a2b47542dcc50280448a9b04b5082eafa33 100644 (file)
@@ -32,8 +32,6 @@ $TemplateData['collections'] = array();
 $TemplateData['collectionFields'] = array();
 $TemplateData['search'] = false;
 
-//
-
 if(!empty($_collection)) {
        $TemplateData['loadedCollection'] = $Trite->load($_collection);
        if(!empty($TemplateData['loadedCollection'])) {
diff --git a/webclient/view/default/managetags/managetags.html b/webclient/view/default/managetags/managetags.html
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/webclient/view/default/managetags/managetags.php b/webclient/view/default/managetags/managetags.php
new file mode 100644 (file)
index 0000000..246bc6b
--- /dev/null
@@ -0,0 +1,48 @@
+<?php
+/**
+ * Bibliotheca webclient
+ *
+ * Copyright 2018-2021 Johannes Keßler
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+require_once 'lib/trite.class.php';
+$Trite = new Trite($DB,$Doomguy);
+
+$_collection = false;
+if(isset($_GET['collection']) && !empty($_GET['collection'])) {
+       $_collection = trim($_GET['collection']);
+       $_collection = Summoner::validate($_collection,'digit') ? $_collection : false;
+}
+
+$_id = false;
+if(isset($_GET['id']) && !empty($_GET['id'])) {
+       $_id = trim($_GET['id']);
+       $_id = Summoner::validate($_id,'digit') ? $_id : false;
+}
+
+$TemplateData['loadedCollection'] = array();
+$TemplateData['collections'] = array();
+
+if(!empty($_collection)) {
+       $TemplateData['loadedCollection'] = $Trite->load($_collection);
+       if(!empty($TemplateData['loadedCollection'])) {
+       }
+       else {
+               $TemplateData['message']['content'] = "Can not load given collection.";
+               $TemplateData['message']['status'] = "error";
+       }
+}
+else {
+       $TemplateData['collections'] = $Trite->getCollections();
+}