ucd-library / aggie-experts

Publicly reported feedback and issues for Aggie Experts
https://ucd-library.github.io/aggie-experts/
MIT License
1 stars 2 forks source link

web_label/web_type optional #428

Closed qjhart closed 1 month ago

qjhart commented 1 month ago

CDL elements allows users to add simply a URL to their Elements profile. The current conversion only added webslite links if the entry also had a label and type.

This change makes the label and type optional. For example using these websites as examples: image

This change catches them all:

{
"@id": "expert/66356b7eec24c51f01e757af2b27ebb8#vcard-oap-1",
"@type": "vcard:Individual",
"isPreferred": false,
"name": "Hart, Quinn § APPLICATIONS PRG SUPV 2, UCDLIBRARY",
"rank": 20,
"hasEmail": "mailto:qjhart@ucdavis.edu",
"hasName": {
"@id": "expert/66356b7eec24c51f01e757af2b27ebb8#vcard-oap-1-name",
"@type": "Name",
"family": "Hart",
"given": "Quinn"
},
"hasURL": [
{
"@id": "expert/66356b7eec24c51f01e757af2b27ebb8#vcard-oap-1-web-4",
"@type": [
"URL",
"ucdlib:URL_department"
],
"rank": 4,
"url": "https://library.ucdavis.edu/"
},
{
"@id": "expert/66356b7eec24c51f01e757af2b27ebb8#vcard-oap-1-web-0",
"@type": "URL",
"rank": 0,
"name": "Evaporation (Meteorology)",
"url": "http://id.worldcat.org/fast/917080"
},
{
"@id": "expert/66356b7eec24c51f01e757af2b27ebb8#vcard-oap-1-web-5",
"@type": [
"URL",
"ucdlib:URL_company"
],
"rank": 5,
"url": "https://ucdavis.edu/"
},
{
"@id": "expert/66356b7eec24c51f01e757af2b27ebb8#vcard-oap-1-web-1",
"@type": [
"URL",
"ucdlib:URL_department"
],
"rank": 1,
"name": "Library Bio",
"url": "https://library.ucdavis.edu/person/quinn-hart/"
},
{
"@id": "expert/66356b7eec24c51f01e757af2b27ebb8#vcard-oap-1-web-2",
"@type": "URL",
"rank": 2,
"url": "https://library.ucdavis.edu/online-strategies"
},
{
"@id": "expert/66356b7eec24c51f01e757af2b27ebb8#vcard-oap-1-web-3",
"@type": [
"URL",
"ucdlib:URL_googlescholar"
],
"rank": 3,
"url": "https://scholar.google.com/citations?user=Od5weOkAAAAJ&hl=en&inst=9081605168663377197"
}
]
}