Stage-oe-small.jpg

Internal:Documentation Technical Administration: Unterschied zwischen den Versionen

Aus Aifbportal
Wechseln zu:Navigation, Suche
(Die Seite wurde neu angelegt: „<div style="border:2px solid grey;padding: 10px 14px 10px 14px; background-color: rgb(217, 217, 217);"> Documentation for technical administration which includes…“)
 
 
(30 dazwischenliegende Versionen von 6 Benutzern werden nicht angezeigt)
Zeile 5: Zeile 5:
 
Back to [[Intern:Dokumentation|Overview]]
 
Back to [[Intern:Dokumentation|Overview]]
 
</div>
 
</div>
 +
 +
= AIK-Symposium =
 +
 +
# Bild hochladen nach /var/www/aifbportal-wiki/portal/skins/aifbportal3/
 +
# Zugriffsrechte für Bild anpassen:
 +
##sudo chmod go+r unter_right_aik2015.jpg
 +
##sudo chmod u-x unter_right_aik2015.jpg
 +
##sudo chgrp www-data unter_right_aik2015.jpg
 +
##sudo chown root unter_right_aik2015.jpg
 +
# CSS-Datei anpassen (neues bild eintragen)
 +
##/var/www/aifbportal-wiki/portal/skins/aifbportal3/aifb-template.css
 +
## siehe: #bild_rechts;
 +
# Neuen Link angeben
 +
## /var/www/aifbportal-wiki/portal/skins/AifbPortal3.php editieren
 +
 +
  
  
Zeile 16: Zeile 32:
 
Before creating a new form a template has to be constructed. In total the process has 4 steps:
 
Before creating a new form a template has to be constructed. In total the process has 4 steps:
  
1.  Create Property / Attribute:
+
===Create Property / Attribute===
  
All attributes which are used have to be created beforehand. A list of all attributes which already exist can be found under [[Spezial:Attribute]]. If an additional attribute is needed you can create it at [[Spezial:CreateProperty]].
+
All properties which are used have to be created beforehand. A list of all attributes which already exist can be found under [[Spezial:Attribute]]. If an additional attribute is needed you can create it at [[Spezial:CreateProperty]].
  
2. Template/Vorlage erstellen:
+
===Create template===
  
Als nächstes kann das Template erstellt werden. Dazu wird die Seite [[Spezial:CreateTemplate]] genutzt, auf der eine neue Vorlage angelegt wird und anschließend alle benötigten Eingabefelder hinzugefügt werden.
+
The next step is to create the template. Therefore use the page [[Spezial:CreateTemplate]]. Here you need to specify all input fields which will be used by the form later on.  
  
3. Formular erstellen:
+
===Create form===
  
Zu einem oder mehreren Templates kann nun ein Formular erstellt werden, durch das die benötigte Daten vom Benutzer abgefragt werden. Ein neues Formular wird auf [[Spezial:CreateForm]] angelegt. Dort wird dann ausgewählt, welche Vorlagen für das Formular genutzt werden sollen.
+
Now a form which uses one or more templates can be created on [[Spezial:CreateForm]]. Here you just need to choose the templates.  
  
4. Kategorie erstellen:
+
===Create category===
  
Zuletzt kann für das neu erstellte Formular eine neue Kategorie angelegt werden, unter der dann alle Seite, die mit Hilfe der Formulars angelegt werden, gruppiert werden. Das Erstellen einer neuen Kategorie und die Zuordnung des entsprechenden Formulars wird auf [[Spezial:CreateCategory]] gemacht.
+
At last you can specify a new category. Then all pages that are created with the form can be grouped by this category. On [[Spezial:CreateCategory]] you create a new category and assign the forms to it.
  
  
 
== Edit existing forms / templates ==
 
== Edit existing forms / templates ==
  
''Template/Vorlage''
+
''Template''
  
