Re: [Koha] MARC fields: server-independent URLs
Hi Doug and all,
That is where the Rewrite command comes in. Check the Apache doc.
I think there is a misunderstanding between us. I perfectly understand what apache rewrite rules can do, but I do also believe that, for the problem we are discussing, they can not help. Assume a bibliographic record present in Koha with no physical copy attached to it. Then, you, as a librarian, want to attach a file to the bibliographic record. So you select a format, a filename which is stored on your hard drive and ready to be uploaded, and you submit all this information to koha. The file will be stored somewhere on a file server. The question is: which part of code should be modified so that Koha generateds atomatically a URL and stores it in a 856$u UNIMARC field of the bibliographic record. This URL should be a valid URL which gives the user an access to the file, perhaps by means of apache rewrite rules. The question is really: how to do to have KOha modifying the MARC records to store the right URLs. Moreover, I don't think this can be done with Koha so the real question is which script or module should I modify sto achieve such a result. Cheers, Séastien.
It sounds like you are talking about integration with some kind of external content fileserver. That's definitely out of scope for Koha presently. Rewrite rules can be used to make koha local addresses map to remote ones. This would be advisable to keep the data free from the particular implementation, domainname or address of your fileserver. Koha itself can't do this automatically, of course, since it doesn't know anything about your fileserver. What you might want to work on would be a process where the file is loaded into the fileserver along with the biblionumber. Then you can work on a report from the fileserver to mechanically generate 856$u fields paired with the biblionumber for loading back into Koha. Or if the destination filepath are deterministically based on the biblionumber, then you can map the target mechanically using Apache rules, and all you'd need was an 856 plugin for cataloging. -- Joe Atzberger LibLime - Open Source Library Solutions On Wed, Jun 24, 2009 at 11:22 AM, Sébastien Hinderer < Sebastien.Hinderer@snv.jussieu.fr> wrote:
Hi Doug and all,
That is where the Rewrite command comes in. Check the Apache doc.
I think there is a misunderstanding between us. I perfectly understand what apache rewrite rules can do, but I do also believe that, for the problem we are discussing, they can not help.
Assume a bibliographic record present in Koha with no physical copy attached to it. Then, you, as a librarian, want to attach a file to the bibliographic record. So you select a format, a filename which is stored on your hard drive and ready to be uploaded, and you submit all this information to koha. The file will be stored somewhere on a file server. The question is: which part of code should be modified so that Koha generates atomatically a URL and stores it in a 856$u UNIMARC field of the bibliographic record. This URL should be a valid URL which gives the user an access to the file, perhaps by means of apache rewrite rules. The question is really: how to do to have KOha modifying the MARC records to store the right URLs. Moreover, I don't think this can be done with Koha so the real question is which script or module should I modify to achieve such a result.
Sebastien I agree with your questions which I have tryed to find an alternative way. My main proposal would be to have a new system preference field where we could locate the absolute path to add to file name. Another way is to modify httpp.conf and add a fixed path like http://bd/name_of_the_file where bd would point for the absolute path. The problem is that we need to have a relative path not to have to replace all URL fields if we need to change it. How ? Sugestions welcome. Rafael Citando Sébastien Hinderer <Sebastien.Hinderer@snv.jussieu.fr>:
Hi Doug and all,
That is where the Rewrite command comes in. Check the Apache doc.
I think there is a misunderstanding between us. I perfectly understand what apache rewrite rules can do, but I do also believe that, for the problem we are discussing, they can not help.
Assume a bibliographic record present in Koha with no physical copy attached to it. Then, you, as a librarian, want to attach a file to the bibliographic record. So you select a format, a filename which is stored on your hard drive and ready to be uploaded, and you submit all this information to koha. The file will be stored somewhere on a file server. The question is: which part of code should be modified so that Koha generateds atomatically a URL and stores it in a 856$u UNIMARC field of the bibliographic record. This URL should be a valid URL which gives the user an access to the file, perhaps by means of apache rewrite rules. The question is really: how to do to have KOha modifying the MARC records to store the right URLs. Moreover, I don't think this can be done with Koha so the real question is which script or module should I modify sto achieve such a result.
Cheers, Séastien. _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (3)
-
Joe Atzberger -
rafael.antonio@sapo.pt -
Sébastien Hinderer