ubp-crs-adapter
Advanced tools
Comparing version 1.7.1 to 1.8.0
{ | ||
"name": "ubp-crs-adapter", | ||
"version": "1.7.1", | ||
"version": "1.8.0", | ||
"description": "This library provides connections to different travel CRSs. It also let you read and write data from/to them.", | ||
@@ -5,0 +5,0 @@ "main": "dist/ubpCrsAdapter.js", |
@@ -116,2 +116,3 @@ # UBP CRS Adapter | ||
TOSI | UbpCrsAdapter.CRS_TYPES.tosi | token | '0123456789abcdef' | ||
Neo | UbpCrsAdapter.CRS_TYPES.neo | connectionUrl | 'https://url-to-schmetterling.neo' | ||
@@ -130,3 +131,5 @@ (*) optional | ||
**[Neo]** _connectionUrl_ is needed, when the adapter is not directly used in the first child window of the Neo application | ||
### `ServiceData` object structure | ||
@@ -175,2 +178,3 @@ | ||
Tosi | X | X | X | X | X | ||
Neo | X | X | X | X | X | ||
@@ -356,3 +360,3 @@ | ||
###### ... in (new) TOMA SPC | ||
###### ... in (new) TOMA SPC | ||
@@ -415,4 +419,19 @@ _precondition:_ | ||
###### ... in Schmetterling NEO | ||
_precondition:_ | ||
* the Schmetterling portal is open | ||
* the NEO mask is visible | ||
Open the served test file in your browser first to accept any unknown certificates! | ||
Then you have to open the IBE iFrame - for example by requesting an already existing IBE (like the drive IBE) | ||
and replace the iFrame URL with the URL of the test file. | ||
You can use the following script as bookmark to replace the URL automatically: | ||
`javascript:(function(){let%20fc=document.getElementById('neoIframePopup');let%20f=fc;let%20s=f.src.split('/dispatcher/');s[0]='https://localhost:1337/';f.src=s.join('');})()` | ||
## You have questions or problems with the implementation? | ||
Check the [FAQs](FAQ.md) first! |
@@ -83,16 +83,17 @@ $.when( | ||
const connectionOptions = {}; | ||
crsData = {}; | ||
log(crsData, crsDataPreview); | ||
Object.keys(connectionOptionsForm).forEach(function(key) { | ||
if (!connectionOptionsForm[key].name || connectionOptionsForm[key].value === '') return; | ||
setValueToPropertyPath(crsData, connectionOptionsForm[key].name, connectionOptionsForm[key].value); | ||
setValueToPropertyPath(connectionOptions, connectionOptionsForm[key].name, connectionOptionsForm[key].value); | ||
}); | ||
delete crsData.type; | ||
delete connectionOptions.type; | ||
log(connectionOptions, crsDataPreview); | ||
crsAdapter | ||
.connect(connectionOptionsForm.type.value, crsData) | ||
.connect(connectionOptionsForm.type.value, connectionOptions) | ||
.then(function() { | ||
@@ -99,0 +100,0 @@ setConnectionTypeToConnectButton(connectionOptionsForm.type.value); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
7279923
77856
433