I have quite a few pictures that have already been added to ResourceSpace. Most already had metadata added via exiftool outside of ResourceSpace. Things like Caption, City, State. The files that already had the metadata added was picked up when the files were added to ResourceSpace just fine
I have several hundred files that I have added metadata to after they had been added to ResourceSpace but I can't get ResourceSpace to update this data. I have all of my files in a folder and run staticsync.php daily on this folder.
I have tried running the following scripts:
staticupdateexif.php
update_exiftool_field.php
reindex_field.php
The commands seem to run and complete but the metadata is not pulled from the pictures.
Here are the staticsync settings:
$syncdir="/var/www/home/photos"; # The sync folder
$nogo="[data][thumbnails][video][unsorted][online][negative_scans][photo_scans]"; # A list of folders to ignore within
the sign folder.
$staticsync_autotheme=false; # Automatically create themes based on the first and second levels of the sync folder str
ucture.
# Allow unlimited theme levels to be created based on the folder structure.
# Script will output a new $theme_category_levels number which must then be updated in config.php
$staticsync_folder_structure=false;
# Mapping extensions to resource types for sync'd files
# Format: staticsync_extension_mapping[resource_type]=array("extension 1","extension 2");
$staticsync_extension_mapping_default=1;
$staticsync_extension_mapping[3]=array("mov","3gp","avi","mpg","mp4","flv"); # Video
$staticsync_extension_mapping[4]=array("flv");
# Uncomment and set the next line to specify a category tree field to use to store the retieved path information for e
ach file. The tree structure will be automatically modified as necessary to match the folder strucutre within the sync
folder.
# $staticsync_mapped_category_tree=50;
# Should the generated resource title include the sync folder path?
$staticsync_title_includes_path=false;
# Should the sync'd resource files be 'ingested' i.e. moved into ResourceSpace's own filestore structure?
# In this scenario, the sync'd folder merely acts as an upload mechanism. If path to metadata mapping is used then thi
s allows metadata to be extracted based on the file's location.
$staticsync_ingest=false;
#
# StaticSync Path to metadata mapping
# ------------------------
# It is possible to take path information and map selected parts of the path to metadata fields.
# For example, if you added a mapping for '/projects/' and specified that the second level should be 'extracted' means
that 'ABC' would be extracted as metadata into the specified field if you added a file to '/projects/ABC/'
# Hence meaningful metadata can be specified by placing the resource files at suitable positions within the static
# folder heirarchy.
# Use the line below as an example. Repeat this for every mapping you wish to set up
# $staticsync_mapfolders[]=array
# (
# "match"=>"/projects/",
# "field"=>10,
# "level"=>2
# );
#
# You can also now enter "access" in "field" to set the access level for the resource. The value must match the name o
f the access level
# in the default local language. Note that custom access levels are not supported. For example, the mapping below woul
d set anything in
# the projects/restricted folder to have a "Restricted" access level.
# $staticsync_mapfolders[]=array
# (
# "match"=>"/projects/restricted",
# "field"=>"access",
# "level"=>2
# );
#
# Suffix to use for alternative files folder
# If staticsync finds a folder in the same directory as a file with the same name as a file but with this suffix appen
ded,then files in the folder will be treated as alternative files for the give file.
# For example a folder/file structure might look like:
# /staticsync_folder/myfile.jpg
# /staticsync_folder/myfile.jpg_alternatives/alternative1.jpg
# /staticsync_folder/myfile.jpg_alternatives/alternative2.jpg
# /staticsync_folder/myfile.jpg_alternatives/alternative3.jpg
# NOTE: Alternative file processing only works when $staticsync_ingest is set to 'true'.
$staticsync_alternatives_suffix="_alternatives";
# if false, the system will always synthesize a title from the filename and path, even
# if an embedded title is found in the file. If true, the embedded title will be used.
$staticsync_prefer_embedded_title = true;
End of StaticSync settings
I am running version 6.0.
Thanks.
Frank Hahn