UniRegensburg / unsere-app-fur-die-universitat-regensburg-bib-buddy

Bib Buddy - deine App für eine konzentrierte, offene Literaturarbeit!
0 stars 0 forks source link

Implement API connection #78

Closed LuisMossburger closed 3 years ago

LuisMossburger commented 3 years ago

Description Implement API connection and data retrieval for book.

Affects SearchFragment, will however be altered by @claudia3 to implement search in LibraryFragment.

Notes for Reviewer Please review & comment/approve - ISBN example for testing: 340734211X. @claudia3 I left a comment where you can start adding your code. Has to be added separately: Author infos (not included in this API), book into UI (as this will be altered anyways).

claudia3 commented 3 years ago

Sorry I made a checkstyle mistake in one of my corrections in IsbnRetriever.java. The , should be directly after the arguments instead at the beginning of the line.

return new Book(xmlMetadata.getElementsByTagName("bibo:isbn").item(0).getTextContent(), // isbn xmlMetadata.getElementsByTagName("dc:title").item(0).getTextContent(), // title "", // subtitle Integer .parseInt(xmlMetadata.getElementsByTagName("dcterms:issued").item(0) .getTextContent()), // pubYear xmlMetadata.getElementsByTagName("dcterms:publisher").item(0).getTextContent(), // publisher "", // volume "", // edition ""); // addInfos