diff options
author | Robin Krahl <me@robin-krahl.de> | 2014-08-24 03:28:15 +0200 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2014-08-24 03:28:15 +0200 |
commit | 53cb610bdcbd32a417a58890061b36b2f2f9ea6a (patch) | |
tree | 0d17d40a11cda22677a5d8c7b8c1833350a83acc /mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua | |
parent | 8b917ece9ecf993e3ed34e556c48b2c31292159c (diff) | |
download | LrMediaWiki-53cb610bdcbd32a417a58890061b36b2f2f9ea6a.tar.gz LrMediaWiki-53cb610bdcbd32a417a58890061b36b2f2f9ea6a.tar.bz2 |
Add categories field to the file metadata (see #7).
Diffstat (limited to 'mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua')
-rwxr-xr-x | mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua b/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua index 3a6eedd..9b4fa96 100755 --- a/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua +++ b/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua @@ -20,6 +20,7 @@ local LrView = import 'LrView' local bind = LrView.bind
+local Info = require 'Info'
local MediaWikiInterface = require 'MediaWikiInterface'
local MediaWikiExportServiceProvider = {}
@@ -87,8 +88,9 @@ MediaWikiExportServiceProvider.processRenderedPhotos = function(functionContext, local license = exportSettings.info_license
local other = exportSettings.info_other
local categories = exportSettings.info_categories
+ local additionalCategories = photo:getPropertyForPlugin(Info.LrToolkitIdentifier, 'categories')
- local fileDescription = MediaWikiInterface.buildFileDescription(description, source, timestamp, author, license, other, categories)
+ local fileDescription = MediaWikiInterface.buildFileDescription(description, source, timestamp, author, license, other, categories, additionalCategories)
MediaWikiInterface.uploadFile(pathOrMessage, fileDescription)
LrFileUtils.delete(pathOrMessage)
|