I'd like to extend <em>Alfresco.ObjectFinder</em> located in <em>object-finder.js</em> to override the specific authority search method but I don't know how !And then how to use the new object in my own <em>association.ftl</em>.

To override the object-finder.js, create a new JS component file (for example custom-object-finder.js with a Alfresco.CustomObjectFinder component), add your component constructor, and make it extend the native object finder using :

Add the dependency to your custom-object-finder.js. If your component is allways used in the document library context, you can add the dependency using the DocLibCustom config in your share-config-custom.xml :

As you are extending the Alfresco.ObjectFinder component, you also have to change the constructor.The first thing you do in the constructor is to call the parent constructor so you don't have to copy the rest of the instructions.Moreover, you have to change the call to the parent constructor beacause the parameters of the Alfresco.ObjectFinder constructor are not the same as the Alfresco.component.Base constructor.