Willa-Cather-Archive / annotonia-converter

Alters Cather TEI letters with annotations from the annotonia
2 stars 0 forks source link

Search nearby xpaths if highlight not found #15

Closed techgique closed 7 years ago

techgique commented 7 years ago

If highlight at xpath from Annotator is nil, search siblings then parent for quote text

If still not found, set as empty string to prevent Nil.strip error

Move xpath parent assignment to a separate method Create xpath_sibling similarly