Skip to content
Snippets Groups Projects
Commit 76a73f5b authored by wactbprot's avatar wactbprot
Browse files

rdm

parent 3ea413bd
No related branches found
No related tags found
No related merge requests found
...@@ -10,4 +10,134 @@ _/ __ \ ______ / ___/ | \\__ \\_ __ \_/ __ \ ...@@ -10,4 +10,134 @@ _/ __ \ ______ / ___/ | \\__ \\_ __ \_/ __ \
## e-share ## e-share
... is the erica version of share ... implementiert client Grundbedürfnisse wie:
\ No newline at end of file
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>
...@@ -7,7 +7,7 @@ function (doc, req) { ...@@ -7,7 +7,7 @@ function (doc, req) {
nd = new Date(), nd = new Date(),
ndoc = { ndoc = {
Calibration:{ Calibration:{
Sign: req.query.sign || "99999_0001", Sign: req.query.sign || "9999_0001",
Type: req.query.type || "NN", Type: req.query.type || "NN",
Year: "" + nd.getFullYear(), Year: "" + nd.getFullYear(),
Standard: req.query.standard || "", Standard: req.query.standard || "",
...@@ -20,11 +20,7 @@ function (doc, req) { ...@@ -20,11 +20,7 @@ function (doc, req) {
] ]
}, },
Measurement:{ Measurement:{
CalibrationObject:[{ CalibrationObject:[{}]
Type: "",
Sign: "",
Name: ""
}]
} }
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment