This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const bodyParser = require('body-parser'); | |
const crypto = require('crypto'); | |
const app = express() | |
const port = 8000 | |
const webhook_secret = process.env.WEBHOOK_SECRET || '1234' | |
app.use(bodyParser.json()); | |
app.use(bodyParser.urlencoded({ extended: false })); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.opensymphony.workflow.InvalidInputException | |
import com.atlassian.jira.ComponentManager | |
import com.atlassian.jira.issue.Issue | |
import com.atlassian.jira.issue.CustomFieldManager | |
import com.atlassian.jira.issue.fields.CustomField | |
def customFieldManager = ComponentManager.getInstance().getCustomFieldManager() | |
def fields = [] | |
// For Alma issues, if issue is fixed, make all sorts of validations |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<collection> | |
<record> | |
<leader> | |
12288cam 22006611i 4500 | |
</leader> | |
<controlfield tag="001"> | |
9983540000561 | |
</controlfield> | |
<controlfield tag="005"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
URL=https://api-na.hosted.exlibrisgroup.com/almaws/v1/users/fdsa | |
curl ${URL} -vs -H 'accept: application/json' -H "authorization: apikey $ALMA_APIKEY" | jq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ComponentFixture } from "@angular/core/testing"; | |
import { CloudAppRestService, EntityType, PageInfo } from "@exlibris/exl-cloudapp-angular-lib"; | |
import { of, Subject } from "rxjs"; | |
import { map } from "rxjs/operators"; | |
const PAGE_INFO: PageInfo = { | |
entities: [{ | |
"id": "23140519980000561", | |
"type": EntityType.ITEM, | |
"description": "AUT1469", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" src="https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization','version':'1.1','packages':['corechart']}]}"></script> | |
<script> | |
google.setOnLoadCallback(drawChart); | |
function drawChart() { | |
xmlhttp=new XMLHttpRequest(); | |
xmlhttp.open("GET","https://api-na.hosted.exlibrisgroup.com/almaws/v1/analytics/reports?path=%2Fshared%2FAlma%2FFulfillment%2FReports%2FGeneral%20Circulation%20Statistics&apikey=[[APIKEY]]",false); | |
xmlhttp.send(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function alma_get($url) { | |
$opts = [ | |
"http" => [ | |
"header" => "Accept: application/json\r\n" . | |
"Authorization: apikey " . getenv('ALMA_APIKEY') . "\r\n" | |
] | |
]; | |
$context = stream_context_create($opts); | |
$json = file_get_contents($url, false, $context); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('viewCustom', ['angularLoad']); | |
/* Other Works */ | |
app.controller('OtherWorksComponentController', ['$http', function ($http) { | |
var vm = this; | |
const mms_id = vm.parentCtrl.item.pnx.control.sourcerecordid && vm.parentCtrl.item.pnx.control.sourcerecordid[0] || ''; | |
if (mms_id) { | |
const data = { | |
"statements": [{ | |
"statement": `MATCH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.time.LocalDate; | |
import java.time.LocalDateTime; | |
import java.time.format.DateTimeFormatter; | |
import com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; | |
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer; | |
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var alma = require ('almarestapi-lib'); | |
var xpath = require('xpath'); | |
var dom = require('xmldom').DOMParser | |
const XPATH_TITLE = '/record/datafield[@tag="245"]/subfield[@code="a"]'; | |
const XPATH_AUTHOR = '/record/datafield[@tag="100"]/subfield[@code="a"]'; | |
const MMS_ID = '99469654400561'; | |
let title, author, bib, doc; | |
( async () => { |
NewerOlder