/*
 * SDK Pullenti Lingvo, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software.
 * This class is generated using the converter Unisharping (www.unisharping.ru) from Pullenti C#.NET project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */


const ReferentClass = require("./../../metadata/ReferentClass");

class MetaBookLink extends ReferentClass {
    
    static initialize() {
        const BookLinkReferent = require("./../BookLinkReferent");
        MetaBookLink.globalMeta = new MetaBookLink();
        MetaBookLink.globalMeta.addFeature(BookLinkReferent.ATTR_AUTHOR, "Автор", 0, 0);
        MetaBookLink.globalMeta.addFeature(BookLinkReferent.ATTR_NAME, "Наименование", 1, 1);
        MetaBookLink.globalMeta.addFeature(BookLinkReferent.ATTR_TYPE, "Тип", 0, 1);
        MetaBookLink.globalMeta.addFeature(BookLinkReferent.ATTR_YEAR, "Год", 0, 1);
        MetaBookLink.globalMeta.addFeature(BookLinkReferent.ATTR_GEO, "География", 0, 1);
        MetaBookLink.globalMeta.addFeature(BookLinkReferent.ATTR_LANG, "Язык", 0, 1);
        MetaBookLink.globalMeta.addFeature(BookLinkReferent.ATTR_URL, "URL", 0, 0);
        MetaBookLink.globalMeta.addFeature(BookLinkReferent.ATTR_MISC, "Разное", 0, 0);
    }
    
    get name() {
        const BookLinkReferent = require("./../BookLinkReferent");
        return BookLinkReferent.OBJ_TYPENAME;
    }
    
    get caption() {
        return "Ссылка на внешний источник";
    }
    
    getImageId(obj = null) {
        return MetaBookLink.IMAGE_ID;
    }
    
    static static_constructor() {
        MetaBookLink.IMAGE_ID = "booklink";
        MetaBookLink.globalMeta = null;
    }
}


MetaBookLink.static_constructor();

module.exports = MetaBookLink