An open API service indexing awesome lists of open source software.

https://github.com/bradjc/wordpress-academic-pubs

Plugin for wordpress that adds support for creating a list of academic publications.
https://github.com/bradjc/wordpress-academic-pubs

Last synced: about 1 year ago
JSON representation

Plugin for wordpress that adds support for creating a list of academic publications.

Awesome Lists containing this project

README

          

wordpress-academic-pubs
=======================

Plugin for wordpress that adds support for creating a list of academic publications.

Admin
-----

WPAP adds a section to the wordpress admin panel named "Publications". Here you
can add publications and publication categories. Publications are ordered by the
wordpress "published date" so the order you create the publications doesn't
matter.

Display
-------

### Shortcode

WPAP supports shortcodes. To use, just add:

[academicpubs]

to your posts.

### PHP Function

To display publications in a template, you can use two functions:

/* Returns a list of publications. Each publication contains key,val pairs.
*
* $options: array('option' => 'value')
*
* Returns: [['id':1, 'title':'Paper Name', 'pdf_url':'http://a.com'],
* [another pub...]]
* fields are: id, title, authors, conference, pdf_url, bibtex_url
*/
wpap_display_publications($options);

/* Returns html around each publication.
*/
wpap_display_publications_formatted($options);

Options
-------

WPAP supports some options:

~~~~~~~
category => '',
numbered => 'false',
limit => -1,
reverse => 'false',
show_links => 'true',
page_num => '',
num_per_page => '',
~~~~~~~

### With shortcodes

[academicpubs category=selected,science numbered=true limit=5 reverse=true show_links=false]

### With PHP functions

'selected,science',
'reverse' => 'true',
'show_links' => 'false');
$pubs = wpap_display_publications($opts);
foreach ($pubs as $pub) {
echo '

' . $pub['title'] . '

';
}
?>

Or the easy way:

'true',
'limit' => 10);
echo wpap_display_publications_formatted($opts);
?>

Example Output
--------------




  • Pub1 Title

    Tom Smith and Eva Newn


    Conference 1





  • Pub2 Title

    Tom Cruise


    COOKIE '13





Reasonable CSS
--------------

.wpap .publication-title {
font-size: 110%;
font-weight: bold;
}
.wpap p {
margin: 0;
padding: 0;
}
.wpap ul {
list-style: none;
margin: 0;
}
.wpap li {
margin-bottom: 15px;
}