<?xml version="1.0" encoding="UTF-8"?>
<item xmlns="http://omeka.org/schemas/omeka-xml/v5" itemId="790" public="1" featured="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://omeka.org/schemas/omeka-xml/v5 http://omeka.org/schemas/omeka-xml/v5/omeka-xml-5-0.xsd" uri="https://archiwum-galeriafoksal.pl/items/show/790?output=omeka-xml" accessDate="2026-06-30T03:22:04+00:00">
  <itemType itemTypeId="1">
    <name>Tekst</name>
    <description>A resource consisting primarily of words for reading. Examples include books, letters, dissertations, poems, newspapers, articles, archives of mailing lists. Note that facsimiles or images of texts are still of the genre Text.</description>
  </itemType>
  <elementSetContainer>
    <elementSet elementSetId="1">
      <name>Dublin Core</name>
      <description>The Dublin Core metadata element set is common to all Omeka records, including items, files, and collections. For more information see, http://dublincore.org/documents/dces/.</description>
      <elementContainer>
        <element elementId="50">
          <name>Title</name>
          <description>A name given to the resource</description>
          <elementTextContainer>
            <elementText elementTextId="4404">
              <text>Tekst</text>
            </elementText>
          </elementTextContainer>
        </element>
      </elementContainer>
    </elementSet>
  </elementSetContainer>
</item>
<script>
jQuery(document).ready(function($) {
    // Sprawdzamy ścieżkę URL (np. /items/browse czy /kontakt)
    var currentPath = window.location.pathname;

    // WARUNEK: Jeśli ścieżka to "/" lub pusta, tylko wtedy odpalamy menu
    if (currentPath === "/" || currentPath === "" || currentPath.indexOf("index.php") !== -1) {
        
        // 1. Dynamicznie wstrzykujemy style blokujące krzyżyk i otwierające menu
        $("<style id='foksal-menu-styles'>")
            .prop("type", "text/css")
            .html("#nav-modal { display: block !important; opacity: 1 !important; visibility: visible !important; } #nav-modal .close-button, #nav-toggle.active { display: none !important; }")
            .appendTo("head");

        // 2. Dodajemy klasę open do struktury
        $("#nav-modal").addClass("open");

        // 3. Obsługa bezpiecznego zamykania przy kliknięciu
        $("#nav-modal .navigation a").on("click", function(e) {
            var url = $(this).attr("href");
            
            if (url && url !== "#" && !url.startsWith("#")) {
                e.preventDefault();

                // Natychmiast usuwamy style i ukrywamy menu przed przejściem dalej
                $("#foksal-menu-styles").remove();
                $("#nav-modal").css({
                    "display": "none",
                    "opacity": "0",
                    "visibility": "hidden"
                }).removeClass("open");
                
                $("#nav-toggle").removeClass("active").attr("aria-expanded", "false");

                setTimeout(function() {
                    window.location.href = url;
                }, 10);
            }
        });
    }
});
</script>