DeepBlueCLtd / LegacyMan

Legacy content for Field Service Manual
https://deepbluecltd.github.io/LegacyMan/index.html
Apache License 2.0
2 stars 0 forks source link

Capture/present flag for `ImageLinksTable` files #650

Closed IanMayo closed 4 months ago

IanMayo commented 6 months ago

We have two data-files with ImageLinksTable tables.

These are processed in process_ns_countries method.

The two sample data-files do contain flags, immediately following the h2 entry.

This should follow the #649 structure of displaying a flag. See the lman_parser code here

There are 3 (4?) nations with ImageLinksTable pages. We need to ensure we can exploit the flag data. Since there are only a handful, I recommend creating a specific (non-visible) element that contains the flag, something like:

<div style="display:none" class="ImageLinksFlag"><img width="45" height="18" src="./Contents/Images/some-flag.jpg"></div>

We don't need to worry about this div getting picked up by the generic file-parser, since these files are only processed by the ns-country parser.

Stragegy