|
19 | 19 | </xsl:variable> |
20 | 20 |
|
21 | 21 | <xsl:template name="inslib-body-structure"> |
| 22 | + <xsl:param name="parm-bibloc" tunnel="yes" required="no"/> |
| 23 | + <xsl:param name="parm-bib-link-template" tunnel="yes" required="no"/> |
| 24 | + <xsl:param name="parm-places-file" tunnel="yes" required="no"/> |
22 | 25 | <div id="full-edition"> |
23 | 26 | <div id="edition-text"> |
24 | 27 | <xsl:call-template name="inslib-navigation"/> |
|
239 | 242 | <xsl:if test="@source"> |
240 | 243 | <xsl:variable name="source-id" select="substring-after(@source, '#')"/> |
241 | 244 | <p><xsl:text>Translation source: </xsl:text> |
242 | | - <!-- if you are running this template outside EFES, change the path to the bibliography authority list accordingly --> |
243 | | - <xsl:variable name="bibliography-al" select="concat('file:',system-property('user.dir'),'/webapps/ROOT/content/xml/authority/bibliography.xml')"/> |
| 245 | + <xsl:variable name="bibliography-al" select="string($parm-bibloc)"/> |
244 | 246 | <xsl:choose> |
245 | 247 | <xsl:when test="doc-available($bibliography-al) = fn:true() and document($bibliography-al)//t:bibl[@xml:id=$source-id][not(@sameAs)]"> |
246 | 248 | <xsl:variable name="source" select="document($bibliography-al)//t:bibl[@xml:id=$source-id][not(@sameAs)]"/> |
247 | | - <a href="{concat('../concordance/bibliography/',$source-id,'.html')}" target="_blank"> |
| 249 | + <a href="{replace($parm-bib-link-template, '\$1', $source-id)}" target="_blank"> |
248 | 250 | <xsl:choose> |
249 | 251 | <xsl:when test="$source//t:bibl[@type='abbrev']"> |
250 | 252 | <xsl:apply-templates select="$source//t:bibl[@type='abbrev'][1]"/> |
|
373 | 375 | </xsl:if> |
374 | 376 |
|
375 | 377 | <xsl:if test="$inslib-corpus='IGCyr'"> |
376 | | - <!-- if you are running this template outside EFES, change the path to the places authority list accordingly --> |
377 | | - <xsl:if test="doc-available(concat('file:',system-property('user.dir'),'/webapps/ROOT/content/xml/authority/places.xml')) = fn:true()"> |
| 378 | + <xsl:if test="doc-available(string($parm-places-file)) = fn:true()"> |
378 | 379 | <div id="maps"> |
379 | 380 | <h3>Maps</h3> |
380 | 381 | <div class="row map_box"> |
381 | 382 | <div id="specific_map" class="map inscription_map"></div> |
382 | 383 | <xsl:variable name="place-name" select="//t:provenance[@type='found'][1]//t:p[1]//t:placeName[@type='ancientFindspot'][1]"/> |
383 | 384 | <xsl:variable name="place-id" select="//t:provenance[@type='found'][1]//t:p[1]//t:placeName[@type='ancientFindspot'][1]/@key"/> |
384 | | - <xsl:variable name="places-al" select="document(concat('file:',system-property('user.dir'),'/webapps/ROOT/content/xml/authority/places.xml'))//t:place[descendant::t:placeName=$place-name][1]"/> |
| 385 | + <xsl:variable name="places-al" select="document(string($parm-places-file))//t:place[descendant::t:placeName=$place-name][1]"/> |
385 | 386 | <xsl:variable name="counter" select="$places-al//t:note[@type='total_inscriptions']"/> |
386 | 387 | <xsl:variable name="points" select="concat(string-join($place-name, ''), '#', string-join($counter, '') ,'@', substring-after(string-join($place-id, ''), 'slsgazetteer.org/'))"/> |
387 | 388 | <script type="text/javascript"> |
|
542 | 543 | </xsl:template> |
543 | 544 |
|
544 | 545 | <xsl:template match="t:placeName|t:rs|t:repository" mode="inslib-placename"> |
| 546 | + <xsl:param name="parm-institutions-file" tunnel="yes" required="no"/> |
545 | 547 | <xsl:variable name="ref-id" select="substring-after(@ref, '#')"/> |
546 | | - <!-- if you are running this template outside EFES, change the path to the institutions authority list accordingly --> |
547 | | - <xsl:variable name="institutions-list" select="concat('file:',system-property('user.dir'),'/webapps/ROOT/content/xml/authority/institution.xml')"/> |
| 548 | + <xsl:variable name="institutions-list" select="string($parm-institutions-file)"/> |
548 | 549 | <xsl:choose> |
549 | 550 | <xsl:when test="contains(@ref,'institution.xml') and doc-available($institutions-list) = fn:true() and document($institutions-list)//t:place[@xml:id=$ref-id]//t:idno[1]"> |
550 | 551 | <a target="_blank" href="{document($institutions-list)//t:place[@xml:id=$ref-id]//t:idno[1]}"><xsl:apply-templates/></a> |
|
0 commit comments