Difference between revisions of "PubMan Func Spec Export/eDoc Citation Style"

From MPDLMediaWiki
Jump to navigation Jump to search
Line 37: Line 37:
** if genre=Conference-Report: <code>" (Conference-Report of the <nameofevent>[if defined <placeofevent> then " in <placeofevent>"])"</code>
** if genre=Conference-Report: <code>" (Conference-Report of the <nameofevent>[if defined <placeofevent> then " in <placeofevent>"])"</code>
** if genre="Lecture / Courseware" or "Other": <code>" (<nameofevent>[if defined <placeofevent> then " in <placeofevent>"])"</code>
** if genre="Lecture / Courseware" or "Other": <code>" (<nameofevent>[if defined <placeofevent> then " in <placeofevent>"])"</code>
** if genre="Poster" or "Talk at Event": <code>" (<nameofevent>[if defined <placeofevent> then " in <placeofevent>"])"</code>
** if genre="Poster" or "Talk at Event": <code>" (<nameofevent> [[#datesofevent]][, <placeofevent>])''[ Last modified: <datemodified>]''"</code>
** if genre="Proceedings": <code>" (<nameofevent> [[#datesofevent]][, <placeofevent>])"</code>
** End with "."
<xsl:template name="meeting">
<xsl:template name="meeting">
     <xsl:variable name="ne">
     <xsl:variable name="ne">
Line 47: Line 49:
       <xsl:text>(</xsl:text>
       <xsl:text>(</xsl:text>
     <xsl:choose>
     <xsl:choose>
            <xsl:when test="$genre='Poster'">
 
    <xsl:value-of select="$ne"/>
  <xsl:call-template name="datesofevent"/>
  <xsl:call-template name="cplaceofevent"/>
            <xsl:text>)</xsl:text>
  <xsl:call-template name="datemodified"/>
            </xsl:when>
             <xsl:when test="$genre='Proceedings'">
             <xsl:when test="$genre='Proceedings'">
    <xsl:value-of select="$ne"/>
    <xsl:value-of select="$ne"/>
Line 60: Line 56:
             <xsl:text>)</xsl:text>
             <xsl:text>)</xsl:text>
             </xsl:when>
             </xsl:when>
             <xsl:when test="$genre='Talk at Event'">
              
    <xsl:value-of select="$ne"/>
  <xsl:call-template name="datesofevent"/>
  <xsl:call-template name="cplaceofevent"/>
            <xsl:text>)</xsl:text>
  <xsl:call-template name="datemodified"/>
            </xsl:when>
     </xsl:choose>
     </xsl:choose>
     <xsl:text>.</xsl:text>
     <xsl:text>.</xsl:text>

Revision as of 12:00, 27 October 2010

The eDoc Citation Style[edit]

Overall Rules[edit]

Creators[edit]

Authors[edit]

  • are italic
  • 1 position (if available): "<corporatebody> (Ed.) "
  • if creatorType is group, output only <creatornfamily>
  • if creatorType is person output <creatornfamily>, <creatorini> for first author and <creatorini>, <creatornfamily> for further authors
  • separate all authors with ", "
  • separate last author with " and "
  • there is special case: separate last author with ", and " (tbd!!!)
  • end authors with ": "

Editors[edit]

  • are italic
  • 1 position (if available): "<corporatebody> (Ed.) "
  • if creatorType is group, take only <creatornfamily>
  • if creatorType is person
    • for first and not last authors: <creatorini>, <creatornfamily>
    • for last and not first authors:
      • if <creatornfamily> contains "et al.": " <creatornfamily>"
      • if <creatornfamily> not contains "et al.": ", <creatorini> <creatornfamily>"
  • separate all authors with ", "
  • end authors with
    • if Editors count=1: "(Ed.): "
    • if Editors count>1: "(Eds.): "

mixed Authors and Editors[edit]

  • are italic
  • 1 position (if available): "<corporatebody> (Ed.) "
  • if at least on Author are available: #Authors
  • if at least on Editors are available: #Editors

