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
function zdb_Reziprok() { | |
/************************************************************** | |
edits Hachmann, Grund, Klee | |
letzte Änderung 2012-12-05 Klee | |
/**************************************************************/ | |
// Skript muss bei reziprokem Verknuepfungsfeld aufgerufen werden und erzeugt an der Gegenaufnahme eine Verknüpfung. | |
if (!application.activeWindow.title) |
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
function bearbeiteZeilenErsetzen() | |
{ | |
//Zuerst werden die Zeilen gezählt, dann wandert das Script durch | |
//den ganzen Datensatz und vergleicht die Kategorien mit den Vorgaben des Anwenders | |
//bei der find-Anweisung steht lineOnly immer auf true, weil jede Zeile einzeln | |
//untersucht werden soll | |
var strbedingung = document.getElementById("idBedingung").value; | |
var strbedingung2 = document.getElementById("idBedingung2").value; | |
var zeilenNr, tagContent, strTag; |
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 | |
/** | |
* parse an picaplusxml record into an array | |
* @param object $dom: domcument | |
* @return array picaplusArray | |
*/ | |
function picaplusxml2Array(DomDocument $dom){ | |
$numberOfRecords = $dom->getElementsByTagNameNS('http://www.loc.gov/zing/srw/', 'numberOfRecords'); | |
$this->numberOfRecords = $numberOfRecords->item(0)->nodeValue; | |
$picaplusArray = array(); |
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
// Script for XUL | |
var application = Components.classes["@oclcpica.nl/kitabapplication;1"] | |
.getService(Components.interfaces.IApplication); | |
// get params from open_xul_dialog() | |
var params = this.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); | |
var theDir; | |
const utility = |
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
/** | |
* zählt Exemplardatensätze | |
* | |
* @return int|null | |
*/ | |
function __exemplareAnzahl() | |
{ | |
var strTitle = application.activeWindow.copyTitle(); | |
var regexpExe = /\n(70[0-9][0-9])/g; | |
var alleExe = new Array(); |
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
function __tempTuebingen(csv) | |
{ | |
var ezb = false; | |
__iterateExemplare( | |
function(i) | |
{ | |
application.activeWindow.command("\\mut e" + i, false); | |
if(!ezb) | |
{ |
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
//============================================================================ | |
// Erstellt: GBV, Karen Hachmann | |
// 2009.02 | |
// letzte Änderung: 2014-08-22 Klee ZDB | |
//============================================================================ | |
// Pull in the WinIBW application object: | |
var application = Components.classes["@oclcpica.nl/kitabapplication;1"] | |
.getService(Components.interfaces.IApplication); |
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
"use strict"; | |
// | |
// @param string field Field content in PICA+ without field tag | |
// | |
function conv(field) | |
{ | |
var part = field.split('$0 '); | |
var subfields; | |
var s; |
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
function zdbCsvGoogle() { | |
var csv = new CSV(); | |
var digiConfig; | |
csv.csvFilename = 'bsb_google_2018_neu.csv'; | |
//csv.csvFilename = 'bsb_google_2018_test.txt'; | |
csv.startLine = 1; | |
csv.delimiter = ";"; | |
csv.__makeConfig = function () { | |
var digi = {}; | |
digi[1101] = { kat: "1101 ", cont: "cr" }; |
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
function setBearbeiten() | |
{ | |
var csv = new CSV(); | |
csv.__csvSetLogFilename("LOG_ergERessource.txt"); | |
var setSize = application.activeWindow.getVariable("P3GSZ"); | |
i = 1; | |
do { |
OlderNewer