Module:Citation/CS1: Difference between revisions
checked for person.last ~= "" and more tedious details.
m>Wikid77 (set enddot to end line when not class "citation".) |
m>Wikid77 (checked for person.last ~= "" and more tedious details.) |
||
Line 96: | Line 96: | ||
function listpeople(control, people) | function listpeople(control, people) | ||
local sep = control.sep | local sep = control.sep .. " " | ||
local namesep = control.namesep | local namesep = control.namesep | ||
local format = control.format | local format = control.format | ||
Line 102: | Line 102: | ||
local text = {} | local text = {} | ||
for i,person in ipairs(people) do | for i,person in ipairs(people) do | ||
if (person.last ~= nil) then | if (person.last ~= nil or person.last ~= "") then | ||
local mask = person.mask | local mask = person.mask | ||
local one | local one | ||
Line 387: | Line 387: | ||
if ( nil ~= Title ) then OCinSdata["rft.atitle"] = Title end | if ( nil ~= Title ) then OCinSdata["rft.atitle"] = Title end | ||
end | end | ||
if ( nil ~= Chapter ) then | if ( nil ~= Chapter and "" ~= Chapter) then | ||
OCinSdata.rft_val_fmt = "info:ofi/fmt:kev:mtx:book" | OCinSdata.rft_val_fmt = "info:ofi/fmt:kev:mtx:book" | ||
OCinSdata["rft.genre"] = "bookitem" | OCinSdata["rft.genre"] = "bookitem" | ||
Line 551: | Line 551: | ||
end | end | ||
if ( nil ~= Position or nil ~= Page or nil ~= Pages ) then At = nil end | if ( nil ~= Position or nil ~= Page or nil ~= Pages ) then At = nil end | ||
if ( nil == Position ) then | if ( nil == Position and "" ~= Position ) then | ||
local Minutes = args.minutes | local Minutes = args.minutes | ||
if ( nil ~= Minutes ) then | if ( nil ~= Minutes ) then | ||
Line 569: | Line 569: | ||
if ( nil == Page or "" == Page ) then | if ( nil == Page or "" == Page ) then | ||
Page = "" | Page = "" | ||
elseif ( Periodical ~= nil and Periodical ~= "") then | elseif ( Periodical ~= nil and Periodical ~= "" and | ||
config.CitationClass ~= "web") then | |||
Page = ": " .. Page | Page = ": " .. Page | ||
else | else | ||
Line 576: | Line 577: | ||
if ( nil == Pages or "" == Pages) then | if ( nil == Pages or "" == Pages) then | ||
Pages = "" | Pages = "" | ||
elseif ( Periodical ~= nil and Periodical ~= "" ) then | elseif ( Periodical ~= nil and Periodical ~= "" and | ||
config.CitationClass ~= "web") then | |||
Pages = ": " .. Pages | Pages = ": " .. Pages | ||
else | else | ||
Line 741: | Line 743: | ||
-- DEBUG: tcommon = "/Title="..Title .. "/TitleType="..TitleType .. "/TitleNote="..TitleNote .. "/Format="..Format .. "/Edition="..Edition .. "/Language="..Language .. "/Conference="..Conference .. "/Periodical="..Periodical .. "/Series="..Series .. "/Volume="..Volume .. "/Issue="..Issue .. "/Position="..Position | -- DEBUG: tcommon = "/Title="..Title .. "/TitleType="..TitleType .. "/TitleNote="..TitleNote .. "/Format="..Format .. "/Edition="..Edition .. "/Language="..Language .. "/Conference="..Conference .. "/Periodical="..Periodical .. "/Series="..Series .. "/Volume="..Volume .. "/Issue="..Issue .. "/Position="..Position | ||
local idcommon = ARXIV .. ASIN .. BIBCODE .. DOI .. | local idcommon = ARXIV .. ASIN .. BIBCODE .. DOI .. ISBN .. ISSN .. JFM .. JSTOR .. LCCN .. MR .. OCLC .. OL .. OSTI .. PMC .. PMID .. RFC .. SSRN .. URL .. ZBL .. ID .. Archived .. AccessDate .. Via .. SubscriptionRequired .. Lay .. Quote .. PostScript | ||
local enddot = "" | local enddot = "" | ||
if (Title ~= "") then enddot = "." end | if (Title ~= "") then enddot = "." end | ||
Line 1,074: | Line 1,076: | ||
--21Feb2013 Checked to omit blank codes (asin= | doi= etc.). | --21Feb2013 Checked to omit blank codes (asin= | doi= etc.). | ||
--21Feb2013 Set enddot to end line if not config.CitationClass "citation". | --21Feb2013 Set enddot to end line if not config.CitationClass "citation". | ||
--21Feb2013 Fixed to show "issn=x" as the ISSN code. | |||
--21Feb2013 Fixed to show "id=x" after Zbl code. | |||
--21Feb2013 | |||
-- | -- | ||
--End | --End |