<?xml version="1.0" ?>
<!DOCTYPE stylesheet 
[
<!ENTITY nbsp    "&#160;">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0"
                xmlns:vmp="http://www.hoise.com/vmp/1.0"
                xmlns:xt="http://www.jclark.com/xt"
                exclude-result-prefixes="vmp"
                extension-element-prefixes="xt">

<xsl:variable name="SelectGroup" />
<xsl:include href="../../set-up/settings.xsl"/>
<xsl:include href="../../set-up/format-basis.xsl"/>




<xsl:template match="vmp:author-group" mode="index">

<xsl:variable name="name"><xsl:value-of select="vmp:name" /></xsl:variable>


<xsl:variable name="prefix"><xsl:value-of select="concat(translate(substring($name,1,3), 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'))"/></xsl:variable>



<xsl:if test="vmp:name != 'admin'">
<xt:document method="html" href="{concat('administration/authors/',vmp:name,'/index.html')}">

<xsl:call-template name="format-basis">
<xsl:with-param name="Contents">

<xsl:call-template name="entry">
<xsl:with-param name="Label"><h3> VMP - Virtual Magazine Publisher</h3></xsl:with-param>
<xsl:with-param name="Item">

<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="485" valign="top">
<h4>Publication tool for Platform HPCN website - 
<i>
<xsl:value-of select="$name" />
</i></h4>
</td>
<td width="31">
<a href="{$BaseUrl}set-up/help.html"
target="help">
<img src="{$IconDirectory}/help.gif" alt="Help" width="31" height="31"
align="right" border="0" /></a></td>
<td width="31"></td>
</tr>

<tr>
<td><xsl:value-of select="$Spacer" /></td>
<td align="center" valign="top"><a href="{$BaseUrl}set-up/help.html"
target="help"><font color="#990000">Help</font></a></td>
<td width="31" align="center" valign="top"></td>
</tr>
</table>
</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"></xsl:with-param>
<xsl:with-param name="Item"></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"></xsl:with-param>
<xsl:with-param name="Item"></xsl:with-param>
</xsl:call-template>


<form name="createForm" method="get" action="{$OverviewServlet}">

<xsl:call-template name="entry">
<xsl:with-param name="Label"><xsl:value-of select="$Spacer" /></xsl:with-param>
<xsl:with-param name="Item"><font
color="#990000"><br />
- Get a list of your contributions -</font></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label">Article-Id should contain:</xsl:with-param>
<xsl:with-param name="Item"><input name="articleid" type="text" value="" />
</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label">Author name should contain:</xsl:with-param>
<xsl:with-param name="Item"><input name="authorid" type="text" value="" />
</xsl:with-param>
</xsl:call-template>



<xsl:call-template name="entry">
<xsl:with-param name="Label">Select part:</xsl:with-param>
<xsl:with-param name="Item">
<select name="selectmagazine">
<option selected="true" value="">-</option>
<xsl:for-each select="document('../../set-up/editor-layout-settings.xml')//vmp:magazine">
<option  value="{@name}" ><xsl:value-of select="@name" /></option>
</xsl:for-each>
</select>
</xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label">Select issue:</xsl:with-param>
<xsl:with-param name="Item"><input name="selectissue" type="text" value="" />
</xsl:with-param>
</xsl:call-template>



<xsl:call-template name="entry">
<xsl:with-param name="Label"><xsl:copy-of select="$Spacer" /></xsl:with-param>
<xsl:with-param name="Item">
<input type="submit" name="action" value="list"  />

<input name="groupname" type="hidden" value="{$name}" /><xsl:copy-of select="$Spacer" />

</xsl:with-param>
</xsl:call-template>
</form>


<!-- Edit articles -->

<xsl:call-template name="entry">
<xsl:with-param name="Label"></xsl:with-param>
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"><xsl:value-of select="$Spacer" /></xsl:with-param>
<xsl:with-param name="Item"><font
color="#990000"><br />
- Create a new contribution -</font></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label"><b>A new article:&nbsp;</b></xsl:with-param>
<xsl:with-param name="Item">
<form name="createForm" method="post" action="{$EditorServlet}">
<input type="hidden" name="action" value="new"  />
<input type="hidden" name="articleid" value="untitled"  />
<input name="authorname" type="hidden" value="{vmp:name}" />
<input name="groupname" type="hidden" value="{vmp:name}" />

<select name="selectmagazine">
<xsl:for-each select="document('../../set-up/editor-layout-settings.xml')//vmp:magazine">
<option  value="{@name}" ><xsl:value-of select="@name" /></option>
</xsl:for-each>
</select>
<br />
<input name="submit" type="submit" value="new" />
</form>

</xsl:with-param>
</xsl:call-template>

<!-- Publish articles  -->

<xsl:call-template name="entry">
<xsl:with-param name="Label"></xsl:with-param>
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label"><xsl:copy-of select="$Spacer" /></xsl:with-param>
<xsl:with-param name="Item"><font
color="#990000"><br />
- Publish the results -</font>
</xsl:with-param>
</xsl:call-template>


<form name="createForm" method="get" action="{$PublisherServlet}">

<xsl:call-template name="entry">
<xsl:with-param name="Label">Select a part:</xsl:with-param>
<xsl:with-param name="Item">
<select name="part">
<xsl:for-each select="document('../../set-up/editor-layout-settings.xml')//vmp:magazine">
<option  value="{@name}" ><xsl:value-of select="@name" /></option>
</xsl:for-each>
</select><br />
</xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label">Select the issue:</xsl:with-param>
<xsl:with-param name="Item"><input type="text" name="issue" value=""  />
</xsl:with-param>
</xsl:call-template>




<xsl:call-template name="entry">
<xsl:with-param name="Label">Select a stylesheet:</xsl:with-param>
<xsl:with-param name="Item">
<select name="stylesheet">

<!-- this has to be generalized. select the stylesheets for the selected magazine -->
<xsl:for-each select="document('../../set-up/editor-layout-settings.xml')//vmp:magazine[1]/vmp:stylesheet">
<option value="{@name}" ><xsl:value-of select="@name" /></option>
</xsl:for-each>
</select>
<br />
<input name="submit" type="submit" value="publish" />

</xsl:with-param>
</xsl:call-template>


</form>

<xsl:call-template name="entry">
<xsl:with-param name="Label"></xsl:with-param>
<xsl:with-param name="Item">
</xsl:with-param>
</xsl:call-template>


<!-- Administration -->


<xsl:call-template name="entry">
<xsl:with-param name="Label"></xsl:with-param>
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"><xsl:value-of select="$Spacer" /></xsl:with-param>
<xsl:with-param name="Item"><font
color="#990000"><br />
- Add a user, see who else is registered from your organisation -</font></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label"><b>Administration:&nbsp;</b></xsl:with-param>
<xsl:with-param name="Item">
<form name="administration" action="administration.html"><xsl:copy-of select="$Spacer" />
<input name="submit" type="submit" value="update" />
</form>
</xsl:with-param>
</xsl:call-template>


</xsl:with-param>
</xsl:call-template>


</xt:document>

</xsl:if>

</xsl:template>


<xsl:template match="*|@*">
  <xsl:copy>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates select="node()"/>
  </xsl:copy>

</xsl:template>
  
   


</xsl:stylesheet>


