Skip to content

Commit

Permalink
Item14223: preparing new release
Browse files Browse the repository at this point in the history
Item14357: fixed typo in WebDAV urls
  • Loading branch information
MichaelDaum committed Sep 13, 2017
1 parent d3e63c5 commit 6c8d53d
Show file tree
Hide file tree
Showing 53 changed files with 2,589 additions and 93,822 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -18,3 +18,4 @@ pub/System/TopicInteractionPlugin/uploader.js
/TopicInteractionPlugin.zip
/TopicInteractionPlugin_installer
/TopicInteractionPlugin_installer.pl
locale/**/*.mo
2 changes: 2 additions & 0 deletions data/System/TopicInteractionPlugin.txt
Expand Up @@ -64,6 +64,7 @@ limit the number of attachments to be listed.
| ="<topic>"= | topic whos attachments we want to query |
| =attr="..."= | match the attachments' attribute |
| =autoattached="yes,no,undef"= | limit attachments to those that are (not) autoattached |
| =casesensitive="on/off"= | specify string comparison mode when filtering attachments, defaults to =on= |
| =comment="..."= | match the attachments' comment |
| =maxdate="..."= | specify latest attachment |
| =maxsize="..."= | specify biggest attachment |
Expand Down Expand Up @@ -149,6 +150,7 @@ generates:

---++ Change History
%TABLE{columnwidths="7em" tablewidth="100%"}%
| 13 Sep 2017: | replace outdated plupload uploader with jquery-file-upload |
| 18 Nov 2016: | oo-ified core; \
added humanized file size display, removed flash backend from default; \
improved webdav integration for one-click editing office documents; \
Expand Down
6 changes: 3 additions & 3 deletions lib/Foswiki/Plugins/TopicInteractionPlugin.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2009-2016 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2009-2017 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand All @@ -18,8 +18,8 @@ package Foswiki::Plugins::TopicInteractionPlugin;
use strict;
use warnings;

our $VERSION = '5.99';
our $RELEASE = '22 Nov 2016';
our $VERSION = '6.00';
our $RELEASE = '13 Sep 2017';
our $SHORTDESCRIPTION = 'Improved interaction with attachments and !DataForms';
our $NO_PREFS_IN_TOPIC = 1;
our $core;
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/TopicInteractionPlugin/Action.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2010-2016 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2010-2017 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2010-2016 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2010-2017 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2010-2016 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2010-2017 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2010-2016 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2010-2017 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2010-2016 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2010-2017 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2010-2016 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2010-2017 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2010-2016 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2010-2017 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2010-2016 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2010-2017 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2010-2016 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2010-2017 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2010-2016 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2010-2017 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
6 changes: 3 additions & 3 deletions lib/Foswiki/Plugins/TopicInteractionPlugin/Attachments.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2005-2016 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2005-2017 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -219,7 +219,7 @@ sub handle {
my $thisWebDavUrl = $webDavUrl;
$thisWebDavUrl =~ s/\$attachment/$encName/g;

my $webDavAction = '<a rel="nofollow" href="' . $thisWebDavUrl . '" ' . 'title="%MATETEXT{"Edit this attachment" args="<nop>' . $info->{name} . '"}%">' . '%MAKETEXT{"edit"}%</a>';
my $webDavAction = '<a rel="nofollow" href="' . $thisWebDavUrl . '" ' . 'title="%MAKETEXT{"Edit this attachment" args="<nop>' . $info->{name} . '"}%">' . '%MAKETEXT{"edit"}%</a>';

my $propsUrl = '%SCRIPTURLPATH{"attach"}%/' . $thisWeb . '/' . $thisTopic . '?filename=' . $encName . '&revInfo=1';
my $propsAction = '<a rel="nofollow" href="' . $propsUrl . '" ' . 'title="%MAKETEXT{"Manage properties of [_1]" args="<nop>' . $info->{name} . '"}%">' . '%MAKETEXT{"props"}%</a>';
Expand Down Expand Up @@ -313,7 +313,7 @@ sub urlEncode {
return $text unless $text;

$text = Encode::encode_utf8($text) if $Foswiki::UNICODE;
$text =~ s/([^0-9a-zA-Z-_.:~!*\/])/sprintf('%%<nop>%02X',ord($1))/ge;
$text =~ s/([^0-9a-zA-Z-_.:~!*\/])/sprintf('%%%02X',ord($1))/ge;

return $text;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/TopicInteractionPlugin/Core.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2010-2016 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2010-2017 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
1 change: 1 addition & 0 deletions lib/Foswiki/Plugins/TopicInteractionPlugin/MANIFEST
@@ -1,3 +1,4 @@
!noci
data/System/TopicInteractionPlugin.txt 0644
lib/Foswiki/Plugins/TopicInteractionPlugin/Action/ChangeProperties.pm 0644
lib/Foswiki/Plugins/TopicInteractionPlugin/Action/CreateImageGallery.pm 0644
Expand Down
4 changes: 2 additions & 2 deletions lib/Foswiki/Plugins/TopicInteractionPlugin/WebDAVUrl.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2005-2016 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2005-2017 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -39,7 +39,7 @@ sub handle {
$url =~ s/\$attachment/$encName/g;


my $result = '<a rel="nofollow" href="' . $url . '" ' . 'title="%MATETEXT{"Edit this attachment" args="<nop>' . $info->{name} . '"}%">' . '%MAKETEXT{"edit"}%</a>';
my $result = '<a rel="nofollow" href="' . $url . '" ' . 'title="%MAKETEXT{"Edit this attachment" args="<nop>' . $info->{name} . '"}%">' . '%MAKETEXT{"edit"}%</a>';

return $result;
}
Expand Down

0 comments on commit 6c8d53d

Please sign in to comment.