Copy an album from one gallery to another

cogo

Joined: 2003-06-13
Posts: 10
Posted: Tue, 2005-05-31 13:00

I have two gallery installations, and I want to copy some albums from one gallery over to the other. Are there any easy ways of doing this, and still keep the titles, captions and so forth? If I use the cart and the zip module only the images will be copied, and not the titles. Any tips? Maybe there is an easy way to do this that I have overlooked. :)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-05-31 14:12

No, there isn't. With add item from local server you can add a whole tree of albums/subalbums with a single click.
But it won't copy titles etc. because it only takes the filesystem album names / item names.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2005-05-31 14:30

Note: I haven't used this, but could the poster use the Import/Export module from the User Contributions page?

http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=25185&postdays=0&postorder=asc&start=15

http://gallery.menalto.com/modules.php?op=modload&name=phpWiki&file=index&pagename=G2%20-%20User%20Contributions

Then using your suggestion above the the import/export metadata they should be able to copy over an album with it's information. Correct?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-05-31 14:34

haven't used it either and it probably needs an update (CoreApiChanges).

 
cogo

Joined: 2003-06-13
Posts: 10
Posted: Wed, 2005-06-01 09:17

Maybe it would be an idea to add some info about titles and such in an xml file when doing a zip download? Or at least have an option to include titles so that when you upload the archive to another album, g2 would look for the xml file, and then add titles from it? Just a thought.

 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Sat, 2005-06-04 04:13

Sorry, didn't see this topic until now... I was using the module that nivekiam is referring to quite extensively when I was shuffling the albums back and forth between servers (it saves/restores metadata quite nicely... but of course I am biased). Since there is interest I'll update it to work under current gallery version.

bharat and I discussed it for awhile, and make it properly, it requires addition to the architecture that we decided isn't worth the effort at this time. So, it will stay in "user contributions" for now.

note, that it doesn't use xml file, but rather PHP format for serialization of the data. Also, I think it doesn't allow to download to the client (although I don't remember for sure)

Stay tune!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2005-06-04 15:03

I'm curious. Why would a tool like this need to have a change to the architetcure?

I would like to see that this tool at least remains available. I haven't used it yet, don't know if I ever will. Actually I know I will eventually. But I would more importantly just like it available to have in my little toolbox. Just like bharat's cleanup script.

 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Sun, 2005-06-05 01:31

nivekiam, glad you asked!
the problem is that we need to choose one of two options:
1. export module needs to know all the things it's going to export. Think of all the metadata other modules can persist (comments, layout details, EXIF/IPTC information, etc). Obviously, rather bad design.
2. export module creates a "hook". I think there is a better word, but it's essentially a facility that allows every module to register its interest in exporting (we use it for many other things as well). Then, of course, it's much easier to keep the core export module current, but initial implementation requires change in the core (to register such hook) and changes in most of the modules to use such hook...

Yes, I will keep it current... maybe with some delays!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sun, 2005-06-05 01:50

Ah, I understand. It's clear. Now I can see why it could be hard. Thanks for the explaination.

 
cogo

Joined: 2003-06-13
Posts: 10
Posted: Mon, 2006-08-14 13:28

Any news concerning this? Is it possible to move albums from one gallery to another now and still keep the titles, captions, dates and so forth?