Skip to content

jasonzou/OJS-2.4.6

 
 

Repository files navigation

About

This is our current published Open Journal System 2.4.6 installation. Changes from our previous version are now cleaner and easier to mantain.

Features

Installation

  • Install OJS 2.4.6 (OJS GitHub https://github.com/pkp/ojs)
  • Download our OJS customization and unzip it.
  • Upload to your server (or overwrite):
    • file lib > pkp > classes > template > PKPTemplateManager.inc.php
    • folder lib > pkp > templates
    • folder plugins (or at least block plugins folder + addCssJs plugin + issueCarousel plugin)
    • folder override
  • Customize!

License

Same as OJS, see: https://github.com/pkp/ojs, that is released under the the GNU General Public License.

Further customizations

  • CSS: custom CSS files are stored in override > css. These stylesheet are loaded after any other stylesheet so they're called by header.tpl (article > header.tpl and lib > pkp > templates > common > header.tpl), not by any plugin.

    • mobile.css: for 50px to 600px devices
    • tablet.css: for 601px to 796px devices
    • custom.css and custom-light.css: for 797px to anything devices.
  • JS: Bootstrap 3.3.5 needs jQuery 1.11 and OJS works with jQuery 1.08 (I think). So, even if we use jQuery Migrate sometimes conflicts arise. In order to avoid this, custom JS like the one used to toggle the menu in tablet and mobile devices should be enclosed like: (function($) { $(function() { $(".mobile-menu-dropdown-link").on('click', function(event) { event.preventDefault(); $("#menu-princ-mobile").slideToggle("slow"); }); }); }(jQuery));

  • Templates overwrite: all modified templates are stored in override > templates folder, except those used in lib > pkp > templates. If you want to change another OJS template, just copy the original .tpl file to his related folder in override > templates (or create a new folder named as the OJS original one) and change whatever you want.

Notes & Recommendations

  • OJS folders /cache/ /public/ and /files/ not provided. Neither config.inc.php for security reasons.
  • This OJS is installed in a subfolder.

Issues

  • JS conflicts: solution explained above.
  • Templates links: Our hosting configuration forced us to hard code most OJS internal links and create lot's of weird .htaccess rules. So you may have to change some links in .tpl files in override > templates

About

Current OJS customization for the academic online spanish journal "Relaciones Internacionales"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 63.5%
  • Smarty 17.7%
  • Java 10.1%
  • JavaScript 3.5%
  • CSS 2.8%
  • XSLT 1.8%
  • Other 0.6%