cceh / sanskrit-web

An HTML frontend to Sanskrit dictionaries modelled in TEI.
ISC License
1 stars 2 forks source link

Show links to "Addition" facsimile #38

Open gioele opened 9 years ago

gioele commented 9 years ago

Some entries, for example aMSu are present both in the main section of the dictionary but also in the "Addition" appendix. The data contains enough information to generate links for both. The data for aMSu, for example, contains

<note>
  <ref target="#page-0001" type="facs">1,2</ref>
  <ref target="#page-1308" type="facs" subtype="rev">1308,1</ref>
  <idno ana="L" type="revL" xml:id="monier_52">52</idno>
</note>

The first one, <ref target="#page-0001" type="facs"> points to the facsimile page of the main entry in the dictionary. The second one, carrying @subtype="rev", points to the facsimile page in the supplement of the dictionary dealing with revisions and and additions.

The interface should show both, and maybe handle the second one in a special way.