Eine Liste aller bestehenden Templates (inklusive ihrer Attribute) befindet sich auf [[Spezial:Templates]]. Hierüber lassen sich sich die Vorlagen erweitern und ihre Darstellung nachträglich editieren. Kennt man den exakten Namen der Vorlagen, kann man diese auch über
+
A list of all existing templates including their properties can be found on [[Spezial:Templates]]. Here you can also extend and edit them. If you know the exact name of the template you want to edit you can reach it by
 
<div style="color:grey">
 
<div style="color:grey">
 
<nowiki>
 
<nowiki>
http://km.aifb.uni-karlsruhe.de/projects/aifbportal-wiki/index.php/Vorlage:<NAME_DER_VORLAGE>
+
http://km.aifb.uni-karlsruhe.de/projects/aifbportal-wiki/index.php/Vorlage:<NAME_OF_TEMPLATE>
 
</nowiki>
 
</nowiki>
</div>
+
</div>.
erreichen und anpassen.
 
  
  
''Formular''
+
''Form''
  
Eine Liste aller bestehenden Formulare befindet sich auf [[Spezial:Forms]]. Hierüber lassen sich sich die Formulare erweitern und nachträglich editieren, in dem man das gewünschte Formular auswählt und anschließend rechts oben auf 'Bearbeiten' klickt. So kann man beispielsweise neue Attribute hinzufügen, den Upload-Status für Bilder/Logos setzen oder "Hilfe"-Texte hinzufügen. Kennt man den exakten Namen des Formulars, kann man dieses auch über
+
A list of all existing forms can be found on [[Spezial:Forms]]. Here you can also extend and edit them by clicking on the form-name and on 'edit' / 'bearbeiten' on the top righthand side afterwards. You can, for example, add new properties, set the upload-status for pictures or add help texts. If you know the exact name of the form you want to edit you can reach it by
 
<div style="color:grey">
 
<div style="color:grey">
 
<nowiki>
 
<nowiki>
http://km.aifb.uni-karlsruhe.de/projects/aifbportal-wiki/index.php/Formular: <NAME_DES_FORMULARS>
+
http://km.aifb.uni-karlsruhe.de/projects/aifbportal-wiki/index.php/Formular: <NAME_OF_FORM>
 
</nowiki>
 
</nowiki>
</div>
+
</div>.
erreichen und anpassen.
+
 
  
 +
= Edit sidebar =
  
= Navigation editieren =
+
You can edit the sidebar on [[MediaWiki:Sidebar]]. When you click on 'edit' / 'bearbeiten' on the top righthand side you can change the wiki-text. Thereby you have to take ''hierachy'' and ''bilingualism'' into account. In each line there is exactly one item of the sidebar and you set its hierachy level by the number of * at the beginning. One * represents the main level, i.e. all items with only one * at the beginning are main entries of the sidebar. Each line has 3 parts which are seperated by |. The first part is the page on which the sidebar link points
 +
