| Version: | 1.1 Stable |
|---|---|
| Release date: | 2011/06/13 |
This is Maarch Capture Connector Server. It is intended to work with Maarch Capture Connector Client.
Maarch Capture Connector (MCC) is the replacement for Maarch Scansnap Connector (MSC). MSC has been entirely rewritten in PHP. There are multiple reasons for that :
So here is the good news:
File listing for the MCC Server:
MCC_Server/ |-- config/ | -- config_mass.xml.default # A sample config file for MCC server with mass scan mode | -- config_mcc.xml.default # A sample config file for MCC server with entreprise application | -- config_mlb.xml.default # A sample config file for MCC server with letterbox application | -- form.dtd # DTD of form.xml | -- form.xml.default # A sample form for entreprise application | -- form_mlb.xml.default # A sample form for letterbox application | -- structure.xml.default # A sample structure AutoImport for entreprise application | -- structure_mlb.xml.default # A sample structure AutoImport for letterbox application |-- outcome/ # In mass scan mode, processed files are | # backed up here |-- logs/ |-- class_db.php # Class to handle connections to the database |-- get_datas.php # Script to exchange informations with MCC Client |-- mcc_server.php # Main script
Main configuration is done in the <CONFIG> section. Here are the available configuration tags :
The rest is database configuration. You must set up server and credentials to access the database of the application in which you intend to record documents with MCC (Maarch LetterBox or Maarch Framework-based applications, like Maarch Entreprise).
First you have to change the location of the DTD:
<!DOCTYPE ROOT SYSTEM "http://127.0.0.1/mcc/server/config/form.dtd">
You can set the general structure of the form with:
<FORM>
<TITLE>Maarch Capture Connector</TITLE>
<WIDTH>455</WIDTH>
<HEIGHT>350</HEIGHT>
<CENTER>true</CENTER>
You can edit/create fields with:
<INPUT>
<TYPE>comboBox</TYPE>
<ID>status</ID>
<LABEL>Statut</LABEL>
<AUTOCOMPLETE>false</AUTOCOMPLETE>
<VALUES>
<VALUE><ID>NEW</ID><LABEL>Nouveau document</LABEL></VALUE>
<VALUE><ID>VAL</ID><LABEL>A valider</LABEL></VALUE>
<VALUE><ID>END</ID><LABEL>Cloturé</LABEL></VALUE>
<VALUE><ID>TRT</ID><LABEL>A traiter</LABEL></VALUE>
</VALUES>
<DEFAULT_VALUE>NEW</DEFAULT_VALUE>
<SHOW_ID>true</SHOW_ID>
<MANDATORY>true</MANDATORY>
</INPUT>
<INPUT>
<TYPE>comboBox</TYPE>
<ID>folders</ID>
<LABEL>Dossiers</LABEL>
<AUTOCOMPLETE>true</AUTOCOMPLETE>
<TABLE>
<TABLE_NAME>folders</TABLE_NAME>
<FOREIGN_KEY>folders_system_id</FOREIGN_KEY>
<FOREIGN_LABEL>folder_name</FOREIGN_LABEL>
<WHERE_CLAUSE>status = 'NEW'</WHERE_CLAUSE>
<ORDER>order by folder_name</ORDER>
</TABLE>
<DEFAULT_VALUE></DEFAULT_VALUE>
<SHOW_ID>false</SHOW_ID>
<MANDATORY>false</MANDATORY>
</INPUT>
You can prepare the stream for mass import AutoImport using the file structure_XXX.xml
<ROOT>
<FIELDS>
<TYPEID>'9999'</TYPEID>
<TYPIST>'bblier'</TYPIST>
<STATUS>status</STATUS>
<SCANDATE>'@date'</SCANDATE>
<DESTINATION>entities</DESTINATION>
<PRIORITY>priority</PRIORITY>
<FOLDERID>folders</FOLDERID>
</FIELDS>
</ROOT>
| | This is only needed if you use mass upload. You do not need to chain Maarch AutoImport with MCC Server otherwise. |
| | This is just an outline. Please refer to the Maarch AutoImport documentation for more information. |
You will find the configuration of Maarch AutoImport in the file ./maarch_autoimport/config_*.xml (the exact name of the file depends on your setup) in the main folder of AutoImport.
The only important point is to make sure that the path given in the tag <SCAN_IMPORT_DIRECTORY> of AutoImport is the same as the <TARGET_PATH> of MCC Server.
Make sure you entered the correct parameters for database access.