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 39-45 Link Here
39
                            [% ELSE %]
39
                            [% ELSE %]
40
                                <label for="title">Title:</label>
40
                                <label for="title">Title:</label>
41
                            [% END %]
41
                            [% END %]
42
                            <input type="text" name="title" id="title" size="50"/>
42
                            <input type="text" name="title" id="title" size="50" value="[% title %]"/>
43
                        </li>
43
                        </li>
44
44
45
                        <li>
45
                        <li>
Lines 48-54 Link Here
48
                            [% ELSE %]
48
                            [% ELSE %]
49
                                <label for="author">Author:</label>
49
                                <label for="author">Author:</label>
50
                            [% END %]
50
                            [% END %]
51
                            <input type="text" name="author" id="author" size="50"/>
51
                            <input type="text" name="author" id="author" size="50" value="[% author %]"/>
52
                        </li>
52
                        </li>
53
53
54
                        <li>
54
                        <li>
Lines 84-90 Link Here
84
                            [% ELSE %]
84
                            [% ELSE %]
85
                                <label for="pages">Pages:</label>
85
                                <label for="pages">Pages:</label>
86
                            [% END %]
86
                            [% END %]
87
                            <input type="text" name="pages" id="pages" size="50"/>
87
                            <input type="text" name="pages" id="pages" size="50" value="[% pageinfo %]"/>
88
                        </li>
88
                        </li>
89
89
90
                        <li>
90
                        <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