Changeset 619:79973dee60bd in documentViewer for zpt


Ignore:
Timestamp:
Nov 24, 2014, 1:40:00 PM (10 years ago)
Author:
casties
Branch:
default
Message:

revert layer_text_annotator to old version and fix layer_image_annotator for current version.

Location:
zpt/viewer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zpt/viewer/layer_image_annotator.zpt

    r616 r619  
    2323    dlOpts.annotationTokenUrl='$annTokenUrl';
    2424    dlOpts.annotationUser='$annUser';
    25     dlOpts.annotatorPlugins=['Auth','Permissions','Store','Markdown','DigilibIntegrator'];
     25    dlOpts.annotatorPlugins=['Auth','Permissions','Store','Markdown'];
    2626    dlOpts.annotationPageUri='$annUrl';
    2727    dlOpts.annotatorPluginSettings={'Store':{'annotationData':{'uri':'$annUrl','resource':'$resUrl'},'loadFromSearch':{'uri':'$annUrl'}},
  • zpt/viewer/layer_text_annotator.zpt

    r615 r619  
    55<metal:block metal:define-macro="html_head" tal:condition="python:'annotator' in viewLayers">
    66  <!--  annotator -->
    7  <link rel="stylesheet" type="text/css"
    8     tal:attributes="href string:$rootUrl/template/annotator_files/css/style.css" />
    9 
    107  <link rel="stylesheet" type="text/css"
    118    tal:attributes="href string:$rootUrl/template/annotator_files/css/annotator.css" />
    12 
    139
    1410  <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/vendor/json2.js"></script>
     
    1915  <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/range.js"></script>
    2016  <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/annotator.js"></script>
    21   <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/locale/en/annotator.js"></script>
    22  
    23  
    2417  <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/widget.js"></script>
    2518  <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/editor.js"></script>
     
    3225  <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/markdown.js"></script>
    3326  <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/unsupported.js"></script>
    34  
    35   <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/jquery.dateFormat.js"></script>
    36   <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/jquery.slimscroll.js"></script>
    37   <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/jquery-i18n-master/jquery.i18n.min.js"></script>
    38   <script type="text/javascript" tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/view_annotator.js"></script>
    39    
    40  
    4127  <!-- <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/filter.js"></script> -->
    4228
     
    5945            $(document).ready(function() {
    6046                // annotator
    61              
    62 
    63                 jQuery.i18n.load(i18n_dict);
    6447                var elem = $('div.pageContent').get(0);
    6548                var uri = annotatorPageUrl;
     
    9679                        'uri' : uri
    9780                    }
    98                 }).addPlugin('Tags').addPlugin('Markdown').addPlugin('AnnotatorViewer');
    99                
    100                 $('#anotacions-uoc-panel').slimscroll({height: '100%'});
     81                }).addPlugin('Tags').addPlugin('Markdown');
    10182            });
    10283        // -->
Note: See TracChangeset for help on using the changeset viewer.