X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=admin%2Ffieldmapping.pl;h=f7eca3c8085f0209cec17e4299c820de6ed1520d;hb=5f2e1ba7b14b226cbe23438116d77be710dd88b0;hp=50b1310d9ae299f6a6b91e003174d1a8c92967e9;hpb=c5da83f020677bbc7b1f71bcf03d82dc233630ae;p=koha_fer diff --git a/admin/fieldmapping.pl b/admin/fieldmapping.pl index 50b1310d9a..f7eca3c808 100755 --- a/admin/fieldmapping.pl +++ b/admin/fieldmapping.pl @@ -12,9 +12,9 @@ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, -# Suite 330, Boston, MA 02111-1307 USA +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. use strict; use warnings; @@ -46,8 +46,15 @@ my ($template, $loggedinuser, $cookie) # get framework list my $frameworks = getframeworks(); my @frameworkloop; +my $selected; +my $frameworktext; foreach my $thisframeworkcode (keys %$frameworks) { - my $selected = 1 if $thisframeworkcode eq $framework; + if ($thisframeworkcode eq $framework){ + $selected = 1; + $frameworktext = $frameworks->{$thisframeworkcode}->{'frameworktext'}; + } else { + $selected = 0; + } my %row =(value => $thisframeworkcode, selected => $selected, frameworktext => $frameworks->{$thisframeworkcode}->{'frameworktext'}, @@ -70,6 +77,7 @@ my $fieldloop = GetFieldMapping($framework); $template->param( frameworkloop => \@frameworkloop, framework => $framework, + frameworktext => $frameworktext, fields => $fieldloop, );