These are chat archives for collectiveaccess/support

18th
Dec 2018
Julian
@julian_boolean_twitter
Dec 18 2018 09:20
@pinkfishies Hi! that makes sense. we're trying to get the whole hierarchy to show, so Collection > Object > Object. it looks like object hierarchies show fine, such as Object > Object, but it's missing the top level collection.
bowbot
@bowbot_twitter
Dec 18 2018 10:01
Is there a way to batch import media representations of objects that is not named for the idno or do I need to rename the files to the idno? Can I associate media with an object IDNO after import?
DUG1138
@DUG1138
Dec 18 2018 15:22
I think I may have found a bug in representation_viewer_html.php. I'm new to CollectiveAccess... Can someone please give me a hand? I've got an Object, The Media of which is a Video file (mp4). I've added two Annotations to the Media with Start and Stop times. When I view the Media in the Providence editor, the annotations display and work as expected, jumping to the Start time and playing until the Stop time. However, when I view the Object in Pawtucket2, although the Annotations are listed, the Times are set to "0.0s". Help?
Julia
@juliaweist
Dec 18 2018 16:25
@bowbot_twitter - there are some options in app.conf for batch media import matching. We support Perl-compatible regular expressions for "mediaFilenameReplacements" and also a config to list CA fields for matching ("batch_media_import_match_on")
bowbot
@bowbot_twitter
Dec 18 2018 16:33
@juliaweist Thanks for the tip! A specific example would be the accession number 1998.18.08 has a media represenation named 0101758000137_2132008P.jpg . Could I import the filename into an object record field called ‘representation_file_name’ in the 1998.18.08 record and then set up the follwing in app.conf
batch_media_import_match_on = [representation_file_name] ?
sterlingjenson
@sterlingjenson
Dec 18 2018 17:36
@bowbot_twitter -- does the name for JPG mean anything? Could you do a bulk rename of the images first, then upload the files? I know Windows 10 and Ubuntu with Gnome will allow you to setup a renaming scheme easily.
bowbot
@bowbot_twitter
Dec 18 2018 17:38
@sterlingjenson Yes—I could do that—I use better file renamer—MacOS and Windows. You can script changing name to accession number really easily.
@sterlingjenson I am trying to future proof the import—they may not have those tools.
sterlingjenson
@sterlingjenson
Dec 18 2018 17:39
ah, I see. I missunderstood the question
Julia
@juliaweist
Dec 18 2018 18:53
@bowbot_twitter yes
Sophie
@pinkfishies
Dec 18 2018 22:51
@julian_boolean_twitter In your example I think you want {{{<unit relativeTo="ca_collections" delimiter="<br/>"><l>^ca_collections.preferred_labels</l></unit> ➔}}} assuming you are in an object context