Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
e-share
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vaclab
e-share
Commits
76a73f5b
Commit
76a73f5b
authored
11 years ago
by
wactbprot
Browse files
Options
Downloads
Patches
Plain Diff
rdm
parent
3ea413bd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+131
-1
131 additions, 1 deletion
README.md
shows/new.js
+2
-6
2 additions, 6 deletions
shows/new.js
with
133 additions
and
7 deletions
README.md
+
131
−
1
View file @
76a73f5b
...
@@ -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>
This diff is collapsed.
Click to expand it.
shows/new.js
+
2
−
6
View file @
76a73f5b
...
@@ -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
||
"
9999
9
_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
:
""
}]
}
}
}
}
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment