handles cases where people/photo/pub identifiers exclude full URL
(e.g. "http://profiles.ucsf.edu/profile/1234" -> "1234")