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

</pre>

## e-share

wactbprot's avatar
wactbprot committed
... implementiert client Grundbedürfnisse wie:

Auswahl, Duplizieren oder Neuerstellung  eines
(KD)[http://a73434.berlin.ptb.de/mediawiki/index.php/Glossar#Kalibrierdokument].

### Auswahl

Die Auswahl eines
(KD)[http://a73434.berlin.ptb.de/mediawiki/index.php/Glossar#Kalibrierdokument]
kann durch Kombination von Abfrageresultaten wie
(hier)[http://a73434.berlin.ptb.de/mediawiki/index.php/Abfragen_%28views%29]
beschrieben, erfolgen. __e-share__ stellt die views:

<pre>
.
├── allCalObj
│   └── map.js
├── allCustomers
│   └── map.js
├── allToDo
│   └── map.js
├── calib
│   └── map.js
├── constants
│   └── map.js
├── lib
│   ├── check.js
│   ├── check-return_doc-parts.js
│   └── check-return_task.js
├── reduceStandard
│   ├── map.js
│   └── reduce.js
├── reduceType
│   ├── map.js
│   └── reduce.js
├── reduceYear
│   ├── map.js
│   └── reduce.js
├── servers
│   └── map.js
├── sign-sign
│   └── map.js
├── standard-sign
│   └── map.js
├── standard_type-sign
│   └── map.js
├── standard-year
│   └── map.js
├── standard_year-sign
│   └── map.js
├── standard_year-type
│   └── map.js
├── standard_year_type_sign
│   └── map.js
├── standard_year_type-sign
│   └── map.js
├── standard_year_type_sign-doc
│   └── map.js
├── translations
│   └── map.js
├── type-sign
│   └── map.js
└── year-sign
    └── map.js
</pre>

### Duplizieren

funktioniert nicht mehr über 

     .../_design/share/_list/up/calib?standard=xxx&type=yyy&sign=zzz&give=lol 
	 
die  Angabe der id reicht:
     
     .../_design/e-share/_show/dup/id
 

Bsp.:

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


Die Parameter __type__ und __standard__ können der url mitgegeben werden; in diesem
Fall werden sie gleich in das KD eingearbeitet.

### Neu

Ein neues KD holt man sich mit
    
     .../_design/e-share/_show/new
	 
Auch hier funktionieren die url-params __standard__, __type__ und __sign__;
zusätzlich __maintainer__

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": {
            "Maintainer": "",
            "Date": [
                {
                    "Value": "2013-05-24 16:48",
                    "Type": "generated"
                }
            ]
        },
        "Measurement": {
            "CalibrationObject": [
                { }
            ]
        }
    }

}
</pre>