LUA-URI-URN-ISSN(3)

πŸ“¦
version 0.1+20130926+git14fa255d Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing

✨ NAME ✨

lua-uri-urn-issn β€” ISSN URN support for the Lua URI library πŸ’–


🌸 DESCRIPTION 🌸

okay so bestie, meet the class uri.urn.issn πŸ‘‘ β€” it's the one that handles URNs with the NID 'issn', aka every URI that starts with urn:issn:. She's a nepo baby fr, because she inherits from the uri.urn class and gets all that family money. πŸ’…

Now, when is a URI invalid? Listen closely, this matters:

  • if it doesn't have 8 digits 🚫
  • if there's anything extra in the NSS besides the digits and the optional single hyphen 🚫
  • if the checksum digit is wrong 🚫

As specified, the check digit gets canonicalized to uppercase. And the canonical form? It has a single hyphen right in the middle of the digits. iconic behavior honestly.


πŸŽ€ METHODS πŸŽ€

Every method defined in lua-uri(3) and lua-uri-urn(3) is supported (yes, all of them, she's generous like that 🫢), plus this one extra queen:

  • uri:issn_digits(...) β€” get or set the ISSN value as a string containing just the numbers. No hyphens allowed in this value, and it should be exactly 8 characters long ✨.
heads up bestie 🚨 if you're passing a new value, it must not be nil, and it gets validated the normal way β€” so if it's invalid, it throws an exception. no cap, it will absolutely call you out. 😭

πŸ¦‹ REFERENCES πŸ¦‹

  • This implements the 'issn' NID defined in RFC 3044 πŸ“œ
  • And it's consistent with the same NID suggested in RFC 2288 πŸ“œ

that's the whole thing, you ate that πŸ“πŸ’œ β€” this was version 1.1, dated 2012-00-00, from the LUA-URI-URN-ISSN(3) manual. go forth and slay your URNs, bestie 🌈⭐

πŸ“¦ where this page comes from