Skip to content
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

Added the case "Other" for the reference type #18

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

marciuz
Copy link

@marciuz marciuz commented Jun 2, 2020

@Vitaliy-1
Copy link
Owner

Thanks!
Looking at the code, I think AbstractReference and classes that extend it needs refactoring, e.g., editors isn't a common property for all of the reference classes.
Regarding the other type of references, I'm not sure if we need it here in the long-term perspective. What I'm planning to support is journal article, book, chapter, conference, data, website, thesis, software, data, preprint, report and patent. I'm afraid other doesn't give much info about the reference structure. Do you think there could be types that aren't being covered by the list?

@marciuz marciuz changed the title Adde the case "Other" for the reference type Added the case "Other" for the reference type Jun 13, 2020
@Vitaliy-1
Copy link
Owner

Hi @marciuz,

If you'd like to make a contribution, can you make a PR for the last 2 commits separately from different branches? Say, branch metadata and move-examples?

@marciuz
Copy link
Author

marciuz commented Jun 18, 2020

Hi @marciuz,

If you'd like to make a contribution, can you make a PR for the last 2 commits separately from different branches? Say, branch metadata and move-examples?

Yes of course, have you some suggestion about how to do it easily?

@Vitaliy-1
Copy link
Owner

E.g., create a new branch from the current master and cherry pick commit by hash to it.
Also, I propose to create a new issue for each feature.
Let's assume there is a new issue with a feature request that has number 20

git checkout -b i20_metadata
git cherry-pick 96c41011718adaf3507dc607175d8b0929a510be

You can check by git log if the commit is applied. Then you can make a PR as usual.
Sometimes you may need to update your fork to be aligned with remote master branch:

git checkout master
git pull upstream master
git push
git checkout <your-branch>
git rebase -i upstream/master
git push --force

This means you are switching to your master, fetching and merging it with your local master branch of the fork, pushing it to your fork, master branch, on the GitHub, switching to the branch on which you are working on a new feature, rebasing with your commits on top ( will have code from master branch with your new commits on top) and pushing it to your repo on the GitHub with history rewrite.
This operation may be required if, e.g., remote master branch contains new commits which would not allow merge changes from your branch.

@Vitaliy-1
Copy link
Owner

@marciuz,

FYI, I've started to work on integration of citeproc-php for references and Reference class is going to be completely rewritten to support different citation style formats.

@Vitaliy-1
Copy link
Owner

(I mean JATSParser\Back\Reference)

@marciuz
Copy link
Author

marciuz commented Jun 25, 2020 via email

@Vitaliy-1
Copy link
Owner

Integration with citeproc-php is in the master branch now. If you are interested, can you test according to the example?
I've moved ii to the separate folder, as you suggested: https://github.com/Vitaliy-1/JATSParser/blob/master/examples/example.php
Let me know if it's unclear to you what citation styles are supported.

Base automatically changed from master to main March 11, 2021 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants