Skip to content

Instantly share code, notes, and snippets.

Avatar

Adrian Pachzelt GrazingScientist

View GitHub Profile
@GrazingScientist
GrazingScientist / RegisterTokenizerFactoryInLucene.md
Last active Mar 23, 2018
Register a Custom TokenizerFactory in Apache Lucene / Solr
View RegisterTokenizerFactoryInLucene.md

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:

package de.company.subdomain;

public class AwesomeTokenizerFactory extends TokenizerFactory {
  // Lot of awesome code
}
@GrazingScientist
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"}