aboutsummaryrefslogtreecommitdiff
path: root/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2014-09-02 15:35:38 +0200
committerRobin Krahl <me@robin-krahl.de>2014-09-02 15:35:38 +0200
commite4b9313b7b6d6edcffcd6ce8e547e2a165042e51 (patch)
tree6d74377263768ec20b353bcde96980ec20f43dfb /mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua
parenta1ff27606ca1afb86230b0b76d35fa82c08efb06 (diff)
downloadLrMediaWiki-e4b9313b7b6d6edcffcd6ce8e547e2a165042e51.tar.gz
LrMediaWiki-e4b9313b7b6d6edcffcd6ce8e547e2a165042e51.tar.bz2
Fix #14: Add ‘Other templates’ field to metadata.
Diffstat (limited to 'mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua')
-rwxr-xr-xmediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua b/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua
index f2745e4..3ea7f48 100755
--- a/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua
+++ b/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua
@@ -92,6 +92,10 @@ MediaWikiExportServiceProvider.processRenderedPhotos = function(functionContext,
local author = exportSettings.info_author
local license = exportSettings.info_license
local templates = exportSettings.info_templates
+ local additionalTemplates = photo:getPropertyForPlugin(Info.LrToolkitIdentifier, 'templates') or ''
+ if not MediaWikiUtils.isStringEmpty(additionalTemplates) then
+ templates = templates .. '\n' .. additionalTemplates
+ end
local other = exportSettings.info_other
local categories = exportSettings.info_categories
local additionalCategories = photo:getPropertyForPlugin(Info.LrToolkitIdentifier, 'categories') or ''
@@ -292,4 +296,4 @@ MediaWikiExportServiceProvider.exportPresetFields = {
{ key = 'info_categories', default = '' },
}
-return MediaWikiExportServiceProvider \ No newline at end of file
+return MediaWikiExportServiceProvider