Ignore:
Timestamp:
2022-12-15T11:22:13+13:00 (17 months ago)
Author:
davidb
Message:

Some debugging work around treatment of AV values; Some initial work in moving the AV-chart to a main central area, rather than being part of the AV-Recommendation area

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-installations/mars/trunk/sites/mars/collect/amc-essentia/etc/collectionConfig.xml

    r36966 r37029  
    157157        <xsl:otherwise>
    158158          <td valign="top">
    159         <gsf:link type="document">
     159        <gsf:link type="document" extraLinkArgs="renderWave=0">
    160160          <gsf:icon type="document"/>
    161161        </gsf:link>
     
    163163          <td>
    164164         
    165         <gsf:link type="document">
     165        <gsf:link type="document" extraLinkArgs="renderWave=0">
    166166              <gsf:metadata name="amc.title"/>
    167167          by <gsf:metadata name="amc.artist"/>
     
    326326            <gsf:template match="documentNode">
    327327                <td valign="top">
    328                     <gsf:link type="document">
     328                    <gsf:link type="document" extraLinkArgs="renderWave=0">
    329329                        <gsf:icon type="document"/>
    330330                    </gsf:link>
     
    339339                </td>
    340340                <td valign="top">
    341                   <gsf:link type="document">
     341                  <gsf:link type="document" extraLinkArgs="renderWave=0">
    342342                        <gsf:choose-metadata>
    343343                      <gsf:metadata name="dc.Title"/>
     
    550550              <gsf:script src="{$httpCollection}/js/av_document.js"/>
    551551
    552               <div id="metadata-documenttext" class="documenttext" style="padding-bottom: 20px; width:100%;">
     552              <div id="metadata-documenttext" class="documenttext" style="padding-bottom: 35px; width:100%;">
    553553                <style>
    554554                  .doc-metadata td { padding: 7px; }
     
    588588                <div id="ajax-loaded-assocfilepath" style="display: none;"><gsf:metadata name="assocfilepath" pos="first"/></div>
    589589
     590                <style>
     591                  #hide-av-chart {
     592                  display: none;
     593                  }
     594                 
     595                  span.display-view-modes, a.display-view-modes {
     596                    padding: 5px;
     597                  }
     598               
     599                  .display-view-modes:hover {
     600                    background-color: #b0b0b0;
     601                  }               
     602                </style>
    590603               
    591                 <div style="position: absolute; right: 24px; top: -18px; z-index: 1000; font-size: 90%; font-style:italic">
    592                   <a id="switch-to-waveform"    stylexx="display: none;" href="">Switch to Waveform</a>
    593                   <a id="switch-to-spectrogram" stylexx="display: none;" href="">Switch to Spectrogram</a>
     604                <div style="position: absolute; right: 24px; top: -23px; z-index: 1000; font-size: 90%; font-styleXX:italic">
     605                  <span style="display: inline-block">
     606                <a id="switch-to-waveform"    class="display-view-modes" stylexx="display: none;" href="">Switch to Waveform</a>
     607                <a id="switch-to-spectrogram" class="display-view-modes" stylexx="display: none;" href="">Switch to Spectrogram</a>
     608                  </span>
     609                  <span style="display: inline-block; width: 140px;">
     610                | <span id="show-av-chart" class="display-view-modes" onclick="return showAVChart();">Display AV Chart</span>
     611                  <span id="hide-av-chart" class="display-view-modes" onclick="return hideAVChart();">Hide AV Chart</span>
     612                  </span>
     613                  <span style="display: inline-block">
     614                | <span class="display-view-modes" onclick="alert('To be implemented')">&#x23fa; Record <i>your</i> AV experience</span>
     615                  </span>
    594616                </div>
    595617
     
    669691       
    670692        </div>
     693
     694
     695    <div id="av-chart-outerdiv" style="display: none;">
     696      <hr/>
     697      <div style="width: 500px; margin: auto;">
     698        <div id="av-chart-div" style="position: relative; height: 325px; width: 300px; margin: auto">
     699          <div style="position: absolute; top: 0; left: 0; width: 300px; height: 300px; pointer-events: none;">
     700        <canvas id="av-chart-canvas" style="XXwidth: 100%; height: 300px;">
     701          Your browser does not support the canvas element
     702        </canvas>
     703          </div>
     704          <img id="av-chart-img" width="300"
     705           style="cursor: crosshair; background-colorXX: #fefefe;"
     706           src="{$library_name}/sites/{$site_name}/collect/{$collName}/images/av-diagram-bw.svg" />
     707          <div>
     708        <i>Click inside the Arousal-Valence visualisation above to initiate an AV-based recommendation.</i>
     709          </div>
     710         
     711        </div>
     712      </div>
     713    </div>
    671714   
    672715    <gsf:variable name="mp3url"><xsl:value-of select="$httpCollection"/>/index/assoc/<xsl:value-of select="$assocFilePath"/>/audio.mp3</gsf:variable>
     
    762805              </form>
    763806              <div>
     807                <!--
    764808                <div id="av-chart-div" style="position: relative; height: 325px; width: 300px; float: right; display: none;">
    765809                  <div style="position: absolute; top: 0; left: 0; width: 300px; height: 300px; pointer-events: none;">
     
    776820
    777821                </div>
     822                -->
    778823                <div id="resultsAreaDiv" style="padding-top: 1rem; min-height: 325px; display: none;">
    779824                  <xsl:text> </xsl:text>
Note: See TracChangeset for help on using the changeset viewer.