יחידה:בקרת זהויות: הבדלים בין גרסאות בדף
מ גרסה אחת של הדף wikipedia:he:יחידה:בקרת_זהויות יובאה |
מ updated ICCU |
||
| שורה 573: | שורה 573: | ||
function p.iccuLink( id ) | function p.iccuLink( id ) | ||
--P396's format regex: | --P396's format regex: \D{2}[A-Z0-3]V\d{6} (e.g. CUBV039952) | ||
if not id:match( '^ | if not id:match( '^%u%u[A-Z0-3]V%d%d%d%d%d%d' ) then | ||
return false | return false | ||
end | end | ||
return '[https://opac.sbn.it/opacsbn/opac/iccu/scheda_authority.jsp?bid='..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 ) | ||