|
|
@ -43,21 +43,6 @@ foreach my $share ($a->get_all_by_prop(type=>'share')){ |
|
|
|
my $desc = $share->prop('Name') || $name; |
|
|
|
my $desc = $share->prop('Name') || $name; |
|
|
|
my $recycledir = (($share->prop('RecycleBin') || 'disabled') eq 'disabled') ? |
|
|
|
my $recycledir = (($share->prop('RecycleBin') || 'disabled') eq 'disabled') ? |
|
|
|
'' : $share->prop('RecycleBinDir') || 'Recycle Bin'; |
|
|
|
'' : $share->prop('RecycleBinDir') || 'Recycle Bin'; |
|
|
|
my $meta = (($share->prop('AjaxplorerIndex') || 'disabled') eq 'disabled') ? |
|
|
|
|
|
|
|
'' : '"index.lucene" => array( |
|
|
|
|
|
|
|
"index_content" => "1", |
|
|
|
|
|
|
|
"index_meta_fields" => "anything_area", |
|
|
|
|
|
|
|
"repository_specific_keywords" => "" |
|
|
|
|
|
|
|
),' . "\n "; |
|
|
|
|
|
|
|
$meta .= (($share->prop('AjaxplorerMetadata') || 'disabled') eq 'disabled') ? |
|
|
|
|
|
|
|
'' : '"metastore.serial" => array( |
|
|
|
|
|
|
|
"METADATA_FILE_LOCATION" => "outside", |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
"meta.user" => array ( |
|
|
|
|
|
|
|
"meta_fields" => "tags,stars_rate,css_label,anything_area", |
|
|
|
|
|
|
|
"meta_labels" => "Tags,Rate,Type,Note", |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
"meta.filehasher" => array(),'; |
|
|
|
|
|
|
|
$OUT .=<<"EOF"; |
|
|
|
$OUT .=<<"EOF"; |
|
|
|
|
|
|
|
|
|
|
|
\$REPOSITORIES["$name"] = array( |
|
|
|
\$REPOSITORIES["$name"] = array( |
|
|
@ -74,7 +59,19 @@ foreach my $share ($a->get_all_by_prop(type=>'share')){ |
|
|
|
"PAGINATION_THRESHOLD" => 500, |
|
|
|
"PAGINATION_THRESHOLD" => 500, |
|
|
|
"PAGINATION_NUMBER" => 200, |
|
|
|
"PAGINATION_NUMBER" => 200, |
|
|
|
"META_SOURCES" => array( |
|
|
|
"META_SOURCES" => array( |
|
|
|
$meta |
|
|
|
"index.lucene" => array( |
|
|
|
|
|
|
|
"index_content" => "1", |
|
|
|
|
|
|
|
"index_meta_fields" => "anything_area", |
|
|
|
|
|
|
|
"repository_specific_keywords" => "" |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
"metastore.serial" => array( |
|
|
|
|
|
|
|
"METADATA_FILE_LOCATION" => "outside", |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
"meta.user" => array ( |
|
|
|
|
|
|
|
"meta_fields" => "tags,stars_rate,css_label,anything_area", |
|
|
|
|
|
|
|
"meta_labels" => "Tags,Rate,Type,Note", |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
"meta.filehasher" => array(), |
|
|
|
) |
|
|
|
) |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
); |
|
|
|