UCDavisLibrary / ucd-lib-elements

Create webcomponent bundles for library website
MIT License
0 stars 0 forks source link

Profile widget for LibGuides #9

Open wrenaria opened 2 years ago

wrenaria commented 2 years ago

We need a widget that pulls profile information from the Library website to display as author information in LibGuides.

Right now I have a basic workaround in a WYSWYG block like you see can see on this example guide: https://ucdavis.libguides.com/c.php?g=1203949&p=8806106&preview=b851c78dd8964a8f9358f8647bb0b888

But I think if would be better if we do a layout very similar to the main library directory entries:

Group 2439

Group 2435b

Notes:

qjhart commented 2 years ago

@spelkey-ucd /@sbagg, this is pretty consistent with what the vivo schema for a person would be:

{
    "@id" : "person:f9ef1e530c617cd598171497b4a49e82",
    "casId" : "quinn",
    "hasResearchArea" : [ 
      "https://library.ucdavis.edu/subject/foo",
      "https://library.ucdavis.edu/subject/bar" ],
    "overview" : "I am currently the digital applications manager for the UC Davis library.  At the Library, I develop research and educational applications for use at the library and to our researchers and the public.\n\nI've been at UC Davis since 1992.  Before coming to the library in 2016, I worked as a programmer under various projects in the Dept. of Land, Air, and Water Resources.",
    "orcidId" : "0000-0001-9829-8914",
    "researcherId" : "M-4572-2018",
    "scopusId" : "6506365550",
    "label" : "Quinn Hart",
    "hasName" : {
      "familyName" : "Hart",
      "givenName" : "Quinn",
      "pronoun" : "he/him"
    }, 
   "contactInfo" : {
      "hasEmail" : "mailto:qjhart@ucdavis.edu",
      "hasName" :  {
         "familyName" : "Hart",
         "givenName" : "Quinn",
         "pronoun" : "he/him"
       },
      "hasOrganizationalUnit" : "https://library.ucdavis.edu/online-strategy",
       "hasTitle" : {
           "title":"Application Development Programmer"
        },
       "hasURL" : "https://library.ucdavis.edu/author/quinn-hart//",
       "hasPhoto" : "https://library.ucdavis.edu/images/quinn-hart.jpg"
    }
}