-
Sub-task
-
Resolution: Done
-
Medium
-
None
-
S19 SIMPLY September 3 - 17, S20 SIMPLY Sep 17 - Oct 1
When https://jira.nypl.org/browse/SIMPLY-2277 is complete, the library registry's registration document may contain two different types of links with rel="tos":
- A normal link to a web page, as before.
- A data: link containing an HTML snippet that may (or may not) link to a web page.
If the only link is the web link we currently support, the behavior of the admin interface should be unchanged: it should present the text "I have read and agree to the terms and conditions", with "terms and conditions" linked to the TOS link.
If a data: link is present, the admin interface should decode it into a snippet of HTML, sanitize it, and display it instead of the standard "I have read and agree to the terms and conditions" text.
If the data: link is invalid and cannot be decoded, fall back to the previous behavior – link to a web page if possible and omit the legalese altogether if not.