Library Documents 0,getToken(ExternalIPAddress)+":"+getToken(GreenLight_Client_Https_Port),"127.0.0.1:"+getToken(GreenLight_Client_Https_Port)),__LibraryServer__)}";> 0,if((getToken(ExternalIPAddress)="__RemoteIP__") or ("__RemoteIP__"="127.0.0.1"),"127.0.0.1:"+getToken(GreenLight_Client_Https_Port),getToken(ExternalIPAddress)+":"+getToken(GreenLight_Client_Https_Port)),"127.0.0.1:"+getToken(GreenLight_Client_Https_Port))}";> If the document type is not in the list, enter it here.

The leading period is optional.">
$Date$ - The current date in MM-dd-yyyy format
$Time$ - The current time in HHmmss format
$Name$ - The document name
$Filename$ - The filename of the document
$Fileext$ - The file extension of the document
$ID$ - The document ID


">

Debugging

User-Agent{@mid("__user-agent__",0,20)+"..."}
RemoteIP__RemoteIP__
LibraryServer__LibraryServer__
IsLocalLibrary__IsLocalLibrary__
LibraryClient__LibraryClient__
SessionID__SessionID__
Page__Page__
Tab__Tab__
ClientHomeDir__ClientHomeDir__
FilterSet1__FilterSet1__
FilterSet2__FilterSet2__
FilterSet3__FilterSet3__
StartRecord__StartRecord__
CalcStartRecord__CalcStartRecord__
MaxRecord__MaxRecords__
NextPage__NextPage__
DocumentID__DocumentID__
DocumentURL__DocumentURL__
FilesCheckedOut__FilesCheckedOut__
IsAdmin__IsAdmin__
Document_Edit__Permit_Document_Edit__
Document_Add__Permit_Document_Add__
Document_Delete__Permit_Document_Delete__
Edit_Document_Settings__Permit_Edit_Document_Settings__
Edit_Client_Settings__Permit_Edit_Client_Settings__

Library Documents

Editing Document: __Document_Name__


0) if (fileExists("__DocumentURL__")) strContent = fileGetContent("__DocumentURL__") else boolError = true endif else strArgs = "DocumentID=__DocumentID__&HashID=&Organization=&Edit=true&QuickEdit=true&DisableViewer=true" strContent = scriptExec(Library_getDocumentContent,true,strArgs) if (startsWith(strContent,"Library Server:")) boolError = true endif endif else strContent = fileGetContent("__DocumentURL__") endif strInclude = fileGetContent(getToken("packageurl_library")+"doc/server/library_documents_include_quick_edit.txt") if (boolError) strResult = getElement(strInclude,2,"@") else //Escape all & symbols so any special entities are resolved correctly in textarea. Need to use two steps to do this //so the target and replacement don't each include &'s strContent = replaceSubstring(strContent,char(0X26),"%"+"#38"+char(0x3b)) strContent = replaceSubstring(strContent,"%"+"#38","&") strContent = replaceSubstring(strContent,char(0X3C),"<"+char(0x3b)) strContent = replaceSubstring(strContent,char(0X3E),">"+char(0x3b)) strContent = replaceSubstring(strContent,char(0x7b),"&"+"#123"+char(0x3b)) strContent = replaceSubstring(strContent,char(0x7d),"&"+"#125"+char(0x3b)) strResult = getElement(strInclude,1,"@") strResult = replaceSubstring(strResult,"~strContent~",strContent) endif scriptSetResult(strResult) ";>

Library Documents

Editing Document: __Document_Name__


0) if (fileExists("__DocumentURL__")) strContent = fileGetContent("__DocumentURL__") else boolError = true endif else strArgs = "DocumentID=__DocumentID__&HashID=&Organization=&Edit=true&QuickEdit=true&DisableViewer=true" strContent = scriptExec(Library_getDocumentContent,true,strArgs) if (startsWith(strContent,"Library Server:")) boolError = true endif endif else strContent = fileGetContent("__DocumentURL__") endif strInclude = fileGetContent(getToken("packageurl_library")+"doc/server/library_documents_include_quick_edit.txt") if (boolError) strResult = getElement(strInclude,2,"@") else //Escape all & symbols so any special entities are resolved correctly in textarea. Need to use two steps to do this //so the target and replacement don't each include &'s strContent = replaceSubstring(strContent,char(0X26),"%"+"#38"+char(0x3b)) strContent = replaceSubstring(strContent,"%"+"#38","&") strContent = replaceSubstring(strContent,char(0X3C),"<"+char(0x3b)) strContent = replaceSubstring(strContent,char(0X3E),">"+char(0x3b)) strContent = replaceSubstring(strContent,char(0x7b),"&"+"#123"+char(0x3b)) strContent = replaceSubstring(strContent,char(0x7d),"&"+"#125"+char(0x3b)) strResult = getElement(strInclude,0,"@") strResult = replaceSubstring(strResult,"~strContent~",strContent) endif scriptSetResult(strResult) ";>

Apply template

This will apply the settings in the template for this library client to all documents in the client.

Delete Document

Delete "__Document_Name__"?
Document ID: "__DocumentID__"

Document Information

