Modul:Citation/COinS: Unterschied zwischen den Versionen

bookitem
(string.sub)
(bookitem)
Zeile 3: Zeile 3:
suite  = 'Citation',
suite  = 'Citation',
sub    = 'COinS',  
sub    = 'COinS',  
serial = '2021-05-19'
serial = '2021-08-16'
}
}


Zeile 86: Zeile 86:
-- handle titles
-- handle titles
-- maps handled like books
-- maps handled like books
if args.type == 'book' or args.type == 'map' or args.type == 'collection' then
if args.type == 'book' or args.type == 'map' or args.type == 'bookitem' then
table.insert( rft, 'rft_val_fmt='
table.insert( rft, 'rft_val_fmt='
.. mw.uri.encode( 'info:ofi/fmt:kev:mtx:book', 'PATH' ) )
.. mw.uri.encode( 'info:ofi/fmt:kev:mtx:book', 'PATH' ) )
insertCOinS( 'rft.title', args.title )
insertCOinS( 'rft.title', args.title )
if args.type == 'collection' then
if args.type == 'bookitem' then
table.insert( rft, 'rft.genre=bookitem' )
table.insert( rft, 'rft.genre=bookitem' )
insertCOinS( 'rft.atitle', args.title )
insertCOinS( 'rft.atitle', args.title )
Anonymer Benutzer