Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Anchor
applicationConfiguration
applicationConfiguration

Wstęp

Introduction

When the “Configuration” option is selected from the “Program” menu, the program configuration window will appear (see the image belowPo wybraniu opcji Konfiguracja z menu Program pojawi się okno konfiguracji programu (rysunek poniżej).

Anchor
programConfiguration
programConfiguration

labelimg
Okno konfiguracji programu
Okno konfiguracji programu

Image Removed

W oknie konfiguracji znajdują się zakładki odpowiadające za konfigurację różnych cech programu. W kolejnych podrozdziałach omówione są wszystkie zakładki. Wartości domyślne poszczególnych parametrów znajdują się w załączniku konfiguracja domyślna.

Ustawienia programu

Parametry konfiguracyjne mogą być pobierane z pliku konfiguracyjnego. Aby zmienić plik konfiguracyjny aplikacji wybierz przycisk Plik konfiguracyjny... i wskaż w otwartym oknie katalog lub URL pliku konfiguracyjnego. W przypadku podania katalogu, musi się w nim znaleźć plik o nazwie generalConfig.properties. Plik konfiguracyjny aplikacji zawiera zaawansowane parametry konfiguracyjne aplikacji. Jest to plik właściwości, gdzie klucze oddzielone są od wartości znakiem równości. Znajdują się w nim następujące parametry konfiguracyjne:

Image Added

In the configuration window, there are tabs for configuring various aspects of the application. All the tabs are described in the subsequent subchapters. The default values of particular parameters are in the default configuration appendix.

Application Settings

The configuration parameters can be retrieved from the configuration file. In order to change the configuration file of the application, the user should click the “Configuration file...” button and indicate the directory or URL of the configuration file in the opened window. If the directory is indicated, it must contain a file named generalConfig.properties. The configuration file of the application contains advanced configuration parameters of the application. It is a property file, in which keys are separated from values with the equal sign. The file contains the following configuration parameters:

  • gui.lookandfeel – its value is the name of the Java class responsible for the way in which graphical user interface elements behave or are displayed. If the value is missing, the default look of the operating system in which the application has been run is used.
  • tags.refresh.period – its value determines the intervals of time, in milliseconds, at which the tag list in the application should be refreshed (updated from the server). The default value is 600,000, that is, ten minutes.
  • tags.message.period – its value determines the intervals of time, in milliseconds, at which the alert about tags for moderation ought to be displayed to the user. The default value is 1,800,000, that is, 30 minutes.
  • messages.refresh.period – its value determines the intervals of time, in milliseconds, at which the list of messages for the editor should be refreshed (updated from the server). The default value is 600000, that is, 10 minutes.
  • messages.message.period – its value determines the intervals of time, in milliseconds, at which the alert about unread messages ought to be displayed to the user. The default value is 1800000, that is, 30 minutes.
  • newPublication.title.template – its value determines the title template for the created element (for example, a publication). It is the velocity template. In the template, variables (appropriately named) are replaced with attribute values. The names of the variables should correspond to the RDF attribute names. The default value of that parameter is:

  • gui.lookandfeel - wartość to nazwa klasy języka programowania Java, która odpowiada za sposób wyświetlania/zachowania elementów interfejsu graficznego użytkownika. Jeśli brak tej wartości przyjmowany jest domyślny wygląd odpowiedni dla systemu operacyjnego na którym uruchomiono aplikację.
  • tags.refresh.period - wartość to czas podawany w milisekundach, który mówi o tym co ile milisekund powinna być odświeżana (aktualizowana z serwera) lista tagów w aplikacji. Domyślna wartość to 600000 czyli 10 minut.
  • tags.message.period - wartość to czas podawany w milisekundach, który mówi o tym co ile milisekund powinien być wyświetlany monit użytkownikowi w przypadku, gdy ma on tagi, które powinny być poddane moderacji. Domyślna wartość to 1800000 czyli 30 minut.
  • messages.refresh.period - wartość to czas podawany w milisekundach, który mówi o tym co ile milisekund powinna być odświeżana (aktualizowana z serwera) lista wiadomości dla redaktora. Domyślna wartość to 600000 czyli 10 minut.
  • messages.message.period - wartość to czas podawany w milisekundach, który mówi o tym co ile milisekund powinien być wyświetlany monit użytkownikowi w przypadku, gdy redaktor ma nieodczytane wiadomości. Domyślna wartość to 1800000 czyli 30 minut.
  • newPublication.title.template - wartość określa szablon tytułu tworzonego elementu (np. publikacji). Szablon ten jest szablonem velocity. W szablonie w miejscu odpowiednio nazwanych zmiennych wprowadzane są wartości atrybutów. Zmienne powinny mieć nazwę odpowiadającą nazwie RDF atrybutu. Domyślna wartość tego parametru to

    Code Block
    $!{Creator}#if ( ($Date || $Title) && $Creator ), #end$!Date#if ( $Title && $Date ), #end$!Title
    Szablon ten powoduje ustawienie jako nazwy wartości atrybutów o nazwach RDF, w kolejności

    With that template, a name will be created from attribute values with RDF names in the following order: Creator, Date

    oraz

    , and Title.

    Wartości te są oddzielane przecinkiem, a jeśli którejś brakuje, jest pomijana

    Those values are separated with commas, and if any of them is missing, it is omitted.

  • miniature.maxWidth - ograniczenie (w pikselach) na szerokość miniatury tworzonej automatycznie z plików publikacji w kreatorze nowej publikacji. Domyślnie szerokość miniatury nie jest ograniczona – a restriction (in pixels) of the width of the thumbnail created automatically on the basis of publication files in the new publication creator. By default, the thumbnail width is not limited.
  • miniature.maxHeight - ograniczenie (w pikselach) na wysokość miniatury tworzonej automatycznie z plików publikacji w kreatorze nowej publikacji. Domyślnie wysokość miniatury nie jest ograniczona. Jeśli ustawiono ograniczenie zarówno na wysokość jak i szerokość miniatury, ostatecznie wykorzystywane jest to ograniczenie, które skutkuje mniejszym rozmiarem miniatury – a restriction (in pixels) of the height of the thumbnail created automatically on the basis of publication files in the new publication creator. By default, the thumbnail height is not limited. If both limits (for height and width) are set, then that limit is used which will make a thumbnail smaller.
  • searchDuplicates.roles.url - wartość to adres URL pod którym znajduje się lista ról Dublin Core atrybutów, które mają być wykorzystywane w mechaniźmie wyszukiwania duplikatów. Domyślna wartość to  – its value is the URL of the list of the Dublic Core attribute roles to be used in the duplicate search mechanism.. The default value is http://fbc.pionier.net.pl/owoc/ajax.xml?id=GetDCRolesForDups.
  • searchDuplicates.results.url - wartość to początek adresu URL, do którego zostaną dodane parametry wyszukiwawcze w procesie wyszukiwania duplikatów. Domyślna wartość to – its value is the beginning of the URL to which search parameters will be added in the process of searching for duplicates. The default value is http://fbc.pionier.net.pl/owoc/ajax.xml?id=GetDups.
  • sortTokens - wartość to lista ciągów znaków oddzielonych symbolem |. Są to ciągi znaków, które nie są brane pod uwagę na początku nazwy elementów podczas sortowania publikacji na liście elementów i drzewie katalogów. Domyślna wartość to  – its value is a list of sequences of characters separated with the “|” symbol. When the elements in the directory tree and on the object list are sorted alphabetically, the character sequences are ignored if they are in the initial position in the element name. The default value is "|(|[...]|[|the |the.
  • attributesViews.url - wartość to adres URL pod którym znajduje się opis widoków atrybutów, które mają być dostępne w aplikacji redaktora. W przypadku pliku na dysku lokalnym należy pamiętać, aby poprzedzić ścieżkę frazą  – its value is the URL of the description of the attribute views to be available in the Editor Application. In the case of a file on the local drive, the path should be divided with the file:/// phrase, a kolejne foldery oddzielać ukośnikiem /. Dodatkowo, każdy dwukropek musi być poprzedzony ukośnikiem and subsequent folders should be separated with a slash. Also, every colon must be preceded by a slash {{}}. Na przykład dla pliku widoki.xml, położonego w katalogu C:\dlibra, para klucz-wartość w pliku konfiguracyjnym przyjmie postaćFor example, for file “widoki.xml” located in directory “C:\dlibra”, the key–value pair in the configuration file will look as follows:

    Code Block
    attributesViews.url=file\:///C\:/dlibra/widoki.xml
    

    Domyślnie wykorzystywany jest zestaw widoków wbudowany bezpośrednio w aplikację redaktora.

Należy pamiętać o zaznaczeniu pola Używaj konfiguracji z podanego źródła. W przeciwnym razie plik konfiguracyjny nie zostanie wczytany.

...

  • The default set of views built directly into the Editor Application is used.

    Field “Use the configuration from the given source” should be marked.

    Otherwise, the configuration file will not be loaded. A sample configuration file could look as follows (if there is no key in such a file, the default value is assumed):


Code Block
tags.refresh.period=60000
tags.message.period=3600000
sortTokens=[|]|/

Anchor
defaultConfigURL
defaultConfigURL

Pobieranie domyślnej konfiguracji z zewnętrznego źródła

W bibliotece cyfrowej może pojawić się potrzeba, by wszyscy redaktorzy pracowali z konkretnym zbiorem ustawień, innym niż ustawienia domyślne. Na przykład, wykorzystanie niestandardowego schematu metadanych może spowodować, że dla wygodnej pracy redaktorów trzeba będzie przygotować specjalne widoki atrybutów, a także zmienić atrybuty wykorzystywane przy tworzeniu domyślnej nazwy publikacji. W tej sytuacji odpowiedni plik konfiguracyjny najlepiej jest umieścić Internecie.

Aby redaktorzy nie musieli samodzielnie wprowadzać adresu takiego pliku, można tak ustawić aplikację czytelnika (www), aby aplikacja redaktora automatycznie otrzymywała odpowiedni adres i wczytywała konfigurację przy każdym uruchomieniu, zastępując domyślne opcje. Funkcja ta jest również wygodna wtedy, gdy w późniejszym czasie zajdzie potrzeba zmiany pewnych ustawień u wszystkich redaktorów. Oczywiście, każdy redaktor może nadpisać pobrane w ten sposób ustawienia na swoim komputerze, stosując metody wymienione w poprzednim podrozdziale.

Downloading the Default Configuration from an External Source

Sometimes there is a need for all editors of a digital library to work on a particular set of settings (which is different than the default settings). In such a case, it may be necessary to prepare special attribute views for the editors and to change the attributes used when creating the default name of a publication. The best solution will be to put an appropriate configuration file on the Internet.

The Reader Application (WWW) can be set in such a way that the Editor Application automatically receives an appropriate address and loads the configuration with every start-up, replacing the default options, so that the editors do not have t enter the address of such a file on their own. That function is also useful if, at a later time, there is a need to change some settings for all editors. Off course, every editor can overwrite the settings downloaded in that way on his or her computer, with the use of the methods enumerated in the previous subchapter.

The address of the configuration file of the Editor Application should be entered in the components.xml file, in the configuration directory of the Reader Application (WEB-INF). By default, inside the Adres pliku konfiguracyjnego aplikacji redaktora należy wprowadzić w pliku components.xml, znajdującym się w katalogu konfiguracyjnym aplikacji czytelnika (WEB-INF). Wewnątrz znacznika <component name="pl.psnc.dlibra.web.comp.pages.components.JnlpComponent"> domyślnie znajduje się zakomentowana właściwość w postaci tag, there is a commented out value in the following form:

Code Block
xml
xml
<property>
	<name>app.config.default.url</name>
	<value>http://example-library.org/dlibra/editor/generalConfig.properties</value>
</property>

Aby uruchomić funkcję automatycznego pobierania dokumentacji, należy odkomentować ten fragment i zmienić przykładowy adres na własny. Zmiana ta nie wymaga restartu serwera www (ale aplikacja redaktora musi być jeszcze raz pobrana ze strony biblioteki cyfrowej).

Konfiguracja rozszerzeń

Zakładka Konfiguracja rozszerzeń umożliwia dostosowanie ustawień poszczególnych rozszerzeń. Na panelu (rysunek poniżej) znajduje się lista rozszerzeń, które można konfigurować. Aby zmieniń ustawienia konkretnego rozszerzenia należy zaznaczyć je na liście i wybrać przycisk Konfiguruj.... Domyślnie w aplikacji znajdują się następujące rozszerzenia:

In order to start up the function of automatic documentation download, the user should uncomment that fragment and change the sample address to the user’s own. The web server does not have to be restarted for that purpose, but the Editor Application must be re-downloaded from the digital library website.

Configuring Extensions

The “Configuration” tab makes it possible to adjust the settings of various extensions. In the panel ( see the image below), there is a list of configurable extensions. In order to change the settings of a particular extension, the user should mark it on the list and choose the “Configure...” button. By default, there are the following extensions in the application:

Anchor
configurationExtensions
configurationExtensions

labelimg
Konfiguracja - zakładka Konfiguracja rozszerzeń
Konfiguracja - zakładka Konfiguracja rozszerzeń

Image RemovedImage Added