|
Lines 18-23
Link Here
|
| 18 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
18 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
| 19 |
|
19 |
|
| 20 |
use Modern::Perl; |
20 |
use Modern::Perl; |
|
|
21 |
|
| 22 |
use cataloguing::value_builder::wrapper; |
| 21 |
use C4::Auth; |
23 |
use C4::Auth; |
| 22 |
use CGI; |
24 |
use CGI; |
| 23 |
use C4::Context; |
25 |
use C4::Context; |
|
Lines 65-77
sub plugin_javascript {
Link Here
|
| 65 |
return ( $field_number, $res ); |
67 |
return ( $field_number, $res ); |
| 66 |
} |
68 |
} |
| 67 |
|
69 |
|
| 68 |
sub wrapper { |
|
|
| 69 |
my ($char) = @_; |
| 70 |
return "space" if $char eq " "; |
| 71 |
return "dblspace" if $char eq " "; |
| 72 |
return "pipe" if $char eq "|"; |
| 73 |
return $char; |
| 74 |
} |
| 75 |
|
70 |
|
| 76 |
sub plugin { |
71 |
sub plugin { |
| 77 |
my ($input) = @_; |
72 |
my ($input) = @_; |