We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82fd623 commit 87ad1c3Copy full SHA for 87ad1c3
src/main/java/org/jabref/logic/importer/fileformat/EndnoteXmlImporter.java
@@ -259,6 +259,14 @@ private Optional<String> getUrl(Record record) {
259
.findFirst();
260
}
261
262
+ /**
263
+ * Extracts url address of Class Url generated from a user-imported .xml file.
264
+ * More specifically, this method will check whether text of url is wrapped in a style tag.
265
+ * If it is, extract from inner text; otherwise, use vanilla text outside.
266
+ *
267
+ * @param url a Url class object containing info from .xml file imported by user.
268
+ * @return entity url address of given class url
269
+ */
270
private Optional<String> getUrlValue(Url url) {
271
Optional<List<Object>> urlContent = Optional.ofNullable(url).map(Url::getContent);
272
List<Object> list = urlContent.orElse(null);
0 commit comments