diff --git a/simpleclient/index.php b/simpleclient/index.php index d2a5668d..0e0314cb 100644 --- a/simpleclient/index.php +++ b/simpleclient/index.php @@ -47,7 +47,7 @@ $fuji_server = 'http://localhost:1071/fuji/api/v1/evaluate'; $fuji_username = 'marvel'; $fuji_password = 'wonderwoman'; -$metric_version = "metrics_v0.7_software"; #"metrics_v0.7_software_cessda"; #"metrics_v0.5"; #"metrics_v0.7_software"; +#$metric_version = "metrics_v0.7_software"; #"metrics_v0.7_software_cessda"; #"metrics_v0.5"; #"metrics_v0.7_software"; $usegithub = true; ################################################################ @@ -83,7 +83,14 @@ $input_service_type = $_POST['service_type']; } } +if(isset($_POST['metric_version'])){ + $input_metric_version=$_POST['metric_version']; +}else{ + $input_metric_version="metrics_v0.7_software"; +} + $allowed_service_types = array('oai_pmh'=>'OAI-PMH','ogc_csw'=>'OGC CSW', 'sparql'=>'SPARQL'); +$allowed_metric_versions = array('metrics_v0.7_software'=>'software-agnostic', 'metrics_v0.7_software_cessda'=>'software-CESSDA') ?>