Skip to content

Instantly share code, notes, and snippets.

View geo-mac's full-sized avatar

g3om4c geo-mac

View GitHub Profile
@geo-mac
geo-mac / mods-eprints-serializer.xslt
Last active June 15, 2023 10:55
MODS-EPrints XSLT serializer, accommodating 'publication states' from Pure with 'Dates, Dates, Dates' extension for EPrints - Strathclyde
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:v3="http://www.loc.gov/mods/v3" xmlns:date="http://exslt.org/dates-and-times" xmlns:xlin="http://www.w3.org/1999/xlink" xmlns:riox="http://docs.rioxx.net/schema/v1.0/rioxxterms/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:math="http://www.w3.org/2005/xpath-functions/math" xmlns:map="http://www.w3.org/2005/xpath-functions/map" xmlns:array="http://www.w3.org/2005/xpath-functions/array" version="1.0" exclude-result-prefixes="v3">
<xsl:output indent="yes" method="xml"/>
<xsl:template match="text()"/>
<xsl:template match="v3:mods">
<eprints>
<eprint>
<!-- Document visibility -->
<xsl:choose>
@geo-mac
geo-mac / z_coversheet.pl
Created July 5, 2019 12:51
Modified configuration file for EPrints coversheets
# Bazaar Configuration
$c->{plugins}{"Convert::AddCoversheet"}{params}{disable} = 0;
$c->{plugins}{"Event::AddCoversheet"}{params}{disable} = 0;
$c->{plugins}{"Screen::Coversheet::Activate"}{params}{disable} = 0;
$c->{plugins}{"Screen::Coversheet::Deprecate"}{params}{disable} = 0;
$c->{plugins}{"Screen::Coversheet::Edit"}{params}{disable} = 0;
$c->{plugins}{"Screen::Coversheet::New"}{params}{disable} = 0;
$c->{plugins}{"Screen::EPMC::Coversheet"}{params}{disable} = 0;
@geo-mac
geo-mac / eprints-pure-connector-strath.xslt
Created July 5, 2019 12:46
MODS-EPrints XSLT serializer - Strathclyde
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:v3="http://www.loc.gov/mods/v3" xmlns:date="http://exslt.org/dates-and-times" xmlns:xlin="http://www.w3.org/1999/xlink" xmlns:riox="http://docs.rioxx.net/schema/v1.0/rioxxterms/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:math="http://www.w3.org/2005/xpath-functions/math" xmlns:map="http://www.w3.org/2005/xpath-functions/map" xmlns:array="http://www.w3.org/2005/xpath-functions/array" version="1.0" exclude-result-prefixes="v3">
<xsl:output indent="yes" method="xml"/>
<xsl:template match="text()"/>
<xsl:template match="v3:mods">
<eprints>
<eprint>
<!-- Document visibility -->
<xsl:choose>