Skip to content

Instantly share code, notes, and snippets.

View exlcodeshare's full-sized avatar

Ex Libris Code Share exlcodeshare

View GitHub Profile
@exlcodeshare
exlcodeshare / ies_viewed_30_days.rptdesign
Created May 21, 2015 15:34
Rosetta - BIRT Report of IEs viewed over last 30 days
<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.16" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 2.3.0.v20080606 Build &lt;2.3.0.v20080618-0630></property>
<property name="units">in</property>
<property name="iconFile">/templates/blank_report.gif</property>
<simple-property-list name="includeResource">
<value>DPSreports</value>
</simple-property-list>
<html-property name="description">Provides instructions for building a customer listing report.</html-property>
<method name="initialize">
@exlcodeshare
exlcodeshare / MendeleyProcess.java
Created June 2, 2015 11:44
Primo Plug-in for Mendeley (PushTo Plug-in)
package com.primo.pushto.mendeley;
import java.io.IOException;
import java.net.URLEncoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.exlibris.jaguar.xsd.search.DOCDocument.DOC;
@exlcodeshare
exlcodeshare / openLibraryJSON.html
Last active August 11, 2017 18:02
Alma Library Opening Hours API Example
<!doctype html>
<!--
*****************************************************************************************************
Author : Jeremy Steelberg
Date : 04/09/2015
sDescription: This program creates a fullcalendar calendar and loads events that are in the JSON
document that is included as a string in the file.
*****************************************************************************************************
-->
<html>
@exlcodeshare
exlcodeshare / Rosetta.PublishingToPrimoCollections.xsl
Created January 21, 2016 10:54
XSL to transform Rosetta collection records for Primo harvesting
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:mets="http://www.loc.gov/METS/" xmlns:dnx="http://www.exlibrisgroup.com/dps/dnx" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="yes" indent="no"/>
<xsl:template match="/">
<oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
<xsl:if test="//dc:record">
<xsl:copy-of select="//dc:record/*/."/>
</xsl:if>
<dc:type>collection</dc:type>
<xsl:if test="//dnx:section[@id='Collection']/dnx:record/dnx:key[@id='collectionParentId']">
@exlcodeshare
exlcodeshare / Rosetta.PublishingToPrimoIEs.xsl
Created January 21, 2016 10:58
XSL to transform Rosetta IE records for Primo harvesting
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dnx="http://www.exlibrisgroup.com/dps/dnx">
<xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="/">
<oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd" xmlns:dcterms="http://purl.org/dc/terms/">
<xsl:if test="//dc:record">
<xsl:copy-of select="//dc:record/*/."/>
</xsl:if>
<xsl:for-each select="//dnx:section[@id='Collection']/dnx:record">
<dcterms:isPartOf xsi:type="collection">
<?xml version="1.0" encoding="UTF-8"?>
<email-data>
<General-Info>
<date>21/10/2015</date>
<css>../../css/email.css</css>
<userFullName>John Smith</userFullName>
<actionReason>null</actionReason>
<time>12:25:16</time>
<depositLoginUrl>http://il-dps12:1801/deposit</depositLoginUrl>
<addressContact>library@exlibris.co.il</addressContact>
Files for generating dc.xml in Excel.
require 'savon'
require 'base64'
if ARGV.length < 2
puts "usage: ./set_collection_thumbnail.rb pdsHandle collectionId"
exit
end
# point wsdl to repository load balancer
wsdl = 'https://rosetta.exlibrisgroup.com/dpsws/repository/CollectionWebServices?wsdl'
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="DC.creator" content="Ruven Pillay &lt;ruven@users.sourceforge.netm&gt;"/>
<meta name="DC.title" content="IIPMooViewer 2.0: HTML5 High Resolution Image Viewer"/>
<meta name="DC.subject" content="IIPMooViewer; IIPImage; Visualization; HTML5; Ajax; High Resolution; Internet Imaging Protocol; IIP"/>
<meta name="DC.description" content="IIPMooViewer is an advanced javascript HTML5 image viewer for streaming high resolution scientific images"/>
<meta name="DC.rights" content="Copyright &copy; 2003-2016 Ruven Pillay"/>
@exlcodeshare
exlcodeshare / collection_metadata.xml
Last active November 16, 2021 06:24
Rosetta Delivery XML examples
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<collection-metadata>
<collection-dc>
<dc:record xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mets="http://www.loc.gov/METS/">
<dc:title>Western Star</dc:title>
<dcterms:isPartOf>Newspapers</dcterms:isPartOf>
</dc:record>
</collection-dc>
</collection-metadata>