Skip to content
  • Florent Viard's avatar
    [bp] Fixes coming history that was returning incorrect labels · 99053629
    Florent Viard authored and hydrargyrum's avatar hydrargyrum committed
    Here are exemples of labels that were returned for coming transactions:
    data-titrepopinv2="Détail d'une opération" >PREL D
    data-titrepopinv2="Détail d'une opération" >FR6720
    data-titrepopinv2="Détail d'une opération" >200410
    
    It should have been:
    PREL DE MATMUT ROUEN
    FR672045353464765875867865556435
    200410414141414141414343
    
    The previous code was not working well because there are two "<a>"
    elements, one at the root and one inside a "<noscript>" element.
    Sadly the one inside the noscript element is kind of broken:
    <a class="popinV3"
    href="../../comptesCommun/detailoperation/operation-detail_operation.ea?idxOperation=0&amp;typeOperation=OAV"
    target="_blank"> data-titrepopinv2="D&#233;tail d\'une op&#233;ration"
    &gt;PREL DE MATMUT ROUEN
    
    The a element is incorrectly closed after "blank" and the real end
    symbol is escaped.
    
    To be noted: this way to extract the transaction is only related to
    coming transactions. For normal history, the line content is extracted
    by the previous part of the code, and is based on a span element and no
    "noscript".
    99053629