Dieneke S
10/23/23, 7:46:49 AM EDT
Meeting planned demo eMedia Workspace
Set up B-site for travis to show demo this week 23-27 october
Dieneke S
10/23/23, 7:48:41 AM EDT
Hi Cristobal! That should be ftp1.alfred.com signing in with guest access. We have a few data files here, but the full inventory one is in this location:ftp1.alfred.com/CatData/DailyAll/ALF_ALL_ALL.txt
Dieneke S
10/30/23, 3:55:36 AM EDT
Any progress on this friday? If no we have to prepare this before the meeting on wednesday.
Cristobal M
10/30/23, 1:24:22 PM EDT
I set up alfredB site (m37 was strange turned into messed up DNS) , also installation was not ok at the first try, but now it is working. Im trying to connect to ftp to see the list but not sure if we require credentials
Christopher B
10/30/23, 4:21:57 PM EDT
Lookup:
Instrument
Format
Genre
Level
Description -> longcaption?
Pub_Date -> Entity_Date
Site Title -> Name
Series can be a Entity
width and height renamed
pubitem -> PrimaryImage
Create Product Folder entity that is related to PubProduct
Add a way to set uploadsourcepath with Category searcher/browser
Setup hotfolder on new B site with no metadata. To re-create assets and category tree. Use all old thumbnails
Christopher B
10/30/23, 4:29:38 PM EDT
import org.entermediadb.asset.importer.BaseImporter
import org.entermediadb.asset.util.Row
import org.openedit.Data
class CsvImporter extends BaseImporter
{
/**
* This is an example of making a field lower case
*/
protected void addProperties( Row inRow, Data inData)
{
super.addProperties( inRow, inData);
//createLookUp(inSearcher.getCatalogId(),inData,"Division","val_divisions");
}
}
CsvImporter csvimporter = new CsvImporter()
{
protected void createMetadata(Header inHeader)
{
List newnames = new ArrayList();
for (Iterator iterator = inHeader.getHeaderNames().iterator(); iterator.hasNext();)
{
String header = (String) iterator.next();
if(header.contains(".")){ //TODO: What about english and spanish language imports?
continue;
}
if( header == "height")
{
header = "pubheight";
}
newnames.add(header);
}
inHeader.getHeaderNames().clear();
inHeader.setHeaders(newnames);
super.createMetadata(inHeader);
}
};
csvimporter.setSeparator("|".charAt(0));
csvimporter.setModuleManager(moduleManager);
csvimporter.setContext(context);
csvimporter.addDbLookUp("genre");
csvimporter.setLog(log);
csvimporter.setMakeId(false);
csvimporter.importData();