Update of /cvsroot/cobricks/drehscheibe-in/web/item In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv24725 Modified Files: index.html.de item.html.de itemcreate.html.de itemsearch.html.de itemupdate.html.de template-da.html template-date.html template-fww.html template-idp.html template-job.html template-msg.html template-odate.html template-sypro.html template.html templateedit-date.html templateedit-fww.html templateedit-idp.html templateedit-job.html templateedit-msg.html templateedit-odate.html templateedit-sypro.html templateedit.html test-rss20.xml Removed Files: attribute_fields.html itemdelete.html.de itemupdate_upload.html.de Log Message: Index: template-date.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/template-date.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- template-date.html 22 Sep 2006 17:40:53 -0000 1.3 +++ template-date.html 18 Oct 2006 16:51:34 -0000 1.4 @@ -1,6 +1,4 @@ -#set($format = $portalPresenter.getDateTimeFormatter($language, true)) - <table border="1" cellspacing="0pt" cellpadding="5pt" width="100%"> <tr><td> @@ -24,20 +22,25 @@ (von <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($creator)">$userPresenter.getUserName($creator)</a> #if("$!creationtime"!="") - , am/um $format.format($creationtime) + , am/um $portalPresenter.dateFormat("$!language", $creationtime) #end ) -#elseif($creationtime) - (am/um $format.format($creationtime)) +#elseif("$!creationtime"!="") + (am/um $portalPresenter.dateFormat("$!language", $creationtime)) #end <p> #set($starttime = $item.getAttribute("starttime")) #set($endtime = $item.getAttribute("endtime")) -<p>Ab: $format.format($starttime)</p> -<p>Bis: $format.format($endtime)</p> +#if ("$!starttime"!="") +<p>Ab: $portalPresenter.dateFormat("$!language", $starttime)</p> +#end +#if ("$!endtime"!="") +<p>Bis: $portalPresenter.dateFormat("$!language", $endtime)</p> +#end <table width="95%"><tr bgcolor="#dfdfdf" width="100%"><td> +xxxx #set($content = $item.getContent("$!lang")) #if("$content"!="") <pre>$content @@ -55,7 +58,7 @@ #set($expirationtime = $item.getAttribute("expirationtime")) #if($expirationtime) -Verfallsdatum: $format.format($expirationtime)<br/><br/> +Verfallsdatum: $portalPresenter.dateFormat("$!language", $expirationtime)<br/><br/> #end #set($uri = $item.getAttributeAsString("url")) @@ -70,12 +73,12 @@ Letzte Aktualisierung durch <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($updater)"> $userPresenter.getUserName($updater)</a> - #if($updatetime) - , am/um $format.format($updatetime) + #if("$!updatetime"!="") + , am/um $portalPresenter.dateFormat("$!language", $updatetime) #end <br/> #elseif($updatetime) - Letzte Aktualisierung am/um $format.format($updatetime)<br/> + Letzte Aktualisierung am/um $portalPresenter.dateFormat("$!language", $updatetime)<br/> #end <p>Kategorien, denen die Mitteilung zugeordnet ist: Index: templateedit-fww.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/templateedit-fww.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- templateedit-fww.html 22 Sep 2006 17:40:53 -0000 1.1 +++ templateedit-fww.html 18 Oct 2006 16:51:35 -0000 1.2 @@ -60,4 +60,3 @@ </td></tr> </table> - Index: templateedit-odate.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/templateedit-odate.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- templateedit-odate.html 22 Sep 2006 17:40:53 -0000 1.1 +++ templateedit-odate.html 18 Oct 2006 16:51:35 -0000 1.2 @@ -48,10 +48,8 @@ </td> <td vAlign=top>Die Kategorien werden dazu benutzt, das Item den Interessengebieten von Benutzern und den verschiedenen - Themenseiten zuzuordnen. Bitte wählen Sie die Communites zu Ihrem - Item gewissenhaft aus (thematisch passend, nicht zu viele). <a - href="/community/read.html.de">Informationen zu den - einzelnen Communities</a>. </td> + Themenseiten zuzuordnen. Bitte wählen Sie die Kategorien zu Ihrem + Item gewissenhaft aus (thematisch passend, nicht zu viele). </td> </tr> <tr><td noWrap align=left colSpan=2> Index: itemupdate.html.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/itemupdate.html.de,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- itemupdate.html.de 22 Sep 2006 17:40:53 -0000 1.3 +++ itemupdate.html.de 18 Oct 2006 16:51:34 -0000 1.4 @@ -8,7 +8,7 @@ #end #set ( $auserlogin = $userLogin ) -#set ( $auserid = $userManager.getUserIdForUserLogin($auserlogin) ) +#set ( $auserid = $userId ) #set ( $auser = $userManager.getUser($auserid)) #if($createdItem) @@ -39,6 +39,26 @@ <li>$corePresenter.printErrorMessage($error, "$!lang")</li> #end</ul></div><br/> #end +#if ($returnCode == 2002) +<p><div class="error">Fehler beim Löschen des Items "$!itemid".</div></p> +#end +#if ($returnCode == 1005) + <p><div class="success">Anmerkung angefügt.</div></p> +#elseif ($returnCode == 1006) + <p><div class="success">Anmerkung entfernt.</div></p> +#elseif ($returnCode == 1007) + <p><div class="success">Attachment angefügt.</div></p> +#elseif ($returnCode == 1008) + <p><div class="success">Attachment entfernt.</div></p> +#elseif ($returnCode == 2005) + <p><div class="error">Fehler beim Hinzufügen einer Anmerkung.</div></p> +#elseif ($returnCode == 2006) + <p><div class="error">Fehler beim Entfernen einer Anmerkung.</div></p> +#elseif ($returnCode == 2007) + <p><div class="error">Fehler beim Hinzufügen eines Attachments.</div></p> +#elseif ($returnCode == 2008) + <p><div class="error">Fehler beim Entfernen eines Attachments.</div></p> +#end #set ($acc = $userPresenter.checkPermission("$auserid", "item", "update", "itemid=$itemid")) #if ($acc != "false") @@ -82,12 +102,85 @@ <div align="right"> <form action="$contextPath/ITEM" method="get"> <input type="hidden" name="cmd" value="deleteitem"/> -<input type="hidden" name="cmd.success" value="$contextPath/item/itemdelete.html"/> -<input type="hidden" name="cmd.error" value="$contextPath/item/itemdelete.html"/> +<input type="hidden" name="cmd.success" value="$contextPath/item/itemsearch.html"/> +<input type="hidden" name="cmd.error" value="$contextPath/item/itemupdate.html"/> <input type="hidden" name="itemid" value="$itemid"/> <input type="submit" value="Item löschen"/> </form></div> +#if ("$!itemdisplayattachments"!="false") +## Print attachments +<table border="1pt" width="100%" cellspacing="0pt" cellpadding="4pt"> +<tr bgcolor="#eeeeee"> +<td> +<h3>Attachments:</h3> +<ul> +#foreach ($ia in $item.getAttachments()) +#set ($iconurl = $portalPresenter.getMimeTypeIcon($!ia.getMimeType())) +<li><a href="/ITEM?cmd=geta&aid=$!ia.getId()"> +#if ("$!iconurl"=="") +[$!ia.getMimeType()] +#else +<img src="$iconurl" border="0"> +#end +$!ia.getTitle()</a>: +$!ia.getComment() von +$ia.getPublisherId() - <a href="$contextPath/ITEM?cmd=removeattachment&cmd.success=$contextPath/item/itemupdate.html&cmd.error=$contextPath/item/itemupdate.html&itemid=$itemid&itemaid=$ia.getId()">löschen</a> +#end +</ul> + +<p>Neues Attachment hinzufügen:<br/> + <form action="$contextPath/ITEM" method="post" enctype="multipart/form-data"> + <input type="hidden" name="itemid" value="$itemid"> + <input type="hidden" name="cmd" value="addattachment"> + <input type="hidden" name="cmd.success" value="$contextPath/item/itemupdate.html"> + <input type="hidden" name="cmd.error" value="$contextPath/item/itemupdate.html"> + <table border="0"> + <tr><td>Titel:</td><td><input type="text" size="30" name="_fileTitle"></td></tr> + <tr><td>Kommentar:</td><td><input type="text" size="60" name="_fileComment"></td></tr> + <tr><td>Datei:</td><td><input type="file" name="_file"></td></tr> + </table> + <input type="submit" value="Attachment hinzufügen"/> + </form> +</td></tr></table> +<br/> +#end + +#if ("$!itemdisplayannotations"!="false") +## Print annotations and a form to insert annotations +<table border="1pt" width="100%" cellspacing="0pt" cellpadding="4pt"> +<tr bgcolor="#eeeeee"> +<td> +<h3>Anmerkungen:</h3> +<ul> +#foreach ($ia in $item.getAnnotations()) +<li>$!ia.getTitle() ($ia.getId()): $!ia.getContent(), rating = $!ia.getRating() von + $ia.getCreatorId() - <a href="$contextPath/ITEM?cmd=removeannotation&cmd.success=$contextPath/item/itemupdate.html&cmd.error=$contextPath/item/itemupdate.html&itemid=$itemid&itemaid=$ia.getId()">löschen</a> +#end +</ul> + +<p>Neue Anmerkung hinzufügen:<br/> + <form action="$contextPath/ITEM"> + <input type="hidden" name="itemid" value="$itemid"> + <input type="hidden" name="cmd" value="addannotation"> + <input type="hidden" name="cmd.success" value="$contextPath/item/itemupdate.html"> + <input type="hidden" name="cmd.error" value="$contextPath/item/itemupdate.html"> + <table border="0"> + <tr><td>Titel:</td><td><input type="text" size="30" name="title"></td></tr> + <tr><td>Inhalt:</td><td><input type="text" size="60" name="content"></td></tr> + <tr><td>Bewertung:</td><td> + $portalPresenter.printSelect("rating", "0,1,2,3,4,5", "0,1,2,3,4,5", "$!rating") + </td></tr> + </table> + <input type="submit" value="Anmerkung hinzufügen"/> + </form> +</td></tr></table> +<br/> +#end + + +#end + #end #end Index: template-job.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/template-job.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- template-job.html 22 Sep 2006 17:40:53 -0000 1.1 +++ template-job.html 18 Oct 2006 16:51:34 -0000 1.2 @@ -1,6 +1,4 @@ -#set($format = $portalPresenter.getDateTimeFormatter($lang, true)) - <table border="1" cellspacing="0pt" cellpadding="5pt" width="100%"> <tr><td> @@ -24,11 +22,11 @@ (von <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($creator)">$userPresenter.getUserName($creator)</a> #if("$!creationtime"!="") - , am/um $format.format($creationtime) + , am/um $portalPresenter.dateFormat("$!lang", $creationtime) #end ) #elseif($creationtime) - (am/um $format.format($creationtime)) + (am/um $portalPresenter.dateFormat("$!lang", $creationtime)) #end <p> @@ -50,7 +48,7 @@ #set($expirationtime = $item.getAttribute("expirationtime")) #if($expirationtime) -Verfallsdatum: $format.format($expirationtime)<br/><br/> +Verfallsdatum: $portalPresenter.dateFormat("$!lang", $expirationtime)<br/><br/> #end #set($uri = $item.getAttributeAsString("url")) @@ -66,11 +64,11 @@ <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($updater)"> $userPresenter.getUserName($updater)</a> #if($updatetime) - , am/um $format.format($updatetime) + , am/um $portalPresenter.dateFormat("$!lang", $updatetime) #end <br/> #elseif($updatetime) - Letzte Aktualisierung am/um $format.format($updatetime)<br/> + Letzte Aktualisierung am/um $portalPresenter.dateFormat("$!lang", $updatetime)<br/> #end <p>Kategorien, denen die Mitteilung zugeordnet ist: Index: template-msg.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/template-msg.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- template-msg.html 22 Sep 2006 17:40:53 -0000 1.3 +++ template-msg.html 18 Oct 2006 16:51:34 -0000 1.4 @@ -1,6 +1,4 @@ -#set($format = $portalPresenter.getDateTimeFormatter($lang, true)) - <table border="1" cellspacing="0pt" cellpadding="5pt" width="100%"> <tr><td> @@ -24,11 +22,11 @@ (von <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($creator)">$userPresenter.getUserName($creator)</a> #if("$!creationtime"!="") - , am/um $format.format($creationtime) + , am/um $portalPresenter.dateFormat("$!lang", $creationtime) #end ) #elseif($creationtime) - (am/um $format.format($creationtime)) + (am/um $portalPresenter.dateFormat("$!lang", $creationtime)) #end <p> @@ -50,7 +48,7 @@ #set($expirationtime = $item.getAttribute("expirationtime")) #if($expirationtime) -Verfallsdatum: $format.format($expirationtime)<br/><br/> +Verfallsdatum: $portalPresenter.dateFormat("$!lang", $expirationtime)<br/><br/> #end #set($uri = $item.getAttributeAsString("url")) @@ -66,11 +64,11 @@ <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($updater)"> $userPresenter.getUserName($updater)</a> #if($updatetime) - , am/um $format.format($updatetime) + , am/um $portalPresenter.dateFormat("$!lang", $updatetime) #end <br/> #elseif($updatetime) - Letzte Aktualisierung am/um $format.format($updatetime)<br/> + Letzte Aktualisierung am/um $portalPresenter.dateFormat("$!lang", $updatetime)<br/> #end <p>Kategorien, denen die Mitteilung zugeordnet ist: Index: template-sypro.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/template-sypro.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- template-sypro.html 22 Sep 2006 17:40:53 -0000 1.1 +++ template-sypro.html 18 Oct 2006 16:51:35 -0000 1.2 @@ -1,6 +1,4 @@ -#set($format = $portalPresenter.getDateTimeFormatter($lang, true)) - <table border="1" cellspacing="0pt" cellpadding="5pt" width="100%"> <tr><td> @@ -24,11 +22,11 @@ (von <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($creator)">$userPresenter.getUserName($creator)</a> #if("$!creationtime"!="") - , am/um $format.format($creationtime) + , am/um $portalPresenter.dateFormat("$!lang", $creationtime) #end ) #elseif($creationtime) - (am/um $format.format($creationtime)) + (am/um $portalPresenter.dateFormat("$!lang", $creationtime)) #end <p> @@ -50,7 +48,7 @@ #set($expirationtime = $item.getAttribute("expirationtime")) #if($expirationtime) -Verfallsdatum: $format.format($expirationtime)<br/><br/> +Verfallsdatum: $portalPresenter.dateFormat("$!lang", $expirationtime)<br/><br/> #end #set($uri = $item.getAttributeAsString("url")) @@ -66,11 +64,11 @@ <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($updater)"> $userPresenter.getUserName($updater)</a> #if($updatetime) - , am/um $format.format($updatetime) + , am/um $portalPresenter.dateFormat("$!lang", $updatetime) #end <br/> #elseif($updatetime) - Letzte Aktualisierung am/um $format.format($updatetime)<br/> + Letzte Aktualisierung am/um $portalPresenter.dateFormat("$!lang", $updatetime)<br/> #end <p>Kategorien, denen die Mitteilung zugeordnet ist: Index: templateedit.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/templateedit.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- templateedit.html 13 Sep 2006 13:09:53 -0000 1.1 +++ templateedit.html 18 Oct 2006 16:51:35 -0000 1.2 @@ -6,7 +6,7 @@ #foreach($lg in $selectedLangs) <tr valign="top"> <td><table> - <tr><td><b>Title</b></td> + <tr><td><b>Titel</b></td> <td>(in <b>$itemPresenter.getLanguageName($lg)</b>)</td></tr> <tr><td colspan="2">$itemPresenter.printDescription($itemclass, "title", $lg)</td></tr> </table></td> @@ -16,7 +16,7 @@ #foreach($lg in $selectedLangs) <tr valign="top"> <td><table> - <tr><td><b>Content</b></td> + <tr><td><b>Inhalte</b></td> <td>(in <b>$itemPresenter.getLanguageName($lg)</b>)</td></tr> <tr><td colspan="2">$itemPresenter.printDescription($itemclass, "content", $lg)</td></tr> </table></td> @@ -25,30 +25,40 @@ #end </table> <table cellspacing="10"> - <tr><td><b>State</b><br/>$itemPresenter.printDescription($itemclass, "state", $lang)</td> + <tr><td><b>Status</b><br/>$itemPresenter.printDescription($itemclass, "state", $lang)</td> <td>$itemPresenter.printDropDown("state", "$!state", "state", false)</td></tr> - <tr><td><b>Location</b><br/>$itemPresenter.printDescription($itemclass, "location", $lang)</td> + <tr><td><b>Ort</b><br/>$itemPresenter.printDescription($itemclass, "location", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "location", $lang, "$!location", 1, 50, false)</td> </tr> - <tr><td><b>Origin</b><br/>$itemPresenter.printDescription($itemclass, "origin", $lang)</td> + <tr><td><b>Quelle</b><br/>$itemPresenter.printDescription($itemclass, "origin", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "origin", $lang, "$!origin", 1, 50, false)</td> </tr> <tr><td><b>URL</b><br/>$itemPresenter.printDescription($itemclass, "url", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "url", $lang, "$!url", 1, 50, false)</td></tr> <tr><td><b>ImageURL</b><br/>$itemPresenter.printDescription($itemclass, "imageurl", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "imageurl", $lang, "$!imageurl", 1, 50, false)</td></tr> - <tr><td><b>Expiration<br/>time</b><br/>$itemPresenter.printDescription($itemclass, "expirationtime", $lang)</td> + <tr><td><b>Verfallsdatum<br/>time</b><br/>$itemPresenter.printDescription($itemclass, "expirationtime", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "expirationtime", $lang, "$!expirationtime", 1, 20, false)</td></tr> </table> </p> <p> <table border="0"><tr><td valign="top"> -<b>Kategorien</b> -</td><td valign="top"> -$categoryPresenter.printCategorySelection("categories", "", "$lang"); +<tr> +<td colSpan=2><b>Kategorien:</b></td></tr> +<tr> +<td valign="top"> +#set ( $categoryclass = "community" ) +<select name="categories" size="10" multiple> +$itemPresenter.getCategoryOptions("$!categoryclass","$lang",$item.getAttribute("categories")) +</select> </td> -</tr></table> +<td vAlign=top>Die Kategorien werden dazu benutzt, das + Item den Interessengebieten von Benutzern und den verschiedenen + Themenseiten zuzuordnen. Bitte wählen Sie die Kategorien zu Ihrem + Item gewissenhaft aus (thematisch passend, nicht zu viele). </td> +</tr> +</table> </p> #if(!($itemclass == "item")) @@ -59,7 +69,7 @@ #if(!$attrNames.isEmpty()) <hr/> <p> - <h3>Further Attributes:</h3> + <h3>Weitere attribute:</h3> <table cellspacing="10"> #foreach($attr in $attrNames) #if($itemPresenter.isMultiLang($itemclass, $attr)) Index: item.html.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/item.html.de,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- item.html.de 22 Sep 2006 17:40:53 -0000 1.3 +++ item.html.de 18 Oct 2006 16:51:34 -0000 1.4 @@ -7,6 +7,9 @@ #set ($selectedLangs = [$lang]) #end +#set ( $auserlogin = $userLogin ) +#set ( $auserid = $userId ) + #set($item = $itemPresenter.getItem($itemid)) #if(!$item) <h1>Item anzeigen</h1> @@ -15,19 +18,22 @@ #set ($acc = "true") #set ( $perm = $item.getAttribute("permission") ) -#if ( "$!perm" == "nur Mitarbeiter" ) +#if ( "$!perm" == "tumstaff" ) #if ( $userPresenter.checkRole($auserid,"mitarbeiter")=="false" ) #set ($acc = "false") +#set ($acc2 = "tumstaff") #end #end #if ($acc == "false") - +<h1>Item anzeigen</h1> <div class="error"> Sie haben nicht ausreichend Rechte um auf das gewünschte Item mit dem Identifikator "$!itemid" zuzugreifen. </div> - +#if ("$!acc2"=="tumstaff") +<p>Ein Zugriff ist nur für Mitarbeiter der Fakultät für Informatik möglich. Dieses Recht wird normalerweise automatisch mit Ihrer MyTUM-Kennung verbunden, wenn Sie Ihre MWN-Id bei Ihrem UnivIS-Beauftragten registrieren lassen.</p> +#end #else #set($itemclass = $item.getItemClass()) @@ -66,22 +72,32 @@ ## get item display template defined in the properties #set ($itemtemplate = $itemPresenter.getItemTemplate("details", $item)) - <p> $portalPresenter.parse("$itemtemplate",$portalRequest,"/item/template.html")<br> <div align="right"><form action="/item/itemupdate.html" method="get"> <input type="hidden" name="itemid" value="$itemid"> -<input type="submit" value="Editieren"></form></div> +<input type="submit" value="Item Editieren"></form></div> </p> #if ("$!itemdisplayattachments"!="false") ## Print attachments +<table border="1pt" width="100%" cellspacing="0pt" cellpadding="4pt"> +<tr bgcolor="#eeeeee"> +<td> <h3>Attachments:</h3> <ul> #foreach ($ia in $item.getAttachments()) -<li>$!ia.getTitle() (<a href="/ITEM?cmd=geta&aid=$!ia.getId()">$!ia.getMimeType()</a>): $!ia.getComment() von - $ia.getPublisherId() - <a href="$contextPath/ITEM?cmd=removeattachment&cmd.success=$contextPath/item/item.html&cmd.error=$contextPath/item/item.html&itemid=$itemid&itemaid=$ia.getId()">löschen</a> +#set ($iconurl = $portalPresenter.getMimeTypeIcon($!ia.getMimeType())) +<li><a href="/ITEM?cmd=geta&aid=$!ia.getId()"> +#if ("$!iconurl"=="") +[$!ia.getMimeType()] +#else +<img src="$iconurl" border="0"> +#end +$!ia.getTitle()</a>: +$!ia.getComment() von +$ia.getPublisherId() - <a href="$contextPath/ITEM?cmd=removeattachment&cmd.success=$contextPath/item/item.html&cmd.error=$contextPath/item/item.html&itemid=$itemid&itemaid=$ia.getId()">löschen</a> #end </ul> @@ -98,12 +114,15 @@ </table> <input type="submit" value="Attachment hinzufügen"/> </form> - +</td></tr></table> <br/> #end #if ("$!itemdisplayannotations"!="false") ## Print annotations and a form to insert annotations +<table border="1pt" width="100%" cellspacing="0pt" cellpadding="4pt"> +<tr bgcolor="#eeeeee"> +<td> <h3>Anmerkungen:</h3> <ul> #foreach ($ia in $item.getAnnotations()) @@ -127,7 +146,7 @@ </table> <input type="submit" value="Anmerkung hinzufügen"/> </form> - +</td></tr></table> <br/> #end #end Index: index.html.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/index.html.de,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- index.html.de 22 Sep 2006 17:40:53 -0000 1.1 +++ index.html.de 18 Oct 2006 16:51:34 -0000 1.2 @@ -22,7 +22,7 @@ <li><a href="itemcreate.html?itemclass=idp">IdP-Angebot (idp)</a> <li><a href="itemcreate.html?itemclass=sypro">Systementwicklungsprojektangebot (sypro)</a> <p> -<li><a href="itemcreate.html?itemclass=fww">Jobangebot (job)</a> +<li><a href="itemcreate.html?itemclass=job">Jobangebot (job)</a> <p> <li><a href="itemcreate.html?itemclass=fww">Eintrag in Fakultätswegweiser (fww)</a> <p> Index: itemsearch.html.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/itemsearch.html.de,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- itemsearch.html.de 28 Sep 2006 06:40:39 -0000 1.16 +++ itemsearch.html.de 18 Oct 2006 16:51:34 -0000 1.17 @@ -3,6 +3,12 @@ <h1>Inhaltssuche</h1> +#if ($returnCode == 1002) +<p><div class="success">Item "$itemid" wurde erfolgreich gelöscht.</div></p> +#elseif ($returnCode == 2002) +<p><div class="error">Fehler beim Löschen des Items "$!itemid".</div></p> +#end + #if ("$!query"!="") #set ($iresult = $itemPresenter.searchItems("$!qtext","$!qitemclass","$!qcategory","$!qcreator","creationtime","$!qolder","","$!qsortby",30)) @@ -21,21 +27,19 @@ #set ($title = false) #set ($title = $item.getTitle()) #if ($title) -<li> -<img alt=- src="$itemPresenter.getItemTypeIcon($!itemclass)"> +<li><img alt=- src="$itemPresenter.getItemTypeIcon($!itemclass)"> <a href="item.html?itemid=$item.getId()&fromSearch=true">$title</a> #else -<li> -<img alt=- src="$itemPresenter.getItemTypeIcon($!itemclass)"> +<li><img alt=- src="$itemPresenter.getItemTypeIcon($!itemclass)"> <a href="item.html?itemid=$item.getId()&fromSearch=true">kein Titel</a> #end #set ( $accedit = $userPresenter.checkPermission($userId, "item", "update", $item) ) #set ( $accdel = $userPresenter.checkPermission($userId, "item", "delete", $item) ) #if ( "$!accedit" == "true" ) -- <a href="itemupdate.html?itemid=$i.getId()">edit</a> +- <a href="itemupdate.html?itemid=$item.getId()"><i>editieren</i></a> #end #if ( "$!accdel" == "true" ) -- <a href="/ITEM?cmd=deleteitem&cmd.success=/item/itemlist.html&cmd.error=/item/itemlist.html&itemid=$i.getId()&itemclass=$!itemclass">delete</a> +- <a href="/ITEM?cmd=deleteitem&cmd.success=/item/itemsearch.html&cmd.error=/item/itemsearch.html&itemid=$item.getId()&itemclass=$!itemclass"><i>löschen</i></a> #end </li> #end --- itemdelete.html.de DELETED --- Index: templateedit-msg.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/templateedit-msg.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- templateedit-msg.html 15 Sep 2006 06:38:29 -0000 1.2 +++ templateedit-msg.html 18 Oct 2006 16:51:35 -0000 1.3 @@ -39,10 +39,8 @@ </td> <td vAlign=top>Die Kategorien werden dazu benutzt, das Item den Interessengebieten von Benutzern und den verschiedenen - Themenseiten zuzuordnen. Bitte wählen Sie die Communites zu Ihrem - Item gewissenhaft aus (thematisch passend, nicht zu viele). <a - href="/community/read.html.de">Informationen zu den - einzelnen Communities</a>. </td> + Themenseiten zuzuordnen. Bitte wählen Sie die Kategorien zu Ihrem + Item gewissenhaft aus (thematisch passend, nicht zu viele). </td> </tr> <tr><td nowrap align=left colSpan=2> Index: template-odate.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/template-odate.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- template-odate.html 22 Sep 2006 17:40:53 -0000 1.1 +++ template-odate.html 18 Oct 2006 16:51:34 -0000 1.2 @@ -1,6 +1,4 @@ -#set($format = $portalPresenter.getDateTimeFormatter($language, true)) - <table border="1" cellspacing="0pt" cellpadding="5pt" width="100%"> <tr><td> @@ -24,18 +22,18 @@ (von <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($creator)">$userPresenter.getUserName($creator)</a> #if("$!creationtime"!="") - , am/um $format.format($creationtime) + , am/um $portalPresenter.dateFormat("$!lang", $creationtime) #end ) #elseif($creationtime) - (am/um $format.format($creationtime)) + (am/um $portalPresenter.dateFormat("$!lang", $creationtime)) #end <p> #set($starttime = $item.getAttribute("starttime")) #set($endtime = $item.getAttribute("endtime")) -<p>Ab: $format.format($starttime)</p> -<p>Bis: $format.format($endtime)</p> +<p>Ab: $portalPresenter.dateFormat("$!lang", $starttime)</p> +<p>Bis: $portalPresenter.dateFormat("$!lang", $endtime)</p> <table width="95%"><tr bgcolor="#dfdfdf" width="100%"><td> #set($content = $item.getContent("$!lang")) @@ -55,7 +53,7 @@ #set($expirationtime = $item.getAttribute("expirationtime")) #if($expirationtime) -Verfallsdatum: $format.format($expirationtime)<br/><br/> +Verfallsdatum: $portalPresenter.dateFormat("$!lang", $expirationtime)<br/><br/> #end #set($uri = $item.getAttributeAsString("url")) @@ -71,11 +69,11 @@ <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($updater)"> $userPresenter.getUserName($updater)</a> #if($updatetime) - , am/um $format.format($updatetime) + , am/um $portalPresenter.dateFormat("$!lang", $updatetime) #end <br/> #elseif($updatetime) - Letzte Aktualisierung am/um $format.format($updatetime)<br/> + Letzte Aktualisierung am/um $portalPresenter.dateFormat("$!lang", $updatetime)<br/> #end <p>Kategorien, denen die Mitteilung zugeordnet ist: Index: templateedit-sypro.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/templateedit-sypro.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- templateedit-sypro.html 22 Sep 2006 17:40:53 -0000 1.1 +++ templateedit-sypro.html 18 Oct 2006 16:51:35 -0000 1.2 @@ -39,10 +39,8 @@ </td> <td vAlign=top>Die Kategorien werden dazu benutzt, das Item den Interessengebieten von Benutzern und den verschiedenen - Themenseiten zuzuordnen. Bitte wählen Sie die Communites zu Ihrem - Item gewissenhaft aus (thematisch passend, nicht zu viele). <a - href="/community/read.html.de">Informationen zu den - einzelnen Communities</a>. </td> + Themenseiten zuzuordnen. Bitte wählen Sie die Kategorien zu Ihrem + Item gewissenhaft aus (thematisch passend, nicht zu viele). </td> </tr> <tr><td nowrap align=left colSpan=2> Index: template-idp.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/template-idp.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- template-idp.html 22 Sep 2006 17:40:53 -0000 1.1 +++ template-idp.html 18 Oct 2006 16:51:34 -0000 1.2 @@ -1,6 +1,4 @@ -#set($format = $portalPresenter.getDateTimeFormatter($lang, true)) - <table border="1" cellspacing="0pt" cellpadding="5pt" width="100%"> <tr><td> @@ -24,11 +22,11 @@ (von <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($creator)">$userPresenter.getUserName($creator)</a> #if("$!creationtime"!="") - , am/um $format.format($creationtime) + , am/um $portalPresenter.dateFormat("$!lang", $creationtime) #end ) #elseif($creationtime) - (am/um $format.format($creationtime)) + (am/um $portalPresenter.dateFormat("$!lang", $creationtime)) #end <p> @@ -50,7 +48,7 @@ #set($expirationtime = $item.getAttribute("expirationtime")) #if($expirationtime) -Verfallsdatum: $format.format($expirationtime)<br/><br/> +Verfallsdatum: $portalPresenter.dateFormat("$!lang", $expirationtime)<br/><br/> #end #set($uri = $item.getAttributeAsString("url")) @@ -66,11 +64,11 @@ <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($updater)"> $userPresenter.getUserName($updater)</a> #if($updatetime) - , am/um $format.format($updatetime) + , am/um $portalPresenter.dateFormat("$!lang", $updatetime) #end <br/> #elseif($updatetime) - Letzte Aktualisierung am/um $format.format($updatetime)<br/> + Letzte Aktualisierung am/um $portalPresenter.dateFormat("$!lang", $updatetime)<br/> #end <p>Kategorien, denen die Mitteilung zugeordnet ist: Index: template-da.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/template-da.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- template-da.html 22 Sep 2006 17:40:53 -0000 1.1 +++ template-da.html 18 Oct 2006 16:51:34 -0000 1.2 @@ -1,6 +1,4 @@ -#set($format = $portalPresenter.getDateTimeFormatter($lang, true)) - <table border="1" cellspacing="0pt" cellpadding="5pt" width="100%"> <tr><td> @@ -24,11 +22,11 @@ (von <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($creator)">$userPresenter.getUserName($creator)</a> #if("$!creationtime"!="") - , am/um $format.format($creationtime) + , am/um $portalPresenter.dateFormat("$!lang", $creationtime) #end ) #elseif($creationtime) - (am/um $format.format($creationtime)) + (am/um $portalPresenter.dateFormat("$!lang", $creationtime)) #end <p> @@ -50,7 +48,7 @@ #set($expirationtime = $item.getAttribute("expirationtime")) #if($expirationtime) -Verfallsdatum: $format.format($expirationtime)<br/><br/> +Verfallsdatum: $portalPresenter.dateFormat("$!lang", $expirationtime)<br/><br/> #end #set($uri = $item.getAttributeAsString("url")) @@ -65,12 +63,12 @@ Letzte Aktualisierung durch <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($updater)"> $userPresenter.getUserName($updater)</a> - #if($updatetime) - , am/um $format.format($updatetime) + #if("$!updatetime"!="") + , am/um $portalPresenter.dateFormat("$!lang", $updatetime) #end <br/> -#elseif($updatetime) - Letzte Aktualisierung am/um $format.format($updatetime)<br/> +#elseif("$!updatetime"!="") + Letzte Aktualisierung am/um $portalPresenter.dateFormat("$!lang", $updatetime)<br/> #end <p>Kategorien, denen die Mitteilung zugeordnet ist: Index: templateedit-date.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/templateedit-date.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- templateedit-date.html 15 Sep 2006 06:38:29 -0000 1.2 +++ templateedit-date.html 18 Oct 2006 16:51:35 -0000 1.3 @@ -48,10 +48,8 @@ </td> <td vAlign=top>Die Kategorien werden dazu benutzt, das Item den Interessengebieten von Benutzern und den verschiedenen - Themenseiten zuzuordnen. Bitte wählen Sie die Communites zu Ihrem - Item gewissenhaft aus (thematisch passend, nicht zu viele). <a - href="/community/read.html.de">Informationen zu den - einzelnen Communities</a>. </td> + Themenseiten zuzuordnen. Bitte wählen Sie die Kategorien zu Ihrem + Item gewissenhaft aus (thematisch passend, nicht zu viele). </td> </tr> <tr><td noWrap align=left colSpan=2> Index: template-fww.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/template-fww.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- template-fww.html 22 Sep 2006 17:40:53 -0000 1.1 +++ template-fww.html 18 Oct 2006 16:51:34 -0000 1.2 @@ -1,7 +1,5 @@ -#set($format = $portalPresenter.getDateTimeFormatter($lang, true)) - -<table bgcolot="#dddddd" border="0"> +<table bgcolor="#dddddd" border="0"> <tr><td><h3> #set($title = $item.getTitle("$!lang")) #if("$!title"!="") @@ -33,19 +31,27 @@ #set($author = $item.getAttribute("author")) #set($creationtime = $item.getAttribute("creationtime")) #set($updatetime = $item.getAttribute("updatetime")) -<b>Ersteintrag:</b> $format.format($creationtime) -<br><b>Letzte Ãnderung:</b> $format.format($updatetime) +<b>Ersteintrag:</b> $portalPresenter.dateFormat("$!lang", $creationtime) +<br><b>Letzte Ãnderung:</b> $portalPresenter.dateFormat("$!lang", $updatetime) <br><b>Autor:</b> $!author <p> -<ul> -#foreach ($ia in $item.getAttachments()) -<li>$!ia.getTitle() (<a href="/ITEM?cmd=geta&aid=$!ia.getId()">$!ia.getMimeType()</a>): $!ia.getComment() von - $ia.getPublisherId() - <a href="$contextPath/ITEM?cmd=removeattachment&cmd.success=$contextPath/item/item.html&cmd.error=$contextPath/item/item.html&itemid=$itemid&itemaid=$ia.getId()">löschen</a> +#set ($attachments = $item.getAttachments()) +<p><b>Dateianhänge:</b></p> +<table border="0"> +#foreach ($ia in $attachments) +#set ($iconurl = $portalPresenter.getMimeTypeIcon($!ia.getMimeType())) +<tr><td><a href="/ITEM?cmd=geta&aid=$!ia.getId()"> +#if ("$!iconurl"=="") +[$!ia.getMimeType()] +#else +<img src="$iconurl" border="0"> #end -</ul> - +$!ia.getTitle()</a> +</td></tr> +#end +</table> <p> <em>Dieses Item ist Teil des <a --- attribute_fields.html DELETED --- --- itemupdate_upload.html.de DELETED --- Index: templateedit-idp.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/templateedit-idp.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- templateedit-idp.html 22 Sep 2006 17:40:53 -0000 1.1 +++ templateedit-idp.html 18 Oct 2006 16:51:35 -0000 1.2 @@ -39,10 +39,8 @@ </td> <td vAlign=top>Die Kategorien werden dazu benutzt, das Item den Interessengebieten von Benutzern und den verschiedenen - Themenseiten zuzuordnen. Bitte wählen Sie die Communites zu Ihrem - Item gewissenhaft aus (thematisch passend, nicht zu viele). <a - href="/community/read.html.de">Informationen zu den - einzelnen Communities</a>. </td> + Themenseiten zuzuordnen. Bitte wählen Sie die Kategorien zu Ihrem + Item gewissenhaft aus (thematisch passend, nicht zu viele). </td> </tr> <tr><td nowrap align=left colSpan=2> Index: templateedit-job.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/templateedit-job.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- templateedit-job.html 22 Sep 2006 17:40:53 -0000 1.1 +++ templateedit-job.html 18 Oct 2006 16:51:35 -0000 1.2 @@ -39,10 +39,8 @@ </td> <td vAlign=top>Die Kategorien werden dazu benutzt, das Item den Interessengebieten von Benutzern und den verschiedenen - Themenseiten zuzuordnen. Bitte wählen Sie die Communites zu Ihrem - Item gewissenhaft aus (thematisch passend, nicht zu viele). <a - href="/community/read.html.de">Informationen zu den - einzelnen Communities</a>. </td> + Themenseiten zuzuordnen. Bitte wählen Sie die Kategorien zu Ihrem + Item gewissenhaft aus (thematisch passend, nicht zu viele). </td> </tr> <tr><td nowrap align=left colSpan=2> Index: itemcreate.html.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/itemcreate.html.de,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- itemcreate.html.de 22 Sep 2006 17:40:53 -0000 1.3 +++ itemcreate.html.de 18 Oct 2006 16:51:34 -0000 1.4 @@ -31,7 +31,7 @@ #end</ul></div><br/> #end -#set ($acc = $userPresenter.checkPermission($auserid, "item", "create", "itemclass=$!itemclass") +#set ($acc = $userPresenter.checkPermission($auserid, "item", "create", "itemclass=$!itemclass") ) #if ($acc == "false") <div class="error"> @@ -63,14 +63,14 @@ <h2>Attachment hinzufügen</h2> <table> <tr valign="top"> - <td><b>Title: </b></td> + <td><b>Titel: </b></td> <td>$itemPresenter.printNewAttrInput("_fileTitle", "$!_fileTitle", 20)</td> </tr><tr> - <td><b>Comment: </b></td> + <td><b>Kommentar: </b></td> <td>$itemPresenter.printNewAttrInput("_fileComment", "$!_fileComment", 80)</td> </tr> <tr> - <td><b>File</b></td> + <td><b>Datei</b></td> <td><input type="file" name="_file" value="$!_file"></td> </tr> </table> @@ -78,9 +78,9 @@ <h2>Anmerkung hinzufügen</h2> <table> - <tr><td>Title:</td><td><input type="text" size="30" name="_annTitle" value="$!_annTitle"></td></tr> - <tr><td>Content:</td><td><input type="text" size="60" name="_annContent" value="$!_annContent"></td></tr> - <tr><td>Rating:</td><td> + <tr><td>Titel:</td><td><input type="text" size="30" name="_annTitle" value="$!_annTitle"></td></tr> + <tr><td>Inhalt:</td><td><input type="text" size="60" name="_annContent" value="$!_annContent"></td></tr> + <tr><td>Bewertung:</td><td> $portalPresenter.printSelect("_annRating", "0,1,2,3,4,5", "0,1,2,3,4,5", "$!rating") </td></tr> </table> Index: test-rss20.xml =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/test-rss20.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- test-rss20.xml 22 Sep 2006 17:40:53 -0000 1.1 +++ test-rss20.xml 18 Oct 2006 16:51:35 -0000 1.2 @@ -2,8 +2,6 @@ <!-- this template shows the items of the selected item-class - should be displayed in RSS format --> <rss version="2.0"> -#set($format = $portalPresenter.getDateTimeFormatter($language, true)) - <channel> <title>www.in.tum.de Ankündigungen</title> <link>http://www.in.tum.de/</link> @@ -39,7 +37,7 @@ <description>$!content</description> <!-- <category>$categories</category> --> <author>$userPresenter.getUserName($creator)</author> - <pubDate>$format.format($creationtime)</pubDate> + <pubDate>$portalPresenter.dateFormat("$!lang", $creationtime)</pubDate> </item> Index: template.html =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/template.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- template.html 22 Sep 2006 17:40:53 -0000 1.3 +++ template.html 18 Oct 2006 16:51:35 -0000 1.4 @@ -1,8 +1,6 @@ ## default item display (if no special display was defined in the ## properties -#set($format = $portalPresenter.getDateTimeFormatter($language, true)) - ## Divide the attributes of this item into two categories: ## 1. The standard attributes (standardAttrs): Attributes that are ## defined in the ontology @@ -36,11 +34,11 @@ (von <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($creator)">$userPresenter.getUserName($creator)</a> #if("$!creationtime"!="") - , am/um $format.format($creationtime) + , am/um $portalPresenter.dateFormat("$!lang", $creationtime) #end ) #elseif($creationtime) - (am/um $format.format($creationtime)) + (am/um $portalPresenter.dateFormat("$!lang", $creationtime)) #end <p> @@ -51,7 +49,7 @@ #set($expirationtime = $standardAttrs.get("expirationtime")) #if($expirationtime) -Verfallsdatum: $format.format($expirationtime)<br/><br/> +Verfallsdatum: $portalPresenter.dateFormat("$!lang", $expirationtime)<br/><br/> #end <table width="95%"><tr bgcolor="#dfdfdf" width="100%"><td> @@ -78,11 +76,11 @@ <a href="$contextPath/user/user.html?auserlogin=$userPresenter.getUserLogin($updater)"> $userPresenter.getUserName($updater)</a> #if($updatetime) - , am/um $format.format($updatetime) + , am/um $portalPresenter.dateFormat("$!lang", $updatetime) #end <br/> #elseif($updatetime) - Letzte Aktualisierung am/um $format.format($updatetime)<br/> + Letzte Aktualisierung am/um $portalPresenter.dateFormat("$!lang", $updatetime)<br/> #end <p>Kategorien, denen das Item zugeordnet ist: @@ -111,14 +109,14 @@ #if($standardAttrs) <hr/><h3>Alle Standardattribute der Item-Klasse:</h3> </p> - $itemPresenter.printAttrs($standardAttrs, $map.get("ontClass"), $language) + $itemPresenter.printAttrs($standardAttrs, $map.get("ontClass"), "$!lang") #end <br/> ## Print the additional attributes #if($additionalAttrs) <hr/><h3>Zusätzliche Attribute:</h3> - $itemPresenter.printAdditionalAttrs($additionalAttrs, $language) + $itemPresenter.printAdditionalAttrs($additionalAttrs, "$!lang") #end <br/> |