]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Keywords splitting is now on all non word character types.
authorwbudic <redacted>
Sat, 13 Feb 2021 21:08:50 +0000 (08:08 +1100)
committerwbudic <redacted>
Sat, 13 Feb 2021 21:08:50 +0000 (08:08 +1100)
Current Development Check List.md
htdocs/cgi-bin/main.cgi
htdocs/cgi-bin/wsrc/main.css

index dc8afaecebd547ddc05de0226780f1b1f4a02619..3e667057bf257ba68f10ce401ce0418b8a52e717 100644 (file)
@@ -9,6 +9,7 @@
 * Search keep in session should preserve and always set options as selection till it is ticked.
   * Reset Whole View to page view, should still set the search option till it is ticked.
   * Unticking Keep in Session should be honored on next browsing.
+  * Keyword should be stripped from, punctuations.
 * Global view overrides. These get generated in the db if set on logon. And used instead of the normal view.
   * Overrides must always show todays log entries, regardless of criteria.
   * VIEW_OVERRIDE_SYSLOGS={0/1}, anon if set 1-true, will hide older than today system logs. Doesn't affect category and keywords searches/views.
index e380a10f180c72726cd0160dbff1331fc76581a7..6e6a6fb39bcd3c00189325f14545980e1e97c663 100755 (executable)
@@ -277,7 +277,7 @@ qq(<FORM id="frm_log" action="data.cgi" onSubmit="return formDelValidation();">
     }
     elsif ( $rs_keys && $rs_keys ne '*' ) {
 
-        my @keywords = split / /, $rs_keys;
+        my @keywords = split /\W/, $rs_keys;
         if ($prm_vc && $prm_vc != $prm_xc) {
 
 
@@ -309,7 +309,7 @@ qq(<FORM id="frm_log" action="data.cgi" onSubmit="return formDelValidation();">
         }
 
         if (@keywords) {
-            foreach (@keywords) {
+            foreach (@keywords) { next if $_ eq "";
                 #was previous an OR?, replace with an AND we filter further by keywords.
                 $stmS =~ s/\sOR$/ and/gi;
                 if(Settings::isProgressDB()){$stmS .= " LOWER(LOG) ~ '" . lc $_ . "'"}
index 75f1d43fd59f8a7378ab2948ce7d42371fcdcabe..f960317d4e4efa4b3ee00509006090e5de16ca0e 100644 (file)
@@ -1,5 +1,9 @@
+body{
+    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Bookman,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
+    font-size: 14px;
+}
 p {
-    font-family: Bookman;
+    
     margin-left: 70px;
     font-weight: bold;
 }
@@ -7,7 +11,7 @@ p {
 table,
 th,
 td {
-    font-family: Bookman;
+    
     border-collapse: collapse;
     padding: 5px;
     margin: auto;