Skip to content
Snippets Groups Projects
README.md 3.09 KiB
Newer Older
wactbprot's avatar
ini
wactbprot committed
<pre>
                        .__                          
  ____             _____|  |__ _____ _______   ____  
_/ __ \   ______  /  ___/  |  \\__  \\_  __ \_/ __ \ 
\  ___/  /_____/  \___ \|   Y  \/ __ \|  | \/\  ___/ 
 \___  >         /____  >___|  (____  /__|    \___  >
     \/               \/     \/     \/            \/ 

</pre>

## e-share

wactbprot's avatar
wactbprot committed
Das Designdokument __e-share__ implementiert Client-Grundbedürfnisse wie:
wactbprot's avatar
wactbprot committed

wactbprot's avatar
wactbprot committed
* Auswahl, 
* Duplizieren oder 
* leifern einer Vorlage eines

[Kalibrierdokuments (KD)](http://a73434.berlin.ptb.de/mediawiki/index.php/Glossar#Kalibrierdokument).
wactbprot's avatar
wactbprot committed

### Duplizieren

wactbprot's avatar
wactbprot committed
Ein KD auf Basis eines Früheren wurde im _design _share über eine url der Art: 
wactbprot's avatar
wactbprot committed

wactbprot's avatar
wactbprot committed
     .../_design/share/_list/up/calib?standard=xxx&type=yyy&sign=zzz&give=dup 
wactbprot's avatar
wactbprot committed
	 
wactbprot's avatar
wactbprot committed
erstellt. In __e-share__ sind keine url-Parameter wie _sign_ oder _give_ mehr
nötig; die Angabe der KD-__id__ des zu duplizierendn Dokumentes reicht aus:
wactbprot's avatar
wactbprot committed
     
     .../_design/e-share/_show/dup/id
 

Bsp.:

<pre>
http://a73434.berlin.ptb.de:5984/vaclab_db/_design/e-share/_show/dup/73eda2bf9694bb4f78edaecba90cdc49
</pre>


wactbprot's avatar
wactbprot committed
Die Parameter __type__ und __standard__ können benutzt werden; in diesem
wactbprot's avatar
wactbprot committed
Fall werden sie gleich in das KD eingearbeitet.

### Neu

wactbprot's avatar
wactbprot committed
Ein neues KD erstellt man in __e-share__ über den Aufruf:
wactbprot's avatar
wactbprot committed
    
     .../_design/e-share/_show/new
	 
Auch hier funktionieren die url-params __standard__, __type__ und __sign__;
wactbprot's avatar
wactbprot committed
zusätzlich __maintainer__. Die angegebenen Parameter werden dann eingearbeitet.
wactbprot's avatar
wactbprot committed

Bsp.:
<pre>
http://a73434.berlin.ptb.de:5984/vaclab_db/_design/e-share/_show/new?standard=CE3&sign=75038_0002&type=KK
</pre>

liefert:
<pre>
{
    "Calibration": {
        "Sign": "75038_0002",
        "Type": "KK",
        "Year": "2013",
        "Standard": "CE3",
        "Presettings": {
            "Date": [
                {
                    "Value": "2013-05-24 16:48",
                    "Type": "generated"
                }
            ]
        },
        "Measurement": {
            "CalibrationObject": [
                { }
            ]
        }
    }
}
</pre>

 

wactbprot's avatar
wactbprot committed

### Auswahl

wactbprot's avatar
wactbprot committed
Hier die views mit einer kurzen Erläuterung: 


     allCalObj
     allCustomers
     allToDo


Werden von  _diwan_ und  _mmp_ benutzt um die in der Datenbank abgelegten
_CalibrationObjects_, _Customers_ und _ToDo_ Dokumente zu finden. 

     calib
	 
Wird für den _Updateprozess (UP)_ benutzt.

     constants
	 
Zum Erzeugen von Tabellen, die Konstanten oder Unsicherheiten auflisten

     reduceStandard
     reduceType
     reduceYear
	 
Ermöglichen das Füllen von entsprechenden Auswahlboxen (z.B. in _diwan_ zum
Wählen eines KD)

     servers
	 
spielt bei der autom. Replikation eine Rolle

     type-sign
     year-sign
     sign-sign
     standard-sign
     standard_type-sign
     standard-year
     standard_year-sign
     standard_year-type
     standard_year_type_sign
     standard_year_type-sign
     standard_year_type_sign-doc

Auswahl eines KD erfolgt in _diwan_  durch Kombination von Abfrageresultaten wie
wactbprot's avatar
wactbprot committed
[hier](http://a73434.berlin.ptb.de/mediawiki/index.php/Abfragen_%28views%29)
wactbprot's avatar
wactbprot committed
beschrieben.

     translations

_diwan_ soll Deutsch sprechen 
wactbprot's avatar
wactbprot committed