monperrus / bibtexbrowser

Beautiful publication lists with bibtex and PHP (standalone or in Wordpress)
http://www.monperrus.net/martin/bibtexbrowser/
84 stars 53 forks source link

Make progressive enhancement work for JanosBibliographyStyle #71

Open ManiShiyam opened 7 years ago

ManiShiyam commented 7 years ago

Thanks for this wonderful package.

  1. I am trying to change the fontsize etc using the bibtexbrowser.css file on wordpress with php (I am working on a local host). However it makes no changes of the font in the publication list. I also tried to directly modify the bibtexbrowser.php file (under bibtexbrowserDefaultCSS() function) but still I am unable to update the fonts in my publication list.

  2. How can I enable show/hide bibtex entries in the same page under each publication entry (e.g. http://bibtexbrowser.sourceforge.net/bibtexbrowser.php?frameset&bib=metrics.bib )?

monperrus commented 7 years ago

Do you use the bibtexbrowser plugin for wordpress (wp-publications)?

--Martin

ManiShiyam commented 7 years ago

Instead of the plugin I am using php. Currently when I use the default publication style (@define('BIBLIOGRAPHYSTYLE','DefaultBibliographyStyle');) and custom css I am able to change the font sizes. However when I use @define('BIBLIOGRAPHYSTYLE','JanosBibliographyStyle'); I am unable to change the font size and colors.

monperrus commented 7 years ago

However when I use @define https://github.com/define('BIBLIOGRAPHYSTYLE','JanosBibliographyStyle'); I am unable to change the font size and colors. Probably because JanosBibliographyStyle does not use the same CSS classes.

monperrus commented 7 years ago

How can I enable show/hide bibtex entries in the same page under each publication entry

By using at the same time the default style and define('BIBTEXBROWSER_USE_PROGRESSIVE_ENHANCEMENT',true);

ManiShiyam commented 7 years ago

progressive enhancement (show/hide bibtex entries under each publications) does not work even with the default bibliography style. When I click the bibtex link (after setting 'BIBTEXBROWSER_USE_PROGRESSIVE_ENHANCEMENT' to true ) I am getting page not found (URL: http://localhost/wordpress/test-bibtex/bibtexbrowser.php?key=Name_2004_+1&bib=sample.bib).

However when I use the following code segment bibtex entry appear in a new page.

@define('BIBTEXBROWSER_USE_PROGRESSIVE_ENHANCEMENT',true); @define('BIBTEXBROWSER_URL',"");

monperrus commented 7 years ago

URL: http://localhost/wordpress/test-bibtex/bibtexbrowser.php?key=Name_2004_+1&bib=sample.bib). I'm surprised by the key. Is there a "+" or a space " " in your key?

ManiShiyam commented 7 years ago

Thank you again for your kind support. There is a "+" but no space in the URL. http://localhost/wordpress/test-bibtex/?key=Name_2004_+1&bib=sample.bib

These are few other examples http://localhost/wordpress/test-bibtex/?key=thana_3&bib=sample.bib http://localhost/wordpress/test-bibtex/?key=2012_1&bib=sample.bib http://localhost/wordpress/test-bibtex/?key=AA_2011&bib=sample.bib

monperrus commented 7 years ago

Does progressive enhancement work for the entries with no "+" in the key?

ManiShiyam commented 7 years ago

No. It does not work.

ManiShiyam commented 7 years ago

In http://bibtexbrowser.sourceforge.net/bibtexbrowser.php?frameset&bib=metrics.bib when I click the bibtex links bibtex appears below each publication, and the URL also remains the same.

monperrus commented 7 years ago

Why do you have urls with no |bibtexbrowser.php| in them||? do you use URL rewriting?

ManiShiyam commented 7 years ago

I dont use any URL rewriting. Do you think this may be due to the wordpress theme I am using.

monperrus commented 7 years ago

Do you use bibtexbrowser inside wordpress?

ManiShiyam commented 7 years ago

I used the bibtexbrowser.local file to include the following two lines: @define('BIBTEXBROWSER_BIBTEX_LINKS',true); @define('BIBTEXBROWSER_USE_PROGRESSIVE_ENHANCEMENT',true);

Inside wordpress I included custom php as follows [insert_php] $_GET['bib']='sample.bib'; $_GET['author']='Name A'; $_GET['academic']=1; include( 'bibtexbrowser.php' ); [/insert_php]