# 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;
query => $query,
type => "intranet",
authnotrequired => 0,
- flagsrequired => {parameters => 1},
+ flagsrequired => {parameters => 'parameters_remaining_permissions'},
debug => 1,
});
# 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'},
}
my $fieldloop = GetFieldMapping($framework);
-warn Data::Dumper::Dumper($fieldloop->[1]);
$template->param( frameworkloop => \@frameworkloop,
framework => $framework,
+ frameworktext => $frameworktext,
fields => $fieldloop,
);
-output_html_with_http_headers $query, $cookie, $template->output;
\ No newline at end of file
+output_html_with_http_headers $query, $cookie, $template->output;