Modul:Citation/COinS: Unterschied zwischen den Versionen

+website
KKeine Bearbeitungszusammenfassung
(+website)
Zeile 82: Zeile 82:
-- handle titles
-- handle titles
if args.type == 'book' or args.type == 'map' or args.type == 'collection' then
if args.type == 'book' or args.type == 'map' or args.type == 'collection' then
table.insert( rft, 'rft_val_fmt=' .. mw.uri.encode( 'info:ofi/fmt:kev:mtx:book' ) )
insertCOinS( 'rft.title', args.title )
insertCOinS( 'rft.title', args.title )
if args.type == 'collection' then
if args.type == 'collection' then
table.insert( rft, 'rft.genre=bookitem' )
insertCOinS( 'rft.atitle', args.title )
insertCOinS( 'rft.atitle', args.title )
insertCOinS( 'rft.btitle', args.collection )
insertCOinS( 'rft.btitle', args.collection )
table.insert( rft, 1, 'rft.genre=bookitem' )
else
else
table.insert( rft, 'rft.genre=book' )
insertCOinS( 'rft.btitle', args.title )
insertCOinS( 'rft.btitle', args.title )
table.insert( rft, 1, 'rft.genre=book' )
end
end
table.insert( rft, 1, 'rft_val_fmt=' .. mw.uri.encode( 'info:ofi/fmt:kev:mtx:book' ) )
elseif args.type == 'journal' or args.type == 'newspaper' then
else -- 'journal', 'newspaper'
table.insert( rft, 'rft_val_fmt=' .. mw.uri.encode( 'info:ofi/fmt:kev:mtx:journal' ) )
table.insert( rft, 'rft.genre=journal' )
insertCOinS( 'rft.title', args.title )
insertCOinS( 'rft.title', args.title )
insertCOinS( 'rft.atitle', args.title )
insertCOinS( 'rft.atitle', args.title )
Zeile 100: Zeile 102:
insertCOinS( 'rft.jtitle', args.newspaper )
insertCOinS( 'rft.jtitle', args.newspaper )
end
end
table.insert( rft, 1, 'rft.genre=journal' )
table.insert( rft, 1, 'rft_val_fmt=' .. mw.uri.encode( 'info:ofi/fmt:kev:mtx:journal' ) )
-- else -- 'newspaper'
-- else -- 'newspaper'
-- table.insert( rft, 'rft_val_fmt=' .. mw.uri.encode( 'info:ofi/fmt:kev:mtx:dc' ) )
-- insertCOinS( 'rft.type', 'newspaperArticle' )
-- insertCOinS( 'rft.type', 'newspaperArticle' )
-- insertCOinS( 'rft.title', args.title )
-- insertCOinS( 'rft.title', args.title )
-- insertCOinS( 'rft.atitle', args.title )
-- insertCOinS( 'rft.atitle', args.title )
-- insertCOinS( 'rft.source', args.newspaper )
-- insertCOinS( 'rft.source', args.newspaper )
-- table.insert( rft, 1, 'rft_val_fmt=' .. mw.uri.encode( 'info:ofi/fmt:kev:mtx:dc' ) )
else -- web
table.insert( rft, 'rft_val_fmt=' .. mw.uri.encode( 'info:ofi/fmt:kev:mtx:dc' ) )
insertCOinS( 'rft.type', 'webpage' )
insertCOinS( 'rft.title', args.title )
insertCOinS( 'rft.source', args.website )
insertCOinS( 'rft.identifier', args.url )
end
end


Anonymer Benutzer