Wartung / Maintencance - Upgrade Version 8.5.12 - Mittwoch/Wednesday - 2024-08-28 07:30-09:00 a.m.
Seitenhistorie
Anker | ||||
---|---|---|---|---|
|
Inhalt |
---|
Beschreibung
Auszug | |
---|---|
|
Historie
Datum | geändert von | Beschreibung |
---|---|---|
2011-03-05 | Althaus | neu erstellt |
...
Code
dnb_
...
inhaltserschliessung.js
...
Codeblock |
---|
function ddcEnde() { var Temp; var ddcNummer; var Kat54x1Inhalt; var Schleife = true; var i = 0; var substr1; var substr2; application.activeWindow.title.startOfField(false); do { Temp = application.activeWindow.title.tag; if ((Temp.substring(0,2) == "54") && (Temp.substring(3,4) == "0")) { /* Anfang der DDC-Gruppe gefunden */ //application.messageBox("0", "Anfang der DDC-Gruppe gefunden", ""); Schleife = false; Temp = application.activeWindow.title.currentField; //application.messageBox("1", Temp, ""); Temp = Temp.replace (/^\s+/, '').replace (/\s+$/, ''); //application.messageBox("2", Temp, ""); if (Temp.length > 5) { /* 54x0 mit Inhalt gefunden, also nur [DDC22ger] voranstellen */ //application.messageBox("0", "54x0 mit Inhalt gefunden, also nur [DDC22ger] voranstellen", ""); application.activeWindow.title.startOfField(false); application.activeWindow.title.wordRight(1,false); application.activeWindow.title.insertText("[DDC22ger]"); } else { /* ohne Inhalt, also [DDC22ger] + Inhalt der Kat 54x1 anfügen */ //application.messageBox("0", "ohne Inhalt, also [DDC22ger] + Inhalt der Kat 54x1 anfügen", ""); application.activeWindow.title.lineDown(1,false); /* zur Kat 54x1 */ application.activeWindow.title.startOfField(false); application.activeWindow.title.wordRight(1,false), application.activeWindow.title.endOfField(true), Temp = application.activeWindow.title.selection; Temp = Temp.replace (/^\s+/, '').replace (/\s+$/, ''); application.activeWindow.title.startOfField(false), application.activeWindow.title.lineUp(1 , false); application.activeWindow.title.endOfField(false); application.activeWindow.title.insertText("[DDC22ger]" + Temp); } } else { i = i + 1 application.activeWindow.title.lineUp(1, false); } } while ((Schleife == true) && (i <= 7)); //application.messageBox("", "löschen leere Kat54x3 - Zeilen (es steht nur -Tx-- da)", ""); application.activeWindow.title.startOfField(false); application.activeWindow.title.lineDown( 3,false); // nach kat54x0 immer drei Zeilen nach unten do { application.activeWindow.title.wordRight( 1, true); Temp = application.activeWindow.title.selection; if ((Temp.substring(0,2) == "54") && (Temp.substring(3,4) == "3")) { Schleife = true; Temp = application.activeWindow.title.currentField; application.activeWindow.title.endOfField(true); Temp = application.activeWindow.title.selection; application.activeWindow.title.startOfField(false); var intLength = Temp.length; var strEnde = Temp.substring(intLength-2,intLength); if (strEnde == "--") { // leere Zeile application.activeWindow.title.deleteLine(1); } else { application.activeWindow.title.lineDown( 1,false); } } else { Schleife = false; } } while (Schleife == true); application.activeWindow.title.endOfBuffer(false); } |
...
Überblick
Inhalte