elog2labfolder/importing_from_elog.rst
changeset 3 b71be85a294c
child 11 ccfe3c7fa0d2
equal deleted inserted replaced
2:5e51ce17f274 3:b71be85a294c
       
     1 Importing projects from e.g. the ELOGbook to Labfolder at the FHI
       
     2 =================================================================
       
     3 
       
     4 The ELOG entries of a certain project need to be exported as *Raw* which looks like this::
       
     5 
       
     6 	$@MID@$: 12
       
     7 	Date: Tue, 03 Dec 2013 12:15:14 +0100
       
     8 	Author: Wieland Schöllkopf
       
     9 	Author Email: mailto:wschoell@fhi-berlin.mpg.de
       
    10 	Category: Shift summary
       
    11 	Subject: 1st solid-state experiment with FHI FEL
       
    12 	Severity: DOCU
       
    13 	Keywords:
       
    14 	Record date: 1386069171
       
    15 	Attachment:
       
    16 	Encoding: HTML
       
    17 	========================================
       
    18 	<p>Today Alex Paarmann and Marc Herzog are measuring in the wavelength range from 10 to 20 micron with a 0.5 mm thick GGG (Gadolinium Gallium Garnet, <a title="Gadolinium" href="http://en.wikipedia.org/wiki/Gadolinium">Gd</a><sub>3</sub><a title="Gallium" href="http://en.wikipedia.org/wiki/Gallium">Ga</a><sub>5</sub><a title="Oxygen" href="http://en.wikipedia.org/wiki/Oxygen">O</a><sub>12</sub>). Electron energy is set to 26 MeV.</p>
       
    19 
       
    20 This ASCII export looks like this in the ELOG webinterface:
       
    21 
       
    22 .. image:: _static/elog_entry.png
       
    23    :width: 100 %
       
    24    :align: center
       
    25 
       
    26 What is noticeable is that the ELOG export comes with a "ö" instead of an "ö". Interestingly, if only entries done by Wieland are exported the export file has UTF-8 encoding which can actually print German "Umlaute" (ö, ä, ü). If all entries are exported the encoding changes to an encoding that cannot handle e.g. "ö". 
       
    27 
       
    28 After importing the above ELOG entry into labfolder this entry appears like that:
       
    29 
       
    30 .. image:: _static/entry_after_import.png
       
    31    :width: 100 %
       
    32    :align: center
       
    33 
       
    34 
       
    35 
       
    36 
       
    37 
       
    38 
       
    39 
       
    40