Configuring and testing Publish Adapter as a Contenta server tool
You can configure testPubServeralAi to be a server or support tool.
Procedure
- Relocate testPubServerAi.pl on the server:
from: SDL Contenta_home/encaps/adapters/testing/testPubServerAi.pl
to: SDL Contenta_home/encaps/testPubServerAi.pl
- In the pcmadmin application, add the server tool to the CompoundAscii and CompoundAscii-based objects.
- Menu Label: testPubServerAi
- Tool Type: Server Tool
- Command Line: interp perl testPubServerAi.pl
Note:- Menu Label: Spelling and case are critical in this field.
- Command Line: Spelling and case are critical in this field.
- Tool Type: The description is for a server tool you may want to change to support tool at some time by switching Tool Type for testPubServerAi in pcmadmin. If you do this, you must also follow the steps in the section, Configuring and Testing Publish Adapter as a SDL Contenta Client Tool.
Server Tool - runs on the SDL Contenta Server and can be invoked by the SDL Contenta user from the SDL Contenta Tools menu.
Support Tool - runs on the SDL Contenta Server but can not be invoked by the SDL Contenta user from the SDL Contenta Tools menu; it is not visible on the Tools menu.
Testing the tool
To test your tool after configuring, exit pcmadmin and test the tool from SDL Contenta Explorer.
Procedure
- In SDL Contenta Explorer, select a CompoundAscii or CompoundAscii-based object on which the tool is configured. Start with a single object or small hierarchy of objects.
- Click on the Tools menu.
- Click testPubServerAi
If the tool is not listed, the object you selected was not configured for the tool.
- Look in the publish directory:
- Windows: SDL Contenta_home/TEMP/publish/user
- Unix: /tmp/publish/user
where SDL Contenta_home is the directory where Contenta is installed and user is the name of the user who executed the program.
If you can not locate your document, turn ON debug to level 2 in testPubServerAi.pl (refer to Turning On Debug in the Publish/View Adapter File) then repeat this step (click testPubServerAi) and examine the log file (located on the server).