16 define(
'SQ_SYSTEM_ROOT', dirname(dirname(dirname(dirname(dirname(dirname($_SERVER[
'SCRIPT_FILENAME'])))))));
17 require_once SQ_SYSTEM_ROOT.
'/core/include/init.inc';
18 require_once SQ_SYSTEM_ROOT.
'/core/lib/html_form/html_form.inc';
19 if (!isset($_GET[
'assetid']))
return FALSE;
21 assert_valid_assetid($_GET[
'assetid']);
22 $asset = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($_GET[
'assetid']);
23 if (is_null($asset) || !$asset->writeAccess()) exit();
28 <title>
'<?php echo $asset->attr('name
') ?>' Keyword Extraction</title>
31 background-color: #FFFFFF;
34 body, p, td, ul, li, input, select, textarea{
36 font-family: Arial, Verdana Helvetica, sans-serif;
41 padding: 0px 10px 5px 5px;
42 border: 1px solid #E0E0E0;
53 require_once dirname(__FILE__).
'/../../../../../core/include/backend_outputter.inc';
56 $o->openSection(translate(
'keyword_extraction_for', translate(
'asset_format', $asset->attr(
'name'), $asset->id)));
59 <p><?php echo translate(
'kewords_for_asset', translate(
'asset_format', $asset->attr(
'name'), $asset->id)); ?></p>
60 <p><?php echo translate(
'use_keywords_in_metadata_fields'); ?></p>
64 <legend><b><?php echo translate(
'extracted_keywords'); ?></b></legend>
66 $sm = $GLOBALS[
'SQ_SYSTEM']->am->getSystemAsset(
'search_manager');
68 echo translate(
'keyword_list_not_available');
71 $keywords = $sm->extractKeywords($asset);
72 print implode(
', ', $keywords);
78 $o->openField(
'',
'commit');
79 normal_button(
'cancel', translate(
'close_window'),
'window.close()');