Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
TagUI Form api
FredGravel
Any Idea why the alert is not working and also I get the "There was a problem with the metadata capture configuration. An error occurred while processing the merged rulesets from the following files: /servicecanada/main/IntERnet/servicecanada_gc_ca/WORKAREA/Gateway-Passerelle/templatedata/ServiceCanada/generic/data/docs/ServiceCanada/eng/home. Please contact your system administrator. "
<SCRIPT language=JavaScript>
function init() {
alert("asd");
}
IWEventRegistry.addFormHandler("onFormInit", init);
</SCRIPT>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE data-capture-requirements SYSTEM "datacapture6.0.dtd">
<!-- ===================================================================== -->
<!-- NOTE: changes to item name="" may require updates in metatagger.cfg, -->
<!-- to edit the Metatagger GUI, edit a label elemet instead. -->
<!-- ===================================================================== -->
<data-capture-requirements type="metadata">
<!-- ===================================================================== -->
<!-- ====================== Start Default Rule ========================== -->
<!-- ===================================================================== -->
<ruleset name="Default_EN">
<script language="JavaScript">
<![CDATA[
function init() {
alert("asd");
}
IWEventRegistry.addFormHandler("onFormInit", init);
]]>
</script>
<view-container name="Core_Metadata_EN">
<view name="Basic Data">
<item name="Title">
<label>Title</label>
<database data-type="VARCHAR(100)"/>
<readonly/>
</item>
<item name="Language">
<label>Language</label>
<readonly/>
</item>
<item name="French URL">
<label>French Path</label>
<readonly/>
</item>
<item name="date_created" rowcontinue="t">
<label>Date Created</label>
<description>Date the document was initially created. Format: yyyy-mm-dd.</description>
<database data-type="DATE" data-format="yyyy-MM-dd" deploy-column="t" searchable="t" />
<text required="t" maxlength="10" validation-regex="^[0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9]$" size="0">
<cgi-callout label="Select" url="/iw-bin/iw_cgi_wrapper.cgi/select_date_en.ipl"/>
</text>
</item>
<item name="date_modified" rowcontinue="t">
<label>Date Modified</label>
<description>Date the document was significantly modified. Format: yyyy-mm-dd.</description>
<database data-type="DATE" data-format="yyyy-MM-dd" deploy-column="t" searchable="t" />
<text required="t" maxlength="10" validation-regex="^[0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9]$" size="0">
<cgi-callout label="Select" url="/iw-bin/iw_cgi_wrapper.cgi/select_date_en.ipl"/>
</text>
</item>
<item name="date_expired" rowcontinue="t">
<label>Expiry Date</label>
<description>Date the content is expected to be reviewed. Format: yyyy-mm-dd.</description>
<database data-type="DATE" data-format="yyyy-MM-dd" deploy-column="t" searchable="t" />
<text required="t" maxlength="10" validation-regex="^[0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9]$" size="0">
<cgi-callout label="Select" url="/iw-bin/iw_cgi_wrapper.cgi/select_date_en.ipl"/>
</text>
</item>
<item name="creator_en">
<label>Creator</label>
<description>Select the organization that best represents the originator of the content. Only 1 term is permitted.</description>
<database deploy-column="t" searchable="t" data-type="VARCHAR(255)" />
<text required="t" size="40" maxlength="100" />
</item>
<item name="dcr_summary_en">
<label>Summary</label>
<database data-type="VARCHAR(100)"/>
<readonly/>
</item>
<item name="pub_number_en">
<label>Publication Number</label>
<database data-type="VARCHAR(100)"/>
<readonly/>
</item>
</view>
</view-container>
</ruleset>
Find more posts tagged with
Comments
FredGravel
Ok I figure it out I read the muanual :rolleyes:
I decide to put it here since I recieive an email about the resolution
You have to put a blank datacapture.cfg in iw-home/local/config/datacapture.cfg
and convert everything in iw-home/local/config/tagui/rulesets60 directory
There is an example in there datacaptureExampleWithValidation.cfg
You call in in metadata-rules.cfg like usual
have fun!!!