Changeset 1546
- Timestamp:
- 12/04/06 04:52:13 (4 years ago)
- Location:
- head/plosone/webapp/src/main
- Files:
-
- 3 added
- 2 modified
-
resources/viewnlm-v2.xsl (modified) (59 diffs)
-
webapp/article/findArticle.ftl (added)
-
webapp/images/pone_icon_google_link.gif (added)
-
webapp/images/pone_icon_pubmed_link.gif (added)
-
webapp/WEB-INF/classes/xwork.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
head/plosone/webapp/src/main/resources/viewnlm-v2.xsl
r1397 r1546 448 448 449 449 <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 453 465 <xsl:apply-templates/> 454 466 </div> … … 770 782 <!-- initial context node is article --> 771 783 772 <xsl:template match="fig ">784 <xsl:template match="fig | table-wrap"> 773 785 <xsl:variable name="figId"><xsl:value-of select="@id"/></xsl:variable> 786 <xsl:variable name="apos">'</xsl:variable> 774 787 <xsl:variable name="imageURI"><xsl:value-of select="graphic/@xlink:href"/></xsl:variable> 775 788 <xsl:variable name="slideshowURL"> 776 789 <xsl:value-of select="concat('slideshow.action?uri=',substring($imageURI, 1, (string-length($imageURI)-5)),'&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;')"/> 777 795 </xsl:variable> 778 796 <div class="figure"> … … 785 803 <xsl:attribute name="title">Click for larger image </xsl:attribute> 786 804 <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> 788 806 <xsl:element name="img"> 789 807 <xsl:attribute name="border">1</xsl:attribute> … … 798 816 <xsl:element name="a"> 799 817 <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> 801 819 <strong> 802 820 <span> … … 815 833 </span> 816 834 </h5> 817 <xsl:apply-templates select="caption/ *[not(title)]"/>835 <xsl:apply-templates select="caption/node()[not(self::title)]"/> 818 836 </div> 819 837 </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)),'&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,'&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 872 838 873 839 <xsl:template name="make-figs-and-tables"> … … 1091 1057 <xsl:value-of select="copyright-year"/> 1092 1058 <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> 1096 1061 <xsl:value-of select="volume"/>(<xsl:value-of select="issue"/>): 1097 1062 <xsl:value-of select="elocation-id"/>. … … 1351 1316 1352 1317 <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> 1355 1322 </xsl:template> 1356 1323 … … 2227 2194 2228 2195 <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"/>--> 2231 2198 <xsl:apply-templates/> 2232 </span>2233 <br/> 2199 <!-- </span> 2200 <br/>--> 2234 2201 </xsl:template> 2235 2202 … … 2758 2725 2759 2726 <xsl:template match="article-title" mode="front"> 2760 <h1> 2761 <xsl:call-template name="makeXpathLocation"/> 2727 <h1 xpathLocation="noSelect"> 2762 2728 <xsl:apply-templates/> 2763 2729 </h1> … … 2767 2733 <!-- subtitle runs in with title --> 2768 2734 <xsl:template match="subtitle" mode="front"> 2769 <h2> 2770 <xsl:call-template name="makeXpathLocation"/> 2735 <h2 xpathLocation="noSelect"> 2771 2736 <xsl:apply-templates/> 2772 2737 </h2> … … 3394 3359 <span class="gen"><xsl:text>, </xsl:text></span> 3395 3360 </xsl:if> 3396 <a target="xrefwindow"href="#{@rid}">3361 <a href="#{@rid}"> 3397 3362 <xsl:value-of select="@rid"/> 3398 3363 </a> … … 3460 3425 <!-- default: if none of the above ref-types --> 3461 3426 <xsl:template match="xref"> 3462 <span class="xref">3463 3427 <xsl:call-template name="make-id"/> 3464 <a target="xrefwindow"href="#{@rid}">3428 <a href="#{@rid}"> 3465 3429 <xsl:choose> 3466 3430 <!-- if xref not empty --> … … 3474 3438 </xsl:choose> 3475 3439 </a> 3476 </span>3477 3440 </xsl:template> 3478 3441 … … 3603 3566 3604 3567 <xsl:template match="ref-list/title"> 3605 <xsl:call-template name="nl-1"/>3606 3568 <a id="refs" name="refs" toc="refs" title="References"></a> 3607 3569 <h3><xsl:apply-templates/></h3> 3608 <xsl:call-template name="nl-1"/>3609 3570 </xsl:template> 3610 3571 … … 3919 3880 <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> 3920 3881 </a> 3921 <!-- <xsl:apply-templates select="citation"/>-->3922 3882 <xsl:apply-templates select="citation"/> 3883 <!-- 3923 3884 <span class="authors"> 3924 3885 <xsl:for-each select="citation/person-group[@person-group-type='author']/name"> … … 3935 3896 <xsl:text>–</xsl:text> 3936 3897 <xsl:apply-templates select="citation/lpage"/><xsl:text>.</xsl:text> 3937 </xsl:if> 3898 </xsl:if>--> 3938 3899 <!-- <xsl:choose> 3939 3900 <xsl:when test="ref/label"> … … 3944 3905 </xsl:otherwise> 3945 3906 </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, '&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> 3946 3914 </li> 3947 3915 </xsl:for-each> … … 3997 3965 also must be supplied = mode nscitation. --> 3998 3966 3999 < xsl:template match="ref/citation">3967 <!--<xsl:template match="ref/citation">--> 4000 3968 4001 3969 <!-- <xsl:choose>--> … … 4010 3978 punctuation not supplied = generate it. --> 4011 3979 <!-- <xsl:otherwise>--> 4012 <xsl:apply-templates mode="nscitation"/>3980 <!-- <xsl:apply-templates mode="nscitation"/>--> 4013 3981 <!-- </xsl:otherwise> 4014 3982 </xsl:choose>--> 4015 3983 4016 < /xsl:template>3984 <!--</xsl:template>--> 4017 3985 4018 3986 … … 4031 3999 4032 4000 <!-- 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']"> 4035 4003 4036 4004 <xsl:variable name="augroupcount" select="count(person-group) + count(collab)"/> … … 4038 4006 <xsl:choose> 4039 4007 4040 <xsl:when test="$augroupcount>1 and4008 <xsl:when test="$augroupcount>1 and 4041 4009 person-group[@person-group-type!='author'] and 4042 4010 article-title "> … … 4044 4012 <xsl:apply-templates select="person-group[@person-group-type='author']" mode="book"/> 4045 4013 <xsl:apply-templates select="collab" mode="book"/> 4014 <xsl:apply-templates select="etal"/> 4046 4015 </span> 4016 <xsl:apply-templates select="year | month | time-stamp | season | access-date" 4017 mode="book"/> 4047 4018 <xsl:apply-templates select="article-title" mode="editedbook"/> 4048 <xsl:text>In: </xsl:text>4049 4019 <xsl:apply-templates select="person-group[@person-group-type='editor'] 4050 4020 | person-group[@person-group-type='allauthors'] … … 4062 4032 <xsl:apply-templates select="publisher-name | publisher-loc" 4063 4033 mode="none"/> 4064 <xsl:apply-templates select="year | month | time-stamp | season | access-date"4065 mode="book"/>4066 4034 <xsl:apply-templates select="fpage | lpage" 4067 4035 mode="book"/> … … 4077 4045 mode="book"/> 4078 4046 </span> 4047 <xsl:apply-templates select="year | month | time-stamp | season | access-date" 4048 mode="book"/> 4079 4049 <xsl:apply-templates select="source" 4080 4050 mode="book"/> … … 4091 4061 <xsl:apply-templates select="publisher-name | publisher-loc" 4092 4062 mode="none"/> 4093 <xsl:apply-templates select="year | month | time-stamp | season | access-date" 4094 mode="book"/> 4063 4095 4064 <xsl:apply-templates select="article-title | fpage | lpage" 4096 4065 mode="book"/> … … 4107 4076 mode="book"/> 4108 4077 </span> 4078 <xsl:apply-templates select="year | month | time-stamp | season | access-date" 4079 mode="book"/> 4109 4080 <xsl:apply-templates select="source" 4110 4081 mode="book"/> … … 4117 4088 <xsl:apply-templates select="publisher-name | publisher-loc" 4118 4089 mode="none"/> 4119 <xsl:apply-templates select="year | month | time-stamp | season | access-date" 4120 mode="book"/> 4090 4121 4091 <xsl:apply-templates select="article-title | fpage | lpage" 4122 4092 mode="book"/> … … 4129 4099 4130 4100 <!-- Conference proceedings --> 4131 <xsl:template match="ref/ nlm-citation[@citation-type='confproc']">4101 <xsl:template match="ref/citation[@citation-type='confproc']"> 4132 4102 4133 4103 <xsl:variable name="augroupcount" select="count(person-group) + count(collab)"/> … … 4186 4156 4187 4157 <!-- 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']"> 4192 4162 4193 4163 <xsl:apply-templates select="person-group" mode="book"/> … … 4243 4213 4244 4214 <!-- Patents --> 4245 <xsl:template match="ref/ nlm-citation[@citation-type='patent']">4215 <xsl:template match="ref/citation[@citation-type='patent']"> 4246 4216 4247 4217 <xsl:apply-templates select="person-group" … … 4266 4236 4267 4237 <!-- Discussion --> 4268 <xsl:template match="ref/ nlm-citation[@citation-type='discussion']">4238 <xsl:template match="ref/citation[@citation-type='discussion']"> 4269 4239 4270 4240 <xsl:apply-templates select="person-group" … … 4294 4264 4295 4265 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 4296 4367 <!-- If none of the above citation-types applies, 4297 4368 use mode="none". This generates punctuation. --> 4298 4369 <!-- (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> 4301 4375 <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 4304 4377 not(self::comment)]|text()" 4305 4378 mode="none"/> … … 4343 4416 4344 4417 <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> 4348 4439 </xsl:template> 4349 4440 … … 4353 4444 4354 4445 <xsl:template name="make-persons-in-mode"> 4355 4446 <!-- 4356 4447 <xsl:variable name="gnms" 4357 4448 select="string(descendant::given-names)"/> … … 4366 4457 <xsl:apply-templates/> 4367 4458 </xsl:when> 4368 <xsl:otherwise> 4459 <xsl:otherwise>--> 4369 4460 <xsl:apply-templates mode="book"/> 4370 </xsl:otherwise>4461 <!-- </xsl:otherwise> 4371 4462 </xsl:choose> 4372 4463 --> 4373 4464 </xsl:template> 4374 4465 … … 4390 4481 </xsl:when> 4391 4482 4392 <xsl:otherwise>4483 <!-- <xsl:otherwise> 4393 4484 <xsl:text>, </xsl:text> 4394 4485 <xsl:value-of select="($person-strings[@source=$person-group-type]/@singular)"/> 4395 </xsl:otherwise> 4486 </xsl:otherwise>--> 4396 4487 </xsl:choose> 4397 4488 … … 4427 4518 <xsl:template match="name" mode="nscitation"> 4428 4519 <xsl:value-of select="surname"/> 4520 <xsl:text> </xsl:text> 4521 <xsl:value-of select="given-names"/> 4429 4522 <xsl:text>, </xsl:text> 4430 <xsl:value-of select="given-names"/>4431 <xsl:text>. </xsl:text>4432 4523 </xsl:template> 4433 4524 … … 4443 4534 <xsl:when test="given-names"> 4444 4535 <xsl:apply-templates select="surname"/> 4445 <xsl:text> ,</xsl:text>4536 <xsl:text> </xsl:text> 4446 4537 <xsl:call-template name="firstnames" > 4447 4538 <xsl:with-param name="nodetotal" select="$nodetotal"/> … … 4487 4578 <xsl:when test="parent::person-group/@person-group-type='author'"> 4488 4579 <xsl:choose> 4489 <xsl:when test="$nodetotal=$position"> .</xsl:when>4580 <xsl:when test="$nodetotal=$position"> </xsl:when> 4490 4581 <xsl:when test="$penult=$position"> 4491 4582 <xsl:choose> 4492 4583 <xsl:when test="following-sibling::etal">, </xsl:when> 4493 <xsl:otherwise> ;</xsl:otherwise>4584 <xsl:otherwise>, </xsl:otherwise> 4494 4585 </xsl:choose> 4495 4586 </xsl:when> 4496 <xsl:otherwise> ;</xsl:otherwise>4587 <xsl:otherwise>, </xsl:otherwise> 4497 4588 </xsl:choose> 4498 4589 </xsl:when> … … 4587 4678 <xsl:template match="article-title" mode="nscitation"> 4588 4679 <xsl:apply-templates/> 4589 <xsl:text> .</xsl:text>4680 <xsl:text> </xsl:text> 4590 4681 </xsl:template> 4591 4682 … … 4604 4695 4605 4696 <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/> 4608 4699 </xsl:template> 4609 4700 … … 4625 4716 </xsl:template> 4626 4717 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> 4628 4727 4629 4728 <xsl:template match="source" mode="nscitation"> 4630 < i><xsl:apply-templates/></i>4729 <xsl:apply-templates/><xsl:text>. </xsl:text> 4631 4730 </xsl:template> 4632 4731 … … 4665 4764 4666 4765 <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> 4668 4767 </xsl:template> 4669 4768 … … 4732 4831 4733 4832 <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> 4737 4836 </xsl:template> 4738 4837 … … 4744 4843 </xsl:when> 4745 4844 <xsl:otherwise> 4845 <xsl:text> (</xsl:text> 4746 4846 <xsl:apply-templates/> 4747 <xsl:text> .</xsl:text>4847 <xsl:text>) </xsl:text> 4748 4848 </xsl:otherwise> 4749 4849 </xsl:choose> … … 4796 4896 <xsl:value-of select="../lpage"/> 4797 4897 </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> 4799 4902 </xsl:template> 4800 4903 4801 4904 <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>–</xsl:text> 4912 </xsl:when> 4913 <xsl:otherwise> 4914 <xsl:text> p. </xsl:text> 4915 </xsl:otherwise> 4916 </xsl:choose> 4809 4917 </xsl:template> 4810 4918 … … 4813 4921 <xsl:choose> 4814 4922 <xsl:when test="../fpage"> 4815 <xsl:text>-</xsl:text>4816 4923 <xsl:apply-templates/> 4817 4924 <xsl:text>.</xsl:text> … … 4879 4986 <xsl:param name="pgtype"/> 4880 4987 4881 <xsl:variable name="length" select="string-length($names)-1"/> 4988 4989 <!--<xsl:variable name="length" select="string-length($names)-1"/> 4882 4990 <xsl:variable name="gnm" select="substring($names,$length,2)"/> 4883 4991 <xsl:variable name="GNM"> … … 4886 4994 </xsl:call-template> 4887 4995 </xsl:variable> 4888 4996 --> 4889 4997 <!-- 4890 4998 <xsl:text>Value of $names = [</xsl:text><xsl:value-of select="$names"/><xsl:text>]</xsl:text> … … 4895 5003 4896 5004 <xsl:if test="$names"> 4897 <xsl:choose>5005 <!-- <xsl:choose> 4898 5006 4899 5007 <xsl:when test="$gnm=$GNM"> … … 4909 5017 </xsl:when> 4910 5018 4911 <xsl:otherwise> 5019 <xsl:otherwise>--> 4912 5020 <xsl:apply-templates select="$names"/> 4913 </xsl:otherwise>4914 4915 </xsl:choose >5021 <!-- </xsl:otherwise> 5022 5023 </xsl:choose--> 4916 5024 </xsl:if> 4917 5025 … … 4930 5038 <xsl:template match="name" mode="none"> 4931 5039 <xsl:value-of select="surname"/> 4932 <xsl:text> ,</xsl:text>5040 <xsl:text> </xsl:text> 4933 5041 <xsl:value-of select="given-names"/> 4934 5042 <xsl:text>. </xsl:text> … … 4937 5045 <xsl:template match="article-title" mode="none"> 4938 5046 <xsl:apply-templates/> 4939 <xsl:if test="../trans-title">4940 <xsl:text>. </xsl:text>4941 </xsl:if>4942 5047 </xsl:template> 4943 5048 4944 5049 <xsl:template match="volume" mode="none"> 4945 <xsl:apply-templates/> 5050 <xsl:text> </xsl:text> 5051 <xsl:apply-templates/> 5052 <xsl:text>: </xsl:text> 4946 5053 </xsl:template> 4947 5054 … … 4969 5076 <xsl:template match="publisher-name" mode="none"> 4970 5077 <xsl:apply-templates/> 4971 <xsl:text> ;</xsl:text>5078 <xsl:text>. </xsl:text> 4972 5079 </xsl:template> 4973 5080 4974 5081 <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)"/> 4976 5083 <xsl:variable name="GNMS"> 4977 5084 <xsl:call-template name="capitalize"> … … 4985 5092 </xsl:when> 4986 5093 4987 <xsl:otherwise> 5094 <xsl:otherwise>--> 4988 5095 <xsl:apply-templates select="node()" mode="book"/> 4989 </xsl:otherwise> 4990 </xsl:choose> 5096 5097 <!-- </xsl:otherwise> 5098 </xsl:choose>--> 4991 5099 </xsl:template> 4992 5100 … … 5010 5118 5011 5119 <xsl:template match="source" mode="none"> 5120 <xsl:text> </xsl:text> 5012 5121 <xsl:apply-templates/> 5013 5122 … … 5086 5195 5087 5196 <xsl:otherwise> 5197 <xsl:text> (</xsl:text> 5088 5198 <xsl:apply-templates mode="none"/> 5089 <xsl:if test="../volume or ../issue"> 5199 <xsl:text>) </xsl:text> 5200 <!-- <xsl:if test="../volume or ../issue"> 5090 5201 <xsl:text>;</xsl:text> 5091 </xsl:if> 5202 </xsl:if>--> 5092 5203 </xsl:otherwise> 5093 5204 </xsl:choose> … … 5139 5250 5140 5251 <xsl:otherwise> 5141 <xsl:text>:</xsl:text> 5142 <xsl:apply-templates/> 5252 <xsl:apply-templates/> 5143 5253 5144 5254 <xsl:choose> 5145 5255 <xsl:when test="$hermano='lpage'"> 5146 5256 <xsl:text>–</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>--> 5149 5259 </xsl:when> 5150 5260 … … 5164 5274 5165 5275 <xsl:template match="lpage" mode="none"> 5166 <xsl:apply-templates/> 5276 <xsl:apply-templates/><xsl:text>.</xsl:text> 5167 5277 </xsl:template> 5168 5278 -
head/plosone/webapp/src/main/webapp/WEB-INF/classes/xwork.xml
r1544 r1546 263 263 </action> 264 264 265 <action name="findArticle"> 266 <result name="success" type="plosOneFreemarker"> 267 <param name="templateFile">/article/findArticle.ftl</param> 268 </result> 269 </action> 270 265 271 266 272 <action name="emailThisArticleCreate" class="org.plos.article.action.EmailArticleAction" method="executeRender">
