Module:SB: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 4: Line 4:
local id = frame.args['volume'] .. '-' .. frame.args['page'] .. '-' .. frame.args['item']
local id = frame.args['volume'] .. '-' .. frame.args['page'] .. '-' .. frame.args['item']
     return id
     return id
end
local function isempty(s)
  return s == nil or s == ''
end
end


Line 39: Line 43:
end
end


if frame.args['archivist_notes'] > 0 then
if isempty(frame.args['archivist_notes']) then
str = 'by unknown author'
else
str = 'by ' .. frame.args['author']
str = 'by ' .. frame.args['author']
else
str = 'by unknown author'
end
end