Commit 68e58f91 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

Merge branch 'dev' of git.unicaen.fr:pdn-certic/MaX into dev

parents ae302a9a 14b240ea
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ declare function local:buildEADDocumentTOC($projectId, $docPath){
            {
                for $c in $target/*:ead/*:archdesc/*:dsc
                return
                    <details id="details_{$c/@id}" open="">
                    <details id="details_{$c/ancestor::*:archdesc/@level}" open="">
                        <summary>
                        <a href="{$baseURI}{$projectId}/{$docPath}/{$c/ancestor::*:archdesc/@id}.html">
                            {$c/ancestor::*:archdesc/*:did/node()}
@@ -35,7 +35,7 @@ declare function local:childrenToc($component, $projectId, $docPath){
    return
       if($c/*:c)
        then
        <details  id="details_{$c/@id}">
        <details  id="details_{$c/@id}" otherlevel="{$c/@otherlevel}">
            <summary>
                <a href="{$baseURI}{$projectId}/{$docPath}/{$c/@id}.html">
                    {$c/@id}
+66 −6
Original line number Diff line number Diff line
@@ -29,7 +29,8 @@

:root {
    --ead-box-border: 1px solid #aaaaaa;
    --ead-link-color: #0f6674;
    /* --ead-link-color: #0f6674; */
    --ead-link-color: #155a84
    --ead-link-color-hover: black;
    --ead-table-border-color: #aaaaaa;
    --ead-table-row-odd-background-color: #e9ecef;
@@ -112,7 +113,7 @@ footer {

footer p {
    margin: 0;
    padding: 0;
    padding: 7px 0px 9px 0px;
}


@@ -144,6 +145,17 @@ section.browse>div>div {
    overflow: auto;
}

section.browse > div > div[id*="wrap"] {
    width: 70%;
}

section.browse div#text {
    min-height: 500px;
    width: 68%;
}



table.ead_details {
    border-spacing: 10px;
    border-collapse: separate;
@@ -164,6 +176,7 @@ table.desc th {

table.ead_details td {
    vertical-align: top;
    border-bottom : 1px solid #ccc;
}

figure {
@@ -179,6 +192,53 @@ img {
    margin: 5px;
}

h2.collapsible {
    margin-bottom:0px;
    width: 90%;
}


.collapsible {
    color: #775e4b;
    width: 93%;
    cursor: pointer;
    padding-right: -65px;
    outline: none;
    font-size: 110%;
    text-align: left;
    font-weight: bold;
    border-radius: 4px;
    padding-left: 25px;
    margin-left: 0px;
}

.collapsible::after {
    content: "▶";
    font-size: 11px;
    padding-left: 9px;
}

.collapsible.active::after {
    content: "▼";
    font-size: 11px;
    padding-left: 9px;
}

.collapsible:hover,
.collapsible.active {
    background-color: #e7e1de;
}

.developper {
    display: none;
    overflow: hidden;
    border: 1px dotted #ccc;
    background-color: #fff;
    padding: 0px 0px 0px 15px;
    width: 91%;
    margin: 0px 0px 0px 0px;
}


/*
 * Affichage de l'arborescence
@@ -297,8 +357,8 @@ section.porte-documents {

section.browse nav.article_actions {
    position: fixed;
    top: 93px;
    left: 45%;
    top: 210px;
    left: 91%;
    right: 0px;
}

@@ -331,8 +391,8 @@ table.ead_details {
    border-spacing: 10px;
    border-collapse: separate;
    font-size: 100%;
    border: 1px solid var(--ead-link-color);
    width: 100%;
    /* border: 1px solid var(--ead-link-color); */
    width: 98%;
    margin-top:20px;
}

+5 −0
Original line number Diff line number Diff line
@@ -6,11 +6,16 @@
  <entry key="menu.contacts">Contacts</entry>
  <entry key="menu.recherche">Rechercher</entry>
  <entry key="menu.about">À propos</entry>
  <entry key="menu.porte-document">Porte-documents</entry>

  <entry key="search.label">Recherche</entry>
  <entry key="search.loading">Recherche en cours ...</entry>
  <entry key="search.results">résultat(s)</entry>

	<!-- Label -->
	<entry key="label.dansvotre">Dans votre </entry>
	<entry key="label.porte-documents">porte-documents</entry>
  
  <entry key="pb">Afficher les sauts de page</entry>
  <entry key="reading-options">Options de lecture</entry>
</properties>
+15 −0
Original line number Diff line number Diff line
@@ -152,3 +152,18 @@ async function initPorteDocumentsPage(project_id) {
        }
    }
}

// afficher/masquer la div
var coll = document.getElementsByClassName("collapsible");
var i;
for (i = 0; i < coll.length; i++) {
    coll[i].addEventListener("click", function() {
        this.classList.toggle("active");
        var content = this.nextElementSibling;
        if (content.style.display === "block") {
            content.style.display = "none";
        } else {
            content.style.display = "block";
        }
    });
}
 No newline at end of file
+27 −4
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!--For conditions of distribution and use, see the accompanying legal.txt file.-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink"
                xmlns:ead="urn:isbn:1-931666-22-9" version="2.0" exclude-result-prefixes="ead xsl xlink">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                xmlns:xlink="http://www.w3.org/1999/xlink"
                xmlns:ead="urn:isbn:1-931666-22-9" 
                xmlns:max="https://max.unicaen.fr"
                version="2.0" 
                exclude-result-prefixes="ead xsl xlink">
    <xsl:import href="../i18n.xsl"/>
    <xsl:output method="xhtml" encoding="utf-8"/>



    <xsl:param name="baseuri"/>
    <xsl:param name="project"/>
    <xsl:param name="locale"/>
    <xsl:param name="docName"/>

    <xsl:template match="ead:runner"></xsl:template>
@@ -22,8 +31,11 @@
                    <li>
                        <label>
                            <input type="checkbox" id="basket_toggle"/>
                            <!-- <xsl:text>dans votre </xsl:text> -->
                            <a href="{$baseuri}{$project}/porte-documents.html">porte-documents</a>
                            <xsl:value-of select="max:i18n($project,'label.dansvotre',$locale)"/>
                            <xsl:text></xsl:text>
                            <a href="{$baseuri}{$project}/porte-documents.html">
                                <xsl:value-of select="max:i18n($project,'label.porte-documents',$locale)"/>
                            </a>
                        </label>
                    </li>
                </ul>
@@ -530,6 +542,17 @@
        </div>
    </xsl:template>

       <xsl:template match="ead:archdesc/ead:dsc/ead:c | ead:c/ead:c">
        <div class="composant">
            <h2 class="collapsible composants">
                <xsl:value-of select="ead:did/ead:unitid[1]"/>
            </h2>
            <div class="developper">
                <xsl:apply-templates/>
            </div>
        </div>
    </xsl:template>


    <!-- index -->
    <xsl:template match="ead:title">