move label structure without images to a new catalog?

Post Reply
fbungarz
Posts: 1828
Joined: 08 Dec 06 4:03
Location: Arizona, USA

move label structure without images to a new catalog?

Post by fbungarz »

I am in the process of setting up a new catalog for our collections and would like to import the labels (including all their mapping configuration) from my personal catalog. Ideally I do not want to copy all label categories, but only the ones relevant for the new catalog (but that is less important, I can always delete the ones I do not want).

Exporting and importing the labels as a controlled vocabulary is not an option, because this will only re-create the labels without the way they are configured (writing the hierarchy, XMP mappings, etc.).

Of course one option would be to copy over the catalog and then delete all images followed by compacting. But in my experience deleting even the content of a single folder often takes considerable time.
Is there any tool available (perhaps from the resource repository) that allows copying over only the catalog structure without its content?

[Even better: is there any way to export/import a Controlled Vocabulary in PSU format into an existing catalog? Ideally such a tool would merge labels that are the same and add new ones (with their configuration, mapping, etc.).

Reason I ask: due to the coronavirus, I am mostly working from home where, for the foreseeable future I will need to continue using my personal database. Eventually we are planning to set up a server based database for the collections to which I will have access from my workstation too. But for now this is not possible, the server workstation is at my work site, my own desktop computer at home. Adding labels at both ends it would be great to exchange these between the databases...]

Thanks !!!
HCS
Posts: 199
Joined: 19 Feb 14 21:08

Re: move label structure without images to a new catalog?

Post by HCS »

A dedicated tool would be nice.

But, one trick i learned for another piece of software, is to add all labels to one image. Then move or copy that image to the new catalog and the whole label structure should come with it. Or, alternatively, clone the catalog and remove all images and load the new ones.

Not sure whether this trick will work for PSU, so if you want to try, please make backups first.
Hert
Posts: 7911
Joined: 13 Sep 03 6:24

Re: move label structure without images to a new catalog?

Post by Hert »

There’s a script for copying a catalog structure;
https://repository.idimager.com/openres ... BA39394939
This is a user-to-user forum. If you have suggestions, requests or need support then please send a message
Shutter Bug
Posts: 16
Joined: 19 Apr 20 23:12

Re: move label structure without images to a new catalog?

Post by Shutter Bug »

This script was extremely helpful to me as well. Thanks Hert!

There were a few things that it didn't export/import so I wanted to see if it was supposed to do those or not before I started recreating/editing them manually:

Color Label Names
Folder Label Names
Label Sets
Custom Fields
Dynamic Search Favorites

Were those supposed to come over as well or are those not possible?

It's not a huge deal if it doesn't do those as all of those are easily fixable/configurable (with the exception of the dynamic search favorites -- those are a little tricky to get right -- which is why I saved them ;). ) This script as it currently worked though got me most of the way there so I'll take that for sure! That saved me sooooo much time.

Thanks again Hert!
******************
Shutter Bug
sanphotgn
Posts: 336
Joined: 26 Aug 07 17:06

Re: move label structure without images to a new catalog?

Post by sanphotgn »

> Color Label Names
> Folder Label Names

I believe those may be under Preferences, so see this script in the repository:

Resource Name Export Import Preferences
Resource Version 1.0
https://repository.idimager.com/openres ... 43ACB09937

> Label Sets

Not sure.

> Custom Fields

Resource Name Export Import Custom Field Definitions
Resource Version 1.0
https://repository.idimager.com/openres ... DC410C5C49

> Dynamic Search Favorites

Resource Name Export Import Favorites
Resource Version 1.0
https://repository.idimager.com/openres ... 384229D938
Photo Supreme 6.7.2.4201 (64 bits) (Windows)
Shutter Bug
Posts: 16
Joined: 19 Apr 20 23:12

Re: move label structure without images to a new catalog?

Post by Shutter Bug »

Thanks for the information. I'll have to give those a try. Sorry for the delay in answering. I forgot to bookmark it so I wasn't getting notifications.
******************
Shutter Bug
sanphotgn
Posts: 336
Joined: 26 Aug 07 17:06

Re: move label structure without images to a new catalog?

Post by sanphotgn »

Take a look at the URLs. The pages contain instructions and notes (for example: Use with caution. Importing a preference file will overwrite your existing preference.).

Export Import Preferences: The GUI does not appear for me.

From my notes:

When run, it automatically defaults to import and doesn't find the file on the Desktop.

Within the code there is this:

Code: Select all

begin
  AFileName := WindowsDesktopDir + 'options.psu';
  //ExportToFile(AFileName);
  ImportFromFile(AFileName);
end;
I changed it to this:

Code: Select all

begin
  AFileName := WindowsDesktopDir + 'options.psu';
  ExportToFile(AFileName);
  //ImportFromFile(AFileName);
end;
Then I changed it back to import.
Photo Supreme 6.7.2.4201 (64 bits) (Windows)
Post Reply