-
Notifications
You must be signed in to change notification settings - Fork 466
I10692 fixes #11915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
GaziYucel
wants to merge
1
commit into
pkp:main
Choose a base branch
from
GaziYucel:I10692-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+315
−265
Open
I10692 fixes #11915
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * @file classes/citation/enum/CitationSourceType.php | ||
| * | ||
| * Copyright (c) 2025 Simon Fraser University | ||
| * Copyright (c) 2025 John Willinsky | ||
| * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
| * | ||
| * @class CitationSourceType | ||
| * | ||
| * @ingroup citation | ||
| * | ||
| * @brief Enumeration for citation source types. | ||
| */ | ||
|
|
||
| namespace PKP\citation\enum; | ||
|
|
||
| enum CitationSourceType: string | ||
| { | ||
| case BOOK_SERIES = 'book series'; | ||
| case CONFERENCE = 'conference'; | ||
| case EBOOK_PLATFORM = 'ebook platform'; | ||
| case JOURNAL = 'journal'; | ||
| case METADATA = 'metadata'; | ||
| case OTHER = 'other'; | ||
| case REPOSITORY = 'repository'; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * @file classes/citation/enum/CitationType.php | ||
| * | ||
| * Copyright (c) 2025 Simon Fraser University | ||
| * Copyright (c) 2025 John Willinsky | ||
| * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
| * | ||
| * @class CitationType | ||
| * | ||
| * @ingroup citation | ||
| * | ||
| * @brief Enumeration for citation types. | ||
| */ | ||
|
|
||
| namespace PKP\citation\enum; | ||
|
|
||
| enum CitationType: string | ||
| { | ||
| case BOOK = 'book'; | ||
| case BOOK_CHAPTER = 'book-chapter'; | ||
| case BOOK_PART = 'book-part'; | ||
| case BOOK_SECTION = 'book-section'; | ||
| case BOOK_SERIES = 'book-series'; | ||
| case BOOK_SET = 'book-set'; | ||
| case BOOK_TRACK = 'book-track'; | ||
| case COMPONENT = 'component'; | ||
| case DATABASE = 'database'; | ||
| case DATASET = 'dataset'; | ||
| case DISSERTATION = 'dissertation'; | ||
| case EDITED_BOOK = 'edited-book'; | ||
| case EDITORIAL = 'editorial'; | ||
| case ERRATUM = 'erratum'; | ||
| case GRANT = 'grant'; | ||
| case JOURNAL = 'journal'; | ||
| case JOURNAL_ARTICLE = 'journal-article'; | ||
| case JOURNAL_ISSUE = 'journal-issue'; | ||
| case JOURNAL_VOLUME = 'journal-volume'; | ||
| case LETTER = 'letter'; | ||
| case LIBGUIDES = 'libguides'; | ||
| case MONOGRAPH = 'monograph'; | ||
| case OTHER = 'other'; | ||
| case PARATEXT = 'paratext'; | ||
| case PEER_REVIEW = 'peer-review'; | ||
| case POSTED_CONTENT = 'posted-content'; | ||
| case PREPRINT = 'preprint'; | ||
| case PROCEEDINGS = 'proceedings'; | ||
| case PROCEEDINGS_ARTICLE = 'proceedings-article'; | ||
| case PROCEEDINGS_SERIES = 'proceedings-series'; | ||
| case REFERENCE_BOOK = 'reference-book'; | ||
| case REFERENCE_ENTRY = 'reference-entry'; | ||
| case REPORT = 'report'; | ||
| case REPORT_COMPONENT = 'report-component'; | ||
| case REPORT_SERIES = 'report-series'; | ||
| case RETRACTION = 'retraction'; | ||
| case REVIEW = 'review'; | ||
| case STANDARD = 'standard'; | ||
| case SUPPLEMENTARY_MATERIALS = 'supplementary-materials'; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bozana
In Wikidata I found this:
^https?://arxiv.org/(?:pdf|abs)/((?:\d{4}.\d{4,5}|[a-z-]+(?:.[A-Z]{2})?/\d{7})(?:v\d+)?)
For URLs.
It seems there were old identifier, that could contain letters and then 7 digits, s. https://info.arxiv.org/help/arxiv_identifier.html#old
Also there could be pdf instead of abs in the URL -- if someone wants to access/cite PDF directly
Maybe not need to consider www
@GaziYucel
This doesn't match for example this: https://arxiv.org/pdf/cond-mat.02534
I changed the regex a bit, this would work:
/https?://(?:www.)?arxiv.org/(?:abs|pdf)/(?:\d+.\d+|[a-z-]+.\d+)/i
Try with https://regex101.com/
arxiv:cond-mat.02534
arxiv:1902.02534
https://arxiv.org/abs/1902.02534
https://arxiv.org/pdf/cond-mat.02534
doi: 10.1111/j.1365-277X.2011.01184.x.
doi: 10.1002/tox.20155.
doi: 10.7748/phc.2016.e1162.
https://doi.org/10.3390/s23218689.
https://doi.org/10.7717/peerj.1990
https://doi.org/10.1037/arc0000014.
hdl:11366/1249
handle:11366/1249
http://hdl.handle.net/11366/1249
https://www.bildung-forschung.digital/files/BAnz%20AT%2017.06.2020%20B3-1.pdf
@bozana
shell we ignore www ?