msramalho / SigTools

📆 Sigarra Tools | An extension that makes the information system of the University of Porto slightly better.
https://chrome.google.com/webstore/detail/sigarra-to-calendar/piefgbacnljenipiifjopkfifeljjkme
Apache License 2.0
37 stars 0 forks source link

Add mailto near user profiles hyperlinks #99

Closed fabiodrg closed 2 years ago

fabiodrg commented 2 years ago

My main motivation for this is when having to contact more than one teacher from search results or from course unit pages. The typical approach is to open the profile in separate pages and copy the links. With batch email I could select multiple users without that manual process. Furthermore, for single recipients, I could click one button near the user name/link without having to move to a different page to get the email.

Tasks

fabiodrg commented 2 years ago

The issue #69 is related. Might be useful to create a Person parser. It should support parsing from the document or from a custom context (e.g. URL, html, DOMParser). That parser could be used in both issues (this one and #69)

fabiodrg commented 2 years ago

One more issue to handle. looks like Sigarra server responses are encoded as text/html; charset=iso-8859-15. As the response body is interpreted as utf-8, weird stuff appears...

image

image

fabiodrg commented 2 years ago

With respect to ignoring hyperlinks associated to the logged in user.. I thought it would be easy, but it looks like the hyperlinks used to access my profile near the login form and on the top bar use yet another ID is not the user ID (student up or staff identifiers)...

I could fetch that URL to gather the actual user ID, just not sure if it is worth it. image image

fabiodrg commented 2 years ago

Found a third type of page for users in thesis lists: https://sigarra.up.pt/feup/pt/inst_geral.ver?P_CODIGO=1891