Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
473f8c9
add dependencies
zesaro Jan 15, 2024
37b089f
(wip) option fuer bibsonomy als custom api key
zesaro Jan 16, 2024
2641ff7
Merge remote-tracking branch 'upstream/main' into 158-anbindung-bibso…
zesaro Jan 17, 2024
04e7c0c
Merge remote-tracking branch 'upstream/main' into 158-anbindung-bibso…
zesaro Mar 11, 2024
7e44a01
Merge remote-tracking branch 'origin/main' into 158-anbindung-bibsono…
Nov 12, 2024
b5798b5
Merge remote-tracking branch 'origin/main' into 158-anbindung-bibsono…
Nov 18, 2024
9dbecf4
Merge remote-tracking branch 'upstream/main' into 158-anbindung-bibso…
zesaro Jan 20, 2025
d0e58a0
fix merge
zesaro Jan 20, 2025
84d5115
Merge remote-tracking branch 'upstream/main' into 158-anbindung-bibso…
zesaro Jan 25, 2025
aa3d0b1
Merge remote-tracking branch 'upstream/main' into 158-anbindung-bibso…
zesaro Mar 24, 2025
97b85c5
Merge remote-tracking branch 'upstream/main' into 158-anbindung-bibso…
zesaro Mar 30, 2025
a261c49
Merge remote-tracking branch 'upstream/main' into 158-anbindung-bibso…
zesaro Apr 2, 2025
66be291
Merge remote-tracking branch 'upstream/main' into 158-anbindung-bibso…
zesaro Apr 11, 2025
6335adc
Merge remote-tracking branch 'upstream/main' into 158-anbindung-bibso…
zesaro Apr 12, 2025
b5d00d6
Merge remote-tracking branch 'upstream/main' into 158-anbindung-bibso…
zesaro Apr 19, 2025
836d3d9
Merge remote-tracking branch 'upstream/main' into 158-anbindung-bibso…
zesaro Apr 23, 2025
3392db1
Merge remote-tracking branch 'upstream/main' into 158-anbindung-bibso…
zesaro May 29, 2025
2223359
include to multiproject setup
zesaro May 29, 2025
28ad47c
Merge remote-tracking branch 'upstream/main' into 158-anbindung-bibso…
zesaro Nov 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions jabgui/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@
requires jakarta.inject;
// endregion

// BibSonomy
requires bibsonomy.common;
requires bibsonomy.model;
requires bibsonomy.rest.client;
requires bibsonomy.rest.common;

// region: http server and client exchange
// requires jakarta.ws.rs;
// endregion
Expand Down
5 changes: 5 additions & 0 deletions jablib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ dependencies {

implementation("com.h2database:h2-mvstore")

// BibSonomy
implementation ("org.bibsonomy:bibsonomy-rest-client:3.9.2") {
exclude(group = "jaxb-impl")
}

// required for reading write-protected PDFs - see https://github.com/JabRef/jabref/pull/942#issuecomment-209252635
implementation("org.bouncycastle:bcprov-jdk18on")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.jabref.logic.importer.fetcher.ApsFetcher;
import org.jabref.logic.importer.fetcher.ArXivFetcher;
import org.jabref.logic.importer.fetcher.AstrophysicsDataSystem;
import org.jabref.logic.importer.fetcher.BibSonomyFetcher;
import org.jabref.logic.importer.fetcher.BiodiversityLibrary;
import org.jabref.logic.importer.fetcher.BvbFetcher;
import org.jabref.logic.importer.fetcher.CiteSeer;
Expand Down Expand Up @@ -249,6 +250,7 @@ public static Set<CustomizableKeyFetcher> getCustomizableKeyFetchers(ImportForma
fetchers.add(new BiodiversityLibrary(importerPreferences));
fetchers.add(new MedlineFetcher(importerPreferences));
fetchers.add(new UnpaywallFetcher(importerPreferences));
fetchers.add(new BibSonomyFetcher(importFormatPreferences, importerPreferences));
return fetchers;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package org.jabref.logic.importer.fetcher;

import java.util.Objects;

import org.jabref.logic.importer.ImportFormatPreferences;
import org.jabref.logic.importer.ImporterPreferences;

public class BibSonomyFetcher implements CustomizableKeyFetcher {

private final String API_URL = "https://www.bibsonomy.org/api";

private final ImporterPreferences importerPreferences;
private final ImportFormatPreferences preferences;

public BibSonomyFetcher(ImportFormatPreferences preferences, ImporterPreferences importerPreferences) {
this.preferences = Objects.requireNonNull(preferences);
this.importerPreferences = importerPreferences;
}

@Override
public String getName() {
return "BibSonomy";
}

// @Override
// public Optional<HelpFile> getHelpPage() {
// return CustomizableKeyFetcher.super.getHelpPage();
// }

// @Override
// public URLDownload getUrlDownload(URL url) {
// return CustomizableKeyFetcher.super.getUrlDownload(url);
// }

@Override
public String getTestUrl() {
return API_URL;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,8 @@ public JabRefCliPreferences() {
defaults.put(OO_EXTERNAL_CSL_STYLES, "");
defaults.put(OO_ADD_SPACE_AFTER, Boolean.TRUE);

defaults.put(FETCHER_CUSTOM_KEY_NAMES, "Springer;IEEEXplore;SAO/NASA ADS;ScienceDirect;Biodiversity Heritage");
defaults.put(FETCHER_CUSTOM_KEY_USES, "FALSE;FALSE;FALSE;FALSE;FALSE");
defaults.put(FETCHER_CUSTOM_KEY_NAMES, "Springer;IEEEXplore;SAO/NASA ADS;ScienceDirect;Biodiversity Heritage;BibSonomy");
defaults.put(FETCHER_CUSTOM_KEY_USES, "FALSE;FALSE;FALSE;FALSE;FALSE;FALSE");
defaults.put(FETCHER_CUSTOM_KEY_PERSIST, Boolean.FALSE);

defaults.put(USE_OWNER, Boolean.FALSE);
Expand Down