Modul:Citace: Porovnání verzí

Smazaný obsah Přidaný obsah
Jvs (diskuse | příspěvky)
unifikace "url alt" > "url2"; fce p.supplyPeriodical() pro odvození periodika z url
Jvs (diskuse | příspěvky)
oprava ve funkci p.citDate; p.date > p.dateCs
Řádek 29:
-- debugging options
-- c.noCoins = 1
-- c.trace = 1
-- c.dbg = 1
end
Řádek 762:
if c.type == 'citacePeriodika' or c.type == 'citaceElMonografie' or c.type == 'citaceElPeriodika' then
table.insert(c.r, ""
.. " " .. (not p.empty(c.args["místo"]) andor " "not p.. empty(c.args["místovydavatel"]) ..and ": " or "")
.. "" .. (not p.empty(c.args["místo"]) and " " .. c.args["místo"] .. ": " or "")
.. "" .. (not p.empty(c.args["vydavatel"]) and p.wikilink(c.args["odkaz na vydavatele"], c.args["vydavatel"]) or "")
)
Řádek 777 ⟶ 778:
if c.trace then p.trace(c, debug.getinfo(1, "n")) end
local t = {}
t.datum = not p.empty(c.args["datum"]) and c.args["datum"] or p.dateCs(c.args)
 
if c.type == 'citaceElMonografie' or c.type == 'citaceElPeriodika' then
Řádek 783 ⟶ 785:
end
 
if not p.empty(ct.args["datum"]) then
t.finalDot = true;
table.insert(c.r, ""
.. (not p.empty(c.args["vydavatel"]) and ", " .. t.datum or " " .. p.upperFirst(t.datum))
.. c.args["datum"]
)
end
Řádek 793 ⟶ 794:
if not p.empty(c.args["datum aktualizace"]) then
t.finalDot = true;
if not p.empty(c.args["vydavatel"]) or not p.empty(ct.args["datum"]) then
table.insert(c.r, ", " .. p.coalesce(c.args["typ aktualizace"], "rev."))
elseif not p.empty(c.args["místo"]) then
Řádek 805 ⟶ 806:
if not p.empty(c.args["datum přístupu"]) then
t.finalDot = true;
if not p.empty(c.args["vydavatel"]) or not p.empty(ct.args["datum"]) or not p.empty(c.args["datum aktualizace"]) then
-- table.insert(c.r, ", ") -- TODO ???
table.insert(c.r, " ")
end
 
-- modif 9.1.2018 10:48
if not c.localTest and c.type == 'citaceElMonografie' then
table.insert(c.r, "[cit. " .. p.frame:callParserFunction('#time', 'Y-m-d', c.args["datum přístupu"]) .. "]")
Řádek 819 ⟶ 817:
 
if (t.finalDot) then
table.insert(c.r, ". ")
end
elseif c.type == "citacePeriodika" then
Řádek 835 ⟶ 833:
end
else
t.datum = p.datedateCs(c.args) -- was p.date
 
if c.useHarvardFormat and t.datum == c.args["rok"] then
Řádek 854 ⟶ 852:
table.insert(c.r, ", ")
end
table.insert(c.r, p.datedateCs(c.args, { postfix = " tisku" }) .. " tisk") -- was p.date
if not p.empty(c.args["rok"]) or not p.empty(c.args["rok copyrightu"]) then
table.insert(c.r, ")")