Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assuming events only have one location #409

Open
pl4nty opened this issue Feb 19, 2024 · 4 comments
Open

Assuming events only have one location #409

pl4nty opened this issue Feb 19, 2024 · 4 comments
Labels
bug Something isn't working rewrite Will be addressed in the rewrite

Comments

@pl4nty
Copy link
Owner

pl4nty commented Feb 19, 2024

Original title: artv3033 location

Room was listed incorrectly

Category: Issue
Contact: [email protected]

Originally submitted via the Microsoft Form

@jthvai
Copy link
Collaborator

jthvai commented Feb 20, 2024

This is not a datasource discrepancy issue - the data matches.

ARTV3033 has three rooms listed on ANU's timetable (RSSS 5.72, RSSS 6.68, SRWB 3.02), but only one of them has been displayed here. @pl4nty are we assuming time slots only have one room? Oh boy we sure are.

@jthvai jthvai added the bug Something isn't working label Feb 20, 2024
@jthvai jthvai changed the title artv3033 location Assuming events only have one location Feb 20, 2024
@jthvai jthvai pinned this issue Feb 20, 2024
@jthvai
Copy link
Collaborator

jthvai commented Feb 20, 2024

The root issue is in the scraper, here. We assume that cells[7] (the Location table cell) only has one a tag, and that that contains the location. Below is the Location cell for ARTV3033 - I'd be willing to bet it's not the only course with multiple a tags in Location.

<td class=" ">
  <a href="http://www.anu.edu.au/maps#show=123279" target="_blank" class="ui-link">
    RSSS meeting Rm 5.72
  </a>,
  <a href="http://www.anu.edu.au/maps#show=123279" target="_blank" class="ui-link">
    RSSS Meeting Room 6.68
  </a>,
  <a href="http://www.anu.edu.au/maps#show=11367" target="_blank" class="ui-link">
    SRWB 3.02
  </a> 
  on campus
</td>

@jthvai
Copy link
Collaborator

jthvai commented Feb 20, 2024

I think we can just provide Google Maps links for the first href and dump and concat the rest of the plaintext in the cell. For a rewrite in the future though, it'd probably be better to implement proper support for multiple GMaps links.

@jthvai jthvai self-assigned this Feb 20, 2024
@jthvai jthvai removed their assignment Mar 2, 2024
@jthvai
Copy link
Collaborator

jthvai commented Jul 22, 2024

As discussed in person, a solution:

when clicking on the location string of events with more than one location1, a secondary window with a list of locations (linked to an external maps service) should open.

Footnotes

  1. Events with only one location should probably be kept as they are now, with the link leading directly to a maps service.

@jthvai jthvai added the rewrite Will be addressed in the rewrite label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rewrite Will be addressed in the rewrite
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants