@@ -966,7 +966,7 @@ var Manifesto;
966966 //
967967 // if (!_endsWith(id, '/')) {
968968 // id += '/';
969- // }
969+ // }
970970 //
971971 // uri = id + 'full/' + width + ',/0/' + Utils.getImageQuality(service.getProfile()) + '.jpg';
972972 // }
@@ -1135,7 +1135,7 @@ var Manifesto;
11351135 }
11361136 Manifest . prototype . getDefaultTree = function ( ) {
11371137 _super . prototype . getDefaultTree . call ( this ) ;
1138- this . defaultTree . data . type = Manifesto . TreeNodeType . MANIFEST . toString ( ) ;
1138+ this . defaultTree . data . type = Manifesto . Utils . normaliseType ( Manifesto . TreeNodeType . MANIFEST . toString ( ) ) ;
11391139 if ( ! this . isLoaded ) {
11401140 return this . defaultTree ;
11411141 }
@@ -1379,7 +1379,7 @@ var Manifesto;
13791379 */
13801380 Collection . prototype . getDefaultTree = function ( ) {
13811381 _super . prototype . getDefaultTree . call ( this ) ;
1382- this . defaultTree . data . type = Manifesto . TreeNodeType . COLLECTION . toString ( ) ;
1382+ this . defaultTree . data . type = Manifesto . Utils . normaliseType ( Manifesto . TreeNodeType . COLLECTION . toString ( ) ) ;
13831383 this . _parseManifests ( this ) ;
13841384 this . _parseCollections ( this ) ;
13851385 Manifesto . Utils . generateTreeNodeIds ( this . defaultTree ) ;
@@ -1393,7 +1393,7 @@ var Manifesto;
13931393 tree . label = manifest . parentLabel || Manifesto . TranslationCollection . getValue ( manifest . getLabel ( ) , this . options . locale ) || 'manifest ' + ( i + 1 ) ;
13941394 tree . navDate = manifest . getNavDate ( ) ;
13951395 tree . data . id = manifest . id ;
1396- tree . data . type = Manifesto . TreeNodeType . MANIFEST . toString ( ) ;
1396+ tree . data . type = Manifesto . Utils . normaliseType ( Manifesto . TreeNodeType . MANIFEST . toString ( ) ) ;
13971397 parentCollection . defaultTree . addNode ( tree ) ;
13981398 }
13991399 }
@@ -1406,7 +1406,7 @@ var Manifesto;
14061406 tree . label = collection . parentLabel || Manifesto . TranslationCollection . getValue ( collection . getLabel ( ) , this . options . locale ) || 'collection ' + ( i + 1 ) ;
14071407 tree . navDate = collection . getNavDate ( ) ;
14081408 tree . data . id = collection . id ;
1409- tree . data . type = Manifesto . TreeNodeType . COLLECTION . toString ( ) ;
1409+ tree . data . type = Manifesto . Utils . normaliseType ( Manifesto . TreeNodeType . COLLECTION . toString ( ) ) ;
14101410 parentCollection . defaultTree . addNode ( tree ) ;
14111411 this . _parseCollections ( collection ) ;
14121412 }
@@ -1489,7 +1489,7 @@ var Manifesto;
14891489 Range . prototype . _parseTreeNode = function ( node , range ) {
14901490 node . label = Manifesto . TranslationCollection . getValue ( range . getLabel ( ) , this . options . locale ) ;
14911491 node . data = range ;
1492- node . data . type = Manifesto . TreeNodeType . RANGE . toString ( ) ;
1492+ node . data . type = Manifesto . Utils . normaliseType ( Manifesto . TreeNodeType . RANGE . toString ( ) ) ;
14931493 range . treeNode = node ;
14941494 var ranges = range . getRanges ( ) ;
14951495 if ( ranges && ranges . length ) {
@@ -2002,13 +2002,13 @@ var Manifesto;
20022002 node . parentNode = this ;
20032003 } ;
20042004 TreeNode . prototype . isCollection = function ( ) {
2005- return this . data . type === Manifesto . TreeNodeType . COLLECTION . toString ( ) ;
2005+ return this . data . type === Manifesto . Utils . normaliseType ( Manifesto . TreeNodeType . COLLECTION . toString ( ) ) ;
20062006 } ;
20072007 TreeNode . prototype . isManifest = function ( ) {
2008- return this . data . type === Manifesto . TreeNodeType . MANIFEST . toString ( ) ;
2008+ return this . data . type === Manifesto . Utils . normaliseType ( Manifesto . TreeNodeType . MANIFEST . toString ( ) ) ;
20092009 } ;
20102010 TreeNode . prototype . isRange = function ( ) {
2011- return this . data . type === Manifesto . TreeNodeType . RANGE . toString ( ) ;
2011+ return this . data . type === Manifesto . Utils . normaliseType ( Manifesto . TreeNodeType . RANGE . toString ( ) ) ;
20122012 } ;
20132013 return TreeNode ;
20142014 } ( ) ) ;
0 commit comments