Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make progressive enhancement work for JanosBibliographyStyle #71

Open
ManiShiyam opened this issue Apr 20, 2017 · 14 comments
Open

Make progressive enhancement work for JanosBibliographyStyle #71

ManiShiyam opened this issue Apr 20, 2017 · 14 comments

Comments

@ManiShiyam
Copy link

ManiShiyam commented Apr 20, 2017

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
Copy link
Owner

monperrus commented Apr 24, 2017 via email

@ManiShiyam
Copy link
Author

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
Copy link
Owner

monperrus commented Apr 25, 2017 via email

@monperrus monperrus changed the title Unable to use bibtexbrowser.css and how to show/hide bibtex entries in the same page? How can I enable show/hide bibtex entries in the same page under each publication entry? May 17, 2017
@monperrus monperrus changed the title How can I enable show/hide bibtex entries in the same page under each publication entry? Make progressive enhancement work for JanosBibliographyStyle May 17, 2017
@monperrus
Copy link
Owner

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
Copy link
Author

ManiShiyam commented May 17, 2017

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
Copy link
Owner

monperrus commented May 17, 2017 via email

@monperrus
Copy link
Owner

monperrus commented May 17, 2017 via email

@ManiShiyam
Copy link
Author

No. It does not work.

@ManiShiyam
Copy link
Author

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
Copy link
Owner

monperrus commented May 17, 2017 via email

@ManiShiyam
Copy link
Author

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

@monperrus
Copy link
Owner

monperrus commented May 17, 2017 via email

@ManiShiyam
Copy link
Author

ManiShiyam commented May 17, 2017

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants