Module:Citation/CS1: Difference between revisions

Disable strip_apostrophe_markup() and make_coins_title(); causing script errors;
m>Trappist the monk
(Bug fix to allow display of trans-chapter errors;)
m>Trappist the monk
(Disable strip_apostrophe_markup() and make_coins_title(); causing script errors;)
Line 1,720: Line 1,720:
local OCinSoutput = COinS{
local OCinSoutput = COinS{
['Periodical'] = Periodical,
['Periodical'] = Periodical,
['Chapter'] = strip_apostrophe_markup (Chapter), -- Chapter stripped of bold / italic wikimarkup
['Chapter'] = Chapter, --strip_apostrophe_markup (Chapter), -- Chapter stripped of bold / italic wikimarkup
['Title'] = make_coins_title (Title, ScriptTitle), -- strip_apostrophe_markup (Title), -- Title stripped of bold / italic wikimarkup
['Title'] = Title, --make_coins_title (Title, ScriptTitle), -- strip_apostrophe_markup (Title), -- Title stripped of bold / italic wikimarkup
['PublicationPlace'] = PublicationPlace,
['PublicationPlace'] = PublicationPlace,
['Date'] = first_set(COinS_date, Date), -- COinS_date has correctly formatted date if Date is valid; any reason to keep Date here?  Should we be including invalid dates in metadata?
['Date'] = first_set(COinS_date, Date), -- COinS_date has correctly formatted date if Date is valid; any reason to keep Date here?  Should we be including invalid dates in metadata?
Line 1,888: Line 1,888:
if is_set(TransChapter) then
if is_set(TransChapter) then
if not is_set(Chapter) then
if not is_set(Chapter) then
TransError = " " .. seterror( 'trans_missing_chapter' );
TransError = " " .. seterror( 'trans_missing_chapter' ); -- add error message
else
else
TransChapter = " " .. TransChapter;
TransChapter = " " .. TransChapter;
Line 1,932: Line 1,932:
Title = script_concatenate (Title, ScriptTitle); -- <bdi> tags, lang atribute, categorization, etc; must be done after title is wrapped
Title = script_concatenate (Title, ScriptTitle); -- <bdi> tags, lang atribute, categorization, etc; must be done after title is wrapped
TransTitle = wrap( 'trans-quoted-title', TransTitle );
TransTitle = wrap( 'trans-quoted-title', TransTitle );
-- Chapter = ''; -- chapter not allowed - disabled because doing this here doesn't display error msg and promoted url is lost
-- Chapter = ''; -- chapter not allowed
else
else
Title = wrap( 'italic-title', Title );
Title = wrap( 'italic-title', Title );
Anonymous user