Lines 64-70
BEGIN {
Link Here
|
64 |
&GetKohaAuthorisedValuesMapping |
64 |
&GetKohaAuthorisedValuesMapping |
65 |
&GetKohaAuthorisedValueLib |
65 |
&GetKohaAuthorisedValueLib |
66 |
&GetAuthorisedValueByCode |
66 |
&GetAuthorisedValueByCode |
67 |
&GetKohaImageurlFromAuthorisedValues |
|
|
68 |
&GetAuthValCode |
67 |
&GetAuthValCode |
69 |
&AddAuthorisedValue |
68 |
&AddAuthorisedValue |
70 |
&GetNormalizedUPC |
69 |
&GetNormalizedUPC |
Lines 1060-1084
sub displayServers {
Link Here
|
1060 |
return \@primaryserverloop; |
1059 |
return \@primaryserverloop; |
1061 |
} |
1060 |
} |
1062 |
|
1061 |
|
1063 |
|
|
|
1064 |
=head2 GetKohaImageurlFromAuthorisedValues |
1065 |
|
1066 |
$authhorised_value = GetKohaImageurlFromAuthorisedValues( $category, $authvalcode ); |
1067 |
|
1068 |
Return the first url of the authorised value image represented by $lib. |
1069 |
|
1070 |
=cut |
1071 |
|
1072 |
sub GetKohaImageurlFromAuthorisedValues { |
1073 |
my ( $category, $lib ) = @_; |
1074 |
my $dbh = C4::Context->dbh; |
1075 |
my $sth = $dbh->prepare("SELECT imageurl FROM authorised_values WHERE category=? AND lib =?"); |
1076 |
$sth->execute( $category, $lib ); |
1077 |
while ( my $data = $sth->fetchrow_hashref ) { |
1078 |
return $data->{'imageurl'}; |
1079 |
} |
1080 |
} |
1081 |
|
1082 |
=head2 GetAuthValCode |
1062 |
=head2 GetAuthValCode |
1083 |
|
1063 |
|
1084 |
$authvalcode = GetAuthValCode($kohafield,$frameworkcode); |
1064 |
$authvalcode = GetAuthValCode($kohafield,$frameworkcode); |