Setting title to file name on upload

783 views
Skip to first unread message

Neil S

unread,
Jan 20, 2010, 5:10:35 AM1/20/10
to ResourceSpace
When uploading several files (via Contributions -> Contribute New
Resource) all the resources a given the same title (as supplied in the
'Title' field under Resource Metadata).
Is it possible to get the title field to be set to the name of the
file?

The problem is that all the resources get the same title. If I view
the uploaded resources as a collection, there is nothing to tell them
apart. The original file name is not shown anywhere. The only time I
see the name on the download.

I am uploading a few hundred files with names like 'Template_ABC',
'Template_DEF' etc. The parts of the file name are available for
searching (i.e. 'Template' and the 'ABC' are separated and can be
searched). So if I give them a title of 'foo' when uploading, then
search for 'Template' I get a few hunderd results all called 'foo'. If
I search for 'ABC' I get a single result, but it is called 'foo'.

There are too many to set the title individually.

Having looked in the database, the title shown is coming from field8.
If I update this field to be the same as the file name (SQL: update
resource set field8 = file_path where ...) I get the results I am
after.

Thanks

Tom Gleason

unread,
Jan 20, 2010, 8:07:10 AM1/20/10
to resour...@googlegroups.com
Just added this to the wiki, hope it helps:

http://rswiki.montala.net/index.php/Customising_Site_Design#Customising_Title_Display

--
Tom Gleason, PHP Developer
DBA Impressive Design

Exploring ResourceSpace at:
http://resourcespace.blogspot.com

Neil S

unread,
Jan 20, 2010, 8:59:39 AM1/20/10
to ResourceSpace
Thanks.

I've just been looking at your episode 2 video - it contains those
settings too.

On Jan 20, 1:07 pm, Tom Gleason <theorysav...@gmail.com> wrote:
> Just added this to the wiki, hope it helps:
>

> http://rswiki.montala.net/index.php/Customising_Site_Design#Customisi...

Tom Gleason

unread,
Jan 20, 2010, 9:19:11 AM1/20/10
to resour...@googlegroups.com

Keenan Lidral-Porter

unread,
Apr 3, 2019, 1:38:22 AM4/3/19
to ResourceSpace
Hm, we are facing the same issue here. Is there any suggestion on automatically running the SQL for a new upload, or running it on an interval so recent uploads are corrected?

 Unfortunately I could not find any information on field8 in the knowledge base

Duane Mitchell

unread,
Apr 26, 2019, 10:03:30 AM4/26/19
to ResourceSpace
I've also asked this question about 6 months ago and there does not seem to be any answer to it though the feature does seem to be part of the system. I've got about 15,000 images I'm about to upload and it would be helpful to customize the name of the file.

Scott Reynolds

unread,
Apr 26, 2019, 1:44:25 PM4/26/19
to resour...@googlegroups.com
I’m no RS expert, still working on my first installation, so your milage may vary, but I got it to work by:

a) ensuring the EXIF data was value and 
b) setting the following in the config.php

$merge_filename_with_title = true;
$merge_filename_with_title_default = replace;

Hope this helps. Obviously, if there is some fatal flaw with this approach, I’d love to hear!

/scott



--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.com
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott Reynolds

unread,
Apr 26, 2019, 1:57:25 PM4/26/19
to resour...@googlegroups.com
sorry typo - I meant to say:

a) ensuring the EXIF data was **VALID** and 

Duane Mitchell

unread,
Apr 26, 2019, 5:13:55 PM4/26/19
to ResourceSpace
My problem is the exif data. When you say "ensuring the EXIF data was **VALID** " am I correct that EXIFTOOL must be installed? Or just the exif data in the file is valid? Or is it that you can't have exif data if exiftool is not installed?

I installed exiftool on the server but I'm running the installation out of MAMP on my Mac Mini. I'll need to figure out how to do that.
To unsubscribe from this group and stop receiving emails from it, send an email to resour...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.com
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resour...@googlegroups.com.

Scott Reynolds

unread,
Apr 26, 2019, 5:28:14 PM4/26/19
to resour...@googlegroups.com
It is my understanding that you need exiftool installed, because RS uses exiftool to extract the metadata. 

To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.

Duane Mitchell

unread,
Apr 30, 2019, 10:36:45 AM4/30/19
to ResourceSpace
I'm able to work around most of this by using the IPTC data instead of exif data. I use an app called PhotoMechanic to add the IPTC metadata and then in ResourceSpace I can edit the data for an entire collection.
Reply all
Reply to author
Forward
0 new messages