|
@@ -50,6 +50,14 @@ const cert = {
|
|
|
certQual: cert_qual,
|
|
|
postCertConst: post_cert_const,
|
|
|
eduJsonConst: edu_json,
|
|
|
+ getCertName: function(iType, iCert) {
|
|
|
+ const cType = cert_type.find(x => { return x.value === iType; });
|
|
|
+ if (!cType) return ['', ''];
|
|
|
+ const source = this[cType.source];
|
|
|
+ if (!source) return [cType.name, ''];
|
|
|
+ const cCert = source.find(x => { return x.value === iCert; });
|
|
|
+ return [cType.name, cCert ? cCert.name : ''];
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
module.exports = {
|