@@ -1540,8 +1540,9 @@ public ListOfAasSupplementaryFile GetListOfSupplementaryFiles()
1540
1540
1541
1541
// get the origin from the package
1542
1542
PackagePart originPart = null ;
1543
- xs = _openPackage . GetRelationshipsByType (
1544
- "http://admin-shell.io/aasx/relationships/aasx-origin" ) ;
1543
+ xs = _openPackage . GetRelationshipsByType ( "http://admin-shell.io/aasx/relationships/aasx-origin" ) ;
1544
+ var test = xs . Count ( ) ;
1545
+ if ( xs . Count ( ) <= 0 ) xs = _openPackage . GetRelationshipsByType ( "http://www.admin-shell.io/aasx/relationships/aasx-origin" ) ;
1545
1546
foreach ( var x in xs )
1546
1547
if ( x . SourceUri . ToString ( ) == "/" )
1547
1548
{
@@ -1558,7 +1559,8 @@ public ListOfAasSupplementaryFile GetListOfSupplementaryFiles()
1558
1559
{
1559
1560
// get the specs from the origin
1560
1561
PackagePart specPart = null ;
1561
- xs = originPart . GetRelationshipsByType ( "http://www.admin-shell.io/aasx/relationships/aas-spec" ) ;
1562
+ xs = originPart . GetRelationshipsByType ( "http://admin-shell.io/aasx/relationships/aas-spec" ) ;
1563
+ if ( xs . Count ( ) <= 0 ) xs = originPart . GetRelationshipsByType ( "http://www.admin-shell.io/aasx/relationships/aas-spec" ) ;
1562
1564
foreach ( var x in xs )
1563
1565
{
1564
1566
//specPart = _openPackage.GetPart(x.TargetUri);
@@ -1573,8 +1575,8 @@ public ListOfAasSupplementaryFile GetListOfSupplementaryFiles()
1573
1575
if ( specPart != null )
1574
1576
{
1575
1577
// get the supplementaries from the package, derived from spec
1576
- xs = specPart . GetRelationshipsByType ( "http://www. admin-shell.io/aasx/relationships/aas-suppl" ) ;
1577
- if ( xs == null ) xs = specPart . GetRelationshipsByType ( "http://www.admin-shell.io/aasx/relationships/aas-suppl" ) ;
1578
+ xs = specPart . GetRelationshipsByType ( "http://admin-shell.io/aasx/relationships/aas-suppl" ) ;
1579
+ if ( xs . Count ( ) <= 0 ) xs = specPart . GetRelationshipsByType ( "http://www.admin-shell.io/aasx/relationships/aas-suppl" ) ;
1578
1580
foreach ( var x in xs )
1579
1581
{
1580
1582
result . Add (
0 commit comments