1.9.16.0 has Import Scrivner Project and that does not import the meta data either.
Checked junk mail⦠nope⦠no response yet.
My guess is that although the visible names are the same between the projects, the underlying IDs for the fields are not for those couple that are not copying data. This could be because they were renamed at some point or because multiple fields with the same name were created (so the IDs became name1, name2, etc.). Making the IDs match will allow the copied metadata to display in the target project.
You might be able to do that within Scrivener by creating a new metadata field in the target project for each of the fields that isnāt copying, if you know for instance that the current ones were renamed to match the first project (and if the current ones arenāt already in use in the project). But barring that, you can do this by closing the projects in Scrivener and then using a text editor to view and edit the projectsā .scrivx files. Iād recommend making a project backup for each project first. Then, you can right-click the project file in File Explorer and choose Open with⦠from the context menu. These are just XML files, so any plain-text editor will be fine, although one that handles syntax would make the job easier.
Open both files so you can compare them and scroll or search for āCustomMetaDataSettingsā in the file. Here youāll find each custom metadata fieldās ID and the name that appears in Scrivener. In this example, the ID is āstartdateā but the name as shown in Scrivener is āStart Dayā
<MetaDataField ID="startdate" Wraps="No" Color="0.000000 0.066667 0.286275">Start Day</MetaDataField>
For each of the metadata fields youāre trying to copy that have matching names but not matching IDs, youāll want to change the ID in one of the project files to match the ID used in the other. So for instance, if you had the above in the first project but
ID="startday"
in the other, you could change āstartdayā in Project 2 to āstartdateā. The caveat is that you need to be sure you donāt already have a metadata field in Project 2 using that same ID. You want unique IDs within a single project, but matching IDs between the two projects youāre copying between.
In addition to changing the ID here, you will need to change it throughout the file for any items that have the metadata assigned. Search the file for each instance of
<FieldID>startday</FieldID>
(using of course whatever ID name it is that youāre changing), ensure that this is within a <MetaDataItem> </MetaDataItem> section, and replace the āstartdayā text with āstartdateā. Repeat that for each of the metadata field IDs youāre updating.
Once youāve made and saved the changes (be sure your text editor doesnāt try to change the .scrivx extension of the file), reopen the projects in Scrivener. If you changed the field IDs in the target project to match those in the initial project, the metadata from previously copied documents should now appear. If you went the other way around, youāll need to recopy the items from the first project into the target project.
OK⦠Iāll give it a try Friday⦠heading out now and tied up all day tomorrow⦠thanx for the reply!
So I was able to try what you suggested and it looked promising at first as the Series file had the tags called āmonthā and ādayā instead of āstartdateā and āenddateā, because the Series file was already synced with Aeon Time line, I decided to change the Book project file tags to āmonthā and ādayā as well. Before doing so, I backed up both files calling them X_orginaname." When I opened X_Bookname.scrivx, the Start Date and End Date custom meta-data fields were blank?
Perhaps I misunderstood what you were trying to tell me?
It sounds like you did it right, and if Iām understanding correctly, you just need to recopy the documents from the one project to the other. The main potential confusion here is with the names, so to be sure weāre identifying the projects correctly, I am assuming:
- BookProject is the one youāre dragging from
- SeriesProject is the one youāre dragging to
If you changed the metadata ID names in the BookProject, youāll need to recopy those (now with the updated ID names) to the SeriesProject in order for the metadata to show. Had you done it the other way around, changing the metadata ID names in the SeriesProject, that wouldnāt be necessary (because the data did copy the first time, but itās using a different ID). Given the situation of syncing with Aeon, the way you did it makes perfect sense; so it just needs that final step of recopying the files.
Well, I was able to get it to work but not the way you described in your follow-up instructions.
Unless I missed something in your original instructions, there was a step missing. It is not enough to just change the fieldIDās in āCustomMetaDataSettings.ā I had to go through the XML file and look for all the entries for that old meta data field name tag and change them to the new tag. I used Notepad and Crtl-H. I āfoundā the old tag and replaced it with the new tag using the option to replace all. Once I did that, and saved it, the altered project showed the data in the custom meta-data named āStart Dateā and āEnd Dateā. Once these showed in the Book Project, I easily moved it over to the Series Project successfully.
I am not sure how your follow-up instructions correct the problem of finding and changing all the fieldIDās within the meta-data structure of the xml file, but my approach worked for me. Thank you sooooo much! This really saved me a lot of time and I have another book in the series that needs this done, so the cumulative time saved will be tremendous.
THANK YOU! THANK YOU! THANK YOU!
No, youāre quite right, I missed that in the original and the follow-up. Iāll correct the initial post with the instructions for anyone else who needs to refer to this. Thank you for catching that, and Iām glad you were able to get it working in spite of my omission!