Modul:Citation: Unterschied zwischen den Versionen
doi, pubmed
(title) |
(doi, pubmed) |
||
| Zeile 2: | Zeile 2: | ||
local citation = { | local citation = { | ||
suite = 'Citation', | suite = 'Citation', | ||
serial = '2022- | serial = '2022-08-10', | ||
item = 56159597 | item = 56159597 | ||
} | } | ||
| Zeile 154: | Zeile 154: | ||
end | end | ||
for key, value in ipairs( { 'dnb', 'oclc', 'jstor', 'KBytes' } ) do | for key, value in ipairs( { 'dnb', 'oclc', 'jstor', 'pmid', 'KBytes' } ) do | ||
if cu.isSet( args[ value ] ) and not args[ value ]:match( '^%d+$' ) then | if cu.isSet( args[ value ] ) and not args[ value ]:match( '^%d+$' ) then | ||
args[ value ] = '' | args[ value ] = '' | ||
| Zeile 161: | Zeile 161: | ||
end | end | ||
if cu.isSet( args.doi ) and not mw.ustring.match( args.doi, '^10%.%d | if cu.isSet( args.doi ) and not mw.ustring.match( args.doi, '^10%.[1-9]%d*/.+$' ) then | ||
args.doi = '' | args.doi = '' | ||
table.insert( wrong, 'doi' ) | table.insert( wrong, 'doi' ) | ||
| Zeile 320: | Zeile 320: | ||
end | end | ||
cu.insertItem2( tab, args.jstor, args.jstor, ci.formatters.dbJstor ) | cu.insertItem2( tab, args.jstor, args.jstor, ci.formatters.dbJstor ) | ||
cu.insertItem2( tab, args.pmid, args.pmid, ci.formatters.dbPmid ) | |||
end | end | ||