Staticsync alternative files

93 views
Skip to first unread message

Tech Patriot

unread,
May 5, 2010, 3:45:23 PM5/5/10
to ResourceSpace
I understand that when using $staticsync_ingest=false; the system will
ignore any subfolders labeled for alternatives
($staticsync_alternatives_suffix="_alt";), per the PHP comments. Can
I ask why if someone knows?

I'd really like to be able to capture alternatives with
$staticsync_ingest=false;, but maybe it's not possible.

Thanks,
John

--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To post to this group, send email to resour...@googlegroups.com.
To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.

David Dwiggins

unread,
May 6, 2010, 12:43:19 AM5/6/10
to resour...@googlegroups.com
If I recall, the behavior is actually that it *will* ingest the
alternates if they are in a folder with the same name and _alt suffix.
But it will ignore the suffixed folders if it doesn't find a matching
filename in the parent folder. (It's been a while since I looked at
this, so I could be wrong.)

That said, I found this method to be somewhat impractical, as it
required creating new folders for each file being ingested, which is
error prone and a lot of extra work.

In our customized version of staticsync at HNE, I have added the
ability to define suffixes for files themselves. So if the system sees
a file called foo.jpg and another file called foo_dng.dng, and _dng
has been defined as a file alt suffix, it will import foo_dng as an
alternate of foo.jpg. We use this when we photograph archival
materials to store the backs and original DNG files at the same time
as the main image.

I have this set up to run every half hour. So our photographers drop
the photos in the hot folder, and then the system automatically
imports the main files and alternates into the system.

This version of staticsync is not in SVN because it fairly customized
to our workflow. However I could conceivably try to roll some of these
changes back into the trunk if folks would find them useful. (Or just
provide the customized version for others to play with.)

-David

Tech Patriot

unread,
May 6, 2010, 12:26:32 PM5/6/10
to ResourceSpace
Hi David,

I tried it both ways again and it seems it'll only "capture"
alternatives if $staticsync_ingest=true. I'd like to leave the
originals where they are at in a folder structure. How the system
recognizes alternates is actually pretty cool and I don't mind having
to create a folder with the same name as the original (+ _alt at the
end). Using this method one photo can have many alternates.

I your scenario, are you able to accommodate having multiple
alternates for the same original? Also, do you have
$staticsync_ingest=true or false?

Thanks,
John
> > For more options, visit this group athttp://groups.google.com/group/resourcespace?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
> To post to this group, send email to resour...@googlegroups.com.
> To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/resourcespace?hl=en.
Reply all
Reply to author
Forward
0 new messages