File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
24
24
* ** Version 1**
25
25
* [ 1.0.x] ( #camicroscope-10 )
26
26
27
- ### caMicroscope [ Unreleased] ( https://github.com/camicroscope/camicroscope/compare/v3.9.8 ...camicroscope:develop )
27
+ ### caMicroscope [ Unreleased] ( https://github.com/camicroscope/camicroscope/compare/v3.9.10 ...camicroscope:develop )
28
28
###### TBD
29
29
30
30
### caMicroscope [ 3.9.9] ( https://github.com/camicroscope/camicroscope/compare/v3.9.8...camicroscope:v3.9.9 )
31
31
###### 2021-11-08
32
32
* Fix and enhance Human Readable URL support
33
33
34
+ ### caMicroscope [ 3.9.10] ( https://github.com/camicroscope/camicroscope/compare/v3.9.8...camicroscope:v3.9.10 )
35
+ ###### 2021-01-20
36
+ * Human Readable Urls for pathdb
37
+
34
38
### caMicroscope [ 3.9.8] ( https://github.com/camicroscope/camicroscope/compare/v3.9.6...camicroscope:v3.9.8 )
35
39
###### 2021-10-21
36
40
* Add Segmentation -> Annotation Functionality [ #542 ] ( https://github.com/camicroscope/caMicroscope/pull/542 )
Original file line number Diff line number Diff line change @@ -150,7 +150,6 @@ function initCore() {
150
150
slideQuery . id = $D . params . slideId ;
151
151
slideQuery . name = $D . params . slide ;
152
152
slideQuery . location = $D . params . location ;
153
- slideQuery . collection = $D . params . collection ;
154
153
opt . addRulerCallback = onAddRuler ;
155
154
opt . deleteRulerCallback = onDeleteRuler ;
156
155
$CAMIC = new CaMic ( 'main_viewer' , slideQuery , opt ) ;
Original file line number Diff line number Diff line change 405
405
// get slide id from url
406
406
$D . params = getUrlVars ( ) ;
407
407
408
+ if ( $D . params . mode == 'pathdb' ) {
409
+ $D . pages . home = '../../../' ;
410
+ $D . pages . table = '../../../' ;
411
+ }
412
+
408
413
// load if we have at least one slide query element
409
414
if ( $D . params && $D . params . slideId ) {
410
415
// normal initialization starts
421
426
let STORE = new Store ( '../../data/' ) ;
422
427
STORE . findSlide (
423
428
$D . params . slide ,
424
- $D . params . study ,
425
429
$D . params . specimen ,
430
+ $D . params . study ,
426
431
$D . params . location ,
427
432
null ,
428
433
$D . params . collection
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ function PathDbMods() {
22
22
23
23
function convertPathDbSlide ( data ) {
24
24
let x = { }
25
+ if ( Array . isArray ( data ) && data . length > 0 ) {
26
+ data = data [ 0 ]
27
+ }
25
28
x [ "_raw" ] = data
26
29
x . mpp = 1e9
27
30
x . source = "pathdb"
@@ -103,7 +106,7 @@ function PathDbMods() {
103
106
text : response . statusText ,
104
107
url : response . url
105
108
} ;
106
- return response . json ( ) . then ( convertPathDbSlide ) . then ( x => [ x ] ) ;
109
+ return response . json ( ) . then ( x => convertPathDbSlide ( x [ 0 ] ) ) . then ( x => [ x ] ) ;
107
110
} )
108
111
}
109
112
Store . prototype . default_getSlide = Store . prototype . getSlide
You can’t perform that action at this time.
0 commit comments