Skip to content

Commit 32a34be

Browse files
committed
change criteria to lenient and upload size
1 parent cbd5d5c commit 32a34be

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

dataset_validation.module

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ require_login(drupal_get_destination());
7373
'file_validate_extensions' => array('nc'),
7474
// IMPORTANT for allowing file upload:
7575
// this works only when changing the /etc/php5/apache2/php.ini post_max_size and filesize in apache to 200M
76-
'file_validate_size' => array(200 * 1024 * 1024),
76+
'file_validate_size' => array(1500 * 1024 * 1024),
7777
),
7878
'#upload_location' => 'public://dataset_validation_folder/',
7979
);
@@ -109,16 +109,16 @@ function dataset_validation_submit($form, &$form_state){
109109

110110
if($test1 =='cf:1.6' AND $test2 =='0'){
111111
drupal_set_message(t("You are testing you dataset \"".$fname["#file"]->filename."\" against CF-1.6 convention"), 'status info');
112-
exec('compliance-checker -v --format=html --output='.$ex_out_cf.' --test='.$test1.' '.$fdir.'/'.$path, $out, $status);
112+
exec('compliance-checker -v -c lenient --format=html --output='.$ex_out_cf.' --test='.$test1.' '.$fdir.'/'.$path, $out, $status);
113113
$message = file_get_contents($ex_out_cf);
114114
}elseif($test1 =='0' AND $test2 =='acdd'){
115115
drupal_set_message(t("You are testing you dataset \"".$fname["#file"]->filename."\" against ACDD convention"), 'status info');
116-
exec('compliance-checker -v --format=html --output='.$ex_out_acdd.' --test='.$test2.' '.$fdir.'/'.$path, $out, $status);
116+
exec('compliance-checker -v -c lenient --format=html --output='.$ex_out_acdd.' --test='.$test2.' '.$fdir.'/'.$path, $out, $status);
117117
$message = file_get_contents($ex_out_acdd);
118118
}elseif($test1 =='cf:1.6' AND $test2 =='acdd'){
119119
drupal_set_message(t("You are testing you dataset \"".$fname["#file"]->filename."\" against CF-1.6 and ACDD convention"), 'status info');
120-
exec('compliance-checker -v --format=html --output='.$ex_out_cf.' --test='.$test1.' '.$fdir.'/'.$path, $out, $status1);
121-
exec('compliance-checker -v --format=html --output='.$ex_out_acdd.' --test='.$test2.' '.$fdir.'/'.$path, $out, $status2);
120+
exec('compliance-checker -v -c lenient --format=html --output='.$ex_out_cf.' --test='.$test1.' '.$fdir.'/'.$path, $out, $status1);
121+
exec('compliance-checker -v -c lenient --format=html --output='.$ex_out_acdd.' --test='.$test2.' '.$fdir.'/'.$path, $out, $status2);
122122
$status = $status1 + $status2;
123123
//put together the html outputs
124124
$message = file_get_contents($ex_out_cf).file_get_contents($ex_out_acdd);

0 commit comments

Comments
 (0)