# Link object from another blend file that is not positioned at origin

I have a blend file with multiple objects positioned side by side. This file is intended to be used as a library and I don't want to separate them in different files because they are simple variations of the same kind of object. I also created groups for every object (some of them are composed of other objects). This is something like this:

When I link an object from the previous file that is positioned at origin, it's created at the cursor position on the new file and I can rotate it around their own axis like this

But if I link another object from the previous file that is not at the origin on that file, their axis is not aligned with the object

How can I link it in a way that the linked object has the axis aligned with the object?

It is possible that the objects in the source library .blend file have their mesh origins "outside" the mesh geometry. If this is the case, you might want to use shift-ctrl-alt-c to set Origin to Geometry (you will have to do this while editing the source .blend). Or if you want better control over the new origin, set the 3D cursor first, and then use the same menu to set Origin to 3D Cursor.