marklogic-community / RunDMC

MarkLogic application for running a developer site
http://developer.marklogic.com/code/rundmc
Other
17 stars 18 forks source link

guide titles showing up wrong in search results #743

Closed kcoleman-marklogic closed 6 years ago

kcoleman-marklogic commented 6 years ago

If you go to docs.marklogic.com and search for "optic", the User Guides section of the results on the left shows bad names for Entity Services and Ops Director. Specificially, they show up as "guides/entity-services" and "guides/opsdirs". See attached screenshot.

This is probably a problem with src/apidoc/config/9.0/document-list.xml, and probably my fault since they're both guides we've added since Danny left.

guide-title-bug

kcoleman-marklogic commented 6 years ago

It turns out Danny left out a step in his instructions for adding a new book. In addition to updating document-list.xml, you need to update src/controller/search.xqm to define a facet name for the new book. (Why, why, why is this defined that way??). See ss:facet-value-display:

https://github.com/marklogic-community/RunDMC/blob/d6822ebc1f8a5863a0a76ab07b89f54216b321b2/src/controller/search.xqm#L311

kcoleman-marklogic commented 6 years ago

Deployed and tested on pubs. Fix will be pushed with 9.0-4.