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 ) | ||
else | else | ||
table.insert( rft, 'rft.genre=book' ) | |||
insertCOinS( 'rft.btitle', args.title ) | insertCOinS( 'rft.btitle', args.title ) | ||
end | end | ||
table.insert( rft | elseif args.type == 'journal' or args.type == 'newspaper' then | ||
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 | ||
-- 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 ) | ||
-- | 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 | ||