$catalog=shakleeUSContentCatalog
$version=Online
# ---- Extension: core ---- Type: Media ----
"#% impex.setTargetFile( ""Media.csv"" );"
insert_update Media;URL;altText;catalog(id)[allownull=true];catalogVersion(catalog(id),version)[unique=true,allownull=true];code[unique=true,allownull=true];description;folder(qualifier);internalURL;location;locationHash;mediaContainer(catalogVersion(catalog(id),version),qualifier);mediaFormat(qualifier);mime;realFileName;removable[allownull=true];size;subFolderPath
"#% impex.exportItems(""SELECT {M:pk} FROM {Media as M}, {CatalogVersion as CV}, {Catalog as C} WHERE {M:catalogversion}={CV:PK} AND {CV:catalog}={C:PK} AND {C:id}='$catalog' AND {CV:version}='$version'"", Collections.EMPTY_MAP, Collections.singletonList( Item.class ), true, true, -1, -1 );"
"#% beforeEach: import org.apache.commons.lang.StringUtils;int size = line.size()+1;for (i=1; i<size; i++){String value = line.get(Integer.valueOf(i));if(StringUtils.contains(value, ""Online"")){String newValue = StringUtils.replace(value, "" Online "","" Staged "");line.put(Integer.valueOf(i), newValue);}} ;"
#-----------------------------------------------------------
insert_update Media;URL;altText;catalog(id)[allownull=true];catalogVersion(catalog(id),version)[unique=true,allownull=true];code[unique=true,allownull=true];description;folder(qualifier);internalURL;location;locationHash;mediaContainer(catalogVersion(catalog(id),version),qualifier);mediaFormat(qualifier);mime;realFileName;removable[allownull=true];size;subFolderPath
"#% beforeEach: import org.apache.commons.lang.StringUtils;int size = line.size()+1;for (i=1; i<size; i++){String value = line.get(Integer.valueOf(i));if(StringUtils.contains(value, ""Online"")){String newValue = StringUtils.replace(value, ""Online"",""Staged"");line.put(Integer.valueOf(i), newValue);}} ;"
"#% impex.includeExternalDataMedia( ""Media.csv"" , ""UTF-8"", ';', 1 , -1 );"
#-----------------------------------------------------------
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |