Koha & Vufind

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Koha & Vufind

Hugo Agud-2
Hi to all!

I have to harvest from Koha and in the items include url, I tink a vufind koha.php has not the items.uri from koha

I just wish ask you what do you thibk it could be the best approach... map an already items.filed of koha.php to uri? for example and modify the vufind holdings.tab?

Thanks a lot for your help

--

Hugo Agud - Orex Digital 

www.orex.es


   www.orex.es/koha    www.orex.es/vufind     


Director

Calle Sant Joaquin,117, 2º-3ª · 08922 Santa Coloma de Gramanet - Tel: 933 856 138   [hidden email] · http://www.orex.es/

 

No imprima este mensaje a no ser que sea necesario. Una tonelada de papel implica la tala de 15 árboles y el consumo de 250.000 litros de agua.

 

Aviso de confidencialidad
Este mensaje contiene información que puede ser CONFIDENCIAL y/o de USO RESTRINGIDO. Si usted no es el receptor deseado del mensaje (ni
está autorizado a recibirlo por el remitente), no está autorizado a copiar, reenviar o divulgar el mensaje o su contenido. Si ha recibido este mensaje
por error, por favor, notifíquenoslo inmediatamente y bórrelo de su sistema.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
VuFind-General mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-general
Reply | Threaded
Open this post in threaded view
|

Re: Koha & Vufind

Demian Katz

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.

 

- Demian

 

From: Hugo Agud [mailto:[hidden email]]
Sent: Thursday, May 18, 2017 6:24 AM
To: [hidden email]
Subject: [VuFind-General] Koha & Vufind

 

Hi to all!

 

I have to harvest from Koha and in the items include url, I tink a vufind koha.php has not the items.uri from koha

 

I just wish ask you what do you thibk it could be the best approach... map an already items.filed of koha.php to uri? for example and modify the vufind holdings.tab?

 

Thanks a lot for your help

 

--

Hugo Agud - Orex Digital 

www.orex.es

 

   www.orex.es/koha   www.orex.es/vufind    

 

Director

Calle Sant Joaquin,117, 2º-3ª · 08922 Santa Coloma de Gramanet - Tel: 933 856 138   [hidden email] · http://www.orex.es/

 

No imprima este mensaje a no ser que sea necesario. Una tonelada de papel implica la tala de 15 árboles y el consumo de 250.000 litros de agua.

 

Aviso de confidencialidad
Este mensaje contiene información que puede ser CONFIDENCIAL y/o de USO RESTRINGIDO. Si usted no es el receptor deseado del mensaje (ni
está autorizado a recibirlo por el remitente), no está autorizado a copiar, reenviar o divulgar el mensaje o su contenido. Si ha recibido este mensaje
por error, por favor, notifíquenoslo inmediatamente y bórrelo de su sistema.

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
VuFind-General mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-general