NordicMuseum / Wikimedia-Commons-uploads

Python scripts for copying images from Digitalt museum to Wikimedia Commons
MIT License
4 stars 3 forks source link

Folder IDs are different depending on where folder was created #25

Open jhsoby opened 6 years ago

jhsoby commented 6 years ago

Hi, we're just starting to look into the script for Vestfoldmuseene! Yay!

One thing we found right off the bat was that the folder IDs that are needed in the settings.json are not always readily available. This folder is the one we originally planned on testing against, but the script requires a numeric folder ID. We circumvented this by using this folder instead.

The difference between the two folders is that the former was created directly in Digitalt museum, while the latter was created in Primus and then imported to Digitalt museum, and they clearly have different IDs (the former using "list/dmuu" in the URL and the latter using "021096756963" in the URL). Is there already a way to use the former version, or are some changes needed?

Ambrosiani commented 6 years ago

this was new to me – good that you could make a new folder for the time being. I'm passing this on to KulturIT, it seems that "list" is not the same as "folder".

Vesihiisi commented 5 years ago

@Ambrosiani – any updates on this issue?

Ambrosiani commented 5 years ago

lists (i.e. folders created directly in Digitalt Museum) are not available through the API at this time. Only folders (created in Primus and published on Digitalt Museum). Will doublecheck this with KulturIT once more.

Ambrosiani commented 5 years ago

detailed reply:

Ditt eksempel er nok en privat mappe som vi har vurdert at ikke skal være søkbare. De får ikke UUID/DiMukode og er ikke tilgjengelig i index. Dersom mappen kommer fra Primus eller er en såkalt "museumsmappe" fra DigitaltMuseum vil det fungere.