Versions Compared

Key

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

...

Introduction

Uwaga: funkcja dostępna jest od wersji Note: that function is available from version 6.1 systemu of the dLibra system. IIIF IMF (International Image Interoperability Framework) jest frameworkiem definiującym interfejsy programistyczne w celu dostarczenia standaryzowanych metod pozwalających na wyświetlanie obrazów wysokiej jakości.

W wersji 6.1 systemu dLibra wprowadzona została możliwość prezentowania wysokiej rozdzielczości plików prezentacyjnych (TIFF piramidalny) z wykorzystaniem standardu IIIF, a w szczególności Image API oraz Prezentation API. Oznacza to, że obiekty są prezentowane jako galeria zdjęć z progresywnym pobieraniem, tj. działa to podobnie do map (np. Google) - szczegóły pobierane są po zbliżeniu się w określony obszar na obrazie.

Konfiguracja IIIF w systemie dLibra

is a framework which defines programming interfaces for the purpose of providing standardized methods for displaying high-quality images.

In version 6.1 of the dLibra system, there is a new possibility of presenting high-resolution presentation files (pyramidal TIFF) with the use of the IIF standard, in particular, Image API and Presentation API. It means that objects are presented as an image gallery with progressive downloading. The mechanism is similar to that of maps (for example, Google Maps) – details are downloaded when the cursor comes near to a particular area in an image.

IMF Configuration in the dLibra System

  1. First, download the newest version, Cantaloupe, from the IIIF server from the Ściągamy najnowszą wersję serwera IIIF - Cantaloupe ze strony https://medusa-project.github.io/cantaloupe/get-started.html web page.
  2. Then, unpack the downloaded archive, Pobrane archiwum Cantaloupe-3.3.2.zip rozpakowywujemy w katalogu dLibra np. , in a dLibra directory, for example, (/DLIBRA/cantaloupe).
  3. Kopiujemy plik Copy file cantaloupe.properties.sample i umieszczamy go w tym samym katalogu pod nazwą  and put it in the same directory, with the cantaloupe.properties name.
  4. W pliku In the cantaloupe.properties modyfikujemy dwa pola file, modify two fields:

    Code Block
    languagetext
    titlecantaloupe.properties
    FilesystemResolver.BasicLookupStrategy.path_prefix = CONTENT_HOME/files/
    log.application.level = warn
    gdzie

    where CONTENT_HOME/files

    jest ścieżką do plików obsługiwanych przez serwer dLibra.

    is the path to the supported by the dLibra server.

  5. W pliku 

    In the

    /TOMCAT_HOME/Catalina/localhost/ROOT.xml

    dodajemy do kontekstu naszej aplikacji dodatkowe pole crossContext z wartością ustawioną na

     file, add an additional field, crossContext with value true:

    Code Block
    languagetext
    titleROOT.xml
    <Context 
    docBase="DLIBRA_HOME/dlibra-webapp"
    crossContext="true"
    />


  6. Konfigurujemy w Tomcacie nowy kontekst ze ścieżką do archiwum war serwera Cantaloupe. Tworzymy plik In Tomcat, configure a new context, with a parth to the WAR server Cantaloupe archive. Create file /TOMCAT_HOME/Catalina /localhost/cantaloupe.xml z poniższą zawartością with the following content:

    Code Block
    languagetext
    titlecantaloupe.xml
    <Context 
    docBase="CANTALOUPE_HOME/Cantaloupe-3.3.2.war" 
    >
    <Valve className="org.apache.catalina.valves.RemoteAddrValve"
    allow="127.0.0.1"/>
    </Context>

    gdzie where CANTALOUPE_HOME jest pełną ścieżką do katalogu, w którym znajduje się archiwum is a full path to the catalog which contains the cantaloupe-3.3.2.war. archiveDo zmiennej

  7. To the JAVA_OPTS

    dodajemy ścieżkę do pliku konfiguracyjnego cantaloupe

    variable, add a path to the cantaloupe configuration file:

    Code Block
    languagetext
    set JAVA_OPTS=%JAVA_OPTS% -Dcantaloupe.config="/CANTALOUPE_HOME/cantaloupe.properties"


  8. Restartujemy

    . Restart Tomcat

    'a

    .