next up previous contents
Next: 其他 Up: 客製化修訂 Previous: 註冊預設身份   Contents

投稿補充檔案

  1. 完成投稿後,還可以上傳補充文件,上傳時必須輸入文件標題,但輸入後系統還是判斷標題無效,原因是第一次上傳補充檔案時,已設定「預設語言」,再上傳時若「預設語言」不同,則無法上傳。若要取消此判斷,可以下列方式先取消標題語系判斷。
    [root@csie5 ojs-isend]# diff -urNwbBE ../ojs-2.4.2/classes/author/form/submit/AuthorSubmitSuppFileForm.inc.php classes/author/form/submit/AuthorSubmitSuppFileForm.inc.php 
    --- ../ojs-2.4.2/classes/author/form/submit/AuthorSubmitSuppFileForm.inc.php	2013-03-05 07:53:15.000000000 +0800
    +++ classes/author/form/submit/AuthorSubmitSuppFileForm.inc.php	2014-04-06 20:44:26.538019331 +0800
    @@ -57,7 +57,7 @@
     		}
     
     		// Validation checks for this form
    -		$this->addCheck(new FormValidatorLocale($this, 'title', 'required', 'author.submit.suppFile.form.titleRequired', $this->getRequiredLocale()));
    +		$this->addCheck(new FormValidatorLocale($this, 'title', 'optional', 'author.submit.suppFile.form.titleRequired', $this->getRequiredLocale()));
     		$this->addCheck(new FormValidatorPost($this));
     	}
    
    
    [root@csie5 ojs-isend]# diff -urNwbBE ../ojs-2.4.2/classes/submission/form/SuppFileForm.inc.php classes/submission/form/SuppFileForm.inc.php
    --- ../ojs-2.4.2/classes/submission/form/SuppFileForm.inc.php	2013-03-05 07:53:15.000000000 +0800
    +++ classes/submission/form/SuppFileForm.inc.php	2014-04-06 20:43:46.412887456 +0800
    @@ -54,7 +54,7 @@
     		}
     
     		// Validation checks for this form
    -		$this->addCheck(new FormValidatorLocale($this, 'title', 'required', 'author.submit.suppFile.form.titleRequired'));
    +		$this->addCheck(new FormValidatorLocale($this, 'title', 'optional', 'author.submit.suppFile.form.titleRequired'));
     		$this->addCheck(new FormValidatorURL($this, 'remoteURL', 'optional', 'submission.layout.galleyRemoteURLValid'));
     		$this->addCheck(new FormValidatorPost($this));
     	}
    



2016-10-25