Comments (4)
I investigated a little bit and here is what I have found out:
It seems the library we use assumes that the citations are displayed in an HTML page. It returns the citation styles coated withing two
And the library escapes HTML characters, for example in title and abstract.
Also, our abstract contains HTML elements.
However the BibTex and RIS format are not displayed on the page as the other formats, but provided by us for download. We do remove the
That means that, for example, a title would then look like this there:
Title & Test
or abstract would look like this:
<p>The antimicrobial, heavy metal resistance patterns and ... (>56.4 kb) encoding .... </p>
.
Thus, I can see the following possibilities how to deal with it:
- Do not provide BibTex and RIS for download, but display them as other styles on the page, so that users can copy & paste them, if needed.
- Do nothing i.e. leave it as it is. In that case the users will have those HTML tags and escaping when they import the BibTex or RIS format into their citation software.
- I actually do not think this is a solution, but to mention it here however: to somehow remove HTML elements from our abstract (and title). The HTML escaping will however remain i.e. for example the sign '&' if used in text would be escaped (or we would need to revert it somehow too).
I think I prefer the solution #1.
from citationstylelanguage.
Hmm... Now I see that we save some parts of the title and abstract html encoded, for example:
<p>Abstract: One more test' < <strong>EN & sign </strong> bla bla... </p>
So the only solution is to somehow disable the encoding by the library we use... :-\
from citationstylelanguage.
Hmmm... I think we can use htmlspecialchars_decode
for download citations BibTeX and RIS
from citationstylelanguage.
Fixes will be covered by #118
from citationstylelanguage.
Related Issues (13)
- Update citeproc-php
- Add option to generate citations only in main language of an article. HOT 2
- Settings form does not select selected options HOT 1
- Primary Citation Format can't be selected when not set as Additional Citation Formats HOT 1
- [QUESTION] Is this version compatible with OJS 3.3.x? HOT 2
- Update usage of UserGroupDAO HOT 1
- Citation year incorrect HOT 4
- spanish prepositions HOT 1
- Journal with & in the title HOT 2
- Citations not showing correctly in Immersion theme HOT 11
- Double encoding on citations HOT 1
- The prefixes and suffixes of the DOI and URL citation element should not be linked HOT 3
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 citationstylelanguage.