• Index
  •  » Support
  •  » exporting a subset of record in html

#1 2017-03-31 05:49:04

underscore
New member
Registered: 2017-03-31
Posts: 2

exporting a subset of record in html

Hello, i'm using 1.7.0

I would like to export in html just the movies i have not marked as "seen" in my collection, so to have a nice catalog available.
Is it possible?

The following command dump all my collection.

Code:

gcstar -x -e HTML --exportprefs "Template=>Flat,title=>to_be_seen,imgHeight=>160,sorter=>title" -o to_be_seen.html mymovies.gcs

but i can't seem to figure it out if i can filter it from either the gui or command line in order to produce the html

Last edited by underscore (2017-03-31 05:52:43)

Offline

 

#2 2017-03-31 21:10:23

kerenoc
Member
Registered: 2016-03-19
Posts: 88

Re: exporting a subset of record in html

Using the GUI, you can filter the films not marked as "viewed" (menu Find), then when exporting, choose "Export only displayed items".

I don't think that it's possible with a command line.

Offline

 

#3 2017-04-01 14:43:04

underscore
New member
Registered: 2017-03-31
Posts: 2

Re: exporting a subset of record in html

Thank you kerenoc, that's exactly what i wanted to achieve!
Before asking I tried with filter but that was showing individual results.

I did noticed a minor bug exporting from the gui in html though.
Fields to be exported buttons is disabled, thus not letting me do the export.
Solution is to first go to "export in csv" , push the button and select all the fields.
Then i can go back to export from html and will work.

Last edited by underscore (2017-04-01 14:44:16)

Offline

 

#4 2017-04-02 08:29:50

kerenoc
Member
Registered: 2016-03-19
Posts: 88

Re: exporting a subset of record in html

Thanks for the tip, it's hidden somewhere on the web but it's good to explain it again. It may have time to investigate this bug some day.

Offline

 

#5 2017-04-03 11:06:27

kerenoc
Member
Registered: 2016-03-19
Posts: 88

Re: exporting a subset of record in html

A patch of GCExportHTML.pm seems to work changing

Code:

sub wantsFieldsSelection
     {
        my $self = shift;
        return 1;
     }

to

Code:

sub wantsFieldsSelection
     {
         my $self = shift;
         return $self->{wantsFieldsSelection};
     }

I tested it for films, books and board games collections : most export templates don't seem to allow fields selection and output is fine.

But this patch revert a previous one from Tian the author of GCstar, so I must have missed something there!

Offline

 
  • Index
  •  » Support
  •  » exporting a subset of record in html



Should you have a problem using GCstar, you can open a bug report or request some support on GCstar forums.