24. Erzeugung eines ILL-Strings mit MetadatenKapitel hinzufügen
JavaScript zur Erzeugung eines ILL-Strings für die Auftragserstellung in MyBib eDoc. Das Script ist Bestandteil von BCS-2 V6 Professional. Sie finden es unter dem Dateinamen kmb_me_implicit.js im folgenden Verzeichnis: C:\ProgramData\ImageWareComponents\BCS2_V6_64\js.
// -----------------------------------------------------------------------------------------------------------------
// WF-specific Variables
// -----------------------------------------------------------------------------------------------------------------
//
// Name Description Default or Example
// ---- ----------- ------------------
//
// CLIENT_NAME:
// CONTACT_PERSON_EMAIL: EMail-Adresse der Kontaktperson
// CONTACT_PERSON_NAME: Kontakt-Person in der Bilbiothek
// COUNTRY_DELIVERY_TARGET: (DE)
// DELIVERY_SERVICE_FORMAT: Lieferformat (PDF)
// DEL_EMAIL_ADDRESS: Liefer-EMail-Adresse
// ILL_SERVICE_TYPE: (COPY)
// IWC_BILL_ACCOUNT_ID: IWC AB-Nummer oder andere kaufmännische
// IWC_BILL_CONTRACTOR: (HBZ)
// IWC_LLS_CUSTOMER_NUMBER: Kundennummer
// IWC_LLS_NETWORK_INSTITUTION: Verbund für die Verbund-ID (HBZ)
// MESSAGE_TYPE: (REQUEST)
// REQUESTER_GROUP: (USER-GROUP-USB)
// REQUESTER_ID: Sigel der Bibliotkek
// RESPONDER_ID: Fallback ist subito, anderes muss konfiguriert werden (IWC_ME_MONO)
// SCAN_TYP: (IHV)
// TRANSACTION_INIITIAL_REQ_ID_SYMBOL: Auftraggeber (USB)
//
// -----------------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------
// -----------------------------------------------------------
// Indexnames as Script-Variables:
// use them instead numerics...
// -----------------------------------------------------------
// -----------------------------------------------------------
ind_Signatur = 1; // Index Signatur Type: Zeichenkette [kein zugeordneter Meta-Daten-Typ]:
ind_KatKey = 2; // Index KatKey Type: Zeichenkette [kein zugeordneter Meta-Daten-Typ]: KatKey (SIAS-Nummer)
ind_Verbund_ID = 3; // Index Verbund_ID Type: Zeichenkette [Verbund ID]:
ind_Order_ID = 4; // Index Order-ID Type: Zeichenkette [kein zugeordneter Meta-Daten-Typ]: myBib eDoc Order-Number
ind_Autor = 5; // Index Autor Type: Zeichenkette [Autor]:
ind_Titel = 6; // Index Titel Type: Zeichenkette [Titel]:
ind_Verlag = 7; // Index Verlag Type: Zeichenkette [Verlag]:
ind_Jahr = 8; // Index Jahr Type: Zeichenkette [Datum der Veröffentlichung]:
ind_Typ = 9; // Index Typ Type: Zeichenkette [kein zugeordneter Meta-Daten-Typ]: Typ des Mediums
ind_Schlagwoerter = 10; // Index Schlagwoerter Type: Zeichenkette [kein zugeordneter Meta-Daten-Typ]: Liste aller Schlagwoerter, gertrennt durch Semikolon
ind_ISBN = 11; // Index ISBN Type: Zeichenkette [ISBN]:
ind_Ausgabe = 12; // Index Ausgabe Type: Zeichenkette [kein zugeordneter Meta-Daten-Typ]:
ind_Pagination = 13; // *new* Index Pagination
ind_PlaceOfPublication = 14; // *new* Index PlaceOfPublication
ind_Language = 15; // *new* Index Language
// -----------------------------------------------------------
// -----------------------------------------------------------
illstr =
"client-name: " + job.getWfKeyValue("CLIENT_NAME") + "\n" +
"contact-person-email: " + job.getWfKeyValue("CONTACT_PERSON_EMAIL") + "\n" +
"contact-person-name: " + job.getWfKeyValue("CONTACT_PERSON_NAME") + "\n" +
"country-delivery-target: " + job.getWfKeyValue("COUNTRY_DELIVERY_TARGET") + "\n" +
"delivery-service-format: " + job.getWfKeyValue("DELIVERY_SERVICE_FORMAT") + "\n" +
"del-email-address: " + job.getWfKeyValue("DEL_EMAIL_ADDRESS") + "\n" +
"ill-service-type: " + job.getWfKeyValue("ILL_SERVICE_TYPE") + "\n" +
"iwc-bill-account-id: " + job.getWfKeyValue("IWC_BILL_ACCOUNT_ID") + "\n" +
"iwc-bill-contractor: " + job.getWfKeyValue("IWC_BILL_CONTRACTOR") + "\n" +
"iwc-lls-customer-number: " + job.getWfKeyValue("IWC_LLS_CUSTOMER_NUMBER") + "\n" +
"iwc-lls-network-institution: " + job.getWfKeyValue("IWC_LLS_NETWORK_INSTITUTION") + "\n" +
"message-type: " + job.getWfKeyValue("MESSAGE_TYPE") + "\n" +
"requester-group: " + job.getWfKeyValue("REQUESTER_GROUP") + "\n" +
"requester-id: " + job.getWfKeyValue("REQUESTER_ID") + "\n" +
"responder-id: " + job.getWfKeyValue("RESPONDER_ID") + "\n" +
"scan-typ: " + job.getWfKeyValue("SCAN_TYP") + "\n" +
"transaction-initial-req-id-symbol: " + job.getWfKeyValue("TRANSACTION_INITIAL_REQ_ID_SYMBOL") + "\n" +
"service-date-time: " + ut.dateTime('yyyyMMddHHmmss') + "\n" + // yyyymmddhhmmss
"iwc-lls-medium-number: " + job.index(ind_KatKey) + "\n" +
"iwc-lls-network-id: " + job.index(ind_Verbund_ID) + "\n" +
"iwc-item-language: " + job.index(ind_Language) + "\n" + // 639-2-B Language
"item-call-number: " + job.index(ind_Signatur) + "\n" +
"item-author: " + job.index(ind_Autor) + "\n" +
"item-title: " + job.index(ind_Titel) + "\n" +
"item-pagination: " + job.index(ind_Pagination) + "\n" +
"item-publisher: " + job.index(ind_Verlag) + "\n" +
"item-publication-date: " + job.index(ind_Jahr) + "\n" +
"item-place-of-publication: " + job.index(ind_PlaceOfPublication) + "\n" +
"item-isbn: " + job.index(ind_ISBN) + "\n" +
"transaction-group-qualifier: " + job.index(ind_KatKey) + "\n"
;
illstr;