Comments (6)
@vruusmann is this issue related to your Library?
from citeproc-java.
No, it's not related to jbibtex/jbibtex. All the temporal fields of a BibTeX entry (e.g. "year", "month") are returned as strings (or nulls if they are missing). Proper mapping and data type conversion is the responsibility of the citeproc-java library.
from citeproc-java.
Just like in issue #5, I need the corresponding BibTeX entry in order to reproduce this issue. Can you please send it to me? Thanks.
Michel
from citeproc-java.
The test files you sent me in issue #5 do not contain months. Please give me more details so I can reproduce the issue.
Michel
from citeproc-java.
will it work only for the field year
but not for the field timestamp
?
what to use for timestamp
?
On Sat, Feb 8, 2014 at 12:41 AM, Michel Krämer [email protected]:
The test files you sent me in issue #5https://github.com/michel-kraemer/citeproc-java/issues/5do not contain months. Please give me more details so I can reproduce the
issue.Michel
Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-34493348
.
from citeproc-java.
timestamp
is an attribute added by JabRef. It tells you when you inserted the entry to your database, but it has nothing to do with the actual publication date. Hence there is no mapping from this attribute to any CSL variable (http://citationstyles.org/downloads/specification.html#appendix-iv-variables).
If you want to output the timestamps you have to access the original BibTeX and then use CSLDateParser
.
Key timestampKey = new Key("timestamp");
CSLDateParser dateParser = new CSLDateParser();
for (BibTeXEntry e : db.getEntries().values()) {
Value ts = e.getField(timestampKey);
CSLDate date = dateParser.parse(ts.toUserString());
System.out.println("Year: " + date.getDateParts()[0][0]);
if (date.getDateParts()[0].length > 1)
System.out.println("Month: " + date.getDateParts()[0][1]);
if (date.getDateParts()[0].length > 2)
System.out.println("Day: " + date.getDateParts()[0][2]);
}
Cheers,
Michel
from citeproc-java.
Related Issues (20)
- FileSystemNotFoundException when using v. 2.0 in jar HOT 2
- MLA8: a problem with pages formatting
- aci-materials-journal citation style: incorrect formatting of pages info HOT 1
- MLA format: a first letter of each word in a title should be in upper case
- harvard-imperial-college-london style: extra space is displayed between initials of author's name HOT 1
- Regression in structuring citations in Hebrew for APA 6th and 7th HOT 1
- IEEE citation style: journal's title is displayed in full instead of being abbreviated HOT 4
- ANTLR Tool version 4.7.2 used for code generation does not match the current runtime version 4.9.3
- Unable to run citeproc due to script error HOT 2
- Need to update to apache commons-text 1.10
- new snapshot release alpha.0.7 HOT 2
- Support of 'name-part' attributes in version 3.0 HOT 2
- Support cite collapsing HOT 3
- Get List of Supported Styles HOT 4
- CSL.getSupportedStyles() returns null HOT 9
- apa-cv duplicate date HOT 3
- citeproc-java is very slow for more than 400 references HOT 6
- CSLType enum do not contain some types exist in official documentation HOT 1
- CSL capitalisations HOT 1
- Index out of bounds exception for empty PhdThesis bibtex entry with IEEE HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citeproc-java.