Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Note
titleUwagaNote

The programming library for that extension is  Biblioteka programistyczna dla tego rozszerzenia to

dlproj
os
1dlibra-app-extension-mf-bibtex
os
.

Funkcjonalność aplikacji redaktora i administratora można rozszerzać przy pomocy tzw. rozszerzeń. Między innymi można dodawać rozszerzenia umożliwiające import metadanych do systemu dLibra z zewnętrznych źródeł. Takim właśnie rozszerzeniem jest rozszerzenie umożliwiające importowanie opisu bibliograficznego z pliku zapisanego w formacie BibTex (informacje na temat formatu Bibtex można znaleźć tutaj).

Aby była możliwość importowania opisu bibliograficznego, rozszerzenie BibTeX musi być odpowiednio skonfigurowane.

Rozszerzenie BibTeX konfiguruje się przy użyciu pliku właściwości (pliki właściwości zawierają pary klucz=wartość):

  • bibtexImport.properties - plik zawiera reguły konwersji pliku BibTeX do metadanych w systemie dLibra.


The functionality of the Editor and Administrator Application can be extended with the use of so-called extensions. For example, extensions which make it possible to import metadata to the dLibra system from external sources can be added. The extension for importing a bibliographic description from a file in the BibTeX format is an extension of that type (for information about that format, see here).


The import of bibliographic descriptions will only be possible if the BibTeX extension is properly configured.


The BibTeX extension is configured with the use of two property files (property files contain key=value pairs):


  • bibtexImport.properties – a file containing the rules of the conversion of a BibTeX file to metadata in the dLibra system.


For example, let us assume that we have the following bibtexImport.properties filePrzykładowo załóżmy, że mamy następujący plik bibtexImport.properties:


Code Block
Creator=book.author
Title=*.title;*.booktitle
Description=*.note
Publisher=*.publisher
Date=*.month;*.year
Type=*.type
Subject=*.keywords
Source=*.url
Contributor=
Identifier=
Language=
Relation=
Coverage=
Rights=


W pliku jako klucze znajdują się nazwy RDF a jako wartości lista pól (tagów) z określonych pozycji (entry). Konkretne pola w liście pól powinny być odseparowane znakiem średnika (;) . Przykładowo (linia 1) do atrybutu Creator zostaną przypisane wartości z pola author pozycji book (zapis book.author). Jeśli chcemy importować pola z dowolnej pozycji zamiast nazwy pozycji należy wyspecyfikować znak *, przykładowo (linia 2) do atrybutu Title zostaną zaimportowane wartości z pola title i booktitle z dowolnej pozycji (zapis The keys in that file are RDF names, and the values are the field (tag) lists from particular positions (entries). The fields in field lists should be semicolon-separated (;). For example, in line 1, values from the author field of the book position (the book.author notation) will be assigned to the “Creator” attribute (line 1). If we want to import fields from any position, we should specify character * instead of the name of the position. For example, in line 2, values from the title iand booktitle fields will be imported to the Title attribute, from any position (notation *.title;*.booktitle).

Poniżej znajduje się domyślna konfiguracja rozszerzenia BibTeXHere is the default configuration of the BibTeX extension:

Code Block
Creator=*.author
Title=*.title;*.booktitle
Description=*.note
Publisher=*.publisher
Date=*.month;*.year
Type=*.type
Subject=*.keywords
Source=*.url
Contributor=
Identifier=
Language=
Relation=
Coverage=
Rights=

...