<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:import href="section.xsl"/>
  <xsl:output method="html" indent="yes" omit-xml-declaration="yes"/>
  <xsl:template match="/">
    <xsl:apply-templates select="ShowPage" mode="block">
      <xsl:with-param name="hide">append</xsl:with-param>
      <xsl:with-param name="title">
        <xsl:if test="count(/ShowPage/xTitle)">title</xsl:if>
      </xsl:with-param>
    </xsl:apply-templates>
  </xsl:template>
  <xsl:template match="@super" mode="new">
    <xsl:choose>
      <xsl:when test="count(../ListOption/@new)">
        <xsl:value-of select="../ListOption/@new"/>
      </xsl:when>
      <xsl:when test="../xListNode='on'">NextBib.xsl</xsl:when>
      <xsl:otherwise>Books.xsl</xsl:otherwise>
    </xsl:choose>
  </xsl:template>
  <xsl:template match="Subobj" mode="readonlyp">
    <xsl:param name="showy" select="''"/>
    <xsl:variable name="link" select="@link"/>
    <xsl:variable name="id" select="@id"/>
    <xsl:choose>
      <xsl:when test="string-length(xListNode) or string-length(Body/xListNode)"/>
      <xsl:when test="@link = //Subobj/@id"/>
      <xsl:when test="count(//Subobj[@id > $id and @link = $link])"/>
      <xsl:when test="ancestor::Subobj/preceding::Subobj/descendant-or-self::Subobj/@id = $id"/>
      <xsl:otherwise>
        <p>
          <a href="?f={@id}" target="_blank" style="text-decoration: none; font-weight: bold;">
            <xsl:choose>
              <xsl:when test="$showy = 'true'">
                <xsl:value-of select="substring-before(sTitle,'[')"/>
                <xsl:value-of select=".//xYear"/>
                <xsl:apply-templates select="." mode="abc"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="sTitle"/>
              </xsl:otherwise>
            </xsl:choose>
          </a>
          <xsl:text>&#160;</xsl:text>
          <xsl:apply-templates select="." mode="bibliography"/>
        </p>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
  <xsl:template match="Subobj" mode="readonlytr">
    <tr>
      <td nowrap="nowrap">
        <xsl:value-of select="sTitle"/>
      </td>
      <td>
        <xsl:apply-templates select="." mode="readonly"/>
      </td>
    </tr>
  </xsl:template>
  <xsl:template match="Subobj" mode="readonlyli">
    <xsl:choose>
      <xsl:when test="string-length(xListNode) or string-length(Body/xListNode)"/>
      <xsl:otherwise>
        <li>
          <xsl:apply-templates select="." mode="bibliography"/>
        </li>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
  <xsl:template name="search-href">
    <xsl:value-of select="/ShowPage/Script"/>
    <xsl:text>?f=search&amp;o=NextBib.xsl&amp;eWhere=&amp;eWord=wordonly&amp;ex=</xsl:text>
    <xsl:value-of select="/ShowPage/@id"/>
    <!--
        <xsl:text>&amp;v=SearchBib.xsl</xsl:text>
        -->
  </xsl:template>
  <xsl:template match="ShowPage" mode="year">
    <xsl:param name="today" select="substring-before(@now,' ')"/>
    <xsl:param name="pattern" select="translate($today,'/-','..')"/>
    <xsl:choose>
      <xsl:when test="substring($pattern,3,1)='.'">
        <xsl:value-of select="substring($today,7,4)"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="substring($today,1,4)"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
  <xsl:template match="ShowPage" mode="Untergeordnet">
    <xsl:param name="cando">
      <xsl:choose>
        <xsl:when test="contains(Edit/@link,'m=edit')">2</xsl:when>
        <xsl:when test="contains(Edit/@link,'m=append')">1</xsl:when>
        <xsl:otherwise>0</xsl:otherwise>
      </xsl:choose>
    </xsl:param>
    <style type="text/css">
      #detail td {border-right: white 1px solid;border-bottom: white 1px solid;ont-size: 12}
      input,select {font-size: 12px;font-family: Helvetica Neue,Helvetica,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif;}
      .i3 {width: 556px;}
      .i1 {width: 250px;}
      .i2 {width: 176px;}
      td {font-size: 12; text-align: left}
      #editor td {font-size: 12; text-align: right}
      .submit {font-size: 11px; width: 100%; padding-left: 0px; padding-right: 0px;}
      #detail tr.header td {font-weight: bold}
      img {vertical-align: bottom}
      table.biblio {border: 1px solid #888888; background-color0: #fcfcfc;}
      table.biblio td {vertical-align: middle}
      table#detail td {border-bottom: 1px solid #cccccc; vertical-align: top;}
      table.biblio a, table#detail a {text-decoration: none}
      span.xURL {word-break: break-all;}
    </style>
    <script language="JavaScript" type="text/javascript">
      function yellow(ctrl){
      ctrl.style.background = '<xsl:value-of select="$cYellow"/>';
      }
      function setNow(ctrl){
      ctrl.value = '<xsl:value-of select="substring-before(/ShowPage/@now,' ')"/>';
      yellow(ctrl);
      }
      function setYear(ctrl){
      ctrl.value = '<xsl:apply-templates select="/ShowPage" mode="year"/>';
      yellow(ctrl);
      }
    </script>
    <xsl:call-template name="IfTooMany"/>
    <xsl:choose>
      <xsl:when test="count(xAID)=0 and count(xTitle)=0">
        <!-- ##############  Installation ############# -->
        <form action="{Script}?f={@id}&amp;m=update" method="post">
          <input type="hidden" name="sTemplate" value="NextBib.xsl"/>
          <input type="hidden" name="bSave" value="bSave"/>
          <input type="hidden" name="mBody">
            <xsl:attribute name="value">
              <![CDATA[<Xtext/><xListNode>on</xListNode><xAID>]]><xsl:value-of select="@id"/><![CDATA[</xAID>]]>
            </xsl:attribute>
          </input>
          <xsl:value-of select="$lsTitle"/>
          <xsl:text>: </xsl:text>
          <input type="text" style="width:150px;" name="sTitle" value="{sTitle}"/>
          <input type="submit" style="width: 200px;" value="{$lsBibCreate}"/>
        </form>
        <form action="{Script}?f={@id}&amp;m=update" method="post">
          <input type="hidden" name="sTemplate" value="NextBib.xsl"/>
          <input type="hidden" name="bSave" value="bSave"/>
          <input type="hidden" name="mBody">
            <xsl:attribute name="value">
              <![CDATA[<Xtext/><xAID>]]><xsl:value-of select="@id"/><![CDATA[</xAID>]]>
            </xsl:attribute>
          </input>
          <input type="hidden" name="sTitle" value="{sTitle}"/>
          <input type="submit" style="width: 200px;" value="{$lsBibCreateRecord}"/>
        </form>
      </xsl:when>
      <xsl:when test="(count(Modus)=0 or Modus!='all') and ((count(xListNode)=0 or xListNode ='') or (count(sTitle)=0 or sTitle = '')) ">
        <!-- single -->
        <!-- ################## Editor ################### -->
        <form method="post" action="{Script}?f={@id}&amp;m=update" id="editor" name="bib"
              onsubmit="puttogather(sTitle);" target="lock">
          <input type="hidden" name="bSave" value="bSave"/>
          <input type="hidden" name="sTemplate" value="NextBib.xsl"/>
          <input type="hidden" name="sName" value="{@name}"/>
          <input type="hidden" name="xBodyFields" value="xAID,xListNode,xTitle,xAuthor,xEditor,xAddress,xYear,xSeries,xPublication,xPages,xPublisher,xEdition,xVolume,xNote,xISBN,xDate,xURL,xType"/>
          <input type="hidden" name="xAID" value="{xAID}"/>
          <xsl:choose>
            <xsl:when test="xListNode='on'">
              <input type="hidden" name="xListNode" value="on"/>
              <table border="0" cellpadding="1" cellspacing="0" class="biblio">
                <tbody>
                  <tr>
                    <td width="120">
                      <xsl:value-of select="$lsTitle"/>
                    </td>
                    <td width="250">
                      <input type="text" name="sTitle" value="{sTitle}" class="i1"/>
                      <script language="JavaScript" type="text/javascript">
                        // jetzt
                        function puttogather(ctrl){
                        }
                      </script>
                    </td>
                    <td colspan="2">
                      <input type="submit" value="Speichern" class="submit"/>
                    </td>
                  </tr>
                </tbody>
              </table>
            </xsl:when>
            <xsl:otherwise>
              <input type="hidden" name="sTitle" value="{sTitle}"/>
              <table border="0" cellpadding="1" cellspacing="1" class="biblio">
                <tbody>
                  <tr>
                    <td width="120">
                      <xsl:value-of select="$ls1Author"/>
                    </td>
                    <td width="250">
                      <input class="i1" type="text" name="yAuth1" onchange="yellow(yAuth1);">
                        <xsl:choose>
                          <xsl:when test="substring-before(sTitle,' [') != ''">
                            <xsl:attribute name="value">
                              <xsl:value-of select="substring-before(sTitle,' [')"/>
                            </xsl:attribute>
                          </xsl:when>
                          <xsl:when test="xAuthor != ''">
                            <xsl:attribute name="value">
                              <xsl:apply-templates select="xAuthor"/>
                            </xsl:attribute>
                            <xsl:attribute name="style">
                              <xsl:text>background-color: </xsl:text>
                              <xsl:value-of select="$cYellow"/>
                              <xsl:text>;</xsl:text>
                            </xsl:attribute>
                          </xsl:when>
                          <xsl:when test="xPublisher != ''">
                            <xsl:attribute name="value">
                              <xsl:value-of select="xPublisher"/>
                            </xsl:attribute>
                            <xsl:attribute name="style">
                              <xsl:text>background-color: </xsl:text>
                              <xsl:value-of select="$cYellow"/>
                              <xsl:text>;</xsl:text>
                            </xsl:attribute>
                          </xsl:when>
                          <xsl:when test="xPublication != ''">
                            <xsl:attribute name="value">
                              <xsl:value-of select="xPublication"/>
                            </xsl:attribute>
                            <xsl:attribute name="style">
                              <xsl:text>background-color: </xsl:text>
                              <xsl:value-of select="$cYellow"/>
                              <xsl:text>;</xsl:text>
                            </xsl:attribute>
                          </xsl:when>
                          <xsl:otherwise>
                            <xsl:attribute name="style">
                              <xsl:text>background-color: </xsl:text>
                              <xsl:value-of select="$cGrey"/>
                              <xsl:text>;</xsl:text>
                            </xsl:attribute>
                          </xsl:otherwise>
                        </xsl:choose>
                      </input>
                    </td>
                    <td>
                      <a href="javascript:setYear(document.bib.xYear);">
                        <xsl:value-of select="$lsYear"/>
                      </a>
                    </td>
                    <td>
                      <input name="xYear" class="i2" onchange="yellow(xYear);" value="{xYear}"/>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <xsl:attribute name="title">
                        <xsl:apply-templates select="/ShowPage" mode="biblio_t"/>
                      </xsl:attribute>
                      <xsl:value-of select="$lsShortTitle"/>
                    </td>
                    <td>
                      <input class="i1" name="yShort" onchange="yellow(yShort);">
                        <xsl:choose>
                          <xsl:when test="contains(sTitle,' [')">
                            <xsl:attribute name="value">
                              <xsl:value-of select="substring-before(substring-after(sTitle,'['),']')"/>
                            </xsl:attribute>
                          </xsl:when>
                          <xsl:when test="xTitle != ''">
                            <xsl:attribute name="value">
                              <xsl:value-of select="normalize-space(xTitle)"/>
                            </xsl:attribute>
                            <xsl:attribute name="style">
                              <xsl:text>background-color: </xsl:text>
                              <xsl:value-of select="$cYellow"/>
                              <xsl:text>;</xsl:text>
                            </xsl:attribute>
                          </xsl:when>
                          <xsl:otherwise>
                            <xsl:attribute name="style">
                              <xsl:text>background-color: </xsl:text>
                              <xsl:value-of select="$cGrey"/>
                              <xsl:text>;</xsl:text>
                            </xsl:attribute>
                          </xsl:otherwise>
                        </xsl:choose>
                      </input>

                    </td>
                    <td nowrap="nowrap" width="120">
                      <xsl:value-of select="$lsBibType"/>
                    </td>
                    <td width="180">
                      <script language="JavaScript" type="text/javascript">
                        //         Sehr komisch!
                        function puttogather(ctrl){
                        ctrl.value = ctrl.form.yAuth1.value;
                        if(ctrl.form.yShort.value!='')ctrl.value += ' [' + ctrl.form.yShort.value + ']';
                        }
                        function col(ctrl){
                        if(ctrl.value=='')ctrl.style.background='<xsl:value-of select="$cGrey"/>';
                        }
                        function color(ctrl){
                        yellow(ctrl);
                        var w = '#ffffff';
                        ctrl.form.xAddress.style.background = w;
                        ctrl.form.xDate.style.background = w;
                        ctrl.form.xEdition.style.background = w;
                        ctrl.form.xISBN.style.background = w;
                        ctrl.form.xPages.style.background = w;
                        ctrl.form.xPublication.style.background = w;
                        ctrl.form.xPublisher.style.background = w;
                        ctrl.form.xSeries.style.background = w;
                        ctrl.form.xURL.style.background = w;
                        switch(ctrl.options[ctrl.selectedIndex].value){
                        case "Book":
                        col(ctrl.form.xEditor);
                        col(ctrl.form.xVolume);
                        col(ctrl.form.xPublication);
                        col(ctrl.form.xDate);
                        col(ctrl.form.xPages);
                        col(ctrl.form.xSeries);
                        col(ctrl.form.xURL);
                        col(ctrl.form.xNote);
                        col(ctrl.form.xNote);
                        break;
                        case "Journal":
                        case "In ...":
                        col(ctrl.form.xDate);
                        col(ctrl.form.xEditor);
                        col(ctrl.form.xVolume);
                        col(ctrl.form.xAddress);
                        col(ctrl.form.xSeries);
                        col(ctrl.form.xURL);
                        col(ctrl.form.xNote);
                        col(ctrl.form.xEdition);
                        break;
                        case "Web":
                        col(ctrl.form.xDate);
                        col(ctrl.form.xVolume);
                        col(ctrl.form.xEditor);
                        col(ctrl.form.xPages);
                        col(ctrl.form.xAddress);
                        col(ctrl.form.xPublisher);
                        col(ctrl.form.xSeries);
                        col(ctrl.form.xISBN);
                        col(ctrl.form.xNote);
                        }
                        }
                        function changeCase(ctrl){
                        var s = ctrl.value;
                        if(s.toUpperCase() == s)s = s.toLowerCase();
                        else if(s.toLowerCase()==s){
                        var a = s.split(' ');
                        s = "";
                        for(var i=0; i &lt; a.length; i++){
                        if(s!="")s += " ";
                        s +=  a[i].substr(0,1).toUpperCase() + a[i].substr(1);
                        }
                        }
                        else s = s.toUpperCase();

                        ctrl.value = s;
                        }
                      </script>
                      <select name="xType" class="i2" onchange="color(xType);">
                        <xsl:choose>
                          <xsl:when test="Agent[.='MSIE' and @version &lt; 9]" />
                          <xsl:when test="Agent[.='MSIE' and @version = 9]">
                            <xsl:attribute name="style">width: 182px;</xsl:attribute>
                          </xsl:when>
                          <xsl:otherwise>
                            <xsl:attribute name="style">width: 180px;</xsl:attribute>
                          </xsl:otherwise>
                        </xsl:choose>
                        <option value="{xType}">
                          <xsl:choose>
                            <xsl:when test="xType='Book'">
                              <xsl:value-of select="$lsBibBook"/>
                            </xsl:when>
                            <xsl:when test="xType='In ...'">
                              <xsl:value-of select="$lsBibIn"/>
                            </xsl:when>
                            <xsl:when test="xType='Journal'">
                              <xsl:value-of select="$lsBibJ"/>
                            </xsl:when>
                            <xsl:when test="xType='Web'">
                              <xsl:value-of select="$lsBibWeb"/>
                            </xsl:when>
                            <xsl:otherwise>
                              <xsl:value-of select="xType"/>
                            </xsl:otherwise>
                          </xsl:choose>
                        </option>
                        <xsl:if test="xType!=''">
                          <option/>
                        </xsl:if>
                        <option value="Book">
                          <xsl:value-of select="$lsBibBook"/>
                        </option>
                        <option value="Journal">
                          <xsl:value-of select="$lsBibJ"/>
                        </option>
                        <option value="In ...">
                          <xsl:value-of select="$lsBibIn"/>
                        </option>
                        <option value="Web">
                          <xsl:value-of select="$lsBibWeb"/>
                        </option>
                      </select>
                    </td>
                    <td width="1"/>
                  </tr>
                  <xsl:apply-templates select="." mode="tr5"/>
                  <tr>
                    <td>
                      <xsl:value-of select="$lsSeries"/>
                    </td>
                    <td>
                      <input name="xSeries" class="i1" onchange="yellow(xSeries);" value="{normalize-space(xSeries)}"/>
                    </td>
                    <td>
                      <xsl:value-of select="$lsPage"/>
                    </td>
                    <td>
                      <input name="xPages" class="i2" onchange="yellow(xPages);" value="{normalize-space(xPages)}"/>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <xsl:value-of select="$lsPublisher"/>
                    </td>
                    <td>
                      <input name="xPublisher" class="i1" onchange="yellow(xPublisher);" value="{normalize-space(xPublisher)}"/>
                    </td>
                    <td>
                      <xsl:value-of select="$lsPublisherLocation"/>
                    </td>
                    <td>
                      <input name="xAddress" class="i2" onchange="yellow(xAddress);" value="{normalize-space(xAddress)}"/>
                    </td>
                  </tr>
                  <tr>
                    <td title="{$lsEditionHint}">
                      <a href="javascript:setNow(document.bib.xEdition);">
                        <xsl:value-of select="$lsEdition"/>
                      </a>
                    </td>
                    <td>
                      <input name="xEdition" class="i1" onchange="yellow(xEdition);" value="{normalize-space(xEdition)}" title="Bei Website: Datum des Aufrufs"/>
                    </td>
                    <td>
                      <xsl:text>ISBN/ISSN </xsl:text>
                      <xsl:if test="xISBN != ''">
                        <a href="http://www.google.com/search?q={xISBN}" target="_blank">
                          <img src="{/ShowPage/ImgDir}connection.gif" alt="{$lsConnectionGif}" border="0"/>
                        </a>
                      </xsl:if>
                    </td>
                    <td>
                      <input name="xISBN" class="i2" onchange="yellow(xISBN);" value="{normalize-space(xISBN)}"/>
                    </td>
                  </tr>
                  <xsl:apply-templates select="." mode="tr2"/>
                  <xsl:if test="$cando &gt; 1">
                    <tr>
                      <td colspan="3"/>
                      <td>
                        <input type="submit" value="{$lsSave}" class="submit"/>
                      </td>
                    </tr>
                  </xsl:if>

                </tbody>
              </table>
            </xsl:otherwise>
          </xsl:choose>
          <iframe name="lock" frameborder="0" width="0" height="0"></iframe>
        </form>
        <br/>
      </xsl:when>
    </xsl:choose>
    <xsl:if test="sTitle != ''">
      <xsl:if test="Agent[.='MSIE' and @version &lt; 9]">
        <br />
      </xsl:if>
      <table border="0" cellpadding="1" class="biblio">
        <!-- ########################## further functions ##################### -->
        <tbody>
          <tr>
            <xsl:if test="xListNode='on' and $cando &gt; 0">
              <td>
                <form method="post" action="{Script}?f={@id}&amp;m=create">
                  <input type="hidden" name="xBodyFields" value="xListNode,xAID"/>
                  <input type="hidden" name="xAID" value="{xAID}"/>
                  <input type="hidden" name="xListNode" value="on"/>
                  <input type="submit" value="{$lsNewGroup}" class="submit"/>
                </form>
              </td>
              <td>
                <form method="post" action="{Script}?f={@id}&amp;m=create">
                  <input type="hidden" name="xBodyFields" value="xAddress,xTel,xMail,xTel1,xTel2,xURL,xBranche,xAID"/>
                  <input type="hidden" name="xAID" value="{xAID}"/>
                  <input type="submit" value="{$lsNewEntry}" class="submit"/>
                </form>
              </td>
            </xsl:if>
            <xsl:if test="$cando &gt; 0">
              <td>
                <form method="get" action="{Script}">
                  <input type="submit" value="{$lsNewNote}" class="submit"/>
                  <input type="hidden" name="f" value="{@id}"/>
                  <input type="hidden" name="m" value="create"/>
                  <input type="hidden" name="v" value="Section.xsl"/>
                </form>
              </td>
              <xsl:if test="(count(xListNode)=0 or xListNode='') and $cando &gt; 0">
                <td>
                  <xsl:variable name="apostrophe">
                    <xsl:text>'</xsl:text>
                  </xsl:variable>
                  <xsl:variable name="title">
                    <xsl:value-of select="translate(xTitle,normalize-space($apostrophe),'´')"/>
                  </xsl:variable>
                  <form method="get" action="javascript:CreatePageTitle('Blank.xsl',euf3(unescape('{$title}')));">
                    <input type="submit" value="{$lsNewPage}" class="submit"/>
                  </form>
                </td>
                <td>
                  <form method="post" action="{Script}?f={@id}&amp;m=create">
                    <input type="submit" value="{$lsNewFile}" class="submit"/>
                    <!--input type="hidden" name="f" value="{@id}"/-->
                    <!--input type="hidden" name="m" value="create"/-->
                    <input type="hidden" name="v" value="PrivateFile"/>
                    <input type="hidden" name="next" value="this"/>
                    <input type="hidden" name="keepopen" value="keepopen"/>
                    <input type="hidden" name="sURL" value="{xURL}"/>
                    <input type="hidden" name="sTitle" value="{xTitle}"/>
                  </form>
                </td>
              </xsl:if>
              <td>
                <form method="post" action="{Script}?f={@id}&amp;m=create">
                  <input type="submit" value="{$lsNewLink}" class="submit"/>
                  <input type="hidden" name="sTitle" value="{sTitle}"/>
                  <input type="hidden" name="sName" value="?f={@id}"/>
                  <input type="hidden" name="sTemplate" value="Xtern"/>
                  <input type="hidden" name="keepopen" value="keepopen"/>
                  <input type="hidden" name="sStatus" value="ActiveLink"/>
                  <input type="hidden" name="sNextEdit" value="this"/>
                </form>
              </td>
            </xsl:if>
            <xsl:if test="(count(xListNode)=0 or xListNode='') and $cando &gt; 0">
              <td>
                <form action="{Script}" methode="get">
                  <input type="hidden" name="f" value="{@id}"/>
                  <input type="hidden" name="m" value="xcopy"/>
                  <input type="hidden" name="ex" value="1"/>
                  <input type="submit" value="{$lsCopy}" class="submit"/>
                </form>
              </td>
            </xsl:if>
            <xsl:if test="$cando &gt; 0">
              <td>
                <form mathod="get" action="addtree.aspx">
                  <input type="hidden" name="f" value="{@id}"/>
                  <input type="submit" value="{$lsImport}" class="submit"/>
                </form>
              </td>

            </xsl:if>
            <xsl:if test="count(xListNode)=0 or xListNode=''">
              <td>
                <form action="{Script}" methode="get">
                  <input type="hidden" name="f" value="search"/>
                  <input type="hidden" name="sSearch" value="{@id}"/>
                  <input type="hidden" name="eWord" value="wordonly" />
                  <input type="submit" value="{$lsUsage}" class="submit"/>
                </form>
              </td>
            </xsl:if>
            <xsl:if test="xListNode='on'">
              <xsl:choose>
                <xsl:when test="Modus='all'">
                  <td>
                    <form method="get" action="{Script}">
                      <input type="submit" value="{$lsStandardMode}" class="submit"/>
                      <input type="hidden" name="f" value="{@id}"/>
                    </form>
                  </td>
                </xsl:when>
                <xsl:otherwise>
                  <td>
                    <form method="get" action="{Script}">
                      <select name="param" onchange="setShow(this);" style="width: 120px;">
                        <option value="">
                          <xsl:value-of select="$lsShowMode"/>
                        </option>
                        <option value="">
                          <xsl:value-of select="$lsShowNormal"/>
                        </option>
                        <option value="show">
                          <xsl:value-of select="$lsShowText"/>
                        </option>
                        <option value="showy">
                          <xsl:value-of select="$lsShowAuthorYear"/>
                        </option>
                        <option value="list">
                          <xsl:value-of select="$lsShowList"/>
                        </option>
                        <option value="number">
                          <xsl:value-of select="$lsShowNumber"/>
                        </option>
                        <xsl:if test="count(Subobj[sTemplate='NextBib.xsl' and string-length(xListNode|Body/xListNode) > 0])">
                          <option value="show">
                            <xsl:value-of select="$lsShowAll"/>
                            <xsl:value-of select="$lsShowText"/>
                          </option>
                          <option value="list">
                            <xsl:value-of select="$lsShowAll"/>
                            <xsl:value-of select="$lsShowList"/>
                          </option>
                          <option value="">
                            <xsl:value-of select="$lsShowAll"/>
                            <xsl:value-of select="$lsShowTable"/>
                          </option>
                        </xsl:if>
                        <option value="">
                          <xsl:value-of select="$lsShowAllAttachments"/>
                        </option>
                      </select>
                      <input type="hidden" name="f" value="{@id}"/>
                      <input type="hidden" name="m" value="all"/>
                      <input type="hidden" name="v" value="NextBib.xsl"/>
                      <input type="hidden" name="o" value=""/>
                    </form>
                  </td>
                </xsl:otherwise>
              </xsl:choose>
              <script language="JavaScript" type="text/javascript">
                function setShow(ctrl){
                if(ctrl.selectedIndex &lt; 6)ctrl.form.m.value='';
                else if(ctrl.selectedIndex != ctrl.length-1)ctrl.form.o.value='NextBib.xsl';
                if(ctrl.selectedIndex!=0)ctrl.form.submit();
                }
              </script>
            </xsl:if>
            <xsl:if test="count(xRootNode)=0">
              <td>
                <form method="get" action="{Script}" name="tosuper">
                  <xsl:choose>
                    <xsl:when test="count(ActiveLinked) &lt; 2">
                      <input type="submit" value="{$lsShowSuper}" class="submit"/>
                      <input type="hidden" name="f">
                        <xsl:attribute name="value">
                          <xsl:apply-templates select="/ShowPage" mode="up-href"/>
                        </xsl:attribute>
                      </input>
                    </xsl:when>
                    <xsl:otherwise>
                      <select style="width: 170px;" onchange="this.form.submit();" name="f">
                        <option value="{@super}">
                          <xsl:value-of select="$lsBackTo"/>
                          <xsl:text>...</xsl:text>
                        </option>
                        <xsl:for-each select="ActiveLinked">
                          <option value="{@id}">
                            <xsl:value-of select="."/>
                          </option>
                        </xsl:for-each>
                      </select>
                    </xsl:otherwise>
                  </xsl:choose>
                </form>
              </td>
            </xsl:if>
          </tr>
        </tbody>
      </table>
      <br/>

      <xsl:choose>
        <xsl:when test="param='list'">
          <ul>
            <xsl:apply-templates select="//Subobj[sTemplate='NextBib.xsl']" mode="readonlyli">
              <xsl:sort select="@sort" order="descending" data-type="number"/>
            </xsl:apply-templates>
          </ul>
        </xsl:when>
        <xsl:when test="param='number'">
          <ol>
            <xsl:apply-templates select="//Subobj[sTemplate='NextBib.xsl']" mode="readonlyli">
              <xsl:sort select="@sort" order="descending" data-type="number"/>
            </xsl:apply-templates>
          </ol>
        </xsl:when>
        <xsl:when test="param='show'">
          <xsl:apply-templates select="//Subobj[sTemplate='NextBib.xsl']" mode="readonlyp">
            <xsl:sort select="sTitle"/>
          </xsl:apply-templates>
        </xsl:when>
        <xsl:when test="param='showy'">
          <xsl:apply-templates select="//Subobj[sTemplate='NextBib.xsl']" mode="readonlyp">
            <xsl:with-param name="showy" select="'true'"/>
            <xsl:sort select="substring-before(sTitle,'[')"/>
            <xsl:sort select=".//xYear"/>
          </xsl:apply-templates>
        </xsl:when>
        <xsl:when test="param='bibtex'">
          <xsl:apply-templates select="//Subobj[sTemplate='NextBib.xsl']" mode="readonlytex">
            <xsl:sort select="sTitle"/>
          </xsl:apply-templates>
        </xsl:when>
        <xsl:otherwise>
          <xsl:if test="xListNode != ''">
            <form action="{/ShowPage/Script}?f=move&amp;ex={/ShowPage/@id}#focus" method="post" name="people">
              <table border="0" cellspacing="0" cellpadding="2" id="detail">
                <tr class="header">
                  <td>
                    <input type="image" src="{/ShowPage/ImgDir}move.gif" title="{$lsMove}" onclick="document.people.submit();"/>
                  </td>
                  <td style="text-align: center;">T</td>
                  <td>
                    <xsl:value-of select="$lsName"/>
                  </td>
                  <td>
                    <xsl:value-of select="$lsTitle"/>
                  </td>
                  <td>
                    <xsl:value-of select="$lsAuthors"/>
                  </td>
                  <td>
                    <xsl:value-of select="$lsYear"/>
                  </td>
                </tr>
                <xsl:choose>
                  <xsl:when test="count(/ShowPage/ListOption/@reverse) and /ShowPage/Modus != 'all'">
                    <xsl:apply-templates select="//Subobj[sTemplate='NextBib.xsl']" mode="Biblio">
                      <xsl:sort data-type="number" select="@sort" order="descending"/>
                      <!--
											<xsl:sort data-type="number" select="substring(@time,7,4)" order="descending"/>
											<xsl:sort data-type="number" select="substring(@time,4,2)" order="descending"/>
											<xsl:sort data-type="number" select="substring(@time,1,2)" order="descending"/>
											<xsl:sort data-type="number" select="substring(@time,12,2)" order="descending"/>
											<xsl:sort data-type="number" select="substring(@time,15,2)" order="descending"/>
										-->
                    </xsl:apply-templates>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:apply-templates select="//Subobj[sTemplate='NextBib.xsl']" mode="Biblio">
                      <xsl:sort data-type="text" select="xListNode" order="descending"/>
                      <xsl:sort select="sTitle" order="ascending"/>
                    </xsl:apply-templates>
                  </xsl:otherwise>
                </xsl:choose>
              </table>
            </form>
            <br/>
          </xsl:if>
          <xsl:if test="(count(xRootNode)=0 or //Modus!='all')and count(//Subobj[sTemplate!='NextBib.xsl'])">
            <table border="0" cellspacing="0" cellpadding="2" id="detail" width="100%">
              <xsl:if test="count(//Subobj[sTemplate!='NextBib.xsl' and count(Status/@time)])">
                <tr class="header">
                  <td>
                    <xsl:value-of select="$lsDateTime"/>
                  </td>
                  <xsl:if test="//Modus='all'">
                    <td>
                      <xsl:value-of select="$lsObject"/>
                    </td>
                  </xsl:if>
                  <td>
                    <xsl:value-of select="$lsNote"/>
                  </td>
                  <td>
                    <xsl:value-of select="$lsContent"/>
                  </td>
                </tr>
              </xsl:if>
              <xsl:apply-templates select="//Subobj[sTemplate!='NextBib.xsl' and count(Status/@time)]" mode="Notes">
                <xsl:sort data-type="number" select="substring(Status/@time,7,2)"/>
                <xsl:sort data-type="number" select="substring(Status/@time,4,2)"/>
                <xsl:sort data-type="number" select="substring(Status/@time,1,2)"/>
                <xsl:sort data-type="number" select="substring(Status/@time,10,2)"/>
                <xsl:sort data-type="number" select="substring(Status/@time,13,2)"/>
              </xsl:apply-templates>
              <xsl:if test="count(//Subobj[sTemplate!='NextBib.xsl' and count(Status/@time)=0])">
                <tr class="header">
                  <td>
                    <xsl:value-of select="$lsDateTime"/>
                  </td>
                  <xsl:if test="//Modus='all'">
                    <td>
                      <xsl:value-of select="$lsObject"/>
                    </td>
                  </xsl:if>
                  <td>
                    <xsl:value-of select="$lsNote"/>
                  </td>
                  <td>
                    <xsl:value-of select="$lsContent"/>
                  </td>
                </tr>
                <xsl:apply-templates select="//Subobj[sTemplate!='NextBib.xsl' and count(Status/@time)=0]" mode="Notes">
                  <!--
									<xsl:sort data-type="number" select="substring(@time,7,4)" order="descending"/>
									<xsl:sort data-type="number" select="substring(@time,4,2)" order="descending"/>
									<xsl:sort data-type="number" select="substring(@time,1,2)" order="descending"/>
									<xsl:sort data-type="number" select="substring(@time,12,2)" order="descending"/>
									<xsl:sort data-type="number" select="substring(@time,15,2)" order="descending"/>
								-->
                </xsl:apply-templates>
              </xsl:if>
            </table>
            <br/>
          </xsl:if>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:if>
    <xsl:call-template name="IfTooMany"/>
  </xsl:template>
  <xsl:template match="ShowPage" mode="tr5">
    <tr>
      <td>
        <a href="javascript:changeCase(bib.xAuthor);">
          <xsl:value-of select="$lsAuthors"/>
        </a>
      </td>
      <td colspan="3">
        <input class="i3" name="xAuthor" onchange="yellow(xAuthor);" value="{normalize-space(xAuthor)}"/>
      </td>
    </tr>
    <tr>
      <td>
        <a href="javascript:changeCase(bib.xTitle);">
          <xsl:value-of select="$lsTitle"/>
        </a>
      </td>
      <td colspan="3">
        <input class="i3" name="xTitle" onchange="yellow(xTitle);" value="{normalize-space(xTitle)}"/>
      </td>
    </tr>
    <tr>
      <td title="Bezeichnung des Sammelbandes, der Zeitschrift, der Konferenz etc.">
        <xsl:value-of select="$lsPublication"/>
      </td>
      <td colspan="3">
        <input class="i3" name="xPublication" onchange="yellow(xPublication);" value="{normalize-space(xPublication)}" title="Bezeichnung des Sammelbandes, der Zeitschrift, der Konferenz etc."/>
      </td>
    </tr>
    <tr>
      <td>
        <xsl:value-of select="$lsVolume"/>
      </td>
      <td>
        <input name="xVolume" class="i1" onchange="yellow(xVolume);" value="{normalize-space(xVolume)}"/>
      </td>
      <td>
        <xsl:value-of select="$lsDate"/>
      </td>
      <td>
        <input name="xDate" class="i2" onchange="yellow(xDate);" value="{normalize-space(xDate)}"/>
      </td>
    </tr>
    <tr>
      <td>
        <xsl:value-of select="$lsEditors"/>
      </td>
      <td colspan="3">
        <input name="xEditor" class="i3" onchange="yellow(xEditor);" value="{normalize-space(xEditor)}"/>
      </td>
    </tr>
  </xsl:template>
  <xsl:template match="ShowPage" mode="tr2">
    <tr>
      <td nowrap="nowrap">
        <xsl:text>URL/DOI </xsl:text>
        <xsl:if test="xURL != ''">
          <a href="{xURL}" target="_blank">
            <img src="{/ShowPage/ImgDir}connection.gif" alt="{$lsConnectionGif}" border="0"/>
          </a>
        </xsl:if>
      </td>
      <td colspan="3">
        <input type="text" class="i3" name="xURL" value="{normalize-space(xURL)}" onchange="yellow(xURL);"/>
      </td>
    </tr>
    <tr>
      <td>
        <xsl:value-of select="$lsRemark"/>
      </td>
      <td colspan="3">
        <input class="i3" name="xNote" onchange="yellow(xNote);" value="{normalize-space(xNote)}"/>
      </td>
    </tr>
  </xsl:template>
  <xsl:template match="xAuthor">
    <xsl:variable name="t">
      <xsl:choose>
        <xsl:when test="contains(.,', &amp; ')">
          <xsl:value-of select="', &amp; '"/>
        </xsl:when>
        <xsl:when test="contains(.,', and ')">
          <xsl:value-of select="', and '"/>
        </xsl:when>
        <xsl:when test="contains(.,', und ')">
          <xsl:value-of select="', und '"/>
        </xsl:when>
        <xsl:when test="contains(.,';')">;</xsl:when>
        <xsl:when test="contains(.,'/')">/</xsl:when>
        <xsl:when test="contains(.,',')">,</xsl:when>
        <xsl:when test="contains(.,' &amp; ')">
          <xsl:value-of select="' &amp; '"/>
        </xsl:when>
        <xsl:when test="contains(.,' und ')">
          <xsl:text> und </xsl:text>
        </xsl:when>
        <xsl:when test="contains(.,' and ')">
          <xsl:text> and </xsl:text>
        </xsl:when>
        <xsl:otherwise>
          <xsl:text></xsl:text>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:variable>
    <xsl:variable name="r" select="normalize-space(substring-after(.,$t))"/>
    <xsl:choose>
      <xsl:when test="$t=''">
        <xsl:call-template name="rightword">
          <xsl:with-param name="line" select="."/>
        </xsl:call-template>
      </xsl:when>
      <xsl:when test="contains($r,$t) or contains($r,' and ') or contains($r,' und ') or contains($r,' &amp; ') ">
        <xsl:call-template name="rightword">
          <xsl:with-param name="line" select="normalize-space(substring-before(.,$t))"/>
        </xsl:call-template>
        <xsl:text> et al.</xsl:text>
      </xsl:when>
      <xsl:otherwise>
        <xsl:call-template name="rightword">
          <xsl:with-param name="line" select="normalize-space(substring-before(.,$t))"/>
        </xsl:call-template>
        <xsl:text> &amp; </xsl:text>
        <xsl:call-template name="rightword">
          <xsl:with-param name="line" select="normalize-space(substring-after(.,$t))"/>
        </xsl:call-template>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
  <xsl:template name="rightword">
    <xsl:param name="line" select="''"/>
    <xsl:choose>
      <xsl:when test="contains($line,',')">
        <xsl:value-of select="substring-before($line,',')"/>
      </xsl:when>
      <xsl:when  test="contains($line,' ') and substring($line,string-length($line),1)='.'">
        <xsl:value-of select="substring-before($line,' ')"/>
      </xsl:when>
      <xsl:when test="contains($line,' ')">
        <xsl:call-template name="rightword">
          <xsl:with-param name="line" select="substring-after($line,' ')"/>
        </xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$line"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
  <xsl:template match="Subobj" mode="Biblio">
    <tr>
      <td>
        <input type="checkbox" name="para" value="{@id}" style="height: 14px;"/>
      </td>
      <xsl:choose>
        <xsl:when test="count(/ShowPage/xRootNode) and count(Subobj[sTemplate!='NextBib.xsl' and Status/@time!=''])">
          <td>
            <img border="0" src="{/ShowPage/ImgDir}clock.gif" alt="{$lsClockGif}"/>
          </td>
          <td colspan="4">
            <a href="{/ShowPage/Script}?f={@id}" style="text-decoration: none;">
              <xsl:value-of select="sTitle"/>
            </a>
            <xsl:apply-templates select="." mode="Status"/>
          </td>
        </xsl:when>
        <xsl:when test="Body/xListNode='on' or xListNode='on'">
          <td>
            <a href="{/ShowPage/Script}?f={@id}" style="text-decoration: none;">
              <img border="0" src="{/ShowPage/ImgDir}closed.gif" alt="{$lsClosedGif}"/>
            </a>
          </td>
          <td colspan="4">
            <a href="{/ShowPage/Script}?f={@id}" style="text-decoration: none;">
              <xsl:value-of select="sTitle"/>
            </a>

            <xsl:apply-templates select="." mode="Status"/>
          </td>

        </xsl:when>
        <xsl:otherwise>
          <td style="text-align: center;">
            <xsl:apply-templates select="Body/xType|xType"/>
          </td>
          <td>
            <a href="{/ShowPage/Script}?f={@id}" style="text-decoration: none;" title="{sTitle}">
              <xsl:choose>
                <xsl:when test="count(sTitle)=0 or sTitle=''">
                  <xsl:text>[</xsl:text>
                  <xsl:value-of select="@name"/>
                  <xsl:text>]</xsl:text>
                </xsl:when>
                <xsl:otherwise>
                  <xsl:apply-templates select="sTitle" mode="toolong"/>
                </xsl:otherwise>
              </xsl:choose>
            </a>
            <xsl:apply-templates select="." mode="Status"/>
          </td>
          <td>
            <xsl:attribute name="title">
              <xsl:apply-templates select="." mode="biblio_t"/>
            </xsl:attribute>
            <xsl:value-of select="Body/xTitle|xTitle"/>
            <xsl:text>&#160;</xsl:text>
          </td>
          <td>
            <xsl:apply-templates select="Body/xAuthor|xAuthor" mode="table"/>
            <xsl:text>&#160;</xsl:text>
          </td>
          <td>
            <xsl:value-of select="Body/xYear|xYear"/>
            <xsl:text>&#160;</xsl:text>
          </td>
        </xsl:otherwise>
      </xsl:choose>
    </tr>
  </xsl:template>
  <xsl:template match="xType">
    <xsl:attribute name="title">
      <xsl:value-of select="."/>
    </xsl:attribute>
    <xsl:value-of select="substring(concat(.,'&#160;'),1,1)"/>
  </xsl:template>
  <xsl:template match="sTitle" mode="toolong">
    <xsl:choose>
      <xsl:when test="string-length(.)=0">
        <xsl:value-of select="$lsBibCreateRecord"/>
      </xsl:when>
      <xsl:when test="string-length(.) > 20 and contains(substring(.,21),' ')">
        <xsl:value-of select="substring(.,1,20)"/>
        <xsl:value-of select="substring-before(substring(.,21),' ')"/> ...
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="."/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
  <xsl:template match="Body/xAuthor|xAuthor" mode="table">
    <xsl:choose>
      <xsl:when test="string-length(.)">
        <xsl:value-of select="."/>
      </xsl:when>
      <xsl:when test="string-length(../xEditor)">
        <i>
          <xsl:value-of select="../xEditor"/>
        </i>
      </xsl:when>
      <xsl:when test="string-length(../xPublication)">
        <i>
          <xsl:value-of select="../xPublication"/>
        </i>
      </xsl:when>
      <xsl:when test="string-length(../xPublisher)">
        <i>
          <xsl:value-of select="../xPublisher"/>
        </i>
      </xsl:when>
    </xsl:choose>
  </xsl:template>
  <xsl:template match="Subobj" mode="Notes">
    <xsl:variable name="type" select="translate(substring-after(@name,'.'),'JPENGIF','jpengif')"/>
    <tr>
      <td>
        <a target="_blank">
          <xsl:attribute name="href">
            <xsl:value-of select="/ShowPage/Script"/>?f=<xsl:value-of select="@id"/>
          </xsl:attribute>
          <xsl:choose>
            <xsl:when test="Status/@time!=''">
              <xsl:value-of select="translate(Status/@time,' ','&#160;')"/>
            </xsl:when>
            <xsl:otherwise>
              <xsl:value-of select="substring(@time,1,6)"/>
              <xsl:value-of select="translate(substring(@time,9,8),' ','&#160;')"/>
            </xsl:otherwise>
          </xsl:choose>
        </a>
        <xsl:text> </xsl:text>
        <xsl:apply-templates select="." mode="Status"/>
        <a href="?f=move&amp;para={@id}&amp;ex={../@id}">
          <img src="{/ShowPage/ImgDir}move.gif" border="0" height="12" width="12"/>
        </a>
      </td>
      <xsl:if test="//Modus='all'">
        <td>
          <a href="{../Script}?f={../@id}">
            <xsl:value-of select="../sTitle"/>
          </a>
        </td>
      </xsl:if>

      <xsl:choose>
        <xsl:when test="count(Body/thumbnail|thumbnail)">
          <td>
            <xsl:value-of select="sTitle"/>
          </td>
          <td>
            <a href="{/ShowPage/Script}?f={@id}">
              <xsl:apply-templates select="Body/thumbnail|thumbnail"/>
            </a>
          </td>
        </xsl:when>
        <xsl:when test="sTemplate='PrivateFile' and ($type='gif' or $type='jpg' or $type='jpeg' or $type='png')">
          <td>
            <xsl:value-of select="sTitle"/>
          </td>
          <td>
            <a href="{/ShowPage/Script}?f={@id}&amp;v=imgview.xsl&amp;ex=original">
              <img src="icon.aspx?f={@name}" border="0"/>
            </a>
          </td>
        </xsl:when>
        <xsl:when test="sTemplate='PrivateFile'">
          <td>
            <xsl:value-of select="sTitle"/>
          </td>
          <td>
            <a href="{/ShowPage/Script}?f={@id}" target="_blank">
              <img src="{/ShowPage/Script}?f=icon/{@name}" border="0"/>
            </a>
          </td>
        </xsl:when>
        <xsl:when test="sTemplate='PublicFile'">
          <td>
            <xsl:value-of select="sTitle"/>
          </td>
          <td>
            <a href="{@name}" target="_blank">
              <img src="pub/icon/{substring-after(@name,'/')}" border="0"/>
            </a>
          </td>
        </xsl:when>
        <xsl:when test="count(.//img[@class='thumbnail'])">
          <td>
            <xsl:value-of select="sTitle"/>
          </td>
          <td>

            <a href="{/ShowPage/Script}?f={@id}" target="_blank">
              <xsl:variable name="src">
                <xsl:value-of select=".//img[@class='thumbnail']/@src"/>
              </xsl:variable>
              <xsl:choose>
                <xsl:when test="contains($src,'icon.aspx')">
                  <img border="0"
                    src="{concat(substring-before($src,'ex='),substring-after(substring-after($src,'ex='),'&amp;'))}"/>
                </xsl:when>
                <xsl:when test="contains($src,'?')">
                  <img src="{$src}&amp;ex=100" border="0"/>
                </xsl:when>
                <xsl:otherwise>
                  <img src="icon.aspx?f={$src}" border="0"/>
                </xsl:otherwise>
              </xsl:choose>
            </a>
          </td>
        </xsl:when>
        <xsl:when test="count(.//img[starts-with(@src,'pub/LocalImages/') and @height > 40 and @width > 40])">
          <td>
            <xsl:value-of select="sTitle"/>
          </td>
          <td>
            <a href="{/ShowPage/Script}?f={@id}" target="_blank">
              <img src="icon.aspx?f={.//img[starts-with(@src,'pub/LocalImages/') and @height > 40 and @width > 40]/@src}" border="0"/>
            </a>
          </td>
        </xsl:when>
        <xsl:when test="count(.//img[starts-with(@src,'pub/LocalImages/') and substring-before(substring-after(@style,'height:'),'px') > 40])">
          <td>
            <xsl:value-of select="sTitle"/>
          </td>
          <td>

            <a href="{/ShowPage/Script}?f={@id}" target="_blank">
              <img src="icon.aspx?f={.//img[starts-with(@src,'pub/LocalImages/') and substring-before(substring-after(@style,'height:'),'px') > 40]/@src}" border="0"/>
            </a>
          </td>
        </xsl:when>
        <xsl:when test="count(mRichtext//*) + count(Richtext//*) > 10">
          <td>
            <xsl:value-of select="sTitle"/>
          </td>
          <td>
            ...
          </td>
        </xsl:when>
        <xsl:otherwise>
          <td colspan="2">
            <h4 style="margin-top: 0pt;">
              <xsl:value-of select="sTitle"/>
            </h4>
            <xsl:apply-templates select="mRichtext|Richtext"/>&#160;
          </td>
        </xsl:otherwise>
      </xsl:choose>
    </tr>
  </xsl:template>
  <xsl:param name="cYellow" select="'#ccccff'"/>
  <xsl:param name="cGrey" select="'#cccccc'"/>
  <xsl:param name="lsBibCreate" >
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">建立一文献库</xsl:when>
      <xsl:when test="$lsLanguage='de'">Literaturdatenbank Anlegen</xsl:when>
      <xsl:otherwise>Create a literature database</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsBibCreateRecord">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">新建一项文献</xsl:when>
      <xsl:when test="$lsLanguage='de'">Literatureintragung Anlegen</xsl:when>
      <xsl:otherwise>Create a single entry</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsContent">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">内容</xsl:when>
      <xsl:when test="$lsLanguage='de'">Inhalt</xsl:when>
      <xsl:otherwise>Content</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsNote">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">记录</xsl:when>
      <xsl:when test="$lsLanguage='de'">Notiz</xsl:when>
      <xsl:otherwise>Note</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsObject">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">对象</xsl:when>
      <xsl:when test="$lsLanguage='de'">Objekt</xsl:when>
      <xsl:otherwise>Object</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsDateTime">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">日期</xsl:when>
      <xsl:when test="$lsLanguage='de'">Zeit</xsl:when>
      <xsl:otherwise>Date</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsShowSuper">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">显示上属对象</xsl:when>
      <xsl:when test="$lsLanguage='de'">Übergeordnet</xsl:when>
      <xsl:otherwise>Show the super-item</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsBackTo">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">返回</xsl:when>
      <xsl:when test="$lsLanguage='de'">Zurück zu</xsl:when>
      <xsl:otherwise>Back to</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsShowAllAttachments">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">全部及相应文件</xsl:when>
      <xsl:when test="$lsLanguage='de'">alles (mit Anhang)</xsl:when>
      <xsl:otherwise>all everything</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsShowTable">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">表格</xsl:when>
      <xsl:when test="$lsLanguage='de'">als Tabelle</xsl:when>
      <xsl:otherwise>as a table</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsShowAll">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">全部</xsl:when>
      <xsl:when test="$lsLanguage='de'">alles </xsl:when>
      <xsl:otherwise>all entries </xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsShowList">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">清单</xsl:when>
      <xsl:when test="$lsLanguage='de'">als Liste</xsl:when>
      <xsl:otherwise>as a list</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsShowNumber">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">编号</xsl:when>
      <xsl:when test="$lsLanguage='de'">nummeriert</xsl:when>
      <xsl:otherwise>as a numbered list</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsShowAuthorYear">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">以文字形式(作者/年)</xsl:when>
      <xsl:when test="$lsLanguage='de'">als Text (Author/Jahr)</xsl:when>
      <xsl:otherwise>as text (author/year)</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsShowText">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">以文字形式</xsl:when>
      <xsl:when test="$lsLanguage='de'">als Text</xsl:when>
      <xsl:otherwise>as text</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsShowNormal">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">普通</xsl:when>
      <xsl:when test="$lsLanguage='de'">normal</xsl:when>
      <xsl:otherwise>normal</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsShowMode">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">显示...</xsl:when>
      <xsl:when test="$lsLanguage='de'">Anzeige...</xsl:when>
      <xsl:otherwise>Show...</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsStandardMode">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">普通显示</xsl:when>
      <xsl:when test="$lsLanguage='de'">Normaler Modus</xsl:when>
      <xsl:otherwise>Standard mode</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsUsage">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">使用</xsl:when>
      <xsl:when test="$lsLanguage='de'">Verwendung</xsl:when>
      <xsl:otherwise>Usage</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsImport">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">导入</xsl:when>
      <xsl:otherwise>Import</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsCopy">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">备份</xsl:when>
      <xsl:when test="$lsLanguage='de'">Kopieren</xsl:when>
      <xsl:otherwise>Copy</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsNewLink">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">新链接</xsl:when>
      <xsl:when test="$lsLanguage='de'">Neuer Link</xsl:when>
      <xsl:otherwise>New link</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsNewFile">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">新文件</xsl:when>
      <xsl:when test="$lsLanguage='de'">Neue Datei</xsl:when>
      <xsl:otherwise>New file</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsNewPage">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">新建一页</xsl:when>
      <xsl:when test="$lsLanguage='de'">Neue Seite</xsl:when>
      <xsl:otherwise>New page</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsNewNote">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">新记录</xsl:when>
      <xsl:when test="$lsLanguage='de'">Neue Notiz</xsl:when>
      <xsl:otherwise>New note</xsl:otherwise>
    </xsl:choose>
  </xsl:param>

  <xsl:param name="lsNewEntry">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">新建一项文献</xsl:when>
      <xsl:when test="$lsLanguage='de'">Neue Literatur</xsl:when>
      <xsl:otherwise>New entry</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsNewGroup">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">新建一组文献</xsl:when>
      <xsl:when test="$lsLanguage='de'">Neue Gruppe</xsl:when>
      <xsl:otherwise>New group</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsSave">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">存储</xsl:when>
      <xsl:when test="$lsLanguage='de'">Speichern</xsl:when>
      <xsl:otherwise>Save</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsRemark">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">备注</xsl:when>
      <xsl:when test="$lsLanguage='de'">Anmerkung</xsl:when>
      <xsl:otherwise>Remark</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsEditionHint">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">WWW: 访问日期</xsl:when>
      <xsl:when test="$lsLanguage='de'">Bei Website: Datum des Aufrufs</xsl:when>
      <xsl:otherwise>WWW: date of access</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsEdition">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">版本</xsl:when>
      <xsl:when test="$lsLanguage='de'">Auflage/Stand</xsl:when>
      <xsl:otherwise>Edition/accessed</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsPublisherLocation">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">地点</xsl:when>
      <xsl:when test="$lsLanguage='de'">Ort</xsl:when>
      <xsl:otherwise>Location</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsPublisher">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">发行</xsl:when>
      <xsl:when test="$lsLanguage='de'">Verlag/Organisat.</xsl:when>
      <xsl:otherwise>Publisher</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsPage">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">页(从-至)</xsl:when>
      <xsl:when test="$lsLanguage='de'">Seite (von - bis)</xsl:when>
      <xsl:otherwise>Page (start-end)</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsSeries">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">序列</xsl:when>
      <xsl:when test="$lsLanguage='de'">Serie</xsl:when>
      <xsl:otherwise>Series</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsEditors">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">编者</xsl:when>
      <xsl:when test="$lsLanguage='de'">Hrsg./Editor(en)</xsl:when>
      <xsl:otherwise>Editor(s)</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsVolume">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">集</xsl:when>
      <xsl:when test="$lsLanguage='de'">Band</xsl:when>
      <xsl:otherwise>Volume</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsPublication">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">出版物</xsl:when>
      <xsl:when test="$lsLanguage='de'">Publikation</xsl:when>
      <xsl:otherwise>Publication</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsTitle">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">标题</xsl:when>
      <xsl:when test="$lsLanguage='de'">Titel</xsl:when>
      <xsl:otherwise>Title</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsAuthors">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">作者</xsl:when>
      <xsl:when test="$lsLanguage='de'">Autor(en)</xsl:when>
      <xsl:otherwise>Author(s)</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsBibBook">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">书</xsl:when>
      <xsl:when test="$lsLanguage='de'">Buch</xsl:when>
      <xsl:otherwise>Book</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsBibJ">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">期刊</xsl:when>
      <xsl:otherwise>Journal</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsBibIn">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">选自</xsl:when>
      <xsl:otherwise>In ...</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsBibWeb" select="'WWW'"/>
  <xsl:param name="lsBibType">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">种类</xsl:when>
      <xsl:when test="$lsLanguage='de'">Typ</xsl:when>
      <xsl:otherwise>Type</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsShortTitle">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">简称</xsl:when>
      <xsl:when test="$lsLanguage='de'">Kurztitel</xsl:when>
      <xsl:otherwise>Short title</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsYear">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">年份</xsl:when>
      <xsl:when test="$lsLanguage='de'">Jahr</xsl:when>
      <xsl:otherwise>Year</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="ls1Author">
    <xsl:choose>
      <xsl:when test="$lsLanguage='zh-cn'">作者/来源</xsl:when>
      <xsl:when test="$lsLanguage='de'">1. Autor/Quelle</xsl:when>
      <xsl:otherwise>1. Author/source</xsl:otherwise>
    </xsl:choose>
  </xsl:param>
  <xsl:param name="lsTemplateSelected">NextBib.xsl</xsl:param>
</xsl:stylesheet>
