Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOC ReferenceItems and Identifiers? #17

Open
nrperez2010 opened this issue Feb 22, 2022 · 1 comment
Open

TOC ReferenceItems and Identifiers? #17

nrperez2010 opened this issue Feb 22, 2022 · 1 comment

Comments

@nrperez2010
Copy link

nrperez2010 commented Feb 22, 2022

@llaplant Why don’t these ReferenceItems in the table of contents (<toc>) include the identifier for the sections that exist later on in the document? e.g. identifier="/us/bill/116/hr/748/dA/tIII" - we are trying to link from the TOC to relevant sections, and this tagging would be helpful if included in the TOC section. Thanks!

<referenceItem` style="-uslm-lc:I651142" role="section">
   <designator>Sec. 1. </designator>
   <label>Short title.</label>
</referenceItem>
@llaplant
Copy link
Member

@nrperez2010

Thank you for the feedback!

Instead of adding an identifier attribute, we can look at adding an href attribute, which could point to the the targeted section. The target section has an identifier, and the href would point at this identifier. The identifier attribute is used on the section itself, not on the referenceItem, and it should be unique (where possible). The USLM 2 schema does specify the href attribute on the child elements within the referenceItem. These could be used to point to the referenced section. We don't currently add references within the document itself, although we do add references to external documents such as Public Laws. Also note, we currently do not add identifiers to levels that are within appropriations, quotedContent, undesignated provisions, general provisions, or other places where we do not have a reliable identifier to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants