Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/strohne/Facepager
Browse files Browse the repository at this point in the history
  • Loading branch information
strohne committed Jan 22, 2025
2 parents 1d7e85d + 17de7d1 commit 204f234
Show file tree
Hide file tree
Showing 32 changed files with 1,854 additions and 982 deletions.
3 changes: 2 additions & 1 deletion build/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ Install software:
$ pip install pyinstaller
$ brew install upx

The following steps can alternatively be executed with build/osx/build.pyinstaller.command. Double click build.pyinstaller.command in Finder or execute in terminal.
The following steps can alternatively be executed with build/osx/build.pyinstaller.command.
Double click build.pyinstaller.command in Finder or execute in terminal.

- Copy Facepager.spec to src folder:
$ cp ../build/osx/Facepager.spec Facepager.spec
Expand Down
2 changes: 1 addition & 1 deletion build/windows/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ copy ..\..\build\windows\Facepager_Setupscript.nsi Facepager_Setupscript.nsi
copy ..\..\icons\icon_facepager.ico icon_facepager.ico
"C:\Program Files (x86)\NSIS\makensis.exe" Facepager_Setupscript.nsi
copy Facepager_Setup.exe ..\..\build\windows\Facepager_Setup.exe

cd ../../build/windows
endlocal
pause
54 changes: 0 additions & 54 deletions presets/Bibliometrics-COCI_Metadata_from_doi.fp4.json

This file was deleted.

48 changes: 0 additions & 48 deletions presets/Bibliometrics-COCI_citations.fp4.json

This file was deleted.

