From 4b5059bfc425983ecbe71424a4a55e49699d8be0 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sun, 20 Sep 2015 05:40:05 +0200 Subject: [PATCH] Batch tagging (first pass but working). Search will now look in bookmarks addresses too. Some bugfixes. --- data/templates/default/bookmarks.tpl.php | 9 +- data/templates/default/editbookmark.tpl.php | 49 +++++++++-- data/templates/default/toolbar.inc.php | 4 +- src/SemanticScuttle/Service/Bookmark.php | 16 ++-- src/SemanticScuttle/Service/Bookmark2Tag.php | 5 +- src/SemanticScuttle/db/mysql4.php | 11 +-- src/SemanticScuttle/header.php | 2 +- www/alltags.php | 1 - www/bookmarks.php | 87 +++++++++++++------- www/search.php | 38 ++++++++- www/tags.php | 74 ++++++++++++++++- 11 files changed, 239 insertions(+), 57 deletions(-) diff --git a/data/templates/default/bookmarks.tpl.php b/data/templates/default/bookmarks.tpl.php index 2a3d169..79901bf 100644 --- a/data/templates/default/bookmarks.tpl.php +++ b/data/templates/default/bookmarks.tpl.php @@ -162,6 +162,14 @@ default: / +isLoggedOn() && $_SERVER['PHP_SELF'] !== "/index.php") { + echo '
'; + echo ''; + echo ''; + echo "
"; +} +?>

- -
+ + + + + + + + + + + + + + + + + + + + + + + + @@ -112,6 +143,9 @@ $ajaxUrl = ROOT . 'ajax/' + + '; echo T_('edit common description').')'; @@ -131,21 +165,22 @@ $ajaxUrl = ROOT . 'ajax/' $address) { ?> - + - + - + @@ -154,6 +189,7 @@ foreach($row['bAddress'] as $index => $address) {
@@ -75,13 +75,44 @@ $ajaxUrl = ROOT . 'ajax/'
- +
+ +
+ +
+ +
+ +
" to include one tag in another. e.g.: europe>france>paris'))?>
@@ -179,7 +215,8 @@ jQuery(document).ready(function() { } //var availableTags = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]; - jQuery("input#tags").autocomplete({ + //jQuery("input#tags").autocomplete({ + jQuery("input.tags").autocomplete({ autoFocus: true, minLength: 1, diff --git a/data/templates/default/toolbar.inc.php b/data/templates/default/toolbar.inc.php index 02ffc59..ab7bf6a 100644 --- a/data/templates/default/toolbar.inc.php +++ b/data/templates/default/toolbar.inc.php @@ -26,9 +26,9 @@ if ($userservice->isLoggedOn() && is_object($currentUser)) {