New Parts Tracker Search Capabilities


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
« Next Oldest | Next Newest »



Messages In This Thread
RE: New Parts Tracker Search Capabilities - by Chris Dee - 2020-02-22, 20:17

Forum Jump:


Users browsing this thread: 1 Guest(s)