From 4a962af1f4ca5702da655194eaf6017ea8ea71b8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 9 Mar 2009 14:27:39 -0500 Subject: [PATCH] UI tweaks to OPAC holds screen following addition of multiple holds functionality. Addition of subtitle and copy number to output. Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 8 ++++ .../prog/en/modules/opac-reserve.tmpl | 44 +++++++++---------- opac/opac-reserve.pl | 6 ++- 3 files changed, 33 insertions(+), 25 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index a5cf738cc8..5649b2556d 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -253,6 +253,14 @@ td,th { padding : 3px 5px; } +td.place_on_type table, +td.place_on_type table td { + border : 0; +} +td caption { + font-size : 105%; +} + th { background-color:#EEE; font-weight : bold; diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl index 2e1bb3365a..f02ef54e4c 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl @@ -17,7 +17,13 @@ var copiesRowId = null; var wasSpecific = false; var lastCopiesRowId = null; - + $(".checkitem").parent().click(function(e){ + if(e.target.tagName.toLowerCase() == 'td'){ + $(this).find("input.checkitem").each( function() { + $(this).attr('checked', !$(this).attr('checked')); + }); + } + }); // Hides all 'specific copy' table rows on load. $(".copiesrow").hide(); @@ -211,16 +217,11 @@ -
-

- For: +

Confirm holds for: ()

-
- -
@@ -228,19 +229,11 @@ - - - - - - -
- - - + + @@ -255,10 +248,10 @@ - + + @@ -389,8 +387,8 @@ value="" /> " /> - /img/famfamfam/silk/cross.png" alt="Cannot be put on hold" /> - + /img/famfamfam/silk/cross.png" alt="Cannot be put on hold" title="Cannot be put on hold" /> +
Confirm Holds
HoldItemHoldTitle Item Type
+ + "/> - "> " @@ -267,7 +260,11 @@ value="any" /> + + + "/> "> " @@ -275,6 +272,7 @@ id="checkitem_" value="any" /> +
You have already requested this title.
@@ -283,10 +281,10 @@
This title cannot be requested.
-
- "> + "> , by diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 7719ab3c26..0c4bf99a15 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -314,7 +314,8 @@ $template->param('item-level_itypes' => $itemLevelTypes); foreach my $biblioNum (@biblionumbers) { - + my $record = GetMarcBiblio($biblioNum); + my $subtitle = C4::Biblio::get_koha_field_from_marc('bibliosubtitle', 'subtitle', $record, ''); # Init the bib item with the choices for branch pickup my %biblioLoopIter = ( branchChoicesLoop => $CGIbranchloop ); @@ -327,6 +328,7 @@ foreach my $biblioNum (@biblionumbers) { $biblioLoopIter{biblionumber} = $biblioData->{biblionumber}; $biblioLoopIter{title} = $biblioData->{title}; + $biblioLoopIter{subtitle} = $subtitle; $biblioLoopIter{author} = $biblioData->{author}; $biblioLoopIter{rank} = $biblioData->{rank}; $biblioLoopIter{reservecount} = $biblioData->{reservecount}; @@ -369,7 +371,7 @@ foreach my $biblioNum (@biblionumbers) { $itemLoopIter->{barcode} = $itemInfo->{barcode}; $itemLoopIter->{homeBranchName} = $branches->{$itemInfo->{homebranch}}{branchname}; $itemLoopIter->{callNumber} = $itemInfo->{itemcallnumber}; - + $itemLoopIter->{copynumber} = $itemInfo->{copynumber}; if ($itemLevelTypes) { $itemLoopIter->{description} = $itemInfo->{description}; $itemLoopIter->{imageurl} = $itemInfo->{imageurl}; -- 2.39.5