Skip to content

Commit

Permalink
Try one of rights
Browse files Browse the repository at this point in the history
  • Loading branch information
jajreijnders committed Dec 1, 2021
1 parent 6c4231b commit f9f519d
Show file tree
Hide file tree
Showing 2 changed files with 341 additions and 0 deletions.
26 changes: 26 additions & 0 deletions oai-pmh/management/rights.php
@@ -0,0 +1,26 @@
<?php

require_once('../../config.php');

$xmlfile = $argv[1];

$source_url = $xmlfile;
$xml = simplexml_load_file($xmlfile);
$nodes = $xml->xpath('//term');
// Pls help haha


echo count($nodes);
for ($i = 0; $i < count($nodes); $i++) {
$node = $nodes[$i];

//$ns = $node->getNamespaces();
$c = $node->children();

//$tempTaxon = (string)$c->termIdentifier;
$tempLabel = (string)$c->caption->langstring;
echo $tempLabel;

}


0 comments on commit f9f519d

Please sign in to comment.