~paulbrianstewart/ubuntu/oneiric/tellico/852247-Formatting-Fix

« back to all changes in this revision

Viewing changes to xslt/crossref2tellico.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Regis Boudin
  • Date: 2008-05-23 21:28:59 UTC
  • mfrom: (0.1.14 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20080523212859-n0gl4ap37xb0uj1a
Tags: 1.3.2-1
* New upstream release.
* Recommend khelpcenter for acces to the help (Closes: #478975).

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
  <collection title="CrossRef Import" type="5">
32
32
   <fields>
33
33
    <field name="_default"/>
34
 
 
 
34
    
35
35
    <xsl:if test=".//cr:issn">
36
36
     <field flags="0" title="ISSN" category="Publishing" format="4" type="1" name="issn" i18n="true"/>
37
 
   </xsl:if>
38
 
 
 
37
    </xsl:if>
 
38
    
39
39
   </fields>
40
40
   <xsl:apply-templates select="cr:crossref_result/cr:query_result/cr:body/cr:query"/>
41
41
  </collection>
44
44
 
45
45
<xsl:template match="cr:query">
46
46
 <entry>
47
 
 
 
47
  
48
48
  <title>
49
49
   <xsl:value-of select="cr:article_title"/>
50
50
  </title>
51
 
 
 
51
  
52
52
  <booktitle>
53
53
   <xsl:value-of select="cr:volume_title"/>
54
54
  </booktitle>
55
 
 
 
55
  
56
56
  <entry-type>
57
57
   <xsl:choose>
58
58
    <xsl:when test="cr:doi/@type = 'conference_paper'">
66
66
    </xsl:otherwise>
67
67
   </xsl:choose>
68
68
  </entry-type>
69
 
 
 
69
  
70
70
  <year>
71
71
   <xsl:value-of select="cr:year"/>
72
72
  </year>
73
 
 
 
73
  
74
74
  <doi>
75
75
   <xsl:value-of select="cr:doi"/>
76
76
  </doi>
77
 
 
 
77
  
78
78
  <pages>
79
79
   <xsl:value-of select="cr:first_page"/>
80
80
  </pages>
81
 
 
 
81
  
82
82
  <journal>
83
83
   <xsl:value-of select="cr:journal_title"/>
84
84
  </journal>
85
 
 
 
85
  
86
86
  <volume>
87
87
   <xsl:value-of select="cr:volume"/>
88
88
  </volume>
89
 
 
 
89
  
90
90
  <isbn>
91
91
   <xsl:value-of select="cr:isbn"/>
92
92
  </isbn>
93
 
 
 
93
  
94
94
  <issn>
95
95
   <xsl:choose>
96
96
    <xsl:when test="cr:issn[@type='print']">
101
101
    </xsl:otherwise>
102
102
   </xsl:choose>
103
103
  </issn>
104
 
 
 
104
  
105
105
  <authors>
106
106
   <xsl:for-each select="cr:author">
107
107
    <author>
109
109
    </author>
110
110
   </xsl:for-each>
111
111
  </authors>
112
 
 
 
112
  
113
113
  <series>
114
114
   <xsl:value-of select="cr:series_title"/>
115
115
  </series>
116
 
 
117
 
</entry>
118
 
 
 
116
  
 
117
 </entry>
 
118
 
119
119
</xsl:template>
120
120
 
121
121
</xsl:stylesheet>