Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item1918: confuse everythig before cleanup. Still work in progress
git-svn-id: http://svn.foswiki.org/trunk/TagsPlugin@6083 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
OliverKrueger
authored and
OliverKrueger
committed
Jan 18, 2010
1 parent
d3356f6
commit d5bc4d3
Showing
19 changed files
with
483 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1253480019" format="1.1" reprev="1.14" version="1.14"}% | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1263482161" format="1.1" version="1.22"}% | ||
%META:TOPICPARENT{name="TagsPlugin"}% | ||
%TAGSEARCH{ | ||
query="tag" | ||
web="%URLPARAM{"tagweb" default="%TAGWEB%"}%" | ||
topic="%URLPARAM{"tagtopic" default="%TAGTOPIC%" }%" | ||
format=" <li class='tagsplugin_tag $public'><a class='tagsplugin_tag_link' href='%SCRIPTURL{view}%/%SYSTEMWEB%/TagsPluginTagDetails?tag=$tag' tag='$tag' web='$web' topic='$topic'>$percntICON{tag}$percnt $tag</a></li>" | ||
user="%WIKINAME%" | ||
public="private" | ||
format=" <li class='tagsplugin_tag'><a class='tagsplugin_tag_link' href='%SCRIPTURL{view}%/%SYSTEMWEB%/TagsPluginTagDetails?tag=$tag' tag='$tag' web='$web' topic='$topic'>$percntICON{tag}$percnt $tag</a></li>" | ||
sep="$n" | ||
}% | ||
%TAGSEARCH{ | ||
query="tag" | ||
web="%URLPARAM{"tagweb" default="%TAGWEB%"}%" | ||
topic="%URLPARAM{"tagtopic" default="%TAGTOPIC%" }%" | ||
public="public" | ||
format=" <li class='tagsplugin_tag $public'><a class='tagsplugin_tag_link' href='%SCRIPTURL{view}%/%SYSTEMWEB%/TagsPluginTagDetails?tag=$tag' tag='$tag' web='$web' topic='$topic'>$percntICON{tag}$percnt $tag</a></li>" | ||
sep="$n" | ||
}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1263790531" format="1.1" reprev="1.2" version="1.2"}% | ||
%META:TOPICPARENT{name="TagsPlugin"}% | ||
<!-- | ||
* Set TAGNAME = %URLPARAM{"tag" default="undef" encode="safe"}% | ||
* Set TARGET = %URLPARAM{"redirectto" default="%MAINWEB%.%HOMETOPIC%" encode="safe"}% | ||
--> | ||
<form name="foswikiTagsPluginMerge" action="%SCRIPTURL{rest}%/TagsPlugin/merge" method="get"> | ||
<input type="hidden" name="redirectto" value="%TARGET%" /> | ||
<input type="hidden" name="tag2" value="%TAGNAME%" /> | ||
Merge %ICON{"tag"}% <span class='foswikiGrayText'>%TAGNAME%</span> into the resulting tag <select name="tag1"> | ||
%TAGSEARCH{ | ||
query="tag" | ||
format=" <option value='$percntENCODE{\"$tag\" type=\"safe\"}$percnt'>$tag</option>" | ||
sep="$n" | ||
}% | ||
</select> | ||
<input type="submit" value="Merge" class="foswikiSubmit" /> | ||
</form> | ||
|
||
%META:PREFERENCE{name="VIEW_TEMPLATE" title="VIEW_TEMPLATE" type="Local" value="System.TagsPluginNoHeaderViewTemplate"}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
%META:TOPICINFO{author="BaseUserMapping_333" date="1263789574" format="1.1" reprev="1.11" version="1.11"}% | ||
%META:TOPICPARENT{name="TagsPlugin"}% | ||
<!-- | ||
* Set TAGNAME = %URLPARAM{"tag" default="undef" encode="safe"}% | ||
* Set TARGET = %URLPARAM{"redirectto" default="%MAINWEB%.%HOMETOPIC%" encode="safe"}% | ||
--> | ||
<form name="foswikiTagsPluginRename" action="%SCRIPTURL{rest}%/TagsPlugin/rename" method="get"> | ||
<input type="hidden" name="redirectto" value="%TARGET%" /> | ||
<input type="hidden" name="oldtag" value="%TAGNAME%" /> | ||
Rename %ICON{"tag"}% <span class='foswikiGrayText'>%TAGNAME%</span> to <input type="text" name="newtag" size="50" />.<br /> | ||
<input type="submit" value="Rename" class="foswikiSubmit" /> | ||
</form> | ||
|
||
%META:PREFERENCE{name="VIEW_TEMPLATE" title="VIEW_TEMPLATE" type="Local" value="System.TagsPluginNoHeaderViewTemplate"}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# This script Copyright (c) 2010 Oliver Krueger, (wiki-one.net) | ||
# and distributed under the GPL (see below) | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation; either version 2 | ||
# of the License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details, published at | ||
# http://www.gnu.org/copyleft/gpl.html | ||
# | ||
# Author(s): Oliver Krueger | ||
|
||
package Foswiki::Plugins::TagsPlugin::Func; | ||
|
||
use strict; | ||
use warnings; | ||
use Error qw(:try); | ||
|
||
use constant DEBUG => 0; # toggle me | ||
|
||
=begin TML | ||
---++ normalizeTagname( $tag_text ) | ||
Replaces <, >, ' and " with html entities. | ||
=cut | ||
|
||
sub normalizeTagname { | ||
my $tag_text = $_[0]; | ||
|
||
# sanatize the tag_text | ||
# $tag_text =~ s/&/&/g; | ||
$tag_text =~ s/</</g; | ||
$tag_text =~ s/>/>/g; | ||
$tag_text =~ s/'/'/g; | ||
$tag_text =~ s/"/"/g; | ||
|
||
return $tag_text; | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.