Modul:Citation/utilities: Unterschied zwischen den Versionen

+comments
(cu.check_UrnNbn : fragment)
(+comments)
Zeile 280: Zeile 280:


-- See: https://github.com/bohnelang/URN-Pruefziffer
-- See: https://github.com/bohnelang/URN-Pruefziffer
-- Description of the algorithm: http://www.pruefziffernberechnung.de/U/URN.shtml
function cu.getNbnCheckDigit( urn )
function cu.getNbnCheckDigit( urn )
-- two-digits codes for ascii characters starting from - == '-'
local code='3947450102030405060708094117############1814191516212223242542262713282931123233113435363738########43'
local code='3947450102030405060708094117############1814191516212223242542262713282931123233113435363738########43'
local sum = 0
local sum = 0
Anonymer Benutzer