Giter Club home page Giter Club logo

bootstrap3's Introduction

Bootstrap3 for OJS 3+

A community-built theme for OJS 3+ that implements Bootstrap 3 components.

Installation

This theme can be installed through the Plugin Gallery in Open Journal Systems. If it's not available in the plugin gallery, you may need to update Open Journal Systems to a compatible version.

Project Aims

This project was born at the 2016 PKP Sprint in Montreal. It aims to provide a common starting point for anyone who wants to build a custom theme for OJS 3+.

The goal was to stay true to Bootstrap 3's core components, so that developers familiar with the HTML, CSS and JavaScript framework can more easily read and customize the code base. By sticking close to Bootstrap 3's supported components, the theme is able to more easily leverage the many existing Bootstrap 3 resources out there.

Contribution

This theme is built by the community of editors, administrators and software developers using OJS. If you see something that could be improved, please issue a Pull Request.

Thanks to everyone who has contributed to this theme:

  • Nate Wright, @NateWr (PKP)
  • Roger Gillis, @rcgillis (PKP/Dalhousie)
  • Sophy Ouch, @sophyo (Érudit)
  • Michael Felczak, @mfelczak (PKP)
  • Marc Behiels (WebKitchen)
  • Ted Roeder (Cold Spring Harbor Laboratory)
  • William Alejandro Ortiz Porras, @wortizBiteca (Biteca Ltda, Columbia)
  • Ramón Martins Sodoma da Fonseca (IBCIT, Brazil)
  • Alexander Kiselev, @Avernial
  • Nikos Kasioumis, @kasioumis
  • Karam Qubsi, @karamqubsi
  • Simon Mitternacht, @mittinatten
  • Marco Tullney, @mtub
  • Dennis Müller, @dennmuel (UB Mannheim)
  • Clinton Graham, @ctgraham (University of Pittsburgh)

License

This theme is released under the GPL license.

The following fonts are distributed under the terms of the Open Font License:

  • Lato
  • News Cycle
  • Raleway
  • Source Sans Pro

The following fonts are distributed under the terms of the Apache License, 2.0:

  • Open Sans
  • Roboto

The Ubuntu font is distributed under the terms of the Ubuntu Font License.

Changelog

Changes are tracked in the releases notes.

bootstrap3's People

Contributors

alex-wreschnig avatar anupent avatar asmecher avatar avernial avatar bkawula avatar ctgraham avatar defstat avatar dennmuel avatar gopalkildoliya avatar henriquejsfj avatar israelcefrin avatar jbogdani avatar jirrka avatar jmacgreg avatar jnugent avatar kaitlinnewson avatar kant avatar karamqubsi avatar leocsilva avatar mandroide avatar mfelczak avatar mhvezina avatar mohammadrizki avatar mtub avatar mustafatat avatar natewr avatar oyvindlgjesdal avatar shoorick avatar sioulasdimitris avatar vormia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrap3's Issues

Using this project on OCS

Hi,

I'm Working on the OCS platform and i was wondering if i can use this bootstrap implementation to enhance the aparience of that platform.

The Documentation of the OCS is not good as the OJS doc.

Missing article details

Several pieces of data on article details are missing, most of which aren't working in master. These will need to be added when available:

Article detail elements

  • Header
  • DOI (near the title)
  • Galley links
  • Issue cover
  • Abstract

Summary section

  • Keywords (under abstract)
  • Authors’ biography + affiliations

Article tools (maybe in sidebar?)

  • Cite (diff bibliographic styles)
  • Export citation (.ris, etc.)

Displayed as main sections

  • Usage Stats

Author biography in article details missing

Hi,
The editors of a journal I'm admin for wanted to include the author biography in article view. I made some simple changes to the theme: ubbdst/ojs@d6e2078 to accomodate this. Basically I just copied the corresponding section from the standard OJS template and changed some tags. Don't know how well my solution plays with the rest of the code, but it works for our particular journal and theme, perhaps there are other more appropriate tags (<h5> is a bit arbitrary for instance) in some places.

We keep the theme directly in our OJS fork, and not as a submodule, for now, so can't do a pull request.

Mark required form fields

Hi everyone,

first of all: thanks a lot for these themes. They look and feel pretty nice. :)
However, I'd like to know if it is possible to mark required form fileds (e.g. for user registration) or if this could be taken into the next release. I know that these themes "may not support all features of OJS 3.0", but perhaps this might be useful for all users.

Kind regards
Dennis

Troubles with install

Hi,
I really like to see bootstrap in OJS, so many thanks for your efforts!
However, I cloned the repo to the appropriate folder named bootstrap3 and could find the theme in the website settings dialogue. But once activated the page is "naked"... No css, etc.
Is there a brief summary of how to get going with the current state?

Best
Andreas

Privacy options missing from registrationForm.tpl

In order to register as a user in OJS 3.1.1 you have to agree to the terms of the privacy statement. However, this is missing from: templates/frontend/components/registrationForm.tpl in this theme. Quick copy-and-paste required.

