projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c4f815
)
Fix a bug where the 008 field got replaced if you
author
Joshua Ferraro
<jmf@liblime.com>
Tue, 22 Jul 2008 00:38:52 +0000
(19:38 -0500)
committer
Joshua Ferraro
<jmf@liblime.com>
Tue, 22 Jul 2008 00:38:52 +0000
(19:38 -0500)
inadvertantly clicked in the field and it wasn't empty.
This patch prevents the field from being replaced unless
it's empty.
cataloguing/value_builder/marc21_field_008.pl
patch
|
blob
|
history
diff --git
a/cataloguing/value_builder/marc21_field_008.pl
b/cataloguing/value_builder/marc21_field_008.pl
index
8c26acc
..
c060377
100755
(executable)
--- a/
cataloguing/value_builder/marc21_field_008.pl
+++ b/
cataloguing/value_builder/marc21_field_008.pl
@@
-51,7
+51,12
@@
sub plugin_javascript {
//<![CDATA[
function Focus$function_name(subfield_managed) {
- document.getElementById(\"$field_number\").value='$dateentered' + 't xxu||||| |||| 00| 0 eng d';
+
+ if ( document.getElementById(\"$field_number\").value ) {
+ }
+ else {
+ document.getElementById(\"$field_number\").value='$dateentered' + 't xxu||||| |||| 00| 0 eng d';
+ }
return 1;
}