Re: Koha & Vufind

What do you need the URL for? Depending on the context in which you are presenting it, different approaches may make more or less sense. There are at least three
possibilities, assuming that the URLs use a predictable pattern that includes the ID:

1.)You could index the URL to a Solr field (possibly using a regular expression pattern map if you need to prepend/append to the ID to build the URL) and
then create a record driver method to retrieve it.

2.)You could create a record driver method to build the URL dynamically from the ID without indexing any extra data.

3.)You could customize the relevant template(s) to build the URL from the getUniqueId() record driver method.

Obviously the best approach will depend on your needs, and on how flexible you want the solution to be. If you want one URL in one place, and you don’t mind embedding
Koha-specific logic in your template, option 3 is probably the quickest and easiest. But if you want to use the URL in a lot of different places and/or want to make your code more ILS-agnostic in case of future changes, one of the record-driver-wrapped approaches
is likely cleaner and more maintainable.