View | Details | Raw Unified | Return to bug 13203
Collapse All | Expand All

(-)a/cataloguing/value_builder/unimarc_field_123i.pl (-2 / +2 lines)
Lines 72-78 my ($input) = @_; Link Here
72
	my $dbh = C4::Context->dbh;
72
	my $dbh = C4::Context->dbh;
73
73
74
my ($template, $loggedinuser, $cookie)
74
my ($template, $loggedinuser, $cookie)
75
    = get_template_and_user({template_name => "cataloguing/value_builder/unimarc_field_123i.tt",
75
    = get_template_and_user({template_name => "cataloguing/value_builder/unimarc_field_123i_j.tt",
76
			     query => $input,
76
			     query => $input,
77
			     type => "intranet",
77
			     type => "intranet",
78
			     authnotrequired => 0,
78
			     authnotrequired => 0,
Lines 84-90 my ($template, $loggedinuser, $cookie) Link Here
84
	my $f3 = substr($result,4,2);
84
	my $f3 = substr($result,4,2);
85
	my $f4 = substr($result,6,2);
85
	my $f4 = substr($result,6,2);
86
	$template->param(index => $index,
86
	$template->param(index => $index,
87
			 "f1$f1" => 1,
87
             "f1".($f1 eq '-'?'s':'n') => 1,
88
			 f2 => $f2,
88
			 f2 => $f2,
89
			 f3 => $f3,
89
			 f3 => $f3,
90
			 f4 => $f4);
90
			 f4 => $f4);
(-)a/cataloguing/value_builder/unimarc_field_123j.pl (-2 / +2 lines)
Lines 75-81 sub plugin { Link Here
75
	my ($template, $loggedinuser, $cookie)
75
	my ($template, $loggedinuser, $cookie)
76
    = get_template_and_user(
76
    = get_template_and_user(
77
    	{
77
    	{
78
            template_name => "cataloguing/value_builder/unimarc_field_123j.tt",
78
            template_name => "cataloguing/value_builder/unimarc_field_123i_j.tt",
79
			query => $input,
79
			query => $input,
80
			type => "intranet",
80
			type => "intranet",
81
			authnotrequired => 0,
81
			authnotrequired => 0,
Lines 88-94 sub plugin { Link Here
88
	my $f3 = substr($result,4,2);
88
	my $f3 = substr($result,4,2);
89
	my $f4 = substr($result,6,2);
89
	my $f4 = substr($result,6,2);
90
	$template->param(index => $index,
90
	$template->param(index => $index,
91
			 "f1$f1" => 1,
91
             "f1".($f1 eq '-'?'s':'n') => 1,
92
			 f2 => $f2,
92
			 f2 => $f2,
93
			 f3 => $f3,
93
			 f3 => $f3,
94
			 f4 => $f4);
94
			 f4 => $f4);
(-)a/cataloguing/value_builder/unimarc_field_210c_bis.pl (-4 / +3 lines)
Lines 36-43 It need : Link Here
36
  if the biblio has no isbn, then the search if done on editor only
36
  if the biblio has no isbn, then the search if done on editor only
37
  If the biblio ha an isbn, the search is done on isbn and editor. It's faster.
37
  If the biblio ha an isbn, the search is done on isbn and editor. It's faster.
38
38
39
=over 2
40
41
=cut
39
=cut
42
40
43
use strict;
41
use strict;
Lines 50-56 use C4::Context; Link Here
50
use C4::AuthoritiesMarc;
48
use C4::AuthoritiesMarc;
51
use C4::Output;
49
use C4::Output;
52
50
53
=head1
51
=head1 FUNCTIONS
52
53
=head2 plugin_parameters
54
54
55
plugin_parameters : other parameters added when the plugin is called by the dopop function
55
plugin_parameters : other parameters added when the plugin is called by the dopop function
56
56
Lines 89-95 sub plugin { Link Here
89
    my $result       = $input->param('result');
89
    my $result       = $input->param('result');
90
    my $editor_found = $input->param('editor_found');
90
    my $editor_found = $input->param('editor_found');
91
    my $AuthoritySeparator = C4::Context->preference("AuthoritySeparator");
91
    my $AuthoritySeparator = C4::Context->preference("AuthoritySeparator");
92
    warn Data::Dumper::Dumper $index;
93
92
94
    my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
93
    my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
95
        {   template_name   => "cataloguing/value_builder/unimarc_field_210c_bis.tt",
94
        {   template_name   => "cataloguing/value_builder/unimarc_field_210c_bis.tt",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_123i_j.tt (-1 / +59 lines)
Line 0 Link Here
0
- 
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 123i/j builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
<body id="cat_unimarc_field_123ij" class="cat" style="padding:1em;">
6
<h3>UNIMARC field 123i/j builder</h3>
7
<form name="f_pop" action="">
8
<table>
9
    <tr>
10
        <td><label for="f1">Hemisphere:</label></td>
11
        <td>
12
            <select name="f1" id="f1" size="1">
13
14
            [% IF ( f1n ) %]
15
                <option value="+" selected="selected">north</option>
16
            [% ELSE %]
17
                <option value="+">north</option>
18
            [% END %]
19
            [% IF ( f1s ) %]
20
                <option value="-" selected="selected">south</option>
21
            [% ELSE %]
22
                <option value="-">south</option>
23
            [% END %]
24
            </select>
25
        </td></tr>
26
27
<tr>          <td><label for="f2">Degree (complete with 0):</label></td>
28
                         <td><input type="text" name="f2" id="f2" maxlength="3" size="4" value="[% f2 %]" /></td>
29
</tr>
30
<tr>          <td><label for="f3">Minute (complete with 0):</label></td>
31
                         <td><input type="text" name="f3" id="f3" maxlength="2" size="3" value="[% f3 %]" /></td>
32
</tr>
33
<tr>          <td><label for="f4">Second (complete with 0):</label></td>
34
                         <td><input type="text" name="f4" id="f4" maxlength="2" size="3" value="[% f4 %]" /></td>
35
</tr>
36
</table>
37
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
38
</form>
39
<script type="text/javascript">
40
//<![CDATA[
41
    function report() {
42
            document.f_pop.f2.value=document.f_pop.f2.value+'   ';
43
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
44
            document.f_pop.f4.value=document.f_pop.f4.value+'  ';
45
            document.f_pop.f2.value=document.f_pop.f2.value.substring(0,3);
46
            document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
47
            document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
48
49
            var doc   = opener.document;
50
            var field = doc.getElementById("[% index %]");
51
52
            field.value =  document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value;
53
        window.close();
54
        return false;
55
    }
56
//]]>
57
</script>
58
59
[% INCLUDE 'popup-bottom.inc' %]

Return to bug 13203