</td>
						<td>
							<div style="float:right;"><a href="#" onclick="toggle('pathElem');return false;" title="toggle option to enter full path">full path option</a></div>
							<div class="pathElem">
								<input name="ocrfile" type="file" size="50" onchange="this.form.sourcepath.value = ''" />
								<input name="MAX_FILE_SIZE" type="hidden" value="10000000" />
								<a id="ocrfileinfo" href="#" onclick="return false" title="More Information">
									<img src="../../images/info.png" style="width:15px;" />
								</a>
								<div id="ocrfileinfodialog">
									Browse and select zip file that contains the multiple OCR text files.
								</div>
							</div>
							<div class="pathElem" style="display:none;"> 
								<input name="sourcepath" type="text" style="width:350px;" value="<?php 
echo $procManager->getSourcePath();
?>
" />
								<a id="sourcepathinfo" href="#" onclick="return false" title="More Information">
									<img src="../../images/info.png" style="width:15px;" />
								</a>
								<div id="sourcepathinfodialog">
									File path or URL to folder containing the OCR text files.
									If a URL (e.g. http://) is supplied, the web server needs to be configured to list 
									all files within the directory, or the html output needs to list all images in anchor tags.
									Scripts will attempt to crawl through all child directories.
								</div>
							</div>
						</td>
					</tr>
					<tr>
Beispiel #2
0
 if ($specManager->getProjectType() == 'iplant') {
     $imageProcessor = new ImageProcessor();
     echo '<ul>';
     $imageProcessor->setLogMode(3);
     $imageProcessor->setCollid($collid);
     $imageProcessor->setSpprid($spprid);
     $imageProcessor->processIPlantImages($specManager->getSpecKeyPattern(), $specManager->getLastRunDate());
     echo '</ul>';
 } else {
     echo '<div style="padding:15px;">' . "\n";
     $imageProcessor = new ImageBatchProcessor();
     $imageProcessor->setLogMode(1);
     $imageProcessor->initProcessor();
     $imageProcessor->setCollArr(array($collid => array('pmterm' => $specManager->getSpecKeyPattern())));
     $imageProcessor->setDbMetadata(1);
     $imageProcessor->setSourcePathBase($specManager->getSourcePath());
     $imageProcessor->setTargetPathBase($specManager->getTargetPath());
     $imageProcessor->setImgUrlBase($specManager->getImgUrlBase());
     $imageProcessor->setServerRoot($serverRoot);
     if ($specManager->getWebPixWidth()) {
         $imageProcessor->setWebPixWidth($specManager->getWebPixWidth());
     }
     if ($specManager->getTnPixWidth()) {
         $imageProcessor->setTnPixWidth($specManager->getTnPixWidth());
     }
     if ($specManager->getLgPixWidth()) {
         $imageProcessor->setLgPixWidth($specManager->getLgPixWidth());
     }
     if ($specManager->getWebMaxFileSize()) {
         $imageProcessor->setWebFileSizeLimit($specManager->getWebMaxFileSize());
     }
											For example, regular expression /^(WIS-L-\d{7})\D*/ will extract catalog number WIS-L-0001234 
											from image file named WIS-L-0001234_a.jpg. For more information on creating regular expressions,
											Google &quot;Regular Expression PHP Tutorial&quot;
										</div>
									</div>
								</div>
								<?php 
        if ($projectType != 'idigbio' && $projectType != 'iplant') {
            ?>
									<div id="sourcepathrow" style="clear:both;">
										<div style="width:180px;float:left;">
											<b>Image source path:</b>
										</div>
										<div style="float:left;"> 
											<input name="sourcepath" type="text" style="width:400px;" value="<?php 
            echo $specManager->getSourcePath();
            ?>
" />
											<a id="sourcepathinfo" href="#" onclick="return false" title="More Information">
												<img src="../../images/info.png" style="width:15px;" />
											</a>
											<div id="sourcepathinfodialog">
												Server path to folder containing source images.
												If a URL (e.g. http://) is supplied, the web server needs to be configured to list 
												all files within the directory, or the html output needs to list all images in anchor tags.
												Scripts will attempt to crawl through all child directories.
											</div>
										</div>
									</div>
									<div id="targetpathrow" style="clear:both;">
										<div style="width:180px;float:left;">