Difference between revisions of "Template:Heidelberg/pages/software/zitator"
(10 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | ||
<html> | <html> | ||
<head> | <head> | ||
<script type="text/javascript" src="https://2015.igem.org/Team:Heidelberg/js/prism?action=raw&ctype=text/javascript"></script> | <script type="text/javascript" src="https://2015.igem.org/Team:Heidelberg/js/prism?action=raw&ctype=text/javascript"></script> | ||
<link rel="stylesheet" type="text/css" href="https://2015.igem.org/Team:Heidelberg/css/prism?action=raw&ctype=text/css" /> | <link rel="stylesheet" type="text/css" href="https://2015.igem.org/Team:Heidelberg/css/prism?action=raw&ctype=text/css" /> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</head> | </head> | ||
<body> | <body> | ||
Line 32: | Line 26: | ||
// The parameter are the selector for the container(s) of text in which you want replacement | // The parameter are the selector for the container(s) of text in which you want replacement | ||
// and a URL pointing to your bibfile - mind the same origin policy... | // and a URL pointing to your bibfile - mind the same origin policy... | ||
− | zitator = new Zitator(".basicText", " | + | zitator = new Zitator(".basicText", "https://static.igem.org/mediawiki/2015/b/ba/Heidelberg_refdb.txt"); |
zitator.zitiere(); | zitator.zitiere(); | ||
}); </code></pre> | }); </code></pre> | ||
Line 48: | Line 42: | ||
</div> | </div> | ||
</pre> | </pre> | ||
− | where " | + | where "igemHD2015" would be the BibTeX citationKey of your reference. |
</p> | </p> | ||
− | < | + | <p class="basicText"> |
Zitator is the awesomest web zitation software available to iGEMers right now <x-ref>igemHD2015</x-ref>! | Zitator is the awesomest web zitation software available to iGEMers right now <x-ref>igemHD2015</x-ref>! | ||
</p> | </p> | ||
− | |||
</div> | </div> | ||
<!-- col-lg-12 --> | <!-- col-lg-12 --> |
Latest revision as of 23:18, 20 November 2015
zitator.js - Awesome citation and bibliography generator
As every good engineer, we hate repititon and love automation. So we didn't bother with formatting and managing our references by hand and wrote a litte helper that would take care of that - like it is standard outside of the web.
As everyone already has it's own database of references tucked away in a bibtex file, EndNote or similar programm, we decided not to reinvent the wheel and instead make it easy for you to import this database.
So how can you use this awesome piece of software? Simple: Upload your .bib file to to the iGEM wiki - note that EndNote can export it's library in BibTeX format and that you may have to change the file ending to .txt before uploading to the iGEM wiki -, second add the following code at the beginning of your page:
{{Heidelberg/js/zitator.js}}and in the JavaScript Section:
$(function() {
// The parameter are the selector for the container(s) of text in which you want replacement
// and a URL pointing to your bibfile - mind the same origin policy...
zitator = new Zitator(".basicText", "https://static.igem.org/mediawiki/2015/b/ba/Heidelberg_refdb.txt");
zitator.zitiere();
});
as well as the placeholder for the bibliography
<div id="references"></div>and third, start citing!
<div class="basicText"> <!-- Some paragraphs ?> <p> Zitator is the awesomest web zitation software available to iGEMers right now <x-ref>igemHD2015</x-ref>! </p> </div>where "igemHD2015" would be the BibTeX citationKey of your reference.
Zitator is the awesomest web zitation software available to iGEMers right now