Resizing Sidebars (Block Bars) for IndexSite

The site that I support (https://revistas.reduc.edu.cu/), is a multisite that contains 7 journals and the main page (IndexSite) works with a template (that I modified) based on bootstrap3 of @NateWr. In a virtual test machine I tried to resize the blocks in the right sidebar, but when I try to modify bootstrap-rtl.min.css it seems to have no effect.
What I can do? Greetings Eduardo Osquel

Right to left support .

Hi ,
Is it possible to implement right to left support for for Arabic , Hebrew , Persian languages . the current version looks not supporting that .

php error

Hi,
I followed the instructions and extracted the plugin into the themes folder. I get the following error now when I click on the "System Plugins" link:

Fatal error: require_once(): Failed opening required 'lib/pkp/classes/plugins/ThemePlugin.inc.php' (include_path='.:/home/scipie/public_html/classes:/home/scipie/public_html/pages:/home/scipie/public_html/lib/pkp:/home/scipie/public_html/lib/pkp/includes:/home/scipie/public_html/lib/pkp/classes:/home/scipie/public_html/lib/pkp/pages:/home/scipie/public_html/lib/pkp/lib/adodb:/home/scipie/public_html/lib/pkp/lib/phputf8:/home/scipie/public_html/lib/pkp/lib/pqp/classes:/home/scipie/public_html/lib/pkp/lib/smarty:.:/usr/lib/php:/usr/local/lib/php') in /home/scipie/public_html/lib/pkp/includes/functions.inc.php on line 25

How should this theme be customised?

I'm unclear how this theme would be customised, i.e. with changes to the CSS, JS and layout (templates). Where would overriding custom styles (CSS, less?) templates etc. go, assuming the base theme is to remain upgrade-safe?

Or is that not possible?

[OJS3.1] Missing menu items

It seems as if there's some code missing in BootstrapThreeThemePlugin.inc.php. At least in my test environment Bootstrap3 Theme doesn't load any menu items. A quick check with the Default Theme Plugin points to a missing line at the bottom of init().

$this->addMenuArea(array('primary', 'user'));

I added it manually in my environment and it gave me the missing menu items back.

Clean up third-party bootstrap themes and add more.

The extra bootstrap themes we chucked in last-minute need to be organised a bit better, and licensing needs to be checked for distribution purposes. Then more themes bundled.

  • Organised better
  • Check licensing info and include
  • Bundle more free themes

userRegister.tpl template file doesn't support recaptcha

If I enable ReCaptcha but switch to this theme, the captcha won't display on user register. The following code should be added to templates/frontend/pages/userRegister.tpl:

            {if $reCaptchaHtml}
                    <fieldset class="recaptcha_wrapper">
                            <div class="fields">
                                    <div class="recaptcha">
                                            {$reCaptchaHtml}
                                    </div>
                            </div>
                    </fieldset>
            <br />
            {/if}

... maybe around line 77. I've already made this fix to a current journal; I'm super rusty in the whole pull request business, but if that helps I can try to send one.

Missing field 'Contact' with bootstrap3

Missing field "Contact" inside "About" menu after adding contact via Journal Settings Wizard.

I am using Bootstrap 3 theme with current OJS master branch.

With default theme:

defaulttheme

With bootstarp theme:

bootstrap3

<h1> should not be the site name

I noticed the site name is wrapped in a <h1> element. That is poor practice for a number of reasons.

The <h1> element should present the title of the page, not the site. The <h1> page name is usually used in search results, and so ranks very low if all pages are the same.

This was even pointed out by the design lead of the gov.uk sites when he gave a talk on accessibility last month - screen readers put a lot of emphasis on the header element structure of the page, and is the main navigation used for skipping sections of the page, so that first <h1> needs to tell the site visitor what that page is all about.

Additionally, when the site title is replaced with an image, the <h1> element does not even contain any text.

Glyphicons don't work

They're loaded via a relative URL that doesn't work with our $$$call$$$ approach. Needs a novel solution.

indexSite.tpl from Ted Roeder

This didn't get reviewed and merged during the sprint.

{**
 * templates/frontend/pages/indexSite.tpl
 *
 * Copyright (c) 2014-2016 Simon Fraser University Library
 * Copyright (c) 2003-2016 John Willinsky
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
 *
 * Site index.
 *
 *}
{include file="frontend/components/header.tpl"}

<div id="main-content" class="page page_indexSite">
    {if $intro}{$intro|nl2br}{/if}

    <a name="journals"></a>

    {iterate from=journals item=journal}
        {if $site->getSetting('showThumbnail')}
            {assign var="displayJournalThumbnail" value=$journal->getLocalizedSetting('journalThumbnail')}
            <div style="clear:left;">
            {if $displayJournalThumbnail && is_array($displayJournalThumbnail)}
                {assign var="altText" value=$journal->getLocalizedSetting('journalThumbnailAltText')}
                <div class="homepageImage"><a href="{url journal=$journal->getPath()}" class="action"><img src="{$journalFilesPath}{$journal->getId()}/{$displayJournalThumbnail.uploadName|escape:"url"}" {if $altText != ''}alt="{$altText|escape}"{else}alt="{translate key="common.pageHeaderLogo.altText"}"{/if} /></a></div>
            {/if}
            </div>
        {/if}
        {if $site->getSetting('showTitle')}
            <h3>{$journal->getLocalizedName()|escape}</h3>
        {/if}
        {if $site->getSetting('showDescription')}
            {if $journal->getLocalizedDescription()}
                <p>{$journal->getLocalizedDescription()|nl2br}</p>
            {/if}
        {/if}
        <p><a href="{url journal=$journal->getPath()}" class="action">{translate key="site.journalView"}</a> | <a href="{url journal=$journal->getPath() page="issue" op="current"}" class="action">{translate key="site.journalCurrent"}</a> | <a href="{url journal=$journal->getPath() page="user" op="register"}" class="action">{translate key="site.journalRegister"}</a></p>
    {/iterate}
    {if $journals->wasEmpty()}
        {translate key="site.noJournals"}
    {/if}

    <div id="journalListPageInfo">{page_info iterator=$journals}</div>
    <div id="journalListPageLinks">{page_links anchor="journals" name="journals" iterator=$journals}</div>
</div><!-- .page -->

{include file="common/frontend/footer.tpl"}

maquetacion en OJS 3.x primeros pasos

Hola a todos,
he creado este Issues porque tengo problemas para modificar el theme creado por @NateWr y su equipo. podrían hacer un ejemplo sobre como agregar una imagen de fondo en el header y agregar un menú lateral lado izquierdo.

para mortales¡¡¡¡

Logo size

could you implement an option in the OJS 3 appearance panel to set the size of the journal logo? the bootstrap themes simply scale it down to a very small image.

problem in registration page

a new user attempting to create a user account reports filling out the account information, but when they click ‘submit’, the page refreshes, and fails to create the user account.

PDF viewer uses only half of screen height

When using Bootstrap 3 theme with current OJS master branch PDF viewer works incorrect and uses only half of screen height.

Browser console produce following warnings:

TypeError: options.container is null
http://127.0.0.1:8000/plugins/generic/pdfJsViewer/pdf.js/web/viewer.js
Line 3918


TypeError: canvas is null
http://127.0.0.1:8000/index.php/test/article/view/1/1
Line 52

bootstrap-pdfbug

bootstrap-noconsole

Archive blank page

Hi,
I am using ojs 3.1.1.0 in localhost xampp v3.2.2, when i click Archive in my website it directed to a blank page.

this is the error shown in error log

PHP Fatal error: Uncaught Error: Call to a member function getPageCount() on array in C:\xampp\htdocs\ojs\cache\t_compile\b1833e07cde48b95bfa6dfe66d9ad2430979a526^%%6B^6B5^6B5271FB%%issueArchive.tpl.php:6\nStack trace:\n#0 C:\xampp\htdocs\ojs\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php(1257): include()\n#1 C:\xampp\htdocs\ojs\lib\pkp\classes\template\PKPTemplateManager.inc.php(797): Smarty->fetch('frontend/pages/...', NULL, 'b1833e07cde48b9...', true)\n#2 C:\xampp\htdocs\ojs\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php(1107): PKPTemplateManager->fetch('frontend/pages/...', NULL, 'b1833e07cde48b9...', true)\n#3 C:\xampp\htdocs\ojs\lib\pkp\classes\template\PKPTemplateManager.inc.php(872): Smarty->display('frontend/pages/...', NULL, NULL)\n#4 C:\xampp\htdocs\ojs\pages\issue\IssueHandler.inc.php(152): PKPTemplateManager->display('frontend/pages/...')\n#5 C:\xampp\htdocs\ojs\lib\pkp\classes\core\PKPRouter.inc.php(372): IssueHandler->archive(Array, Object(Request))\n#6 C:\xampp\htdocs\ojs\lib\pkp\classes\core\PKPPageRo in C:\xampp\htdocs\ojs\cache\t_compile\b1833e07cde48b95bfa6dfe66d9ad2430979a526^%%6B^6B5^6B5271FB%%issueArchive.tpl.php on line 6, referer: http://localhost/OJS/index.php/art/index

Please help to solve this problem

User nav links can get hidden in navbar

Because they're just links rather than embedded in the navbar structure, they can be less visible in some themes. Consider trying to get everything onto one line to comply with the Bootstrap structure.

Support new How-To-Cite block

The citation formats are delivered to the theme in a different way now and there's a different URL for fetching each format.

Templates needing more work

  • Single announcement (currently broken in ojs master)
  • Issue.tpl could be improved by removing use of list items and putting download buttons in inline
  • Issue archive: test descriptions
  • Issue archive: move list group out of nested panel
  • About: consider panels for contact details
  • Search: add accordion
  • Touch up search results
  • Article details: use locked/unlocked icons to indicate access status (only when subscription module is in place)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.