Skip to content

Instantly share code, notes, and snippets.

View black23's full-sized avatar

black23 black23

View GitHub Profile
@black23
black23 / gist:2e48a946c5b247b8f076
Created December 21, 2015 08:37
Obálky z Obálek knih v OPACu Koha
/* Obálky */
var obalky = obalky || {};
obalky.protocol =
(document.location.protocol == 'https:') ? 'https://':'http://';
obalky.url = obalky.protocol+"www.obalkyknih.cz";
obalky.books = obalky.books || [];
obalky.version = "0.2.0";
obalky.id = 0;
# Flush the tables to apply changes
iptables -F
# Allow established connections (the responses to our outgoing traffic)
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# SSH from anywhere
iptables -A INPUT -m state --state NEW -p tcp --dport 22 -j ACCEPT
@black23
black23 / CPK_Koha_OAI
Created July 23, 2015 11:54
Příklad šablony OAI pro CPK (996)
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:marc="http://www.loc.gov/MARC21/slim"
version="2.0">
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:strip-space elements="*"/>
<xsl:template match="@* | node()">
<xsl:copy>
@black23
black23 / oaiconf.yaml
Created June 11, 2015 11:07
Nastavení OAI provideru Koha (YAML)
format:
marcxml:
metadataPrefix: marcxml
metadataNamespace: http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim
schema: http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd
xsl_file: /home/koha/xslt/ModifyMARC.xsl
marc21:
metadataPrefix: marc21
metadataNamespace: http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim
schema: http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd
@black23
black23 / ModifyMARC.xsl
Last active August 29, 2015 14:22
XSLT šablona pro Koha OAI
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:marc="http://www.loc.gov/MARC21/slim"
version="1.0">
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:strip-space elements="*"/>
<xsl:template match="@* | node()">
<xsl:copy>