Only have one opensearch autodiscovery link instead of per project/branch combination
Migrated issue
Reported by: psynaptic
In api_init there is code to add opensearch autodiscovery links to the HTML head. Here's a sample of the HTML output for the development version of drupalcontrib.org https://gist.github.com/psynaptic/5690532
As can be seen in the paste above, generating opensearch autodiscovery links for every branch and project combination doesn't scale well. Furthermore, I think in general users want to search by Drupal core major version and then navigate to different versions via the UI after the initial search.
api_opensearch (api/opensearch/%/%)
I think we should change this to search Drupal major versions (core compatibility field) using the preferred branch field in api_branch to help decide which object to return when there are duplicate identifiers. The user would still have the ability to navigate to different versions of the item in the UI.
api_suggest (api/suggest/%/%/%menu_tail)
This would need to change to support the changes to opensearch. It currently requires a project and branch combination to be specified but should probably just take core compatibility and filter on preferred branch.