ISIL (International Standard Identifier for Libraries).
The ISIL is the International Standard Identifier for Libraries and Related Organizations.
>>> validate('IT-RM0267')
'IT-RM0267'
>>> validate('OCLC-DLC')
'OCLC-DLC'
>>> validate('WW-RM0267') # unregistered country code
Traceback (most recent call last):
...
InvalidComponent: ...
>>> validate('WW-RM026712423345334534512334534545') # too long
Traceback (most recent call last):
...
InvalidLength: ...
>>> format('it-RM0267')
'IT-RM0267'
Convert the ISIL to the minimal representation. This strips surrounding whitespace.
Reformat the passed number to the standard format.
Checks to see if the number provided is a valid isil (or isilSV) number.
Checks to see if the number provided is a valid isil (or isilSV) number.