יחידה:בקרת זהויות: הבדלים בין גרסאות בדף

מ updated ICCU
מ clean code (no regression detected)
שורה 578: שורה 578:
end
end
return '[https://opac.sbn.it/nome/'..id..' '..id..']'..p.getCatForId( 'ICCU' ) end
return '[https://opac.sbn.it/nome/'..id..' '..id..']'..p.getCatForId( 'ICCU' ) end
--P396's format regex: IT\\ICCU\\(\d{10}|\D\D[\D\d]\D\\\d{6}) (e.g. IT\ICCU\CFIV\000163)
-- if not id:match( '^IT\\ICCU\\%d%d%d%d%d%d%d%d%d%d$' ) and
--  not id:match( '^IT\\ICCU\\%u%u[%u%d]%u\\%d%d%d%d%d%d$' ) then --legacy: %u used here instead of %D (but the faulty ID cat is empty, out of ~12k uses)
-- return false
-- end
-- return '[https://opac.sbn.it/opacsbn/opac/iccu/scheda_authority.jsp?bid='..id..' '..id..']'..p.getCatForId( 'ICCU' ) end


function p.selibrLink( id )
function p.selibrLink( id )