← Back to dashboard

G002 BAMT parser demo — favoriting in an optional grouping

Same approach as the G001 demo: this page fetches an illustrative BAMT with fetch(), parses it with DOMParser and draws the Application Catalog only from what is in the file. On top of that it simulates the favoriting of cases 002_005 and 002_009 for Broadcaster W's optional grouping (B05, B06).

Illustrative only. The XML documents are not ST3_BAMT_012 or ST3_BAMT_013: they follow the same made-up shape as the G001 examples (DVB AIT family, ETSI TS 102 809), because the ABNT NBR 25602 schema isn't in this repository. The listing-mode threshold (30 icons) is also illustrative. The favoriting is a simulation of the expected result of the cases (ABNT NBR 25608 8.2 and 8.7, ACFR-36): the real behavior is the receiver's, and this page is not evidence for 002_005 or 002_009. The expected effect is under escalation E12, and nothing here is stored in a viewer profile.

How this simulation works

  1. The two tabs load two XML files that differ only in FillerPool/@count. 002_005 has 2 members + 10 fillers (12 icons, expanded listing): B05 and B06 show as individual icons. 002_009 has 2 members + 42 fillers (44 icons, grouped listing): the grouping shows as one icon, and you open it to reach the members.
  2. Favorite a member with the ☆ button on its tile. Only that application is favorited, not the whole grouping: its icon is placed at the start of the Favorites row with the overlaid badge (♥). The latest favorite goes first. Click ★ again to remove it. Whether the icon also stays in its original position depends on the receiver's catalog layout; the demo keeps it there so it can be removed in place.
  3. Click a member tile (not the star) to "enter" the application: its real index.html, read from TransportProtocol/@baseUrl, loads in the "App preview" panel.
  4. "Parsed fields" lists the values the render was computed from, and the favorites currently set. Switching tabs clears the favorites.
Application Catalog
Favorites
Applications

Parsed fields

Raw source —

Loading…

App preview