From 5794bde2047490ff208bb7d81fa67e6a17314482 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 6 Aug 2008 10:35:05 -0500 Subject: [PATCH] Reformatting serials item edit screen to eliminate label truncation and give it additem-like layout. Also correcting some markup errors, both in the template and in markup generated by Biblio.pm. HDL: I assume this will be superceded at some point by an include, but wasn't sure if that would be in time for 3.0. Signed-off-by: Joshua Ferraro --- C4/Biblio.pm | 10 +--- .../prog/en/modules/serials/serials-edit.tmpl | 59 +++++++++++-------- 2 files changed, 37 insertions(+), 32 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 9c0bbaeeca..a0406dbbbc 100755 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -1909,11 +1909,7 @@ sub PrepareItemrecordDisplay { $tagslib->{$tag}->{$subfield}->{'kohafield'}; # $subfield_data{marc_lib}=$tagslib->{$tag}->{$subfield}->{lib}; - $subfield_data{marc_lib} = - "{$tag}->{$subfield}->{lib} . "\">" - . substr( $tagslib->{$tag}->{$subfield}->{lib}, 0, 12 ) - . ""; + $subfield_data{marc_lib} = $tagslib->{$tag}->{$subfield}->{lib}; $subfield_data{mandatory} = $tagslib->{$tag}->{$subfield}->{mandatory}; $subfield_data{repeatable} = @@ -2048,7 +2044,7 @@ sub PrepareItemrecordDisplay { } elsif ( $tagslib->{$tag}->{$subfield}->{thesaurus_category} ) { $subfield_data{marc_value} = -" {$tag}->{$subfield}->{thesaurus_category}&index=',)\">..."; +" {$tag}->{$subfield}->{thesaurus_category}&index=',)\">..."; #" # COMMENTED OUT because No $i is provided with this API. @@ -2063,7 +2059,7 @@ sub PrepareItemrecordDisplay { } else { $subfield_data{marc_value} = -""; +""; } push( @loop_data, \%subfield_data ); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl index 5eb2bd4e1a..a65284ae80 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl @@ -138,6 +138,17 @@ function CloneSubfield(index){ } //]]> + @@ -152,19 +163,9 @@ function CloneSubfield(index){

Serial Edition

-
+ - +