From bc3e71acdf48101acfa077ce67e4c6712f5e7c79 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 14 Dec 2010 10:54:17 -0600 Subject: [PATCH] [SIGNED-OFF] Fix for 5143, now with IE debug removed Need to set up keyword to marc mappings for subtitle, parts, numbers for this to work adds: - the subtitles into the title link (originally Chris Cormack) - barcodes for every listed hold - denoted which items were only item and which could be filled by any item on that bib. - added id's to every column for ease of jquery suppression of data (example: publication data or patron column could be suppressed) [EDIT]: Added missing template variable [EDIT]: Converted table cell IDs to classes. Having multiple identical IDs is invalid. Signed-off-by: Owen Leonard --- circ/view_holdsqueue.pl | 8 +++- .../prog/en/modules/circ/view_holdsqueue.tmpl | 54 ++++++++++---------- 2 files changed, 34 insertions(+), 28 deletions(-) diff --git a/circ/view_holdsqueue.pl b/circ/view_holdsqueue.pl index 668bdd1..3023cdf 100755 --- a/circ/view_holdsqueue.pl +++ b/circ/view_holdsqueue.pl @@ -96,7 +96,13 @@ sub GetHoldsQueueItems { $sth->execute(@bind_params); my $items = []; while ( my $row = $sth->fetchrow_hashref ){ - $row->{reservedate} = format_date($row->{reservedate}); + $row->{reservedate} = format_date($row->{reservedate}); + my $record = GetMarcBiblio($row->{biblionumber}); + if ($record){ + $row->{subtitle} = GetRecordValue('subtitle',$record,'')->[0]->{subfield}; + $row->{parts} = GetRecordValue('parts',$record,'')->[0]->{subfield}; + $row->{numbers} = GetRecordValue('numbers',$record,'')->[0]->{subfield}; + } push @$items, $row; } return $items; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tmpl index 52ddd85..a9d737e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tmpl @@ -14,7 +14,7 @@
- +
@@ -29,48 +29,48 @@
No items found.
- - - - - - - - + + + + + + + - - - - + + - - - + + +
TitleCollectionCall NumberBarcodePatronSend ToDateTitleCollectionCall NumberBarcodePatronSend ToDate

">

-

- - , - , - : - ISBN:

+

">

+

+

+ , + , + : + ISBN:

+
+ - + Only Item: - Any available copy +
or Any available

#reserves">, ()

#reserves">, ()

- - + +
@@ -84,7 +84,7 @@ - -- 1.7.1