Skip to content

Instantly share code, notes, and snippets.


Adrian Pachzelt GrazingScientist

View GitHub Profile
GrazingScientist / article_details.tpl
Created Jan 19, 2018
OJS 3 - Include page number on article page
View article_details.tpl
### The middle block is the interesting part, the top and the bottom block should already be present. I recommend to create a child theme and manipulate this. ###
{* Issue article appears in *}
<div class="item issue">
<div class="sub_item">
<div class="label">
{translate key="issue.issue"}
GrazingScientist /
Last active Mar 23, 2018
Register a Custom TokenizerFactory in Apache Lucene / Solr

When you created a custom TokenizerFactory for Apache Lucene, you need to register it so the SPI Loader can recognize it.

Let's assume, your have written a TokenizerFactory class like this:


public class AwesomeTokenizerFactory extends TokenizerFactory {
  // Lot of awesome code