host ::
přihlásit
SSTP5
Hledej
Přidej jednotlivé TEIP5
Přidej hromadně nahrané TEIP5
Personalizace
Vaše upozornění
Vaše košíky
Vaše vyhledávání
Nápověda
Administrativa
Konfigurace WebSubmit
Hlavní stránka
>
Admin Area
> Edit WebSubmit Checking Function
Edit WebSubmit Checking Function
Main Menu
0.
Show all
1.
Available Document Types
2.
Add New Document Type
3.
Remove Document Type
4.
Available Actions
5.
Available Checks
6.
Available Elements
7.
Available Functions
8.
Organise Main Page
9.
Guide
Enter Action Details:
Check Name:
AUCheck
Creation Date:
1998-08-18
Check Description:
function AUCheck(txt) { var res=1; tmp=txt.indexOf("\015"); while (tmp != -1) { left=txt.substring(0,tmp); right=txt.substring(tmp+2,txt.length); txt=left + "\012" + right; tmp=txt.indexOf("\015"); } tmp=txt.indexOf("\012"); if (tmp==-1){ line=txt; txt='';} else{ line=txt.substring(0,tmp); txt=txt.substring(tmp+1,txt.length);} while (line != ""){ coma=line.indexOf(","); left=line.substring(0,coma); right=line.substring(coma+1,line.length); coma2=right.indexOf(","); space=right.indexOf(" "); if ((coma==-1)||(left=="")||(right=="")||(space!=0)||(coma2!=-1)){ res=0; error_log=line; } tmp=txt.indexOf("\012"); if (tmp==-1){ line=txt; txt='';} else{ line=txt.substring(0,tmp-1); txt=txt.substring(tmp+1,txt.length);} } if (res == 0){ alert("This author name cannot be managed \: \012\012" + error_log + " \012\012It is not in the required format!\012Put one author per line and a comma (,) between the name and the firstname initial letters. \012The name is going first, followed by the firstname initial letters.\012Do not forget the whitespace after the comma!!!\012\012Example \: Put\012\012Le Meur, J Y \012Baron, T \012\012for\012\012Le Meur Jean-Yves & Baron Thomas."); return 0; } return 1; }