Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[task] Research UnitType attribute - what it is, how it's used #20

Open
OriHoch opened this issue Jun 20, 2017 · 0 comments
Open

[task] Research UnitType attribute - what it is, how it's used #20

OriHoch opened this issue Jun 20, 2017 · 0 comments

Comments

@OriHoch
Copy link
Contributor

OriHoch commented Jun 20, 2017

research -

  • what's the meaning of UnitType attribute in BHP
  • how it maps to CM
  • where is it used in frontend
var map = {
		0: 'genTreeIndividuals',
		1: 'photoUnits',
    	5: 'places',
    	6: 'familyNames',
    	8: 'personalities',
    	9: 'movies',
    	'IMAGE': 'photoUnits',
    	'VIDEO': 'movies',
    	'TEXT': 'text',
    	'SOUND': 'audio',
    	'3D': '3D',
        'Photographs' : 'photoUnits',
        'Photograph albums' : 'photoUnits',
        'Photographic portraits' : 'photoUnits',
        'Manuscripts': 'text',
	};

	this.get_type = function(item) {
		return "unknown";
		// TODO: how to determine type from CM item / what's the meaning of type
		// var type;
		// if (description_code) {
		// 	type = map[description_code];
		// }
		// else {
		// 	type = 'unknown';
		// }
        //
		// return type;
	};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant