Instantly share code, notes, and snippets.

# This software is placed under the gnu General Public License, v2 (
# Copyright 2007 Tamil s.a.r.l.
# Forked parts copyright 2016 L2C2 Technologies (
# This file is part of Koha.
# Koha is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
View biblioteksok.xslt
<xsl:stylesheet version="1.0"
<xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="node()|@*">
View ETD framework jQuery listing
if (($.trim($('#Frameworks').find(":selected").text())) == "Electronic Theses and Dissertations"){
$('a:contains("LEADER")').append('<span class="etd"> ( dc.type - set position 6 to "a" [or "m" for multimedia ETD], position 7 as "m" )</span>');
$('a:contains("FIXED-LENGTH DATA ELEMENTS--GENERAL INFORMATION")').append('<span class="etd"> | THESIS DATE ( - positions 7-10 )</span>');
$('a:contains("MAIN ENTRY--PERSONAL NAME")').replaceWith('<span class="etd"> AUTHOR OF THESIS / DISSERTATION ( dc.creator ) </span>');
$('div[id^="subfield100a"] > label > span.subfield').text('Name (first, last)');
$('a:contains("TITLE STATEMENT")').replaceWith('<span class="etd"> TITLE OF THESIS / DISSERTATION ( dc.title ) </span>');
$('a:contains("TRANSLATION OF TITLE BY CATALOGING AGENCY")').replaceWith('<span class="etd"> TRANSLATED TITLE ( dc.title.translated ) </span>');
$('a:contains("VARYING FORM OF TITLE")').replaceWith('<span class="etd"> ALTERNATIVE TITL
View ETD framework CSS listing
span.etd {
color: red !important;
.tag_editor_upload {
background: transparent url("") top left no-repeat;
display : block;
float : left;
width : 16px;
height: 16px;
View ETD framework AUTH_VAL SQL inserts
INSERT INTO `authorised_values` (`category`, `authorised_value`, `lib`, `lib_opac`, `imageurl`) VALUES
('856Q_LIST', 'text/html', 'text/html', 'text/html', ''),
('856Q_LIST', 'application/pdf', 'Adobe PDF (.pdf)', 'Adobe PDF (.pdf)', ''),
('856Q_LIST', 'application/msword', 'MS-Word (.doc / .docx)', 'MS-Word (.doc / .docx)', ''),
('856Q_LIST', 'jpeg', 'JPEG image (.jpg / .jpeg)', 'JPEG image (.jpg / .jpeg)', ''),
('856Q_LIST', 'application/', 'MS-Excel (.xls / .xlsx)', 'MS-Excel (.xls / .xlsx)', ''),
('DEG_NAME', 'Master of Science', 'Master of Science', 'Master of Science', ''),
('DEG_NAME', 'Doctor of Education', 'Doctor of Education', 'Doctor of Education', ''),
('DEG_NAME', 'Doctor of Philosophy', 'Doctor of Philosophy', 'Doctor of Philosophy', ''),
('DEG_ROLES', 'GS', 'Guide / Supervisor', 'Guide / Supervisor', ''),
# Script to convert PDF file to JPG images
# Dependencies:
# * pdftk
# * imagemagick
View example.html
<title>bookreader example</title>
<link rel="stylesheet" type="text/css" href="BookReader/BookReader.css"/>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="BookReader/jquery-ui-1.8.5.custom.min.js"></script>
<script type="text/javascript" src="BookReader/dragscrollable.js"></script>
<script type="text/javascript" src="BookReader/jquery.colorbox-min.js"></script>
# Script to convert PDF file to JPG images
# Dependencies:
# * pdftk
# * imagemagick
View utlization_certificate
GROUP_CONCAT(DISTINCT(f.ifund) ORDER BY f.ifund separator ", ") AS "Fund Source",
f.bibno AS "Bib. No.",
f.btitle AS "Item Title",
f.bauthor AS Author,
f.ted AS Edition,
f.tpub AS Publisher,
f.tisbn AS ISBN,
GROUP_CONCAT(f.idate separator ", ") AS "Date Acquired",
GROUP_CONCAT(f.ibarcode separator ", ") AS Barcodes,
View kangsabati sishu vidyalaya
var address_data = {
'location0': 'Vill. Amtala',
'location1': 'Vill. Karunamoyee',
'location2': 'Vill. Phoolbagan',
'location3': 'Vill. Maniktala'
var address2_data = {
'location1': 'PO + PS Khatra'