How to keep original file creation date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2007 11:04 AM
When I upload a Word document through the Webclient- or CIFS interface, the original creation date of my file changes automatically to the date of today. This is not what I anticipated. Is there any way to keep the original file date when (bulk) uploading? I need to upload financial documents from last year. If I continue the process it looks that all these documents are from july 2007 and this is really not what we want.
Regards,
Marc
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2007 09:35 AM
The default behaviour of the system is not to look into contents of the files. The various interfaces don't keep the original date present on the client.
If you are using the zip upload mechanism, then that can be modified to use the details of the files as they come out of the zip. This is an enhancement request, ofcourse.
The documents you are uploading may have the creation date stored within them. This is common to most document formats. You can set up a rule to "Extract Common Metadata", modify the overwritePolicy properties on the extractors responsible for those document types and reapply the rule after the import. You could also do the import with the rule in place and so extract the creation date from the document itself.
Regards

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2007 03:49 PM
Help/directions are always appreciated! Thanks 🙂
-Tamar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2007 04:27 PM
- You need to know how to override bean definitions: Wiki Repository Configuration.
Then take a look at the metadata extractors defined in tomcat/webapps/alfresco/content-services-context.xml.
Familiarise yourself with the configuration options available on these classes: JavaDocs for base class of extractors.
Then override the extractors as required and set the overwritePolicy as desired.
Once you've tested the extractors out to ensure that they are working as required, you can reapply the rules from the UI in the "Manage Content Rules" dialog.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2007 01:09 PM
So I've done all these changes, but when I import the files (through CIFS) the creation date is still today's date/time. What am I doing wrong?
Another possible problem is that in the space I'm trying to import the files into, it says there are (0) rules being applied to the space (even though I created the rule at the Company Home space, of which my current upload space is a subspace, and applied that rule to all subspaces), but when I go to More Actions->Manage Content Rules in that same current upload space my rule is there, though I can't click on it. What does this mean?
-Tamar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2007 02:28 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2007 02:38 PM
Modify the extractor definitions by setting the appropriate properties in the custom-metadata-extractors-context.xml file? All I really want is what is shown in the Wiki: creationDate, creator, description, and title, which the Wiki says will be populated by the extractor by default. That's all I'm looking to do, nothing custom at this point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2007 04:12 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2007 11:36 AM
<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'><!– This sample show how to modify the mappings properties of the new V2.1 Metadata Extractors. In this example, in addition to the default mappings, the field 'user1' is mapped to 'cm:description'. The available source properties is described on the Javadocs of the extracter class.–><beans> <bean id="extracter.OpenDocument" class="org.alfresco.repo.content.metadata.OpenDocumentMetadataExtracter" parent="baseMetadataExtracter" > <property name="inheritDefaultMapping"> <value>true</value> </property> <property name="mappingProperties"> <props> <prop key="namespace.prefix.cm">http://www.alfresco.org/model/content/1.0</prop> <prop key="user1">cm:description</prop> </props> </property> </bean></beans>
I see that, you are correct, the extractor is only getting the description field. Ahh… I see now- this an example for a custom metadata extractor, which is not really what I need. (Sorry- I've been out of the compsci world for a few years now and though I can read the code, it's not as easy to figure out exactly what's going on as when I was programming every day!)
I am uploading mainly MS Office documents. I see that in the Metadata Extractor wiki that there seems to be an extractor for Office metadata: "org.alfresco.repo.content.metadata.OfficeMetadataExtracter". If that is what I need, how do I get the system to load that?
Thank you for all your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2007 02:23 AM
It is an example of overriding one of the built-in extractors. They are all defined in content-services-context.xml and can be overridden at will.
Regards
