Commit b5aad149b2c8708001363da3bcc54a5611eabf6c

Authored by Elena.Budnik
1 parent 9d2f7fc9

only LOCAL BASE

src/DDSERVICES/REST/EPN-TAP.README 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +EPN-TAP, README
  2 +
  3 +1. generateGranulesIndex.php ( or utils/generateGranulesIndex.php ) is launched to prepare granule indices en advance
  4 +2. generateGranulesIndex.php, getGranulesIndex.php and getGranulesSize.php - check if the file RestrictedAccess does not
  5 + exist in VI location in DDBASE. RestrictedAccess is added manually ( touch RestrictedAccess)
... ...
src/DDSERVICES/REST/generateGranulesIndex.php
... ... @@ -14,6 +14,8 @@
14 14 foreach ($dataSets as $VI)
15 15 {
16 16 $id = $VI->getElementsByTagName('NAME')->item(0)->nodeValue;
  17 + $base = $VI->getElementsByTagName('NAME')->item(0)->getAttribute('base');
  18 + if ($base !== "LOCAL") continue; // REMOTE BASE
17 19 $main = array();
18 20 $index = array();
19 21 $location = $VI->getElementsByTagName("LOCATION")->item(0)->nodeValue;
... ...
src/DDSERVICES/REST/utils/generateGranulesIndex.php
... ... @@ -14,6 +14,10 @@
14 14 foreach ($dataSets as $VI)
15 15 {
16 16 $id = $VI->getElementsByTagName('NAME')->item(0)->nodeValue;
  17 +
  18 + $base = $VI->getElementsByTagName('NAME')->item(0)->getAttribute('base');
  19 + if ($base !== "LOCAL") continue; // REMOTE BASE
  20 +
17 21 $main = array();
18 22 $index = array();
19 23 $location = $VI->getElementsByTagName("LOCATION")->item(0)->nodeValue;
... ...