Skip to content

Instantly share code, notes, and snippets.

@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
@xmorave2
xmorave2 / marc_local.properties
Created August 8, 2016 07:18
Skrytí odepsaných záznamů ve VuFindu
# /usr/local/vufind2/local/import/marc_local.properties
withdrawn_status = 9930
@xmorave2
xmorave2 / zakony-pro-lidi-indexer.sh
Created January 9, 2019 10:07
Zákony pro lidi
#!/bin/bash
#
# dependencies: xml-twig-tools, wget
apikey=test
collection=cs
export VUFIND_HOME="/usr/local/vufind"
export VUFIND_LOCAL_DIR="/usr/local/vufind/local"
cd /usr/local/vufind/local/harvest
@xmorave2
xmorave2 / issueslip.tt
Created February 11, 2019 14:08
issueslip.tt
[% USE KohaDates %]
[% BLOCK detail %]
<p style="font-size: 1.1em; border-bottom: 1px dotted black;">
[% IF checkout.item.biblio.author %]<i>[% checkout.item.biblio.author | remove(',$') %]</i>:[% END %]
<strong>[% checkout.item.biblio.title | remove(' \/$') | remove(' :$') %]</strong>
[%- IF checkout.item.enumchron %], [% checkout.item.enumchron %][% END %]
<br />
Půjčeno od: [% checkout.issuedate | $KohaDates %]<br />
Vrátit do: <b>[% checkout.date_due | $KohaDates %]</b><br />
[% branch.branchname %]
@xmorave2
xmorave2 / hold_slip.tt
Created February 11, 2019 14:09
hold_slip.tt
[% USE KohaDates %]
<p><small>Tisk: [% today | $KohaDates with_hours => 1 %]</small></p>
<h2 style="border-bottom: 1px solid black; margin-bottom: 1em;">[% branch.branchname %]</h2>
<div style="font-size: 1.2em; font-weight: bold;"><i>[% biblio.author %]</i>:<br />[% biblio.title %]</div>
<ul>
<li>Č. kód: [% item.barcode %]</li>
<li>Čeká do: <strong>[% hold.expirationdate | $KohaDates%]</strong></li>
</ul>
[% USE ItemTypes %]
[% BLOCK detail %]
<p style="font-size: 1.1em; border-bottom: 1px solid black;">
[% IF checkout.item.biblio.author %]<i>[% checkout.item.biblio.author | $Remove_MARC_punctuation %]</i>:[% END %]
<strong>[% checkout.item.biblio.title | $Remove_MARC_punctuation %]</strong>
[% record = checkout.item.biblio.metadata.record %]
[% field787 = record.field('787') %]
[% IF field787 %].
[% field787.subfield('t') %] [% field787.subfield('g') %].
[% END %]