New Parts Tracker Search Capabilities


New Parts Tracker Search Capabilities
#1
(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.
Chris (LDraw Parts Library Admin)
Reply
RE: New Parts Tracker Search Capabilities
#2
(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.
Chris (LDraw Parts Library Admin)
Reply
RE: New Parts Tracker Search Capabilities
#3
(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!
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 2 Guest(s)