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
2424* ** Version 1**
2525 * [ 1.0.x] ( #camicroscope-10 )
2626
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 )
2828###### TBD
2929
3030### caMicroscope [ 3.9.9] ( https://github.com/camicroscope/camicroscope/compare/v3.9.8...camicroscope:v3.9.9 )
3131###### 2021-11-08
3232* Fix and enhance Human Readable URL support
3333
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+
3438### caMicroscope [ 3.9.8] ( https://github.com/camicroscope/camicroscope/compare/v3.9.6...camicroscope:v3.9.8 )
3539###### 2021-10-21
3640* 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() {
150150 slideQuery . id = $D . params . slideId ;
151151 slideQuery . name = $D . params . slide ;
152152 slideQuery . location = $D . params . location ;
153- slideQuery . collection = $D . params . collection ;
154153 opt . addRulerCallback = onAddRuler ;
155154 opt . deleteRulerCallback = onDeleteRuler ;
156155 $CAMIC = new CaMic ( 'main_viewer' , slideQuery , opt ) ;
Original file line number Diff line number Diff line change 405405 // get slide id from url
406406 $D . params = getUrlVars ( ) ;
407407
408+ if ( $D . params . mode == 'pathdb' ) {
409+ $D . pages . home = '../../../' ;
410+ $D . pages . table = '../../../' ;
411+ }
412+
408413 // load if we have at least one slide query element
409414 if ( $D . params && $D . params . slideId ) {
410415 // normal initialization starts
421426 let STORE = new Store ( '../../data/' ) ;
422427 STORE . findSlide (
423428 $D . params . slide ,
424- $D . params . study ,
425429 $D . params . specimen ,
430+ $D . params . study ,
426431 $D . params . location ,
427432 null ,
428433 $D . params . collection
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ function PathDbMods() {
2222
2323 function convertPathDbSlide ( data ) {
2424 let x = { }
25+ if ( Array . isArray ( data ) && data . length > 0 ) {
26+ data = data [ 0 ]
27+ }
2528 x [ "_raw" ] = data
2629 x . mpp = 1e9
2730 x . source = "pathdb"
@@ -103,7 +106,7 @@ function PathDbMods() {
103106 text : response . statusText ,
104107 url : response . url
105108 } ;
106- return response . json ( ) . then ( convertPathDbSlide ) . then ( x => [ x ] ) ;
109+ return response . json ( ) . then ( x => convertPathDbSlide ( x [ 0 ] ) ) . then ( x => [ x ] ) ;
107110 } )
108111 }
109112 Store . prototype . default_getSlide = Store . prototype . getSlide
You can’t perform that action at this time.
0 commit comments