Joshua Ferraro a écrit :
On Wed, Aug 02, 2006 at 02:03:35PM +0200, Paul POULAIN wrote:
Unless someone declares he is already working on this, I'll do it (me or hdl or antoine, depends on who get some time to do this. I think 2 days are needed to do something working well) What would you use as the 'template'? Might I suggest XSLT? You can do some pretty amazing transformations with it and if you stored the XSLT markup in the db (like in a syspref) the librarian could edit it to change the way the MARC was displayed. So you would have: MARCXML from system -> XSLT Stylesheet (from sypref) -> HTML Markup inserted on detail page (or even on original results page, since we already have the full MARC with zebra).
Of course you can suggest XSLT. I haven't investigated what it means in term of needed packages, but for sure that's a way I plan to investigate.
PS : Other ideas in the same area : - rewrite the "normal" (=detail.pl), to get rid of non MARC database - add a systempreference to enable MARC view or disable it in OPAC. IMO the old MARC db must be completely removed or else seriously overhauled. One major problem is we can't add arbitrary MARC fields for display in detail.pl; another is we can't have repeatable fields display properly without writing a new subroutine (even current additional authors stuff doesn't preserve order properly).
Right. I think we all agree that only a few fields could be useful in the non MARC DB. Something like : title, author, ISBN, and nothing more.
(there is already a syspref for enabling MARC view by default, right?)
A syspref to choose which view you want by default. It's set to "ISBD" for most of my libraries, as you can do many things with it already (except preserving subfield order in a field, I know) -- Paul POULAIN et Henri Damien LAURENT Consultants indépendants en logiciels libres et bibliothéconomie (http://www.koha-fr.org) Tel : 04 91 31 45 19