aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* scripts: add release.sh scriptHEADmasterRobin Krahl2016-02-21
| | | | | | | Add the release.sh script that prepares and publishes a release of LrMediaWiki. The script assumes that the corresponding release has already been created on GitHub. It bundles the required files, creates archives and checksums and uploads them to GitHub.
* MediaWikiExportServiceProvider: remove warning if heading is not setHasenlaeufer2016-02-21
| | | | | | | | | | | | | Remove the critical warning when the GPS heading used for the generation of the Location template is nil. This does not necessaricily indicate an invalid value, as previously assumed. Instead it is possible that this metadata field is just empty. Affected code: - MediaWikiExportServiceProvider: remove wrong warning, minor changes - TranslatedStrings_de: remove unnecessary message Follow-up to c722a7d91ac70325277998e2a07d4041705ffc6d, related to #35.
* Revert new version and changelog entry.Robin Krahl2016-02-11
| | | | | Revert the new version 4.2.2 and the changelog entry describing this version until the actual release.
* Extract GPS heading from EXIF for {{Location}}Hasenlauefer2016-02-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enhancement is available for users of a Lightroom (LR) version 6 or higher. The function to retrieve the direction has been introduced by Adobe with version 6. Therefore this enhancement is not available by users of versions lower 6. This enhancement differs several LR versions. Depending on the version, different information messages are shown (or not): * LR 6 or higher: If the `Direction` field is set, the user gets informed about this feature. Uploads of files without a direction setting don’t cause this information message, because at such cases the user is not affected. * LR 5: Users get informed, the feature is not available, due to the insufficient LR version. Adobe introduced the “Direction” field with LR version 5, but forgot to include it at the corresponding LR SDK 5. Therefore this feature can not be used by users of LR 5. At release notes of LR SDK 6 this has been mentioned to be a bug fix of LR SDK 5. * LR 4: Users of this version are not affected, because Adobe introduced the “Direction” field with version 5. Therefore users of LR 4 don’t get any information message. * LR versions lower 4: These versions are not supported by LrMediaWiki. The information messages include a “Don’t show again” (German: „Nicht erneut anzeigen“) checkbox. If the user decides, to set this option and decides to revert this decision later, a reset of warning dialogs at LR is needed: * English: Edit -> Preferences... -> General -> Prompts -> Reset all * warning dialogs * German: Bearbeiten -> Voreinstellungen -> Allgemein -> * Eingabeaufforderungen -> Alle Warndialogfelder zurücksetzen LR can store a direction value with up to 4 digits beyond a decimal point, but shows at user interface a rounded value without decimal places (by mouse over the direction field). The information message shows the same rounded value, to avoid confusion of the user seeing different values. The `{{Location}}` template parameter `heading` is filled by the stored value of LR. Sample: A direction input of 359.987654321 is stored as 359.9876, shown as 360°. At `{{Location}}` template the LR stored value of 359.9876 is set. Affected code: - MediaWikiExportServiceProvider.processRenderedPhotos: use the heading value to generate the Location template - Info: change SDK version to 6.0 Fix #35.
* Fix lua and luacheck installation in .travis.yml.Robin Krahl2016-01-31
|
* MediaWikiApi: Fix wrong indexingRobin Krahl2016-01-11
| | | | | | If the result of `pairs` is assigned to only one variable, the variable will contain only the first value of the pair, not a list of both values. Fix #49.
* Fix typo in TranslatedStrings_de.txt and prepare v0.4.1.v0.4.1Robin Krahl2015-10-06
| | | | | | | | | The typo caused errors in Adobe Lightroom 6.2 though being ignored in previous versions. - fix type in TranslatedStrings_de.txt Fix #46.
* v0.4 released.v0.4Robin Krahl2015-06-28
|
* Add custom keyword when exporting.Robin Krahl2015-06-28
| | | | | | | | | After a successful export, a configurable keyword is added to the picture. - add ‘export keyword’ setting to MediaWikiUtils and MediaWikiPluginInfoProvider - write keyword in MediaWikiExportServiceProvider.processRenderedPhotos Fix #34.
* Add option to populate a gallery.Robin Krahl2015-06-28
| | | | | | | | | | | | | | If set, a new section of the given page is created with a gallery of the uploaded files. - add MediaWikiApi.appendToPage and MediaWikiInterface.addToGallery - require target file name to be set when calling MediaWikiInterface.uploadFile - calculate file name in MediaWikiExportServiceProvider.processRenderedPhotos insted of in ..., store it and pass it to MediaWikiInterface.addToGallery - add the gallery option to the export dialog in MediaWikiExportServiceProvider - update messages Fix #24.
* Fix code style issues.Robin Krahl2015-06-27
|
* Check for new versions after start.Robin Krahl2015-06-27
| | | | | | | | | | | | | | | | | | | After LrMediaWiki is loaded, GitHub is checked for new versions if the user enabled that setting. To parse the response of the GitHub API, a third-party library is used for JSON parsing (JSON.lua). As the GitHub API query for the latest release only returns non-pre-release versions, all releases are queried and the first one is considered the latest. - create MediaWikiInit that queries the new version and shows a message (if necessary) - add MediaWikiInit to Info so that it is run after LrMediaWiki is loaded - add ‘Check version’ setting to the configuration - refactor MediaWikiApi and create performHttpRequest as a generic HTTP request method - add MediaWikiApi.getCurrentPluginVersion to query the GitHub API Fix #44.
* Remove unused variable.Robin Krahl2015-06-27
|
* Merge branch 'master' of github.com:robinkrahl/LrMediaWikiRobin Krahl2015-06-27
|\
| * Add configuration for snapshot creation.Robin Krahl2015-06-27
| | | | | | | | | | | | | | | | | | | | | | | | The creation of snapshots after the export now depends on a new setting. The snapshots now are created after the successful export instead of before any export. - move the snapshot creation in MediaWikiExportServiceProvider.processRenderedPhotos after the successful upload - check the ‘Snapshot creation’ setting before creating the snapshot in MediaWikiExportServiceProvider.processRenderedPhotos
* | Add configuration for snapshot creation.Robin Krahl2015-06-27
|/ | | | | | | | | | | | | | | | The creation of snapshots after the export now depends on a new setting. The snapshots now are created after the successful export instead of before any export. - move the preferences handling to MediaWikiUtils - add the ‘Snapshot creation’ setting to MediaWikiPluginInfoProvider and MediaWikiUtils - move the snapshot creation in MediaWikiExportServiceProvider.processRenderedPhotos after the successful upload - check the ‘Snapshot creation’ setting before creating the snapshot in MediaWikiExportServiceProvider.processRenderedPhotos - update the internationalization
* Add a configuration section to the plugin information dialog.Robin Krahl2015-06-27
| | | | | | | | | | | | Customize the plugin information dialog and add a configuration section. In this section, the user may enable or disable logging. - create MediaWikiPluginInfoProvider to customize the plugin information dialog - add MediaWikiPluginInfoProvider to Info to activate it - enable or disable logging in MediaWikiUtils according to the configuration - update the localization See #31.
* v0.3.1 released.v0.3.1Robin Krahl2015-06-27
|
* Add logging support and fix refactoring errors.Robin Krahl2015-06-27
| | | | | | | | | | | | | | The user now may enable logging in MediaWikiUtils. If logging is enabled, a log file is written to the user’s "My Documents" that contains all API requests. Furthermore, bugs introduced by the refactoring in commit 8862341672dc288596d6ef66f92751bba6dfef25 have been fixed. - set up logging in MediaWikiUtils - write to the log in MediaWikiApi.performRequest - fix error in MediaWikiExportServiceProvider.processRenderedPhotos - fix error in MediaWikiApi.parseXmlDom Fix #43.
* Proper layout for export dialog.Robin Krahl2015-06-27
| | | | | | | Set all labels to the same width and right alignment, and fix the spacing between controls and labels. - update MediaWikiExportServiceProvider.sectionsForTopOfDialog
* Use Lua 5.1 for Travis CI.Robin Krahl2015-06-27
|
* Merge branch 'master' of github.com:robinkrahl/LrMediaWikiRobin Krahl2015-06-27
|\
| * Fix typo in CHANGELOG.md.Robin Krahl2015-06-27
| |
* | Fix coding style and add `luacheck` to Travis CI.Robin Krahl2015-06-27
|/ | | | Fix #40.
* Update Info.lua for v0.3.v0.3Robin Krahl2015-06-27
|
* v0.3 released.Robin Krahl2015-06-27
|
* Avoid multiple spaces or underscores in file names.Robin Krahl2015-06-27
| | | | | | | | | | If the image title contains consecutive spaces or underscores, the upload fails without a proper error message. Therefore LrMediaWiki now replaces all (single or multiple) spaces and underscores by a single underscore. - add replacement rule to MediaWikiInterface.uploadFile Fix #37.
* Add Travis build statusRobin Krahl2015-02-15
| | | Add the Travis CI build status to the README.md file. The Travis CI rules were added with b47a081 (see pull request #39).
* Merge pull request #39 from JeanFred/masterRobin Krahl2015-02-15
|\ | | | | Add syntax check for Lua files with Travis-CI
| * Add syntax check for Lua files with Travis-CIJean-Fred2015-02-14
|/ | | | | This adds a Travis-CI build which will run luac on the Lua files. luac will try to parse the Lua files and report syntax errors.
* Improve error message for API warningsRobin Krahl2015-02-02
| | | | | | | | | | | | | Display more information if the upload fails because the API returned a warning. Therefor the warnings tag is parsed if the result is Warning, and the keys of the tag are shown as error message (e. g. 'badfilename'). Previously, the error message was only 'Warning', which did not help users to identify the problem. - modify MediaWikiApi.upload to give a more specific error message for API warnings Fix #36
* Add hours, minutes and seconds to the date field of the description.Robin Krahl2015-02-01
| | | | | | | | | | | | Add the hours, minutes and seconds of the file creation date read from the EXIF metadata to the date field of the Information template on the description page. This change is made to adapt the common behaviour already used by the Upload Wizard. - add "%H:%M:%S" to the time format string in MediaWikiExportServiceProvider.processRenderedPhotos Fix #38
* 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 snapshot on exportRobin Krahl2014-11-08
| | | | | | | | | | Create a development snapshot before the upload. The name contains the date and time of the export and the path to the MediaWiki API used for the export. - create snapshot before upload in MediaWikiExportServiceProvider Fix https://github.com/ireas/LrMediaWiki/issues/26
* Check for empty HTTP statusRobin Krahl2014-11-01
| | | | | | | | | | | Raise a specific error if the HTTP status is empty. This indicates that there is no internet connection or that the MediaWiki installation cannot be reached. Previously, the error message just reported an empty HTTP status. - check for empty HTTP status in `MediaWikiApi` Fix https://github.com/ireas/LrMediaWiki/issues/28
* 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).
* Prepare v0.2.3.v0.2.3Robin Krahl2014-10-06
|
* Fix #23: [string "MediaWikiApi.lua"]:68: table index is nilRobin Krahl2014-10-06
|
* Fix #22: Add image sizing and sharpening option to export dialogRobin Krahl2014-09-17
|
* Update README.mdRobin Krahl2014-09-17
|
* Update README.mdRobin Krahl2014-09-17
|
* Update changelog (fix typo)Robin Krahl2014-09-17
|
* Update changelog for v0.2.2Robin Krahl2014-09-17
|
* Version 0.2.2.v0.2.2Robin Krahl2014-09-08
|
* Fix typo, increase license box width.Robin Krahl2014-09-08
|
* Fix #15: Show {{Location}} template in wikitext preview.Robin Krahl2014-09-02
|
* Fix #14: Add ‘Other templates’ field to metadata.Robin Krahl2014-09-02
|
* Fix #13: Add LrMediaWiki version to upload comments.Robin Krahl2014-09-02
|