From 0fa690fa2604b6e25c2031a69c5ad0928cdafb4d Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 22 Mar 2012 16:34:28 +0100 Subject: [PATCH] Bug 4819: Add ids to OPAC detail page Patch adds an unique id to every item tab and to every column in the items table on the holdings tab. http://bugs.koha-community.org/show_bug.cgi?id=4819 Signed-off-by: Owen Leonard Signed-off-by: Paul Poulain Signed-off-by: Jared Camins-Esakov --- .../opac-tmpl/prog/en/modules/opac-detail.tt | 113 ++++++++++-------- 1 file changed, 62 insertions(+), 51 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt index 8e4bfcc1d4..f474e98882 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -487,59 +487,67 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
    -[% IF ( defaulttab == 'holdings' ) %]
  • -[% ELSE %]
  • [% END %] - Holdings ( [% count %] )
  • -
  • Title Notes
  • +[% IF ( defaulttab == 'holdings' ) %]
  • [% ELSE %]
  • [% END %] + Holdings ( [% count %] ) +
  • +
  • Title Notes
  • [% IF ( SYNDETICS_TOC ) %] -
  • TOC
  • +
  • TOC
  • [% END %] [% IF ( SyndeticsEnabled ) %] -[% IF ( SyndeticsExcerpt ) %][% IF ( SYNDETICS_EXCERPT ) %] -
  • Excerpt
  • -[% END %][% END %] -[% IF ( SyndeticsReviews ) %][% IF ( SYNDETICS_REVIEWS ) %] -
  • Reviews
  • -
  • [% IF ( using_https ) %] -[% ELSE %] -[% END %] -
  • -[% END %][% END %] -[% IF ( SyndeticsAuthorNotes ) %][% IF ( SYNDETICS_ANOTES ) %] -
  • About the Author
  • -[% END %][% END %] + [% IF ( SyndeticsExcerpt ) %][% IF ( SYNDETICS_EXCERPT ) %] +
  • Excerpt
  • + [% END %][% END %] + [% IF ( SyndeticsReviews ) %][% IF ( SYNDETICS_REVIEWS ) %] +
  • Reviews
  • +
  • + [% IF ( using_https ) %] + + + [% ELSE %] + + + [% END %] +
  • + [% END %][% END %] + [% IF ( SyndeticsAuthorNotes ) %][% IF ( SYNDETICS_ANOTES ) %] +
  • About the Author
  • + [% END %][% END %] [% END %] [% IF ( LibraryThingForLibrariesID ) %] [% IF ( LibraryThingForLibrariesTabbedView ) %] -
  • Similar Items
  • -
  • Tag Browser
  • +
  • Similar Items
  • +
  • Tag Browser
  • [% END %] [% END %] [% IF ( subscriptionsnumber ) %] - [% IF ( defaulttab == 'subscriptions' ) %]
  • - [% ELSE %]
  • [% END %] - Subscriptions -
  • [% END %] + [% IF ( defaulttab == 'subscriptions' ) %]
  • [% ELSE %]
  • [% END %] + Subscriptions +
  • +[% END %] [% IF ( reviewson ) %] -
  • Comments -( [% IF reviews.defined %][% reviews.size %][% ELSE %]0[% END %] )
  • +
  • Comments ( [% IF reviews.defined %][% reviews.size %][% ELSE %]0[% END %] )
  • [% END %] [% IF ( NovelistSelectProfile ) %] -[% IF ( NovelistSelectView == 'tab') %] -
  • Novelist Select
  • -[% END %] + [% IF ( NovelistSelectView == 'tab') %] +
  • Novelist Select
  • + [% END %] [% END %] -[% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonSimilarItems ) %][% IF ( AMAZON_SIMILAR_PRODUCTS ) %]
  • Related
  • [% END %][% END %][% END %] +[% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonSimilarItems ) %][% IF ( AMAZON_SIMILAR_PRODUCTS ) %] + +[% END %][% END %][% END %] - [% IF ( OPACFRBRizeEditions ) %][% IF ( XISBNS ) %]
  • Editions
  • [% END %][% END %] - - [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonReviews ) %]
  • Amazon Reviews
  • [% END %][% END %] - [% IF ( Babeltheque ) %]
  • Babelthèque
  • [% END %] +[% IF ( OPACFRBRizeEditions ) %][% IF ( XISBNS ) %] +
  • Editions
  • +[% END %][% END %] + + [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonReviews ) %]
  • Amazon Reviews
  • [% END %][% END %] + [% IF ( Babeltheque ) %]
  • Babelthèque
  • [% END %] [% IF ( serialcollection ) %] - [% IF ( defaulttab == 'serialcollection' ) %]
  • + [% IF ( defaulttab == 'serialcollection' ) %]
  • [% ELSE %]
  • [% END %] Serial Collection
  • [% END %] @@ -550,8 +558,8 @@ YAHOO.util.Event.onContentReady("furtherm", function () { - - + + @@ -571,19 +579,19 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% IF ( lotsofitems ) %]

    This record has many physical items. Click here to view them all.

    [% ELSE %] -
    BranchSerial collectionBranchSerial collection
    - - [% IF ( item_level_itypes ) %][% END %] - - [% IF ( itemdata_ccode ) %][% END %] - - [% IF ( itemdata_enumchron ) %][% END %] - [% IF ( itemdata_uri ) %][% END %] - [% IF ( itemdata_copynumber ) %][% END %] - - [% IF ( itemdata_itemnotes ) %][% END %] - - +
    Item typeLocationCollectionCall NumberVol InfourlCopyStatusNotesDate Due
    + + [% IF ( item_level_itypes ) %][% END %] + + [% IF ( itemdata_ccode ) %][% END %] + + [% IF ( itemdata_enumchron ) %][% END %] + [% IF ( itemdata_uri ) %][% END %] + [% IF ( itemdata_copynumber ) %][% END %] + + [% IF ( itemdata_itemnotes ) %][% END %] + + [% FOREACH ITEM_RESULT IN ITEM_RESULTS %] [% IF ( item_level_itypes ) %][% END %] @@ -691,14 +699,17 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% END %] [% IF ( MARCNOTES ) %] +
    [% FOREACH MARCNOTE IN MARCNOTES %]

    [% MARCNOTE.marcnote FILTER html_line_break %]

    [% END %] - [% ELSE %] +
    +[% ELSE %] [% IF ( notes ) %]

    [% notes %]

    [% END %] [% END %] + -- 2.39.5
    Item typeLocationCollectionCall NumberVol InfourlCopyStatusNotesDate Due
    [% UNLESS ( noItemTypeImages ) %][% IF ( ITEM_RESULT.imageurl ) %][% ITEM_RESULT.description %][% END %][% END %] [% ITEM_RESULT.description %][% UNLESS ( singleBranchMode ) %][% IF ( ITEM_RESULT.branchurl ) %][% ITEM_RESULT.branchname %][% ELSE %][% ITEM_RESULT.branchname %][% END %][% END %] [% ITEM_RESULT.location_description %]