meeting[edit]

  • if defined <nameofevent>
    • if genre=Conference-Report: " (Conference-Report of the <nameofevent>[if defined <placeofevent> then " in <placeofevent>"])"
    • if genre="Lecture / Courseware" or "Other": " (<nameofevent>[if defined <placeofevent> then " in <placeofevent>"])"
    • if genre="Poster" or "Talk at Event": " (<nameofevent> #datesofevent[, <placeofevent>])[ Last modified: <datemodified>]"
    • if genre="Proceedings": " (<nameofevent> #datesofevent[, <placeofevent>])"
    • End with "."

<xsl:template name="meeting">

   <xsl:variable name="ne">
 		<xsl:call-template name="nameofevent"/>
 	</xsl:variable>
 	<xsl:if test="$ne!=">
   	<xsl:text> </xsl:text>
   	<xsl:variable name="genre" select="metadata/basic/genre/text()"/>
      	<xsl:text>(</xsl:text>
   	<xsl:choose>
           <xsl:when test="$genre='Proceedings'">

<xsl:value-of select="$ne"/> <xsl:call-template name="datesofevent"/> <xsl:call-template name="cplaceofevent"/>

           	<xsl:text>)</xsl:text>
           </xsl:when>
           
   	</xsl:choose>
   	<xsl:text>.</xsl:text>

</xsl:if> </xsl:template>

datesofevent[edit]

if definded <dateofevent> or <enddateofevent>: " [<dateofevent>][if definded <dateofevent> and <enddateofevent> then " to "][<enddateofevent>]"

vol[edit]

  • bold

" <volume>"

issuenr[edit]

", <issuenr>"

page[edit]

"[<spage>-]<epage>" or "<spage>[-<epage>]"

artnum[edit]

", Seq. No.: <artnum>"

pubstatus[edit]

  • only if <pubstatus>!=published
    • if <pubstatus>!=unpublished: ", <pubstatus>"
    • if <pubstatus>=unpublished: "<pubstatus>"

date[edit]

  • if defined <datepublished>: " ( <substring(datepublished,1,4)>)"
  • if defined <dateaccepted>: " ( <substring(dateaccepted,1,4)>)"
  • if defined <datemodified>: " ( <datemodified>)"

editdesc[edit]

" editiondescription"

tosvol[edit]

if <titleofseries> is defined: "<titleofseries> #vol."

publisher[edit]

if <publisher> is defined: " <publisher>[, <publisheradd>]"

phydesc[edit]

if <phydesc> is defined: " <phydesc>[if <phydesc> not contains "p." then " p"]"

titleofproceedings[edit]

if <titleofproceedings> is defined: "In: <titleofproceedings>"

titleofjournal[edit]

if <journaltitle> is defined: "In: <journaltitle>"

proceedingscfn[edit]

  • if <proceedingscontributorfn> is defined

", (Eds.) <proceedingscontributorfn>[if <proceedingscontributorfn> not ends with "." then "."]"

Article[edit]

#Authors <title> #titleofjournal #vol #issuenr [, #page] #artnum #pubstatus #date

Book[edit]

#mixed_Authors_and_Editors <title> #editdesc #tosvol #publisher #pubstatus #date #phydesc

Conference-Paper[edit]

  • if <titleofproceedings> is defined

#Authors <title> #titleofproceedings #editdesc #proceedingscfn #tosvol #publisher #pubstatus #artnum #date #page

  • if <titleofproceedings> is not defined

#Authors <title> #titleofjournal #vol #issuenr #pubstatus #artnum #date #page

Conference-Report[edit]

#mixed_Authors_and_Editors <title> #meeting

Thesis[edit]

PhD-Thesis[edit]

Habilitation[edit]

InBook[edit]

Interactive Resource[edit]

Issue[edit]

Journal[edit]

Lecture / Courseware[edit]

Other[edit]

Paper[edit]

Proceedings[edit]

Report[edit]

Series[edit]

Software[edit]