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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt (-3 / +3 lines)
Lines 38-44 Link Here
38
                            [% ELSE %]
38
                            [% ELSE %]
39
                                <label for="title">Title:</label>
39
                                <label for="title">Title:</label>
40
                            [% END %]
40
                            [% END %]
41
                            <input type="text" name="title" id="title" size="50"/>
41
                            <input type="text" name="title" id="title" size="50" value="[% title %]"/>
42
                        </li>
42
                        </li>
43
43
44
                        <li>
44
                        <li>
Lines 47-53 Link Here
47
                            [% ELSE %]
47
                            [% ELSE %]
48
                                <label for="author">Author:</label>
48
                                <label for="author">Author:</label>
49
                            [% END %]
49
                            [% END %]
50
                            <input type="text" name="author" id="author" size="50"/>
50
                            <input type="text" name="author" id="author" size="50" value="[% author %]"/>
51
                        </li>
51
                        </li>
52
52
53
                        <li>
53
                        <li>
Lines 83-89 Link Here
83
                            [% ELSE %]
83
                            [% ELSE %]
84
                                <label for="pages">Pages:</label>
84
                                <label for="pages">Pages:</label>
85
                            [% END %]
85
                            [% END %]
86
                            <input type="text" name="pages" id="pages" size="50"/>
86
                            <input type="text" name="pages" id="pages" size="50" value="[% pageinfo %]"/>
87
                        </li>
87
                        </li>
88
88
89
                        <li>
89
                        <li>
(-)a/opac/opac-request-article.pl (-2 / +9 lines)
Lines 41-46 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
41
41
42
my $action = $cgi->param('action') || q{};
42
my $action = $cgi->param('action') || q{};
43
my $biblionumber = $cgi->param('biblionumber');
43
my $biblionumber = $cgi->param('biblionumber');
44
my $biblio = Koha::Biblios->find($biblionumber);
44
45
45
if ( $action eq 'create' ) {
46
if ( $action eq 'create' ) {
46
    my $branchcode = $cgi->param('branchcode');
47
    my $branchcode = $cgi->param('branchcode');
Lines 74-82 if ( $action eq 'create' ) { Link Here
74
75
75
    print $cgi->redirect("/cgi-bin/koha/opac-user.pl#opac-user-article-requests");
76
    print $cgi->redirect("/cgi-bin/koha/opac-user.pl#opac-user-article-requests");
76
    exit;
77
    exit;
78
} elsif ( !$action ) {
79
    # Should we redirect?
80
    # Conditions: no items, host item entry (MARC21 773)
81
    my ( $host, $pageinfo ) = $biblio->host_record({ no_items => 1 });
82
    if( $host ) {
83
        $template->param( pageinfo => $pageinfo, title => $biblio->title, author => $biblio->author );
84
        $biblio = $host;
85
    }
77
}
86
}
78
87
79
my $biblio = Koha::Biblios->find($biblionumber);
80
my $patron = Koha::Patrons->find($borrowernumber);
88
my $patron = Koha::Patrons->find($borrowernumber);
81
89
82
$template->param(
90
$template->param(
83
- 

Return to bug 20310