<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>376134</bug_id>
          
          <creation_ts>2017-02-07 12:18:00 +0000</creation_ts>
          <short_desc>Export collection in HTML does not work</short_desc>
          <delta_ts>2017-02-19 01:55:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>tellico</product>
          <component>general</component>
          <version>3.0</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>chp321</reporter>
          <assigned_to name="Robby Stephenson">robby</assigned_to>
          
          
          <cf_commitlink>https://commits.kde.org/tellico/189130df8515b6e4342aa1b4a390547a14a26cf1</cf_commitlink>
          <cf_versionfixedin>3.0.1</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1659356</commentid>
    <comment_count>0</comment_count>
    <who name="">chp321</who>
    <bug_when>2017-02-07 12:18:00 +0000</bug_when>
    <thetext>When exporting a collection in HTML, with &quot;Export individual entry files&quot;, the relative path to them is broken. It does not point to the right directory.
For example, if you export the collection to point.html with option &quot;Export individual entry files&quot;, in file point.html, individuals entries point to
&quot;/individual-entry.html&quot;
instead of
&quot;point_files/individual-entry.html&quot;
So, when you want to access to the individual entry in html page, you have &quot;ERR_FILE_NOT_FOUND&quot; message.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1659360</commentid>
    <comment_count>1</comment_count>
    <who name="">chp321</who>
    <bug_when>2017-02-07 12:33:00 +0000</bug_when>
    <thetext>Plus, tellico2html.js is not generated, and thus, is missing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1659364</commentid>
    <comment_count>2</comment_count>
    <who name="">chp321</who>
    <bug_when>2017-02-07 12:50:09 +0000</bug_when>
    <thetext>I returned back to version 2.3.9 of tellico, and export in html, with individual entries is working fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1659727</commentid>
    <comment_count>3</comment_count>
    <who name="Robby Stephenson">robby</who>
    <bug_when>2017-02-09 01:47:59 +0000</bug_when>
    <thetext>Git commit 9dac9ef56e7bdceef9327ec8375c52fe1d369ea0 by Robby Stephenson.
Committed on 09/02/2017 at 01:45.
Pushed by rstephenson into branch &apos;master&apos;.

Fix relative file locations in HTML export

This was another problem relative to the KURL-&gt;QUrl transition dealing
with relative urls and invalid links.

Add another unit test for the HTML export to verify appropriate relative
links, including checkmark pics and image files.
FIXED-IN: 3.0.1

M  +4    -0    ChangeLog
M  +-    --    src/tests/data/with-image.tc
M  +66   -1    src/tests/htmlexportertest.cpp
M  +2    -0    src/tests/htmlexportertest.h
M  +37   -41   src/translators/htmlexporter.cpp
M  +5    -0    src/translators/htmlexporter.h

https://commits.kde.org/tellico/9dac9ef56e7bdceef9327ec8375c52fe1d369ea0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1660761</commentid>
    <comment_count>4</comment_count>
    <who name="">chp321</who>
    <bug_when>2017-02-13 09:17:45 +0000</bug_when>
    <thetext>I apologize for my poor english, I am french.
Thank you for your job ! It partially resolved the bug : individual entries are now  well viewed, except images.
For example, the link toward a image is :
&quot;/97ef4c491446512bd954946db57cd8d5.jpeg&quot;
instead of
&quot;point_files/97ef4c491446512bd954946db57cd8d5.jpeg&quot;
So relative path to images must be fixed.

Plus, there is another bug : it exports visible fields only, even when you don&apos;t check the box «Export visible fields only»</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1660770</commentid>
    <comment_count>5</comment_count>
    <who name="">chp321</who>
    <bug_when>2017-02-13 10:16:53 +0000</bug_when>
    <thetext>(In reply to chp321 from comment #4)
&gt; I apologize for my poor english, I am french.
&gt; Thank you for your job ! It partially resolved the bug : individual entries
&gt; are now  well viewed, except images.
&gt; For example, the link toward a image is :
&gt; &quot;/97ef4c491446512bd954946db57cd8d5.jpeg&quot;
&gt; instead of
&gt; &quot;point_files/97ef4c491446512bd954946db57cd8d5.jpeg&quot;
&gt; So relative path to images must be fixed.
&gt; 
&gt; Plus, there is another bug : it exports visible fields only, even when you
&gt; don&apos;t check the box «Export visible fields only»

Sorry, forget the last two lines, it is not a bug, I misunderstood the feature.
It just remains the bug about the wrong relative path toward images in individual entries of HTML exported datas.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1661879</commentid>
    <comment_count>6</comment_count>
    <who name="Robby Stephenson">robby</who>
    <bug_when>2017-02-19 01:55:21 +0000</bug_when>
    <thetext>Git commit 189130df8515b6e4342aa1b4a390547a14a26cf1 by Robby Stephenson.
Committed on 19/02/2017 at 01:52.
Pushed by rstephenson into branch &apos;master&apos;.

Use correct dir for img links in HTML export with relative entry files

A problem lingering from the port from KURL::relativePath, when using
QDir::relativeFilePath doesn&apos;t resolve the path. Switch to using
QFileInfo to grab the dir and then resolve the relative path from there

My thanks to chp321@gmail.com for the diligence in verifying the fix.

M  +32   -0    src/tests/htmlexportertest.cpp
M  +22   -2    src/translators/htmlexporter.cpp
M  +1    -0    src/translators/htmlexporter.h

https://commits.kde.org/tellico/189130df8515b6e4342aa1b4a390547a14a26cf1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>