[Koha] New opac detail view for records

Pedro Amorim pjamorim91 at gmail.com
Tue Dec 6 07:11:31 NZDT 2016


Hey Fred,

Thanks for your help and sharing your resources, however I think there's
been a misunderstanding.
I have already done that and altered those template files to my needs in
order to define how and what fields are shown in the *normal* detail view.

I misinterpreted you and thought what you did was add a new detail view for
record view to the original 3 Koha brings out of the box.

-----

Katrin, the fourth view I intend to add is called NP-405 and I believe it's
a Portuguese bibliographic standard and resembles ISBD style.

The detail view itself is irrelevant as what I am looking for is the
technique on how to add it, after that we can use XSL (similar to normal
view) to create our own custom detail view.

Thanks again,

Pedro Amorim


2016-12-05 16:55 GMT-01:00 King, Fred <Fred.King at medstar.net>:

> Sorry about the site being down. I rebooted the server and it’s working
> again. One of these days I’ll look into why that happens, but not today.
>
>
>
> As far as I can tell, all you need to do is configure the XSLT files to
> have the right file names so they can find each other. Then go into Koha
> Administration – Global System Preferences – OPAC – Appearance and change
> the file locations for OPACXSLTDetailsDisplay and OPACXSLTResultsDisplay.
>
>
>
> If you want to look at my modified xsl files, you should be able to see
> them at
>
> http://www.philobiblios.info:81/authcatDetail.xsl
>
> http://www.philobiblios.info:81/authcatResults.xsl
>
> http://www.philobiblios.info:81/authcatUtils.xsl
>
>
>
> (With apologies to all *real* XSLT coders. J I know XSLT coding the way I
> know cataloging—I picked up things as I went along and I know it’s a bit
> messy.)
>
>
>
> Fred King
>
> Medical Librarian, MedStar Washington Hospital Center
>
> fred.king at medstar.net
>
> 202-877-6670 <(202)%20877-6670>
>
> ORCID 0000-0001-5266-0279
>
>
>
> I have one of those metabolisms where I can eat whatever I want and my
> body converts it to energy and stores the excess as fat.
>
> --Randall Munroe, xkcd
>
>
>
> *From:* Pedro Amorim [mailto:pjamorim91 at gmail.com]
> *Sent:* Monday, December 05, 2016 8:00 AM
> *To:* Elaine Bradtke
> *Cc:* King, Fred; koha at lists.katipo.co.nz
>
> *Subject:* Re: [Koha] New opac detail view for records
>
>
>
> Thanks all for your help,
>
>
>
> Yes, I do have a test server and I'm doing all the changes in a Docker
> container, so if something goes wrong I just rollback to where it was
> initially.
>
> Also, all the changes I make to core including XSLT files modifications go
> in the Dockerfile and hence are documented and need to be considered for
> any future upgrade. So all is well in that regard.
>
>
>
> Unfortunately I won't be able to get back to this matter for a couple of
> days but I'll definitely update this thread when I get to it.
>
> Fred, I'll start by following your advice, however I couldn't access the
> link you shared, it's showing a database error, at the time of writing.
>
> Also "as long as Koha knows what they're called, and you can put them
> anywhere you want as long as Koha knows where they are", any special
> place (system preferences, any other xml config file) that need to mention
> these new files? Also, did you change the template files to show the new
> detail view option?
>
>
>
> Thanks again,
>
>
>
> Pedro Amorim
>
>
>
> 2016-11-28 16:48 GMT-01:00 Elaine Bradtke <eb at efdss.org>:
>
> I agree with everything Fred said.  It's taken quite a bit of testing and
> retesting to change something in the OPAC display. We managed to
> accidentally  hide all the bibliographic data in the OPAC search results on
> the first two tries.  Thank goodness for our test system.
>
>
> On Mon, Nov 21, 2016 at 9:34 PM, King, Fred <Fred.King at medstar.net> wrote:
>
> > Pedro,
> >
> > If you do end up modifying the XSLT files, here are a few tips:
> >
> > I created detail display and results display XSLT files for our local
> > authors catalog (see http://www.philobiblios.info
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.philobiblios.info&d=DgMFaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=fYb4HB07rSX4FLnQar0xNavyncRNKeoC-Mo_zZKe7LE&s=zN-8Q1LXITObPjkMbMygqaKex0YU-1S9xQgbGc8qiyI&e=>
> for the low-powered
> > test version). I discovered two wonderful things: you can name them
> > anything you want as long as Koha knows what they're called, and you can
> > put them anywhere you want as long as Koha knows where they are. (You
> also
> > have to sync those with the Utils.xsl file.) I put them in /var/www/html
> > and called them authcatUtils.xsl and authcatDetail.xsl.
> >
> > If you do modify them, I highly recommend that you document ALL your
> > changes with comments. Also, it's very easy to break them, so test each
> > change before you go on to the next. Go slowly!
> >
> > You do have a test server for this, right? :-)
> >
> > Fred King
> > Medical Librarian, MedStar Washington Hospital Center
> > fred.king at medstar.net
> > 202-877-6670
> > ORCID 0000-0001-5266-0279
> >
> > A learning experience is one of those things that says, 'You know that
> > thing you just did? Don't do that.’
> > --Douglas Adams
> >
> > -----Original Message-----
> > From: Koha [mailto:koha-bounces at lists.katipo.co.nz] On Behalf Of Katrin
> > Sent: Monday, November 21, 2016 4:09 PM
> > To: koha at lists.katipo.co.nz
> > Subject: Re: [Koha] New opac detail view for records
> >
> > Hi Pedro,
> >
> > the normal view can be changed by creating your own XSLT file and
> > activating it using the OPACXSLTDetailsDisplay and XSLTDetailsDisplay
> > system preferences.
> >
> > The ISBD view can be changed via the OPACISBD and ISBD system
> preferences.
> >
> > I would recommend not to change the templates or to create your own if
> > you can avoid it, as it is likely to give you headaches when updating to
> > a newer version later on. It's safer to use the preferences, CSS and
> > jQuery.
> >
> > What is the fourth view you want to implement?
> >
> > Hope this helps,
> >
> > Katrin
> >
> > On 10.11.2016 19:32, Pedro Amorim wrote:
> > > Hello all,
> > >
> > > I'm just about to start diving into the core and figure out how the
> three
> > > different opac detail views are implemented (normal, marc and ISBD) so
> I
> > > can implement my own custom detail view and add a fourth one.
> > > However, and before I start doing so, I was wondering if anyone has
> > > done/attempted this before or at least if someone has some knowledge on
> > > what template files should I start and how to go about it.
> > >
> > > Thanks as always,
> > >
> > > Pedro Amorim
> >
> > ----------------------------------------------------------------------
> > MedStar Health is a not-for-profit, integrated healthcare delivery
> system,
> > the largest in Maryland and the Washington, D.C., region. Nationally
> > recognized for clinical quality in heart, orthopaedics, cancer and GI.
> >
> > IMPORTANT: This e-mail (including any attachments) may contain
> information
> > that is private, confidential, or protected by attorney-client or other
> > privilege. If you received this e-mail in error, please delete it from
> your
> > system without copying it and notify sender by reply e-mail, so that our
> > records can be corrected... Thank you.
> >
> > Help conserve valuable resources - only print this email if necessary.
> >
> >
> > _______________________________________________
> > Koha mailing list  http://koha-community.org
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__koha-2Dcommunity.org&d=DgMFaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=fYb4HB07rSX4FLnQar0xNavyncRNKeoC-Mo_zZKe7LE&s=_f-A-aK9u7dtJrxkCeeRoM5el_MsJEDjStk06_q1644&e=>
> > Koha at lists.katipo.co.nz
> > https://lists.katipo.co.nz/mailman/listinfo/koha
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.katipo.co.nz_mailman_listinfo_koha&d=DgMFaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=fYb4HB07rSX4FLnQar0xNavyncRNKeoC-Mo_zZKe7LE&s=vSIWWIExK9A-6cJqjaLEh6Qd2xr2xi7V1lb7DwtLfJY&e=>
> >
>
>
> --
> Elaine Bradtke
> Data Wrangler
> VWML
> English Folk Dance and Song Society | http://www.efdss.org
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.efdss.org&d=DgMFaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=fYb4HB07rSX4FLnQar0xNavyncRNKeoC-Mo_zZKe7LE&s=TW0qgSqKWpUzMEVKLRaxO-YCD7PWmvU-DCZ8mmDs7Yk&e=>
> Cecil Sharp House, 2 Regent's Park Road, London NW1 7AY
> Tel    +44 (0) 20 7485 2206 (This number is for the English Folk Dance and
> Song Society in London, England. If you wish to phone me personally, send
> an e-mail first. I work off site)
> --------------------------------------------------------------------------
> Registered Company No. 297142
> Charity Registered in England and Wales No. 305999
> ------------------------------------------------------------
> ---------------
> "Writing about music is like dancing about architecture"
> --Elvis Costello (Musician magazine No. 60 (October 1983), p. 52)
>
> _______________________________________________
> Koha mailing list  http://koha-community.org
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__koha-2Dcommunity.org&d=DgMFaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=fYb4HB07rSX4FLnQar0xNavyncRNKeoC-Mo_zZKe7LE&s=_f-A-aK9u7dtJrxkCeeRoM5el_MsJEDjStk06_q1644&e=>
> Koha at lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.katipo.co.nz_mailman_listinfo_koha&d=DgMFaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=fYb4HB07rSX4FLnQar0xNavyncRNKeoC-Mo_zZKe7LE&s=vSIWWIExK9A-6cJqjaLEh6Qd2xr2xi7V1lb7DwtLfJY&e=>
>
>
>


More information about the Koha mailing list