Details

    • Medium

    Description

      When saving a segment while making changes or comments,

      • a small balloon icon is shown in the content in layout next to the start of the segment.
      • when clicking this icon, a tool-tip shows
        • the changed version of the segment
        • the modification date
        • the author of the change
        • any comments made

      The trickiest part of implementing this task is the way of how the changes are saved and displayed to the 'pdf' view (the pdf view is represented with html).

      One possible solution can be saving only the changes location and content in separate table, and after the pdf layout is loaded, then those changes are merged in the pdf layout.
      The changes content can be info message, comment, image etc..

      To get the information about the changed segments, we use an ExtJs buffered store in a similar manner as we do for the segment grid. The information, which segments belong to a PDF-(HTML)-page could be provided by Stephan work. For example in the database as an extra LEK_segment-column (or segment-meta-information in the LEK_segment_meta table), where every segment references to the PDF page, in which it has been found. The PDF page can be found in the produced HTML-DOM of pdfconverter in the tag

      <div id="pf15" class="pf w0 h0" data-page-no="15" style="height: 841px; width: 596px;">...</div>

      where data-page-no is the page number of the PDF and id is a unique ID for every page.

      Conception

      • the data for edited/changed segment exist in the database
        • either in LEK_segments table as a separate column → not easily possible since we are in a plugin
        • or in LEK_segments_meta table
      • for holding the information about the changed segments, we use extjs buffered store
      • in the buffered store are loaded only the segments which exist in layout and in segment grid
        • example of buffered store usage can be found in segment grid and in translmission project and po grid
      • when segment is edited/changed
        • find the edited/segment in the layout
        • update the needed information in the store, and save the store changed row
        • place the corresponding icon in the right place
          • the icon visually represents that the segment is changed/edited
      • when the layout is loaded
        • the information about the needed changes in the layout are read from the buffered store
      • on mouse over this icon
        • get the needed data from the buggered store
          • the necessary info data:
            • the changed version of the segment
            • the modification date
            • the author of the change
            • any comments made

      Attachments

        Issue Links

          Activity

            People

              aleksandar Aleksandar Mitrev
              aleksandar Aleksandar Mitrev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: