Bug 303464 - Improve usability and fix bugs - again (patch)
Summary: Improve usability and fix bugs - again (patch)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-MediaWiki (show other bugs)
Version: 2.8.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-13 09:50 UTC by Peter Potrowl
Modified: 2018-01-30 21:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.8.0


Attachments
Improvements described in my first post. (36.97 KB, patch)
2012-07-13 09:51 UTC, Peter Potrowl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Potrowl 2012-07-13 09:50:21 UTC
The attached patch improves the usability of the plugin and fix a few bugs:

Enhancements:
* The TODO file is now filled with suggestions.
* The user can now modify the « Source » parameter of the image, thanks to a new field in the GUI.
* The focus order of the fields is now correct for both tabs.
* The user can now input categories and text that will be added to all the files and saved/restored when digiKam is closed/reopened.
* The user can now upload several files with the same name using automatic numbering: "File - ##.jpg" will be transformed to "File - 01.jpg", "File - 02.jpg", etc. This has been intensively tested and works even in weird cases ("test##test##test", "#test#.jpg", etc.).
* The correct file extension is automatically restored if removed, which is particularly interesting in the previous point case: "File#" becomes "File1.jpg", "File2.png", "File3.svg" according to the original extension

Bugs:
* The upload was failing when the file name contained spaces. Fixed.
* When files were selected and then removed from the list, they were uploaded anyway! This is fixed now.
* When the plugin window was closed and reopened, the fields were still displaying the previous outdated information. They are now reinitialized with the default message when the window is restored.

Minor problems:
* The email address of a developer was not the wanted one. Corrected.
* Partial change of the name from « Wikimedia Commons » to « MediaWiki », which is more general and more correct (Commons is just one project among thousands of concerned wikis).

Can you please merge this with kipi-plugins main branch?

Thanks a lot!

Reproducible: Always
Comment 1 Peter Potrowl 2012-07-13 09:51:08 UTC
Created attachment 72494 [details]
Improvements described in my first post.
Comment 2 Smit Mehta 2012-07-13 14:23:55 UTC
Hi Peter, Gilles

Thanks a lot for your patch.
@Gilles, shall I review it and apply it to git/master or git/development/3.0.0 ?

Smit
Comment 3 Peter Potrowl 2012-07-13 14:25:59 UTC
It would be great if it could be released along with my previous patch:
https://projects.kde.org/projects/extragear/graphics/kipi-plugins/repository/revisions/43bc0cff2fbe54b76accd2b418f2c2c66b4455f6

Thanks a lot
Comment 4 caulier.gilles 2012-07-13 16:17:52 UTC
Thanks Smit to review.

Please apply it to git/master. I already applied a patch from Peter for next 2.8.0. This file must be fixed for 2.8.0 too...

Gilles
Comment 5 Smit Mehta 2012-07-16 11:26:35 UTC
Git commit 9e34265acf7e2e8acddf53371534ca4b8585cc94 by Smit Mehta.
Committed on 16/07/2012 at 12:57.
Pushed by smitmehta into branch 'master'.

Applied patch by Peter Potrowl.
Usability improvements and fixing minor bugs in mediaWiki export

M  +1    -0    .gitignore
M  +13   -1    mediawiki/TODO
M  +4    -4    mediawiki/plugin_wikimedia.cpp
M  +1    -1    mediawiki/plugin_wikimedia.h
M  +43   -20   mediawiki/wikimediajob.cpp
M  +187  -66   mediawiki/wmwidget.cpp
M  +13   -8    mediawiki/wmwidget.h
M  +13   -13   mediawiki/wmwindow.cpp

http://commits.kde.org/kipi-plugins/9e34265acf7e2e8acddf53371534ca4b8585cc94