Module:Citation/CS1: Difference between revisions
tentatively adding url-avs
No edit summary |
(tentatively adding url-avs) |
||
Line 2,838: | Line 2,838: | ||
local URL = A['URL']; -- TODO: better way to do this for URL, ChapterURL, and MapURL? | local URL = A['URL']; -- TODO: better way to do this for URL, ChapterURL, and MapURL? | ||
local URLAVS = A['URL-AVS']; | |||
local UrlAccess = is_valid_parameter_value (A['UrlAccess'], A:ORIGIN('UrlAccess'), cfg.keywords_lists['url-access'], nil); | local UrlAccess = is_valid_parameter_value (A['UrlAccess'], A:ORIGIN('UrlAccess'), cfg.keywords_lists['url-access'], nil); | ||
Line 3,613: | Line 3,614: | ||
Title = external_link (URL, Title, URL_origin, UrlAccess) .. TransTitle .. Format; | Title = external_link (URL, Title, URL_origin, UrlAccess) .. TransTitle .. Format; | ||
URL = ''; -- unset these because no longer needed | URL = ''; -- unset these because no longer needed | ||
Format = ""; | |||
elseif not utilities.is_set (TitleLink) and utilities.is_set (URLAVS) then | |||
Title = external_link (URLAVS, Title, URL_origin, UrlAccess) .. TransTitle .. Format; | |||
URLAVS = ''; -- unset these because no longer needed | |||
Format = ""; | Format = ""; | ||
elseif utilities.is_set (TitleLink) and not utilities.is_set (URL) then | elseif utilities.is_set (TitleLink) and not utilities.is_set (URL) then |