Difference between revisions of "Template:Heidelberg/pages/software/zitator"

 
(12 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Heidelberg/js/zitator.js}}
+
 
 
<html>
 
<html>
 
   <head>
 
   <head>
Line 18: Line 18:
 
                   <h1 class="basicheader">zitator.js - Awesome citation and bibliography generator</h1>
 
                   <h1 class="basicheader">zitator.js - Awesome citation and bibliography generator</h1>
 
                   <p class="basictext">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.</p>
 
                   <p class="basictext">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.</p>
                   <p class="basictext">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.</p>
+
                   <p class="basictext">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.</p>
                   <p class="basictext">So how ca 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:
+
                   <p class="basictext">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:
 
                   <pre>{{Heidelberg/js/zitator.js}}</pre>
 
                   <pre>{{Heidelberg/js/zitator.js}}</pre>
 
                   and in the JavaScript Section:
 
                   and in the JavaScript Section:
Line 26: 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", "http://igem2015.bioquant.uni-heidelberg.de/refdb.bib");
+
     zitator = new Zitator(".basicText", "https://static.igem.org/mediawiki/2015/b/ba/Heidelberg_refdb.txt");
 
     zitator.zitiere();
 
     zitator.zitiere();
 
}); </code></pre>
 
}); </code></pre>
 +
as well as the placeholder for the bibliography
 +
<pre>&lt;div id="references"&gt;&lt;/div&gt;</pre>
 
                    
 
                    
 
and third, start citing!
 
and third, start citing!
Line 40: Line 42:
 
&lt;/div&gt;
 
&lt;/div&gt;
 
</pre>
 
</pre>
                   where "igemHS2015" would be the BibTeX citationKey of your reference.
+
                   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>!
 +
    </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 igemHD2015!