contactsPane.js
function (subject) {
    var t = kb.findTypeURIs(subject)
    if (t[ns.vcard('Individual').uri]) return 'Contact'
    if (t[ns.vcard('Organization').uri]) return 'contact'
    if (t[ns.foaf('Person').uri]) return 'Person'
    if (t[ns.schema('Person').uri]) return 'Person'
    if (t[ns.vcard('Group').uri]) return 'Group'
    if (t[ns.vcard('AddressBook').uri]) return 'Address book'
    return null // No under other circumstances
  }
function (subject) {
    var t = kb.findTypeURIs(subject)
    if (t[ns.vcard('Individual').uri]) return 'Contact'
    if (t[ns.vcard('Organization').uri]) return 'contact'
    if (t[ns.foaf('Person').uri]) return 'Person'
    if (t[ns.schema('Person').uri]) return 'Person'
    if (t[ns.vcard('Group').uri]) return 'Group'
    if (t[ns.vcard('AddressBook').uri]) return 'Address book'
    return null // No under other circumstances
  }
function ( subject ) { var t = kb . findTypeURIs ( subject ) if ( t [ ns . vcard ( 'Individual' ) . uri ] ) return 'Contact' if ( t [ ns . vcard ( 'Organization' ) . uri ] ) return 'contact' if ( t [ ns . foaf ( 'Person' ) . uri ] ) return 'Person' if ( t [ ns . schema ( 'Person' ) . uri ] ) return 'Person' if ( t [ ns . vcard ( 'Group' ) . uri ] ) return 'Group' if ( t [ ns . vcard ( 'AddressBook' ) . uri ] ) return 'Address book' return null // No under other circumstances }
Does the subject deserve an contact pane?
Does the subject deserve an contact pane?