10.754
redigeringer
Lasse (diskussion | bidrag) No edit summary |
Lasse (diskussion | bidrag) No edit summary |
||
| Linje 228: | Linje 228: | ||
function generer_stykbeskrivelse (stykke, bog) | function generer_stykbeskrivelse (stykke, bog) | ||
if (mw.ustring.upper(mw.ustring.sub( bog, 1, 2 )) == "LB") then | if (mw.ustring.upper(mw.ustring.sub( bog, 1, 2 )) == "LB") then | ||
styknummer, efterbindestreg = stykke:match("(.+)-(.+)") | |||
if ( tonumber(stykke) ~= nil) then | if ( tonumber(stykke) ~= nil) then | ||
return '[https://www.martinus.dk/da/onlinebibliotek/dtt/index.php?bog=' .. bogIDer[bog] .. '&stk=' .. | return '[https://www.martinus.dk/da/onlinebibliotek/dtt/index.php?bog=' .. bogIDer[bog] .. '&stk=' .. styknummer .. ' ' .. styknummer .. '])' | ||
end | end | ||