Giter Club home page Giter Club logo

rosetta-openwayback-vpp's Introduction

Rosetta OpenWayback VPP

Build Status codecov Codacy Badge MIT License GitHub release

About

This plugin enables OpenWayback as an external viewer in Rosetta. It has two viewer modes:

  • Overview (default): Directs users to the overview page for a given URL. This is similar to the user searching directly in OpenWayback.
  • Detail: Directs users to a certain harvest represented by the requested IE.

Detail view mode needs a webserver redirect due to technical restrictions of Rosetta (see Installation for details).

The mode is selected by the viewer option detail. The value true selects detail mode, every other value (or none) selects overview mode.

Options

The VPP supports several options. To set an option, go in Rosetta Admin Backend to your delivery rule, section Output Parameters. Add an option using name=value.

Option Value Description
detail true Directs the user to the capture represented by the IE (URL at a certain harvest time).
false Directs the user to the overview page as if the user had searched for the URL in Wayback.
default false
marker any A string used to delimit the relevant URL in part for detail view for webserver redirects.
default @

Installation

Rosetta

  1. Move the JAR-file to ./operational_shared/plugins/custom.
  2. Rosetta Admin Backend: Go to Plugin-Management --> Custom Plugins and add a new Plugin Instance
  3. Rosetta Admin Backend: Go to Delivery --> Viewers Management --> Add External Viewer:
  • Level needs to be IE.
  • URL needs to be http://<WAYBACK_HOSTNAME>/wayback/query
  1. Rosetta Admin Backend: Go to Delivery --> IE Delivery Rules --> Add New Delivery Rule. At Output Parameters add detail=true for detail mode.

Apache Webserver

An example configuration for Apache Webserver. Only needed for detail mode. Same scheme would work with other webservers as well (fell free to contribute more configuration examples).

RewriteEngine on
RewriteCond %{QUERY_STRING} ^(([^&]*&)*)@(.*)@(.*)$
RewriteRule ^/wayback/query$ /wayback%3? [L,PT]

Development

To build this project the Rosetta PDS SDK from GitHub is needed as there is no public Maven repository. Note that the jar-Files for "deposit" and "plugin" are the same, but "deposit" has more Rosetta-Versions. To use the SDK, you have to download and install it locally:

curl -sS -O https://raw.githubusercontent.com/ExLibrisGroup/Rosetta.dps-sdk-projects/master/6.3/dps-sdk-projects/dps-sdk-deposit/lib/dps-sdk-6.3.0.jar
mvn install:install-file -Dfile=dps-sdk-6.3.0.jar -DgroupId=com.exlibris.dps -DartifactId=dps-sdk -Dversion=6.3.0 -Dpackaging=jar

Building a deployable jar file including all necessary configuration files:

mvn clean install

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.