From 25f7841028c2728ef9e528cd5e208c54cda56c8b 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 --- .../opac-tmpl/prog/en/modules/opac-detail.tt | 128 ++++++++++-------- 1 file changed, 73 insertions(+), 55 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 53215f7891..a5be32470a 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -517,63 +517,78 @@ 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 ( OPACFRBRizeEditions ) %][% IF ( XISBNS ) %]
  • Editions
  • [% END %][% END %] - - [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonReviews ) %]
  • Amazon Reviews
  • [% END %][% END %] +[% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonReviews ) %] +
  • Amazon Reviews
  • +[% END %][% END %] +[% IF ( Babeltheque ) %] +
  • Babelthèque
  • +[% END %] - [% IF ( serialcollection ) %] - [% IF ( defaulttab == 'serialcollection' ) %]
  • - [% ELSE %]
  • [% END %] - Serial Collection
  • - [% END %] +[% IF ( serialcollection ) %] + [% IF ( defaulttab == 'serialcollection' ) %]
  • [% ELSE %]
  • [% END %] + Serial Collection +
  • +[% END %] - [% IF ( OPACLocalCoverImages ) %][% IF ( localimages ) %]
  • Images
  • [% END %][% END %] +[% IF ( OPACLocalCoverImages ) %][% IF ( localimages ) %] +
  • Images
  • +[% END %][% END %]
[% IF ( serialcollection ) %] @@ -581,8 +596,8 @@ YAHOO.util.Event.onContentReady("furtherm", function () { - - + + @@ -602,19 +617,19 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% IF ( lotsofitems ) %]

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

[% ELSE %] -
LibrarySerial collectionLibrarySerial 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 %]
Item typeLocationCollectionCall NumberVol InfourlCopyStatusNotesDate Due
[% UNLESS ( noItemTypeImages ) %][% IF ( ITEM_RESULT.imageurl ) %][% ITEM_RESULT.description %][% END %][% END %] [% ITEM_RESULT.description %] @@ -734,14 +749,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