From: Banana Date: Sun, 3 Jan 2021 15:25:30 +0000 (+0100) Subject: init of manage tags X-Git-Tag: 1.0~9 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=c56bf89d556446de99febb9af0ae74df7c70eff3;p=bibliotheca-php.git init of manage tags --- diff --git a/TODO b/TODO index ff02451..32c4c68 100644 --- 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. diff --git a/webclient/index.php b/webclient/index.php index 1af3a24..61aa3d6 100644 --- a/webclient/index.php +++ b/webclient/index.php @@ -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); diff --git a/webclient/lib/mancubus.class.php b/webclient/lib/mancubus.class.php index ce2b346..c2b7a10 100644 --- a/webclient/lib/mancubus.class.php +++ b/webclient/lib/mancubus.class.php @@ -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 diff --git a/webclient/view/default/advancedsearch/advancedsearch.php b/webclient/view/default/advancedsearch/advancedsearch.php index 7443331..6a216a2 100644 --- a/webclient/view/default/advancedsearch/advancedsearch.php +++ b/webclient/view/default/advancedsearch/advancedsearch.php @@ -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 index 0000000..e69de29 diff --git a/webclient/view/default/managetags/managetags.php b/webclient/view/default/managetags/managetags.php new file mode 100644 index 0000000..246bc6b --- /dev/null +++ b/webclient/view/default/managetags/managetags.php @@ -0,0 +1,48 @@ +load($_collection); + if(!empty($TemplateData['loadedCollection'])) { + } + else { + $TemplateData['message']['content'] = "Can not load given collection."; + $TemplateData['message']['status'] = "error"; + } +} +else { + $TemplateData['collections'] = $Trite->getCollections(); +}