48 changes: 0 additions & 48 deletions presets/Bibliometrics-COCI_references.fp4.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"name": "OpenCitations Index (COCI): Metadata from doi",
"category": "Bibliometrics",
"description": "[The OpenCitations Index](https://opencitations.net/index) – formerly known as the OpenCitations Index of Crossref open DOI-to-DOI citations (COCI) – is a bibliographic index recording and storing citations between publications. It pulls its data from various open scholarly sources as described on their website (see link above), thereby providing comprehensive and openly accessible bibliographic and citation data. \n\nEach citation is identified by an unique [Open Citation Identifier (OCI)](https://identifiers.org/oci). However, data can be fetched via various identifiers including DOIs. \n\nApply this preset to fetch metadate releated to a scholarly work. Add as many DOIs as seed nodes as you wish (e.g. , \"10.1111/j.1460-2466.2008.01401.x\").\n\nFor this specific preset we are still calling version 1.4.0 of the [REST API for COCI](https://opencitations.net/index/coci/api/v1#/metadata/%7Bdois%7D). As the operation \"/metadata/{dois}\" has not been carried to version 2.0.x of [the REST API for the OpenCitations Index](https://opencitations.net/index/api/v2). In this context OpenCitations states: \"we use certain legacy APIs for historical and compatibility reasons. While we encourage the use of our latest and more efficient V2 APIs, we understand that some applications may still rely on these older endpoints. Please note that legacy APIs may not receive updates or support, and their use may be phased out in the future. We recommend transitioning to our current V2 APIs for improved performance, security, and reliability.\"",
"module": "Generic",
"options": {
"auth": "disable",
"auth_prefix": "",
"auth_tokenname": "",
"auth_type": "Disable",
"auth_uri": "",
"basepath": "https://opencitations.net/index/coci/api/v1",
"extension": "",
"fileext": "<None>",
"filename": "<None>",
"format": "json",
"headers": {},
"nodedata": null,
"objectid": "doi",
"offset_start": 1,
"offset_step": 1,
"pages": 1,
"paging_type": "count",
"param_paging": null,
"params": {
"<doi>": "<Object ID>"
},
"proxy": "",
"redirect_uri": "",
"resource": "/metadata/<doi>",
"scope": "",
"token_uri": "",
"verb": "GET"
},
"speed": 200,
"saveheaders": false,
"timeout": 15,
"maxsize": 5,
"columns": [
"year",
"author",
"reference",
"reference_count=reference|re:^.\\|;|length",
"citation",
"citation_count",
"title",
"source_title",
"source_id",
"volume",
"issue",
"page",
"oa_link"
]
}
50 changes: 50 additions & 0 deletions presets/Bibliometrics-OpenCitations_Index_COCI_citations.fp4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "OpenCitations Index (COCI): citations",
"category": "Bibliometrics",
"description": "[The OpenCitations Index](https://opencitations.net/index) – formerly known as the OpenCitations Index of Crossref open DOI-to-DOI citations (COCI) – is a bibliographic index recording and storing citations between publications. It pulls its data from various open scholarly sources as described on their website (see link above), thereby providing comprehensive and openly accessible bibliographic and citation data. \n\nEach citation is identified by an unique [Open Citation Identifier (OCI)](https://identifiers.org/oci). However, data can be fetched via various identifiers including DOIs. Further, each item is a citation record. To get its bibliographic metadata use the \"OpenCitations Index (COCI): Metadata from doi\" preset.\n\nApply this preset to fetch the titles of all works that cite the seed work. Add as many DOIs as seed nodes as you wish (e.g. , \"10.1111/j.1460-2466.2008.01401.x\").\n\nHere we are calling version 2.0.x of [the REST API for the OpenCitations Index](https://opencitations.net/index/api/v2#/citations/%7Bid%7D).",
"module": "Generic",
"options": {
"auth": "disable",
"auth_prefix": "",
"auth_tokenname": "",
"auth_type": "Disable",
"auth_uri": "",
"basepath": "https://opencitations.net/index/api/v2",
"extension": "",
"fileext": "<None>",
"filename": "<None>",
"format": "json",
"headers": {},
"nodedata": null,
"objectid": "citing",
"offset_start": 1,
"offset_step": 1,
"pages": 1,
"paging_type": "count",
"param_paging": null,
"params": {
"<doi>": "<Object ID>"
},
"proxy": "",
"redirect_uri": "",
"resource": "/citations/doi:<doi>",
"scope": "",
"token_uri": "",
"verb": "GET"
},
"speed": 200,
"saveheaders": false,
"timeout": 15,
"maxsize": 5,
"columns": [
"oci",
"citing",
"cited",
"creation",
"timespan",
"journal_sc",
"author_sc",
"",
""
]
}
48 changes: 48 additions & 0 deletions presets/Bibliometrics-OpenCitations_Index_COCI_references.fp4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "OpenCitations Index (COCI): references",
"category": "Bibliometrics",
"description": "[The OpenCitations Index](https://opencitations.net/index) – formerly known as the OpenCitations Index of Crossref open DOI-to-DOI citations (COCI) – is a bibliographic index recording and storing citations between publications. It pulls its data from various open scholarly sources as described on their website (see link above), thereby providing comprehensive and openly accessible bibliographic and citation data. \n\nEach citation is identified by an unique [Open Citation Identifier (OCI)](https://identifiers.org/oci). However, data can be fetched via various identifiers including DOIs. Further, each item is a citation record. To get its bibliographic metadata use the \"OpenCitations Index (COCI): Metadata from doi\" preset.\n\nApply this preset to fetch the references contained in the seed title. . Add as many DOIs as seed nodes as you wish (e.g. , \"10.1111/j.1460-2466.2008.01401.x\").\n\nHere we are calling version 2.0.x of [the REST API for the OpenCitations Index](https://opencitations.net/index/api/v2#/references/%7Bid%7D).",
"module": "Generic",
"options": {
"basepath": "https://opencitations.net/index/api/v2",
"resource": "/references/doi:<doi>",
"params": {
"<doi>": "<Object ID>"
},
"extension": "",
"headers": {},
"verb": "GET",
"format": "json",
"filename": "<None>",
"fileext": "<None>",
"pages": 1,
"paging_type": "count",
"param_paging": null,
"offset_start": 1,
"offset_step": 1,
"nodedata": null,
"objectid": "cited",
"scope": "",
"proxy": "",
"auth_type": "Disable",
"auth_uri": "",
"redirect_uri": "",
"token_uri": "",
"auth": "disable",
"auth_tokenname": "",
"auth_prefix": ""
},
"speed": 200,
"saveheaders": false,
"timeout": 15,
"maxsize": 5,
"columns": [
"creation",
"timespan",
"author_sc",
"journal_sc",
"oci",
"citing",
"cited"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "Open Library: Author metadata (Authors API)",
"category": "Bibliometrics",
"description": "[Open Library](https://openlibrary.org/) is an open project launched by the Internet Archive in 2006 that aims to provide \"one web page for every book ever published\". Each page contains detailed bibliographic information about the entry, including metadata such as publisher, publication date, and ISBN. The result is an exhaustive catalog of books searchable by title, author, or subject and, whenever possible, Open Library offers digital versions of its books for borrowing and reading. Due to its collaborative, wiki-style nature all users are welcome to contribute information to the catalog by editing book information or even adding new entries.\n\nApply this preset to fetch all available metadata about an author using the [Open Library Author API](https://openlibrary.org/dev/docs/api/authors). Start by adding an author's identifier key as seed note (e.g., \"OL234664A\"). You can also fetch information by adding the name of an author as a seed node (e.g., \"George R.R. Martin\"). Simply, use the Open Library Search API by applying our \"Open Library: Book metadata from title (Search API)\" preset and replace \"title:\" in the q parameter with \"author:\". Just make sure to adjust the Column Setup accordingly.\n\nPlease, see this [overview of Open Library's range of APIs](https://openlibrary.org/developers/api) to find the API that best suits your needs and adjust the preset accordingly. Generally, OpenLibrary recommends their powerful [Search API](https://openlibrary.org/dev/docs/api/search) and they have published some [tips for working with it](https://openlibrary.org/search/howto).\n\n**Note:** Please mind Open Library's bulk download policy. Open Library kindly asks to not use their APIs for bulk downloads. If you need a dump of complete data, please read about their [bulk download](https://openlibrary.org/data#downloads) options, or email them at openlibrary@archive.org. If you plan to make regular, frequent use of Open Library's APIs (e.g. multiple calls per minute), please edit the existing **header** to specify the **User-Agent string** with (a) the name of your application and (b) your contact email or phone number, so Open Library may contact you when we notice high request volume. Failing to include these headers may result in the application (Facepager) being blocked.",
"module": "Generic",
"options": {
"auth": "disable",
"auth_prefix": "",
"auth_tokenname": "",
"auth_type": "Disable",
"auth_uri": "",
"basepath": "https://openlibrary.org",
"extension": "",
"fileext": "<None>",
"filename": "<None>",
"format": "json",
"headers": {
"User-Agent": "Facepager/4.5.3 (youremail@example.com)"
},
"nodedata": null,
"objectid": "personal_name",
"offset_start": 1,
"offset_step": 1,
"pages": 1,
"paging_type": "count",
"param_paging": null,
"params": {
"<author key>": "<Object ID>"
},
"proxy": "",
"redirect_uri": "",
"resource": "/authors/<author key>.json",
"scope": "",
"token_uri": "",
"verb": "GET"
},
"speed": 200,
"saveheaders": false,
"timeout": 15,
"maxsize": 5,
"columns": [
"birth_date",
"bio"
]
}
Loading

0 comments on commit 204f234

Please sign in to comment.