יחידה:בקרת זהויות: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 285: | שורה 285: | ||
if link then | if link then | ||
if withUid then | if withUid then | ||
return '*<span style="white-space:nowrap;">' .. label .. ' <span class="uid">' .. link .. '</span></span>\n' | return '*<span style="white-space:nowrap;"><span style="font-size:smaller;">' .. label .. '</span> <span class="uid">' .. link .. '</span></span>\n' | ||
else | else | ||
return '*<span style="white-space:nowrap;">' .. label .. ' ' .. link .. '</span>\n' | return '*<span style="white-space:nowrap;font-size:smaller;">' .. label .. ' ' .. link .. '</span>\n' | ||
end | end | ||
else | else | ||
| שורה 373: | שורה 373: | ||
--Worldcat | --Worldcat | ||
if parentArgs['WORLDCATID'] and parentArgs['WORLDCATID'] ~= '' then | if parentArgs['WORLDCATID'] and parentArgs['WORLDCATID'] ~= '' then | ||
table.insert( elements, createRow( 'WORLDCATID', '', parentArgs['WORLDCATID'], '[//www.worldcat.org/identities/' .. parentArgs['WORLDCATID'] .. ' WorldCat | table.insert( elements, createRow( 'WORLDCATID', '', parentArgs['WORLDCATID'], '[//www.worldcat.org/identities/' .. parentArgs['WORLDCATID'] .. ' WorldCat]', false ) ) --Validation? | ||
elseif parentArgs['VIAF'] and string.match( parentArgs['VIAF'], '^%d+$' ) then -- Hackishly copy the validation code; this should go away when we move to using P1793 and P1630 | elseif parentArgs['VIAF'] and string.match( parentArgs['VIAF'], '^%d+$' ) then -- Hackishly copy the validation code; this should go away when we move to using P1793 and P1630 | ||
table.insert( elements, createRow( 'VIAF', '', parentArgs['VIAF'], '[//www.worldcat.org/identities/containsVIAFID/' .. parentArgs['VIAF'] .. ' WorldCat | table.insert( elements, createRow( 'VIAF', '', parentArgs['VIAF'], '[//www.worldcat.org/identities/containsVIAFID/' .. parentArgs['VIAF'] .. ' WorldCat]', false ) ) | ||
elseif parentArgs['LCCN'] and parentArgs['LCCN'] ~= '' then | elseif parentArgs['LCCN'] and parentArgs['LCCN'] ~= '' then | ||
local lccnParts = splitLccn( parentArgs['LCCN'] ) | local lccnParts = splitLccn( parentArgs['LCCN'] ) | ||
if lccnParts and lccnParts[1] ~= 'sh' then | if lccnParts and lccnParts[1] ~= 'sh' then | ||
table.insert( elements, createRow( 'LCCN', '', parentArgs['LCCN'], '[//www.worldcat.org/identities/lccn-' .. lccnParts[1] .. lccnParts[2] .. '-' .. lccnParts[3] .. ' WorldCat | table.insert( elements, createRow( 'LCCN', '', parentArgs['LCCN'], '[//www.worldcat.org/identities/lccn-' .. lccnParts[1] .. lccnParts[2] .. '-' .. lccnParts[3] .. ' WorldCat]', false ) ) | ||
end | end | ||
end | end | ||