'delete')">
Delete Document Organize Posting Notification Schedule Formatting Embed History Notes
This is a template
Document ID: __DocumentID__
0) and ('__Library_Client__'<>'-- select --')"> 0)"> 2)"> 2)">
Library Client
Library Client
Document Name
Document Name __!Document_Name__
Document ID __DocumentID__
Location  

Select a location for this document

Document Type
Other Type " size="6" {@htmlToolTip(__showTooltips__,"__help_Other_Document_Type__","__user-agent__")}>
Document Type __Document_Ext__
Ftp Account
Filename
Content
URL
Library Host
Document ID
Params

Sets

Set 1 Set 4
Set 2 Set 5
Set 3 Set 6

Description


Tags:

> This document can be used as a template for other documents
Post to FTP site
Ftp Account
Filename

Post to library
Library Host
Client

Post to file
Filename

Email Notification

Send notification
> Enable notification when a document is initially added to the library.
Email List
> Include the document in the body of the email
> Include the document as an attachment
Subject
Body

Scheduled Task

> Enable this task
Interval
Start Date ' size='10'> Start Time ' size='10'>

Interval between executions
Years Months Days Hours Minutes Seconds

Days to execute
> Sun > Mon > Tue > Wed > Thu > Fri > Sat
Last Execution: __TaskLastExecuted__
Next Execution: __TaskNextExecution__

Formatting

> Use an external viewer to format this document
Viewer

This tab is used to set options for maintaining copies after each revision.

It also contains a list of documents that have been saved and allows for restoring to a previous version

Hyperlinks

Html markup to embed this document as a URL:


<a href="https://__LibraryServer__/view__CalcExtension__?Network=Library&ID=getDocumentContent&DocumentID=__DocumentID__">__Document_Name__</a>

Test it: __Document_Name__ Test it: __Document_Name__

Widgets

Html markup to embed the entire document as a widget:


<a href="https://__LibraryServer__/View__CalcExtension__?Network=Library&ID=getWidget&Library=__LibraryClient__&DocumentID=__DocumentID__">__Document_Name__</a>

Test it: __Document_Name__ Test it: __Document_Name__

To specifiy a named widget within the document:


<a href="https://__LibraryServer__/View__CalcExtension__?Network=Library&ID=getWidget&Library=__LibraryClient__&DocumentID=__DocumentID__&Widget=widgetname">__Document_Name__</a>

Images

To use an image from the library...


<img src='https://__LibraryServer__/View__CalcExtension__/?Network=Library&ID=getDocumentContent&DocumentID=__DocumentID__&HashID=&Organization=Widget'>



Include Tags

If the document is being processed by an Aspect server, the following include tag can be used:


<include type:widget; server:"__LibraryServer__"; library:"__LibraryClient__"; name:"__Document_Name__"; params:""; secure:"true"; Params:"Width=200">



In an <Iframe> tag

Notes


">

Documents in "__LibraryClientName__"

Display
Sets {@htmlSelect(Library_Document_Set1,"FilterSet1","__FilterSet1__","","","Library_Client=__LibraryClient__")} {@htmlSelect(Library_Document_Set2,"FilterSet2","__FilterSet2__","","","Library_Client=__LibraryClient__")} {@htmlSelect(Library_Document_Set3,"FilterSet3","__FilterSet3__","","","Library_Client=__LibraryClient__")} Add a new library document
UpdateDocuments
">
Edit the Template for this library client     Apply the template to all documents in this library client
First Page 0"> Previous 0)"> Previous Next Next Last Page Page __DocumentsTable_Page__ of __DocumentsTable_PageCount__
"; sort: "Set1,Set2,Set3,Document_Name"; filter: "(not(isTemplate)) and (len(trim(Document_Name))>=0) and ('Library_Client'='__LibraryClient__') and (('__FilterSet1__'='0') or (Set1ID='__FilterSet1__') or (startsWith('__FilterSet1__','__FilterSet1'))) and (('__FilterSet2__'='0') or (Set2ID='__FilterSet2__') or (startsWith('__FilterSet2__','__FilterSet2'))) and (('__FilterSet3__'='0') or (Set3ID='__FilterSet3__') or (startsWith('__FilterSet3__','__FilterSet3')))"; class: basic1; name: "DocumentsTable"; startrecord: __CalcStartRecord__; maxrecords: __MaxRecords__; tableborder: "true"; debug: "false"; > "; sort: "Set1,Set2,Set3,Document_Name"; filter: "(not(isTemplate)) and (len(trim(Document_Name))>=0) and ('Library_Client'='__LibraryClient__') and (('__FilterSet1__'='0') or (Set1ID='__FilterSet1__') or (startsWith('__FilterSet1__','__FilterSet1'))) and (('__FilterSet2__'='0') or (Set2ID='__FilterSet2__') or (startsWith('__FilterSet2__','__FilterSet2'))) and (('__FilterSet3__'='0') or (Set3ID='__FilterSet3__') or (startsWith('__FilterSet3__','__FilterSet3')))"; class: basic1; tableborder: "true"; name: "DocumentsTable"; startrecord: __CalcStartRecord__; maxrecords: __MaxRecords__; debug: "false"; >