LDraw.org Discussion Forums
New Parts Tracker Search Capabilities - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: Administrative (https://forums.ldraw.org/forum-4.html)
+--- Forum: Website Suggestions/Requests/Discussion (https://forums.ldraw.org/forum-23.html)
+--- Thread: New Parts Tracker Search Capabilities (/thread-23896.html)



New Parts Tracker Search Capabilities - Chris Dee - 2020-02-13

(2020-02-12, 6:29)Chris Dee Wrote: I can take a look at this.

That's done for the Parts Tracker File scan (https://www.ldraw.org/cgi-bin/ptscan.cgi). Multiple words are now supported and all need to exist in a file for it to be listed inthe search results. Double quoted phrases are supported and need to exist as entered. The two forms may be combined.

The search box in the Parts Tracker page header works slightly differently. If the entered word (xxxx) exists in the unofficial library (as xxxx.dat) the detail page for that file is returned. I guess now that the Parts Tracker allows the display of detail pages for official parts, it should also check for a precise match in the official library. At present if there is no unofficial file, the search term is passed to ptscan. It would be possible to make that script work differently in this use case, but it is not clear to me what it should do.


RE: New Parts Tracker Search Capabilities - Chris Dee - 2020-02-22

(2020-02-13, 19:11)Chris Dee Wrote: That's done for the Parts Tracker File scan (https://www.ldraw.org/cgi-bin/ptscan.cgi). Multiple words are now supported and all need to exist in a file for it to be listed inthe search results. Double quoted phrases are supported and need to exist as entered. The two forms may be combined.

The search box in the Parts Tracker page header works slightly differently. If the entered word (xxxx) exists in the unofficial library (as xxxx.dat) the detail page for that file is returned. I guess now that the Parts Tracker allows the display of detail pages for official parts, it should also check for a precise match in the official library. At present if there is no unofficial file, the search term is passed to ptscan. It would be possible to make that script work differently in this use case, but it is not clear to me what it should do.

I have further extended the options in the Parts Tracker File scan (https://www.ldraw.org/cgi-bin/ptscan.cgi). The scope of the search can now be specified to one of four levels:
  • only the filename
  • the filename plus the description (line 1) of the file
  • the filename plus anything in the file header (up to the first non-blank, non-type 0 line)
  • the filename plus the entire contents of the file.
The search box in the Parts Tracker page header still attempts to return the detail page for the entered part number, but if not found, passes the search argument to ptscan with the second of the above options.


RE: New Parts Tracker Search Capabilities - Philippe Hurbain - 2020-02-23

(2020-02-22, 20:17)Chris Dee Wrote: I have further extended the options in the Parts Tracker File scan (https://www.ldraw.org/cgi-bin/ptscan.cgi). The scope of the search can now be specified to one of four levels:
  • only the filename
  • the filename plus the description (line 1) of the file
  • the filename plus anything in the file header (up to the first non-blank, non-type 0 line)
  • the filename plus the entire contents of the file.
The search box in the Parts Tracker page header still attempts to return the detail page for the entered part number, but if not found, passes the search argument to ptscan with the second of the above options.
Thanks Chris, highly appreciated!