Changeset 1546

Show
Ignore:
Timestamp:
12/04/06 04:52:13 (4 years ago)
Author:
stevec
Message:

Fix up XSL to properly display (most) citations and present a Find this article link.
Add pages to display find article links - will need Margaret to dress it.
Fix miscellaneous issues with article display such as duplicate figure titles,
enforcing no annotation of titles, clean up of figure/table display, etc.
Still need to address a footnote issue.

Location:
head/plosone/webapp/src/main
Files:
3 added
2 modified

Legend:

Unmodified
Added
Removed
  • head/plosone/webapp/src/main/resources/viewnlm-v2.xsl

    r1397 r1546  
    448448         
    449449        <div id="researchArticle" class="content"> 
    450                 <xsl:call-template name="makeXpathLocation"/> 
    451                 <div class="beta">We are still in beta! Help us make the site better and <a href="#" title="Submit your feedback">report bugs</a>.</div> 
    452                 <a id="top" name="top" toc="top" title="Top"></a> 
     450<!--            <xsl:call-template name="makeXpathLocation"/>--> 
     451                <a id="top" name="top" toc="top" title="Top"></a>        
     452                <div class="beta">We are still in beta! Help us make the site better and  
     453                        <xsl:element name="a"> 
     454                                <xsl:attribute name="href"> 
     455                                        <xsl:variable name="doi" select="/article/front/article-meta/article-id[@pub-id-type='doi']"/> 
     456                                        <xsl:value-of select="concat('../feedbackCreate.action?page=fetchArticle.action',$doi)"/> 
     457                                </xsl:attribute> 
     458                                <xsl:attribute name="title"> 
     459                                        <xsl:text>Submit your feedback</xsl:text> 
     460                                </xsl:attribute> 
     461                                <xsl:text>report bugs</xsl:text> 
     462                        </xsl:element> 
     463                </div> 
     464 
    453465                <xsl:apply-templates/> 
    454466        </div> 
     
    770782<!-- initial context node is article --> 
    771783 
    772 <xsl:template match="fig"> 
     784<xsl:template match="fig | table-wrap"> 
    773785        <xsl:variable name="figId"><xsl:value-of select="@id"/></xsl:variable> 
     786        <xsl:variable name="apos">'</xsl:variable> 
    774787        <xsl:variable name="imageURI"><xsl:value-of select="graphic/@xlink:href"/></xsl:variable> 
    775788        <xsl:variable name="slideshowURL"> 
    776789                <xsl:value-of select="concat('slideshow.action?uri=',substring($imageURI, 1, (string-length($imageURI)-5)),'&amp;imageURI=',$imageURI)"/> 
     790        </xsl:variable> 
     791        <xsl:variable name="jsWindow"> 
     792                <xsl:value-of select="concat('window.open(this.href,',$apos,'plosSlideshow',$apos,',',$apos, 
     793                                                                                                 'directories=no,location=no,menubar=no,resizable=yes,status=no,scrollbars=yes,toolbar=no,height=600,width=850', 
     794                                                                                                $apos,');return false;')"/> 
    777795        </xsl:variable> 
    778796        <div class="figure"> 
     
    785803                        <xsl:attribute name="title">Click for larger image </xsl:attribute> 
    786804                        <xsl:attribute name="href"><xsl:value-of select="$slideshowURL"/></xsl:attribute> 
    787                         <xsl:attribute name="onclick">window.open('<xsl:value-of select="$slideshowURL"/>','plosSlideshow','directories=no,location=no,menubar=no,resizable=yes,status=no,scrollbars=yes,toolbar=no,height=600,width=800');return false;</xsl:attribute> 
     805                        <xsl:attribute name="onclick"><xsl:value-of select="$jsWindow"/></xsl:attribute> 
    788806                        <xsl:element name="img"> 
    789807                                <xsl:attribute name="border">1</xsl:attribute> 
     
    798816                        <xsl:element name="a"> 
    799817                                <xsl:attribute name="href"><xsl:value-of select="$slideshowURL"/></xsl:attribute> 
    800                                 <xsl:attribute name="onclick">window.open('<xsl:value-of select="$slideshowURL"/>','plosSlideshow','directories=no,location=no,menubar=no,resizable=yes,status=no,scrollbars=yes,toolbar=no,height=600,width=800');return false;</xsl:attribute> 
     818                                <xsl:attribute name="onclick"><xsl:value-of select="$jsWindow"/></xsl:attribute> 
    801819                                <strong> 
    802820                                        <span> 
     
    815833                        </span> 
    816834                </h5> 
    817                 <xsl:apply-templates select="caption/*[not(title)]"/> 
     835                <xsl:apply-templates select="caption/node()[not(self::title)]"/> 
    818836        </div> 
    819837</xsl:template> 
    820  
    821 <xsl:template match="table-wrap"> 
    822         <xsl:variable name="tableId"><xsl:value-of select="@id"/></xsl:variable> 
    823         <xsl:variable name="imageURI"><xsl:value-of select="graphic/@xlink:href"/></xsl:variable> 
    824         <xsl:variable name="slideshowURL"> 
    825                 <xsl:value-of select="concat('slideshow.action?uri=',substring($imageURI, 1, (string-length($imageURI)-5)),'&amp;imageURI=',$imageURI)"/> 
    826         </xsl:variable> 
    827         <div class="figure"> 
    828                 <xsl:call-template name="makeXpathLocation" > 
    829                 <xsl:with-param name="node" select="."/> 
    830                 </xsl:call-template> 
    831                 <a> 
    832                         <xsl:attribute name="name"><xsl:value-of select="$tableId"/></xsl:attribute> 
    833                         <xsl:attribute name="id"><xsl:value-of select="$tableId"/></xsl:attribute> 
    834                         <xsl:attribute name="title">Click for larger image </xsl:attribute> 
    835                         <xsl:attribute name="href"><xsl:value-of select="$slideshowURL"/></xsl:attribute> 
    836                         <xsl:attribute name="onclick">window.open('<xsl:value-of select="$slideshowURL"/>','plosSlideshow','directories=no,location=no,menubar=no,resizable=yes,status=no,scrollbars=yes,toolbar=no,height=600,width=800');return false;</xsl:attribute> 
    837                          
    838                         <xsl:element name="img"> 
    839                                 <xsl:attribute name="border">1</xsl:attribute> 
    840                                 <xsl:attribute name="src"><xsl:value-of select="concat('fetchObject.action?uri=',$imageURI,'&amp;representation=PNG_S')"/></xsl:attribute> 
    841                                 <xsl:attribute name="align">left</xsl:attribute> 
    842                                 <xsl:attribute name="alt">thumbnail</xsl:attribute> 
    843                                 <xsl:attribute name="class">thumbnail</xsl:attribute> 
    844                         </xsl:element> 
    845                 </a> 
    846                 <h5> 
    847                         <xsl:call-template name="makeXpathLocation"/> 
    848                         <xsl:element name="a"> 
    849                                 <xsl:attribute name="href"><xsl:value-of select="$slideshowURL"/></xsl:attribute> 
    850                                 <xsl:attribute name="onclick">window.open('<xsl:value-of select="$slideshowURL"/>','plosSlideshow','directories=no,location=no,menubar=no,resizable=yes,status=no,scrollbars=yes,toolbar=no,height=650,width=850');return false;</xsl:attribute> 
    851                                 <strong> 
    852                                         <span> 
    853                                                 <xsl:call-template name="makeXpathLocation" > 
    854                                                         <xsl:with-param name="node" select="."/> 
    855                                                 </xsl:call-template> 
    856                                                 <xsl:apply-templates select="label"/> 
    857                                         </span> 
    858                                 </strong> 
    859                         </xsl:element> 
    860                         <span> 
    861                                 <xsl:call-template name="makeXpathLocation" > 
    862                                         <xsl:with-param name="node" select="."/> 
    863                                 </xsl:call-template> 
    864                                 <xsl:apply-templates select="caption/title"/> 
    865                         </span> 
    866                 </h5> 
    867                 <xsl:apply-templates select="caption/*[not(title)]"/> 
    868         </div> 
    869 </xsl:template> 
    870  
    871  
    872838 
    873839<xsl:template name="make-figs-and-tables"> 
     
    10911057                        <xsl:value-of select="copyright-year"/> 
    10921058                        <xsl:text>) </xsl:text> 
    1093                         <xsl:apply-templates select="title-group/article-title"/> 
    1094                         <xsl:text>. </xsl:text> 
    1095                         <xsl:value-of select="../journal-meta/journal-title"/> 
     1059                        <xsl:apply-templates select="title-group/article-title"/><xsl:text>. </xsl:text> 
     1060                        <xsl:value-of select="../journal-meta/journal-title"/><xsl:text> </xsl:text> 
    10961061                        <xsl:value-of select="volume"/>(<xsl:value-of select="issue"/>): 
    10971062                        <xsl:value-of select="elocation-id"/>. 
     
    13511316 
    13521317<xsl:template name="author-contrib"> 
    1353 <h4>Author Contributions</h4> 
    1354 <xsl:apply-templates select="../front/article-meta/author-notes/fn[@fn-type='con']"/> 
     1318<strong>Author Contributions</strong> 
     1319<div class="contributions"> 
     1320        <xsl:apply-templates select="../front/article-meta/author-notes/fn[@fn-type='con']"/> 
     1321</div> 
    13551322</xsl:template> 
    13561323 
     
    22272194 
    22282195<xsl:template match="caption"> 
    2229   <span class="capture-id"> 
    2230     <xsl:call-template name="make-id"/> 
     2196<!--  <span class="capture-id"> 
     2197    <xsl:call-template name="make-id"/>--> 
    22312198    <xsl:apply-templates/> 
    2232   </span> 
    2233   <br/> 
     2199<!--  </span> 
     2200  <br/>--> 
    22342201</xsl:template> 
    22352202 
     
    27582725 
    27592726<xsl:template match="article-title" mode="front"> 
    2760     <h1> 
    2761                 <xsl:call-template name="makeXpathLocation"/> 
     2727    <h1 xpathLocation="noSelect"> 
    27622728                <xsl:apply-templates/> 
    27632729        </h1> 
     
    27672733<!-- subtitle runs in with title --> 
    27682734<xsl:template match="subtitle" mode="front"> 
    2769   <h2> 
    2770           <xsl:call-template name="makeXpathLocation"/> 
     2735  <h2 xpathLocation="noSelect"> 
    27712736          <xsl:apply-templates/> 
    27722737  </h2> 
     
    33943359        <span class="gen"><xsl:text>, </xsl:text></span> 
    33953360      </xsl:if> 
    3396       <a target="xrefwindow" href="#{@rid}"> 
     3361      <a href="#{@rid}"> 
    33973362        <xsl:value-of select="@rid"/> 
    33983363      </a> 
     
    34603425<!-- default: if none of the above ref-types --> 
    34613426<xsl:template match="xref"> 
    3462   <span class="xref"> 
    34633427    <xsl:call-template name="make-id"/> 
    3464     <a target="xrefwindow" href="#{@rid}"> 
     3428    <a href="#{@rid}"> 
    34653429      <xsl:choose> 
    34663430        <!-- if xref not empty --> 
     
    34743438      </xsl:choose> 
    34753439    </a> 
    3476   </span> 
    34773440</xsl:template> 
    34783441 
     
    36033566 
    36043567<xsl:template match="ref-list/title"> 
    3605   <xsl:call-template name="nl-1"/> 
    36063568  <a id="refs" name="refs" toc="refs" title="References"></a> 
    36073569  <h3><xsl:apply-templates/></h3> 
    3608   <xsl:call-template name="nl-1"/> 
    36093570</xsl:template> 
    36103571 
     
    39193880                                        <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> 
    39203881                                </a>  
    3921 <!--                            <xsl:apply-templates select="citation"/>--> 
    3922                                  
     3882                                <xsl:apply-templates select="citation"/> 
     3883<!--                             
    39233884                                        <span class="authors"> 
    39243885                                                <xsl:for-each select="citation/person-group[@person-group-type='author']/name"> 
     
    39353896                                                <xsl:text>&#8211;</xsl:text> 
    39363897                                                <xsl:apply-templates select="citation/lpage"/><xsl:text>.</xsl:text> 
    3937                                         </xsl:if> 
     3898                                        </xsl:if>--> 
    39383899<!--    <xsl:choose> 
    39393900      <xsl:when test="ref/label"> 
     
    39443905      </xsl:otherwise> 
    39453906    </xsl:choose>--> 
     3907                                <xsl:if test="citation[@citation-type='journal']"> 
     3908                                        <xsl:variable name="apos">'</xsl:variable> 
     3909                                        <xsl:variable name="artTitle"><xsl:value-of select="citation/article-title"/></xsl:variable> 
     3910                                        <xsl:variable name="author"><xsl:value-of select="citation/person-group[@person-group-type='author'][1]/name[1]/surname"/></xsl:variable> 
     3911                                        <xsl:variable name="findURL"><xsl:value-of select="concat('findArticle.action?author=', $author, '&amp;title=', $artTitle)"/></xsl:variable> 
     3912                                        <xsl:element name="a"><xsl:attribute name="class">find</xsl:attribute><xsl:attribute name="href"><xsl:value-of select="$findURL"/></xsl:attribute>Find this article online</xsl:element> 
     3913                                </xsl:if> 
    39463914                        </li> 
    39473915                </xsl:for-each> 
     
    39973965     also must be supplied = mode nscitation. --> 
    39983966 
    3999 <xsl:template match="ref/citation"> 
     3967<!--<xsl:template match="ref/citation">--> 
    40003968 
    40013969<!--    <xsl:choose>--> 
     
    40103978           punctuation not supplied = generate it. --> 
    40113979<!--      <xsl:otherwise>--> 
    4012         <xsl:apply-templates mode="nscitation"/> 
     3980<!--        <xsl:apply-templates mode="nscitation"/>--> 
    40133981<!--      </xsl:otherwise> 
    40143982    </xsl:choose>--> 
    40153983 
    4016 </xsl:template> 
     3984<!--</xsl:template>--> 
    40173985 
    40183986 
     
    40313999 
    40324000<!-- Book or thesis --> 
    4033 <xsl:template match="ref/nlm-citation[@citation-type='book'] 
    4034                    | ref/nlm-citation[@citation-type='thesis']"> 
     4001<xsl:template match="ref/citation[@citation-type='book'] 
     4002                   | ref/citation[@citation-type='thesis']"> 
    40354003 
    40364004  <xsl:variable name="augroupcount" select="count(person-group) + count(collab)"/> 
     
    40384006  <xsl:choose> 
    40394007 
    4040     <xsl:when test="$augroupcount>1 and 
     4008   <xsl:when test="$augroupcount>1 and 
    40414009                    person-group[@person-group-type!='author'] and 
    40424010                    article-title "> 
     
    40444012      <xsl:apply-templates select="person-group[@person-group-type='author']" mode="book"/> 
    40454013      <xsl:apply-templates select="collab" mode="book"/> 
     4014      <xsl:apply-templates select="etal"/> 
    40464015          </span> 
     4016      <xsl:apply-templates select="year | month | time-stamp | season | access-date" 
     4017                           mode="book"/> 
    40474018      <xsl:apply-templates select="article-title" mode="editedbook"/> 
    4048       <xsl:text>In: </xsl:text> 
    40494019      <xsl:apply-templates select="person-group[@person-group-type='editor'] 
    40504020                                 | person-group[@person-group-type='allauthors'] 
     
    40624032      <xsl:apply-templates select="publisher-name | publisher-loc" 
    40634033                           mode="none"/> 
    4064       <xsl:apply-templates select="year | month | time-stamp | season | access-date" 
    4065                            mode="book"/> 
    40664034      <xsl:apply-templates select="fpage | lpage" 
    40674035                           mode="book"/> 
     
    40774045                           mode="book"/> 
    40784046      </span> 
     4047       <xsl:apply-templates select="year | month | time-stamp | season | access-date" 
     4048                           mode="book"/> 
    40794049      <xsl:apply-templates select="source" 
    40804050                           mode="book"/> 
     
    40914061      <xsl:apply-templates select="publisher-name | publisher-loc" 
    40924062                           mode="none"/> 
    4093       <xsl:apply-templates select="year | month | time-stamp | season | access-date" 
    4094                            mode="book"/> 
     4063 
    40954064      <xsl:apply-templates select="article-title | fpage | lpage" 
    40964065                           mode="book"/> 
     
    41074076                           mode="book"/> 
    41084077        </span> 
     4078              <xsl:apply-templates select="year | month | time-stamp | season | access-date" 
     4079                           mode="book"/> 
    41094080      <xsl:apply-templates select="source" 
    41104081                           mode="book"/> 
     
    41174088      <xsl:apply-templates select="publisher-name | publisher-loc" 
    41184089                           mode="none"/> 
    4119       <xsl:apply-templates select="year | month | time-stamp | season | access-date" 
    4120                            mode="book"/> 
     4090 
    41214091      <xsl:apply-templates select="article-title | fpage | lpage" 
    41224092                           mode="book"/> 
     
    41294099 
    41304100<!-- Conference proceedings --> 
    4131 <xsl:template match="ref/nlm-citation[@citation-type='confproc']"> 
     4101<xsl:template match="ref/citation[@citation-type='confproc']"> 
    41324102 
    41334103  <xsl:variable name="augroupcount" select="count(person-group) + count(collab)"/> 
     
    41864156 
    41874157<!-- Government and other reports, other, web, and commun --> 
    4188 <xsl:template match="ref/nlm-citation[@citation-type='gov'] 
    4189                    | ref/nlm-citation[@citation-type='web'] 
    4190                    | ref/nlm-citation[@citation-type='commun'] 
    4191                    | ref/nlm-citation[@citation-type='other']"> 
     4158<xsl:template match="ref/citation[@citation-type='gov'] 
     4159                   | ref/citation[@citation-type='web'] 
     4160                   | ref/citation[@citation-type='commun'] 
     4161                   | ref/citation[@citation-type='other']"> 
    41924162 
    41934163  <xsl:apply-templates select="person-group" mode="book"/> 
     
    42434213 
    42444214<!-- Patents  --> 
    4245 <xsl:template match="ref/nlm-citation[@citation-type='patent']"> 
     4215<xsl:template match="ref/citation[@citation-type='patent']"> 
    42464216 
    42474217  <xsl:apply-templates select="person-group" 
     
    42664236 
    42674237<!-- Discussion  --> 
    4268 <xsl:template match="ref/nlm-citation[@citation-type='discussion']"> 
     4238<xsl:template match="ref/citation[@citation-type='discussion']"> 
    42694239 
    42704240  <xsl:apply-templates select="person-group" 
     
    42944264 
    42954265 
     4266<!-- 
     4267<xsl:template match="ref/citation[@citation-type='journal']"> 
     4268 
     4269  <xsl:variable name="augroupcount" select="count(person-group) + count(collab)"/> 
     4270 
     4271  <xsl:choose> 
     4272 
     4273    <xsl:when test="$augroupcount>1 and 
     4274                    person-group[@person-group-type!='author'] and 
     4275                    article-title "> 
     4276          <span class="authors"> 
     4277      <xsl:apply-templates select="person-group[@person-group-type='author']" mode="book"/> 
     4278      <xsl:apply-templates select="collab" mode="book"/> 
     4279      <xsl:apply-templates select="etal"/> 
     4280          </span> 
     4281      <xsl:apply-templates select="article-title" mode="editedbook"/> 
     4282      <xsl:text>In: </xsl:text> 
     4283      <xsl:apply-templates select="person-group[@person-group-type='editor'] 
     4284                                 | person-group[@person-group-type='allauthors'] 
     4285                                 | person-group[@person-group-type='translator'] 
     4286                                 | person-group[@person-group-type='transed'] " 
     4287                           mode="book"/> 
     4288      <xsl:apply-templates select="year | month | time-stamp | season | access-date" 
     4289                           mode="book"/> 
     4290      <xsl:apply-templates select="source" 
     4291                           mode="book"/> 
     4292      <xsl:apply-templates select="edition" 
     4293                           mode="book"/> 
     4294      <xsl:apply-templates select="volume" 
     4295                           mode="book"/> 
     4296      <xsl:apply-templates select="trans-source" 
     4297                           mode="book"/> 
     4298      <xsl:apply-templates select="publisher-name | publisher-loc" 
     4299                           mode="none"/> 
     4300      <xsl:apply-templates select="fpage | lpage" 
     4301                           mode="book"/> 
     4302    </xsl:when> 
     4303 
     4304    <xsl:when test="person-group[@person-group-type='author'] or 
     4305                    person-group[@person-group-type='compiler']"> 
     4306                <span class="authors"> 
     4307      <xsl:apply-templates select="person-group[@person-group-type='author'] 
     4308                                 | person-group[@person-group-type='compiler']" 
     4309                           mode="book"/> 
     4310      <xsl:apply-templates select="collab" 
     4311                           mode="book"/> 
     4312      </span> 
     4313       <xsl:apply-templates select="year | month | time-stamp | season | access-date" 
     4314                           mode="book"/> 
     4315      <xsl:apply-templates select="source" 
     4316                           mode="book"/> 
     4317      <xsl:apply-templates select="edition" 
     4318                           mode="book"/> 
     4319      <xsl:apply-templates select="person-group[@person-group-type='editor'] 
     4320                                 | person-group[@person-group-type='translator'] 
     4321                                 | person-group[@person-group-type='transed'] " 
     4322                           mode="book"/> 
     4323      <xsl:apply-templates select="volume" 
     4324                           mode="book"/> 
     4325      <xsl:apply-templates select="trans-source" 
     4326                           mode="book"/> 
     4327      <xsl:apply-templates select="publisher-name | publisher-loc" 
     4328                           mode="none"/> 
     4329 
     4330      <xsl:apply-templates select="article-title | fpage | lpage" 
     4331                           mode="book"/> 
     4332    </xsl:when> 
     4333 
     4334    <xsl:otherwise> 
     4335                <span class="authors"> 
     4336      <xsl:apply-templates select="person-group[@person-group-type='editor'] 
     4337                                 | person-group[@person-group-type='translator'] 
     4338                                 | person-group[@person-group-type='transed'] 
     4339                                 | person-group[@person-group-type='guest-editor']" 
     4340                           mode="book"/> 
     4341      <xsl:apply-templates select="collab" 
     4342                           mode="book"/> 
     4343        </span> 
     4344              <xsl:apply-templates select="year | month | time-stamp | season | access-date" 
     4345                           mode="book"/> 
     4346      <xsl:apply-templates select="source" 
     4347                           mode="book"/> 
     4348      <xsl:apply-templates select="edition" 
     4349                           mode="book"/> 
     4350      <xsl:apply-templates select="volume" 
     4351                           mode="book"/> 
     4352      <xsl:apply-templates select="trans-source" 
     4353                           mode="book"/> 
     4354      <xsl:apply-templates select="publisher-name | publisher-loc" 
     4355                           mode="none"/> 
     4356 
     4357      <xsl:apply-templates select="article-title | fpage | lpage" 
     4358                           mode="book"/> 
     4359    </xsl:otherwise> 
     4360  </xsl:choose> 
     4361 
     4362  <xsl:call-template name="citation-tag-ends"/> 
     4363</xsl:template> 
     4364--> 
     4365 
     4366 
    42964367<!-- If none of the above citation-types applies, 
    42974368     use mode="none". This generates punctuation. --> 
    42984369<!-- (e.g., citation-type="journal"              --> 
    4299 <xsl:template match="nlm-citation"> 
    4300  
     4370<xsl:template match="citation"> 
     4371          <span class="authors"> 
     4372      <xsl:apply-templates select="person-group"/> 
     4373      <xsl:apply-templates select="collab"/> 
     4374          </span> 
    43014375  <xsl:apply-templates select="*[not(self::annotation) and 
    4302                                  not(self::edition) and 
    4303                                  not(self::lpage) and 
     4376                                 not(self::edition) and not(self::person-group) and not(self::collab) and 
    43044377                                 not(self::comment)]|text()" 
    43054378                       mode="none"/> 
     
    43434416 
    43444417      <xsl:call-template name="make-persons-in-mode"/> 
    4345       <xsl:call-template name="choose-person-type-string"/> 
    4346       <xsl:call-template name="choose-person-group-end-punct"/> 
    4347  
     4418<!--      <xsl:call-template name="choose-person-type-string"/> 
     4419      <xsl:call-template name="choose-person-group-end-punct"/>--> 
     4420 
     4421</xsl:template> 
     4422 
     4423<xsl:template match="person-group[@person-group-type='editor']" mode="book"> 
     4424        <xsl:text> </xsl:text> 
     4425        <xsl:apply-templates /> 
     4426        <xsl:choose> 
     4427                <xsl:when test="count (name) > 1"> 
     4428                        <xsl:text>, editors. </xsl:text>                 
     4429                </xsl:when> 
     4430                <xsl:otherwise> 
     4431                        <xsl:text>, editor. </xsl:text>          
     4432                </xsl:otherwise> 
     4433        </xsl:choose> 
     4434</xsl:template> 
     4435 
     4436<xsl:template match="person-group[@person-group-type='translator'] | person-group[@group-type='transed']" mode="book"> 
     4437        <xsl:apply-templates /> 
     4438        <xsl:text>, translator; </xsl:text> 
    43484439</xsl:template> 
    43494440 
     
    43534444 
    43544445<xsl:template name="make-persons-in-mode"> 
    4355  
     4446<!-- 
    43564447  <xsl:variable name="gnms" 
    43574448    select="string(descendant::given-names)"/> 
     
    43664457          <xsl:apply-templates/> 
    43674458        </xsl:when> 
    4368         <xsl:otherwise> 
     4459        <xsl:otherwise>--> 
    43694460          <xsl:apply-templates mode="book"/> 
    4370         </xsl:otherwise> 
     4461<!--        </xsl:otherwise> 
    43714462      </xsl:choose> 
    4372  
     4463--> 
    43734464</xsl:template> 
    43744465 
     
    43904481        </xsl:when> 
    43914482 
    4392         <xsl:otherwise> 
     4483<!--        <xsl:otherwise> 
    43934484          <xsl:text>, </xsl:text> 
    43944485          <xsl:value-of select="($person-strings[@source=$person-group-type]/@singular)"/> 
    4395         </xsl:otherwise> 
     4486        </xsl:otherwise>--> 
    43964487      </xsl:choose> 
    43974488 
     
    44274518<xsl:template match="name" mode="nscitation"> 
    44284519  <xsl:value-of select="surname"/> 
     4520  <xsl:text> </xsl:text> 
     4521  <xsl:value-of select="given-names"/> 
    44294522  <xsl:text>, </xsl:text> 
    4430   <xsl:value-of select="given-names"/> 
    4431   <xsl:text>. </xsl:text> 
    44324523</xsl:template> 
    44334524 
     
    44434534      <xsl:when test="given-names"> 
    44444535        <xsl:apply-templates select="surname"/> 
    4445         <xsl:text>, </xsl:text> 
     4536        <xsl:text> </xsl:text> 
    44464537        <xsl:call-template name="firstnames" > 
    44474538          <xsl:with-param name="nodetotal" select="$nodetotal"/> 
     
    44874578              <xsl:when test="parent::person-group/@person-group-type='author'"> 
    44884579                <xsl:choose> 
    4489                   <xsl:when test="$nodetotal=$position">. </xsl:when> 
     4580                  <xsl:when test="$nodetotal=$position"> </xsl:when> 
    44904581                  <xsl:when test="$penult=$position"> 
    44914582                    <xsl:choose> 
    44924583                      <xsl:when test="following-sibling::etal">, </xsl:when> 
    4493                       <xsl:otherwise>; </xsl:otherwise> 
     4584                      <xsl:otherwise>, </xsl:otherwise> 
    44944585                    </xsl:choose> 
    44954586                  </xsl:when> 
    4496                   <xsl:otherwise>; </xsl:otherwise> 
     4587                  <xsl:otherwise>, </xsl:otherwise> 
    44974588                </xsl:choose> 
    44984589              </xsl:when> 
     
    45874678<xsl:template match="article-title" mode="nscitation"> 
    45884679  <xsl:apply-templates/> 
    4589   <xsl:text>. </xsl:text> 
     4680  <xsl:text> </xsl:text> 
    45904681</xsl:template> 
    45914682 
     
    46044695 
    46054696<xsl:template match="article-title" mode="editedbook"> 
    4606   <xsl:apply-templates/> 
    4607   <xsl:text>. </xsl:text> 
     4697  <xsl:text> </xsl:text>  
     4698  <xsl:apply-templates/> 
    46084699</xsl:template> 
    46094700 
     
    46254716</xsl:template> 
    46264717 
    4627  
     4718<xsl:template match="publisher-loc"> 
     4719  <xsl:apply-templates/> 
     4720  <xsl:text>: </xsl:text> 
     4721</xsl:template> 
     4722 
     4723<xsl:template match="publisher-name"> 
     4724  <xsl:apply-templates/> 
     4725  <xsl:text>.</xsl:text> 
     4726</xsl:template> 
    46284727 
    46294728<xsl:template match="source" mode="nscitation"> 
    4630   <i><xsl:apply-templates/></i> 
     4729  <xsl:apply-templates/><xsl:text>. </xsl:text> 
    46314730</xsl:template> 
    46324731 
     
    46654764 
    46664765<xsl:template match="volume" mode="nscitation"> 
    4667   <xsl:text> </xsl:text><xsl:apply-templates/> 
     4766  <xsl:text> </xsl:text><xsl:apply-templates/><xsl:text>: </xsl:text> 
    46684767</xsl:template> 
    46694768 
     
    47324831 
    47334832<xsl:template match="year" mode="nscitation"> 
    4734   <xsl:text> </xsl:text> 
    4735   <xsl:apply-templates/> 
    4736   <xsl:text> </xsl:text> 
     4833  <xsl:text> (</xsl:text> 
     4834  <xsl:apply-templates/> 
     4835  <xsl:text>) </xsl:text> 
    47374836</xsl:template> 
    47384837 
     
    47444843    </xsl:when> 
    47454844    <xsl:otherwise> 
     4845      <xsl:text> (</xsl:text> 
    47464846      <xsl:apply-templates/> 
    4747       <xsl:text>. </xsl:text> 
     4847      <xsl:text>) </xsl:text> 
    47484848    </xsl:otherwise> 
    47494849  </xsl:choose> 
     
    47964896    <xsl:value-of select="../lpage"/> 
    47974897  </xsl:if> 
    4798   <xsl:text> </xsl:text> 
     4898  <xsl:if test="../@citation-type=book"> 
     4899        <xsl:text> p</xsl:text> 
     4900  </xsl:if> 
     4901  <xsl:text>. </xsl:text> 
    47994902</xsl:template> 
    48004903 
    48014904<xsl:template match="fpage" mode="book"> 
    4802   <xsl:text>p. </xsl:text> 
    4803   <xsl:apply-templates/> 
    4804  
    4805   <xsl:if test="../lpage"> 
    4806     <xsl:text>.</xsl:text> 
    4807   </xsl:if> 
    4808  
     4905        <xsl:if test="../lpage"> 
     4906                <xsl:text>pp. </xsl:text> 
     4907        </xsl:if> 
     4908  <xsl:apply-templates/> 
     4909  <xsl:choose> 
     4910    <xsl:when test="../lpage"> 
     4911        <xsl:text>&#8211;</xsl:text> 
     4912    </xsl:when> 
     4913    <xsl:otherwise> 
     4914                <xsl:text> p. </xsl:text> 
     4915    </xsl:otherwise> 
     4916  </xsl:choose> 
    48094917</xsl:template> 
    48104918 
     
    48134921  <xsl:choose> 
    48144922    <xsl:when test="../fpage"> 
    4815       <xsl:text>-</xsl:text> 
    48164923      <xsl:apply-templates/> 
    48174924      <xsl:text>.</xsl:text> 
     
    48794986  <xsl:param name="pgtype"/> 
    48804987 
    4881   <xsl:variable name="length" select="string-length($names)-1"/> 
     4988 
     4989  <!--<xsl:variable name="length" select="string-length($names)-1"/> 
    48824990  <xsl:variable name="gnm" select="substring($names,$length,2)"/> 
    48834991  <xsl:variable name="GNM"> 
     
    48864994    </xsl:call-template> 
    48874995  </xsl:variable> 
    4888  
     4996--> 
    48894997<!-- 
    48904998<xsl:text>Value of $names = [</xsl:text><xsl:value-of select="$names"/><xsl:text>]</xsl:text> 
     
    48955003 
    48965004  <xsl:if test="$names"> 
    4897     <xsl:choose> 
     5005<!--    <xsl:choose> 
    48985006 
    48995007      <xsl:when test="$gnm=$GNM"> 
     
    49095017      </xsl:when> 
    49105018 
    4911       <xsl:otherwise> 
     5019      <xsl:otherwise>--> 
    49125020        <xsl:apply-templates select="$names"/> 
    4913       </xsl:otherwise> 
    4914  
    4915     </xsl:choose> 
     5021<!--      </xsl:otherwise> 
     5022 
     5023    </xsl:choose--> 
    49165024  </xsl:if> 
    49175025 
     
    49305038<xsl:template match="name" mode="none"> 
    49315039  <xsl:value-of select="surname"/> 
    4932   <xsl:text>, </xsl:text> 
     5040  <xsl:text> </xsl:text> 
    49335041  <xsl:value-of select="given-names"/> 
    49345042  <xsl:text>. </xsl:text> 
     
    49375045<xsl:template match="article-title" mode="none"> 
    49385046  <xsl:apply-templates/> 
    4939   <xsl:if test="../trans-title"> 
    4940     <xsl:text>. </xsl:text> 
    4941   </xsl:if> 
    49425047</xsl:template> 
    49435048 
    49445049<xsl:template match="volume" mode="none"> 
    4945   <xsl:apply-templates/> 
     5050  <xsl:text> </xsl:text> 
     5051  <xsl:apply-templates/> 
     5052  <xsl:text>: </xsl:text> 
    49465053</xsl:template> 
    49475054 
     
    49695076<xsl:template match="publisher-name" mode="none"> 
    49705077  <xsl:apply-templates/> 
    4971   <xsl:text>; </xsl:text> 
     5078  <xsl:text>. </xsl:text> 
    49725079</xsl:template> 
    49735080 
    49745081<xsl:template match="person-group" mode="none"> 
    4975   <xsl:variable name="gnms" select="string(descendant::given-names)"/> 
     5082<!--  <xsl:variable name="gnms" select="string(descendant::given-names)"/> 
    49765083  <xsl:variable name="GNMS"> 
    49775084    <xsl:call-template name="capitalize"> 
     
    49855092    </xsl:when> 
    49865093 
    4987     <xsl:otherwise> 
     5094    <xsl:otherwise>--> 
    49885095      <xsl:apply-templates select="node()" mode="book"/> 
    4989     </xsl:otherwise> 
    4990   </xsl:choose> 
     5096 
     5097<!--    </xsl:otherwise> 
     5098  </xsl:choose>--> 
    49915099</xsl:template> 
    49925100 
     
    50105118 
    50115119<xsl:template match="source" mode="none"> 
     5120        <xsl:text> </xsl:text> 
    50125121  <xsl:apply-templates/> 
    50135122 
     
    50865195 
    50875196    <xsl:otherwise> 
     5197          <xsl:text> (</xsl:text> 
    50885198      <xsl:apply-templates mode="none"/> 
    5089       <xsl:if test="../volume or ../issue"> 
     5199          <xsl:text>) </xsl:text> 
     5200<!--      <xsl:if test="../volume or ../issue"> 
    50905201        <xsl:text>;</xsl:text> 
    5091       </xsl:if> 
     5202      </xsl:if>--> 
    50925203    </xsl:otherwise> 
    50935204  </xsl:choose> 
     
    51395250 
    51405251    <xsl:otherwise> 
    5141       <xsl:text>:</xsl:text> 
    5142       <xsl:apply-templates/> 
     5252     <xsl:apply-templates/> 
    51435253 
    51445254      <xsl:choose> 
    51455255        <xsl:when test="$hermano='lpage'"> 
    51465256          <xsl:text>&#8211;</xsl:text> 
    5147           <xsl:apply-templates select="following-sibling::lpage[1]" mode="none"/> 
    5148           <xsl:text>.</xsl:text> 
     5257          <!--<xsl:apply-templates select="following-sibling::lpage[1]" mode="none"/> 
     5258          <xsl:text>.</xsl:text>--> 
    51495259        </xsl:when> 
    51505260 
     
    51645274 
    51655275<xsl:template match="lpage" mode="none"> 
    5166   <xsl:apply-templates/> 
     5276  <xsl:apply-templates/><xsl:text>.</xsl:text> 
    51675277</xsl:template> 
    51685278 
  • head/plosone/webapp/src/main/webapp/WEB-INF/classes/xwork.xml

    r1544 r1546  
    263263    </action> 
    264264 
     265    <action name="findArticle"> 
     266      <result name="success" type="plosOneFreemarker"> 
     267        <param name="templateFile">/article/findArticle.ftl</param> 
     268      </result> 
     269    </action> 
     270 
    265271 
    266272    <action name="emailThisArticleCreate" class="org.plos.article.action.EmailArticleAction" method="executeRender">