]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
first usable version. 1.0 Castle 1.0
authorBanana <mail@bananas-playground.net>
Wed, 6 Jan 2021 14:30:21 +0000 (15:30 +0100)
committerBanana <mail@bananas-playground.net>
Wed, 6 Jan 2021 14:30:21 +0000 (15:30 +0100)
README
VERSION
webclient/api.php
webclient/index.php
webclient/lib/mancubus.class.php
webclient/view/default/collections/collections.php

diff --git a/README b/README
index 7abbcfd99fc075a13567d2b91e83d91c248528ea..aec403d5fa6a28b49a3b153e3894b403310be9c7 100644 (file)
--- a/README
+++ b/README
@@ -3,6 +3,11 @@
 https://www.bananas-playground.net/projekt/bibliotheca/
 
 ## Usage
+Self hosted collection management for movies, music or games.
+Install it on your own webserver (see requirements) and store the information
+about your collected stuff.
+Accessible and usable with a browser. Runs also off a Rapsberry Pi.
+Tag and category support. Fulltext search an individual fields per collection.
 
 ## Technical information
 This is build and tested on a linux based OS. Windows support not yet, but it could work.
diff --git a/VERSION b/VERSION
index df1e03ba5799571df45584a820899335c2ff06b2..07e97bc2397ab7895e2470b4a49b3e2bc42a3313 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,2 +1,7 @@
-1.0 - Castle - (tba)
+1.0 - Castle - (20210106)
        * First usable version
+       * Using as a collection management software will work
+       * Rights management needs tweeking, so use the admin account for a start
+       * Documentation covers the basics
+       * Use it and give feedback.
+       * Also, make backups.
index ac9fbe3543d6617dd40180d6b1b9caee514a8cf8..506369b07e503b8e83b2ec691b4378879d9902c9 100644 (file)
@@ -17,9 +17,9 @@
  */
 
 # set to true if you need debug messages in error log file
-define('DEBUG',true);
+define('DEBUG',false);
 # set to ture if you need query log messages in error log file.
-define('QUERY_DEBUG',true);
+define('QUERY_DEBUG',false);
 
 require_once './config/path.php';
 require_once './config/system.php';
index 61aa3d638c01c68c2142d950c8619df259141b18..81a0c6f32b8d46a2fd975fc8ddd793812c45efa9 100644 (file)
@@ -17,9 +17,9 @@
  */
 
 # set to true if you need debug messages in error log file
-define('DEBUG',true);
+define('DEBUG',false);
 # set to ture if you need query log messages in error log file.
-define('QUERY_DEBUG',true);
+define('QUERY_DEBUG',false);
 
 require_once './config/path.php';
 require_once './config/system.php';
index e8d276636ca8e2bf98ffa95036ec5e5b4c06608b..3281ef2e5985a77642462d3e4bdd1632d0398ef6 100644 (file)
@@ -180,6 +180,7 @@ class Mancubus {
         *              'colName' => 'column name to search in',
         *              'colValue' => 'Value to search for',
         *              'fieldData' => field data from Trite->getCollectionFields()
+        *              'exactTagMatch' => true to make a binary compare. false for match against search
         * )
         *
         * @param array $searchData
@@ -209,7 +210,13 @@ class Mancubus {
                                                $queryJoin = " LEFT JOIN `".DB_PREFIX."_collection_entry2lookup_".$this->_DB->real_escape_string($this->_collectionId)."` AS e2l ON e2l.fk_entry=t.id";
 
                                                $queryWhere .= " AND e2l.fk_field = '".$this->_DB->real_escape_string($sd['fieldData']['id'])."'";
-                                               $queryWhere .= " AND MATCH (e2l.value) AGAINST ('".$this->_DB->real_escape_string($sd['colValue'])."' IN BOOLEAN MODE)";
+                                               if(isset($sd['exactTagMatch']) && $sd['exactTagMatch'] === true) {
+                                                       $queryWhere .= " AND e2l.value = BINARY '".$this->_DB->real_escape_string($sd['colValue'])."'";
+                                                       $_isFulltext = false;
+                                               }
+                                               else {
+                                                       $queryWhere .= " AND MATCH (e2l.value) AGAINST ('".$this->_DB->real_escape_string($sd['colValue'])."' IN BOOLEAN MODE)";
+                                               }
                                        }
                                        elseif ($sd['fieldData']['searchtype'] == "entrySingleNum" && strstr($sd['colValue'],'<')) {
                                                $_s = str_replace('<','',$sd['colValue']);
index 43729123350f3c5af8c522785fc0c86fc745cd14..88c9cbd01b861b8a3b40c17dfe3d90a5aa65b40b 100644 (file)
@@ -74,7 +74,8 @@ if(!empty($_collection)) {
                        $_sdata[0] = array(
                                'colName' => $_fd[$_fid]['identifier'],
                                'colValue' => $_fv,
-                               'fieldData' => $_fd[$_fid]
+                               'fieldData' => $_fd[$_fid],
+                               'exactTagMatch' => true
                        );
                        $_search = $_fv;
                        $TemplateData['pagination']['currentGetParameters']['fid'] = $_fid;