aboutsummaryrefslogtreecommitdiff
path: root/mediawiki.lrdevplugin/MediaWikiInterface.lua
Commit message (Collapse)AuthorAge
* Allow empty descriptions for reuploadsRobin Krahl2014-11-08
| | | | | | | | | | | | | | | | | There is no need for descriptions if an existing file is overwritten. Therefore the check and the error message are moved at a point where we know whether it is an initial upload or a reupload. - refactor MediaWikiInterface.uploadFile: - add the parameter hasDescription that describes whether there is a valid description - return a string (error message) if there is an error - store description status in MediaWikiExportServiceProvider.prepareUpload - check the return value of MediaWikiInterface.uploadFile in MediaWikiExportServiceProvider.prepareUpload Fix https://github.com/ireas/LrMediaWiki/issues/30
* Add permission field to export dialogRobin Krahl2014-11-01
| | | | | | | | | | | Add the permission field to the export dialog and to the file description template. - add permission to the template in `description.txt` - add permission to the UI in `MediaWikiExportServiceProvider` - add permission to the data items in `MediaWikiInterface` Fix https://github.com/ireas/LrMediaWiki/issues/27
* Move file description template into a separate fileRobin Krahl2014-11-01
| | | | | | | | | | | | | | Move the file description template from the constant `MediaWikiInterface.fileDescriptionPattern` to the file `description.txt` in the main directory of the plug-in. This allows better customization of the file description. - add `MediaWikiInterface.loadFileDescriptionTemplate` that tries to read the file description template from the `description.txt` file - call `MediaWikiInterface.loadFileDescriptionTemplate` before the description preview and before the export Fix https://github.com/ireas/LrMediaWiki/issues/29
* Use improved string formattingRobin Krahl2014-11-01
| | | | | | | | | | | Use string formatting by name instead of formatting by position when creating the file description. - adds the method `formatString` to `MediaWikiUtils` - modifies `MediaWikiInterface` to use `MediaWikiUtils.formatString` See issue [#29: Move file description template into a file and improve the string formatting](https://github.com/ireas/LrMediaWiki/issues/29).
* Fix #13: Add LrMediaWiki version to upload comments.Robin Krahl2014-09-02
|
* Fix #11: Add ‘other templates’ fieldRobin Krahl2014-08-31
|
* Fix #5: Ask for comment for reuploads and #6: Allow new filenames for ↵Robin Krahl2014-08-25
| | | | duplicates.
* Add categories field to the file metadata (see #7).Robin Krahl2014-08-24
|
* Initial commit.v0.1Robin Krahl2014-08-21