<nowiki> (http://km.aifb.uni-karlsruhe.de/projects/aifbportal-wiki/index.php/<TEXT_FIRST_PART>).</nowiki>
 +
The second part is the text that is shown at the sidebar on the german page and the third part is the text that is shown at the sidebar on the english page.
  
Die Navigationsbar kann unter [[MediaWiki:Sidebar]] verändert werden. Man klickt rechts oben auf 'Bearbeiten' und kann dann den Wiki-Text verändern. Dabei wird ''Hierarchie'' und ''2sprachigkeit'' berücksichtigt. Pro Zeile wird ein neuer Punkt der Navigation angegeben. Seine Hierarchie-Stufe wird durch die Anzahl der * am Anfang der Zeile festgelegt. Dabei steht ein Stern für die oberste Stufe, d.h. alle Einträge mit nur einem * sind Hauptpunkte der Navigation. Jede Zeile enthält 3 Einträge, die durch | voneinander getrennt sind. Der erste Eintrag gibt die Seite an, auf die der Navigationslink führt <nowiki> (http://km.aifb.uni-karlsruhe.de/projects/aifbportal-wiki/index.php/<ERSTER_EINTRAG>).</nowiki> Der zweite Eintrag legt den Text fest, der auf der deutschen Seite in der Navigation erscheint und der dritte Eintrag setzt entsprechend den Eintrag in der Navigation der englischen Seite.
+
= Sidebar highlighting =
  
 +
If you want to highlight an item in the sidebar manually, just enter
 +
<pre> <menu>pagetitle of the item in the sidebar</menu></pre> on the page.
  
 
= InfoBox =
 
= InfoBox =
  
Mit den folgenden Links gelangt man auf die jeweilige Seite der deutschen bzw. englischen Infobox. Auf dieser Seite können alle Infoboxen bearbeitet und deren Inhalt verändert werden. Dazu dem entsprechenden Link folgen und diese Seite dann bearbeiten, d.h. rechts oben auf 'Bearbeiten' klicken und anschließend den Wiki-Text anpassen.
+
You can reach the pages for the german or the english infobox with the links below. There you can change their contents by clicking on 'edit' / 'bearbeiten' on the top righthand side and editing the wiki-text.
  
[[Mediawiki:Infobox| Infobox Deutsch]]
+
[[Mediawiki:Infobox| Infobox german]]
  
[[Mediawiki:Infobox-en| Infobox Englisch]]
+
[[Mediawiki:Infobox-en| Infobox english]]
  
  
Zeile 75: Zeile 95:
  
  
...
+
= Inline Queries =
 +
 
 +
 
 +
== Basic Inline Queries ==
 +
 
 +
Official documentation: [http://semantic-mediawiki.org/wiki/Help:Inline_queries Help:Inline queries]
 +
 
 +
'''Pattern for ask queries:'''
 +
<pre>
 +
{{#ask: PAGE OR CATEGORY OR other FILTERS
 +
|?ATTRIBUTES (Selection with |?name)
 +
|FORMATING OUTPUT (limit, sort, template, ...)
 +
}}
 +
</pre>
 +
 
 +
 
 +
'''Example of a basic ask query:'''
 +
<pre>
 +
<nowiki>
 +
{{#ask: [[Kategorie:Partner]][[Organisationsart::Forschungseinrichtungen]]
 +
|?URL=
 +
|?Logo
 +
|limit=300
 +
|template=Zeige Kooperationen
 +
|format=template
 +
}}
 +
</nowiki></pre>
 +
 
 +
 
 +
== Advanced Inline Queries ==
 +
 
 +
News on [http://old.nabble.com/-NEWS--Upcoming-printout-options-td26192748.html upcoming printout options]
 +
 
 +
 
 +
===Using optional LIMIT FILTER===
 +
 
 +
Using the additional ''' + limit=n ''' expression after an attribute selection
 +
?AttrX, only the first n values of AttrX will be displayed.
 +
 
 +
 
 +
===Using optional INDEX FILTER===
 +
 
 +
The parameter "index" is used to address single fields in multi-valued
 +
properties. Using the additional ''' + index=n ''' expression after an attribute selection ?AttrX, only the n-th value of all the multi-valued properties AttrX will be displayed.
 +
 
 +
 
 +
===Example using optional LIMIT and INDEX FILTERS===
 +
 
 +
'''"Binary realation-attribut" Dataset:'''
 +
<pre>
 +
[[name::nameIntX;nameExtX]]
 +
[[name::nameIntY;nameExtY]]
 +
[[name::nameIntZ;nameExtZ]]
 +
</pre>
 +
 
 +
* Optional ask-query "limit"-filter statement:
 +
<pre>
 +
|?name |+ limit=1
 +
</pre>
 +
Result:
 +
<pre>
 +
nameIntX;nameExtX
 +
</pre>
 +
 
 +
 
 +
 
 +
* Optional ask-query "index"-filter statement:
 +
<pre>
 +
|?name |+ index=1
 +
</pre>
 +
Result:
 +
<pre>
 +
nameIntX;nameIntY;nameIntZ
 +
</pre>
 +
 
 +
 
 +
 
 +
* Optional ask-query "index"-filter statement:
 +
<pre>
 +
|?name |+ index=2
 +
</pre>
 +
Result:
 +
<pre>
 +
nameExtX;nameExtY;nameExtZ
 +
</pre>
 +
 
 +
 
 +
 
 +
comments:
 +
 
 +
Martin Zang: mit limit filtere ich die Tupel (zeilen) raus, die können aber auch multi-valued sein.
 +
Mit index filtere ich columns (reihen) innerhalb von mulit-valued properties raus.
 +
 
 +
Page: Partner X:
 +
(
 +
koop::Prof extern 1;Rudi Studer
 +
koop::Prof extern 2;Denny V.
 +
koop::Dr. extern 3;Daniel H.
 +
)
 +
mit +limit =1 erhalte ich -> Prof extern 1;Rudi Studer
 +
 
 +
mit +index=2 erhalte ich ->Rudi Studer, Denny V., Daniel H
 +
 
 +
 
  
 
= more to come =
 
= more to come =
Zeile 83: Zeile 206:
  
  
....
+
= Yearly activities =
 +
* Update publications and talks to the new year:
 +
** Update (either update year number, or copy and paste spacing + entry query for the new year)
 +
*** [[Veröffentlichungen]]
 +
*** [[Veröffentlichungen/en]]
 +
*** [[Vorlage:Publikation_Jahre]]
 +
*** [[Vorlage:Publikation_Jahre/en]]
 +
*** [[Vorträge]]
 +
*** [[Vorträge/en]]
 +
*** [[Vorlage:Vorträge_Jahre]]
 +
*** [[Vorlage:Vorträge_Jahre/en]]
 +
*** [[Vortr%C3%A4ge/%C3%A4lter]]
 +
*** [[Vortr%C3%A4ge/%C3%A4lter/en]]
 +
** Create new pages for the new year (copying the one-liner wiki code from the previous year's pages):
 +
*** <nowiki>[[Veröffentlichungen/{YEARNUMBER}]]</nowiki>
 +
*** <nowiki>[[Veröffentlichungen/{YEARNUMBER}/en]]</nowiki>
 +
*** <nowiki>[[Vorträge/{YEARNUMBER}]]</nowiki>
 +
*** <nowiki>[[Vorträge/{YEARNUMBER}/en]]</nowiki>

Aktuelle Version vom 5. Mai 2022, 12:15 Uhr

Documentation for technical administration which includes changing and extending of functional aspects. All modifications below can only be done by portal administrators.


Back to Overview

AIK-Symposium

  1. Bild hochladen nach /var/www/aifbportal-wiki/portal/skins/aifbportal3/
  2. Zugriffsrechte für Bild anpassen:
    1. sudo chmod go+r unter_right_aik2015.jpg
    2. sudo chmod u-x unter_right_aik2015.jpg
    3. sudo chgrp www-data unter_right_aik2015.jpg
    4. sudo chown root unter_right_aik2015.jpg
  3. CSS-Datei anpassen (neues bild eintragen)
    1. /var/www/aifbportal-wiki/portal/skins/aifbportal3/aifb-template.css
    2. siehe: #bild_rechts;
  4. Neuen Link angeben
    1. /var/www/aifbportal-wiki/portal/skins/AifbPortal3.php editieren



Forms and Templates

Forms collect the data needed to create a new predefined page. The structure of the page is defined in the corresponding templates. To create a new page of a predefined structure you type the data into the form and then they will be filled automatically into the template.


Create new forms / templates

Before creating a new form a template has to be constructed. In total the process has 4 steps:

Create Property / Attribute

All properties which are used have to be created beforehand. A list of all attributes which already exist can be found under Spezial:Attribute. If an additional attribute is needed you can create it at Spezial:CreateProperty.

Create template

The next step is to create the template. Therefore use the page Spezial:CreateTemplate. Here you need to specify all input fields which will be used by the form later on.

Create form

Now a form which uses one or more templates can be created on Spezial:CreateForm. Here you just need to choose the templates.

Create category

At last you can specify a new category. Then all pages that are created with the form can be grouped by this category. On Spezial:CreateCategory you create a new category and assign the forms to it.


Edit existing forms / templates

Template

A list of all existing templates including their properties can be found on Spezial:Templates. Here you can also extend and edit them. If you know the exact name of the template you want to edit you can reach it by

http://km.aifb.uni-karlsruhe.de/projects/aifbportal-wiki/index.php/Vorlage:<NAME_OF_TEMPLATE>

.


Form

A list of all existing forms can be found on Spezial:Forms. Here you can also extend and edit them by clicking on the form-name and on 'edit' / 'bearbeiten' on the top righthand side afterwards. You can, for example, add new properties, set the upload-status for pictures or add help texts. If you know the exact name of the form you want to edit you can reach it by

http://km.aifb.uni-karlsruhe.de/projects/aifbportal-wiki/index.php/Formular: <NAME_OF_FORM>

.


Edit sidebar

You can edit the sidebar on MediaWiki:Sidebar. When you click on 'edit' / 'bearbeiten' on the top righthand side you can change the wiki-text. Thereby you have to take hierachy and bilingualism into account. In each line there is exactly one item of the sidebar and you set its hierachy level by the number of * at the beginning. One * represents the main level, i.e. all items with only one * at the beginning are main entries of the sidebar. Each line has 3 parts which are seperated by |. The first part is the page on which the sidebar link points (http://km.aifb.uni-karlsruhe.de/projects/aifbportal-wiki/index.php/<TEXT_FIRST_PART>). The second part is the text that is shown at the sidebar on the german page and the third part is the text that is shown at the sidebar on the english page.

Sidebar highlighting

If you want to highlight an item in the sidebar manually, just enter

 <menu>pagetitle of the item in the sidebar</menu>

on the page.

InfoBox

You can reach the pages for the german or the english infobox with the links below. There you can change their contents by clicking on 'edit' / 'bearbeiten' on the top righthand side and editing the wiki-text.

Infobox german

Infobox english


Delete a page

For deleting the page you currently look at you have to click on 'delete' / 'löschen' on the top right hand side.


Inline Queries

Basic Inline Queries

Official documentation: Help:Inline queries

Pattern for ask queries:

{{#ask: PAGE OR CATEGORY OR other FILTERS
|?ATTRIBUTES (Selection with |?name)
|FORMATING OUTPUT (limit, sort, template, ...)
}}


Example of a basic ask query:


{{#ask: [[Kategorie:Partner]][[Organisationsart::Forschungseinrichtungen]]
|?URL=
|?Logo
|limit=300
|template=Zeige Kooperationen
|format=template
}}


Advanced Inline Queries

News on upcoming printout options


Using optional LIMIT FILTER

Using the additional + limit=n expression after an attribute selection ?AttrX, only the first n values of AttrX will be displayed.


Using optional INDEX FILTER

The parameter "index" is used to address single fields in multi-valued properties. Using the additional + index=n expression after an attribute selection ?AttrX, only the n-th value of all the multi-valued properties AttrX will be displayed.


Example using optional LIMIT and INDEX FILTERS

"Binary realation-attribut" Dataset:

[[name::nameIntX;nameExtX]]
[[name::nameIntY;nameExtY]]
[[name::nameIntZ;nameExtZ]]
  • Optional ask-query "limit"-filter statement:
|?name |+ limit=1

Result:

nameIntX;nameExtX


  • Optional ask-query "index"-filter statement:
|?name |+ index=1

Result:

nameIntX;nameIntY;nameIntZ


  • Optional ask-query "index"-filter statement:
|?name |+ index=2

Result:

nameExtX;nameExtY;nameExtZ


comments:

Martin Zang: mit limit filtere ich die Tupel (zeilen) raus, die können aber auch multi-valued sein. Mit index filtere ich columns (reihen) innerhalb von mulit-valued properties raus.

Page: Partner X: (

koop::Prof extern 1;Rudi Studer
koop::Prof extern 2;Denny V.
koop::Dr. extern 3;Daniel H.

) mit +limit =1 erhalte ich -> Prof extern 1;Rudi Studer

mit +index=2 erhalte ich ->Rudi Studer, Denny V., Daniel H


more to come

{{FormularHilfe|Text}}


Yearly activities