paleobiodb / navigator

Graphical user interface for exploring space, time, and taxa in the PBDB
https://paleobiodb.org/navigator
Creative Commons Zero v1.0 Universal
41 stars 14 forks source link

link to "classic" collection details page from collection modal #53

Closed vjpsyverson closed 7 years ago

vjpsyverson commented 7 years ago

Need to first know how to format links to pages in the Wing system

mmcclenn commented 7 years ago

The URL pattern is: '/classic/basicCollectionSearch?collection_no=' + collection_no

When extracting the numeric part from the collection identifier, I would suggest using a regular expression to extract (\d+) rather than trying to delete characters. This approach will be more robust in case we need to change the identifier syntax at any point.