//
//  Artwork.m
//  ZIA Gallery Maker
//
//  Created by Frank Mcpherson on 11/26/09.
//  Copyright 2009 bitdoctors.com. All rights reserved.
//

#import "Artwork.h"
#import <Quartz/Quartz.h>

@implementation Artwork

@synthesize chineseTitle;
@synthesize westernTitle;
@synthesize cost;
@synthesize medium;
@synthesize size;
@synthesize imageRepresentation;
@synthesize script;
@synthesize inventoryCode;

-(id)initWithImageRepresentation:(NSString *)anImageRepresentation
{
	self = [super init];
	[self setImageRepresentation:anImageRepresentation];
	return self;
}

#pragma mark -
#pragma mark Required Methods IKImageBrowserItem Informal Protocol
- (NSString *) imageUID 
{
	return [imageRepresentation lastPathComponent];
}

- (NSString *) imageRepresentationType
{	
	return IKImageBrowserPathRepresentationType;
}

- (NSString *) imageTitle
{
	return [imageRepresentation lastPathComponent]; 
}

- (NSString *) imageSubtitle
{
	if ( chineseTitle.length && westernTitle.length && cost.length && medium.length && size.length && script.length && inventoryCode.length)
	{
		return @"Done";
	}
	return @"Needs data";
}


@end
