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

(-)a/C4/TTParser.pm (+20 lines)
Lines 73-78 sub text{ Link Here
73
    my $line = shift;
73
    my $line = shift;
74
    my $work = shift; # original text
74
    my $work = shift; # original text
75
    my $is_cdata = shift;
75
    my $is_cdata = shift;
76
    # If there is a split template toolkit tag
77
    if ( $work =~ m/^(?:(?!\[%).)*?%\]/s ) {
78
        my @strings = ($&);
79
        my $token;
80
        $work = $';
81
        while ( $token = pop @tokens ) {
82
            if ( $token->string =~ m/\[%.*?$/s ) {
83
                push @tokens,  C4::TmplToken->new( $`, $token->type, $token->line_number, $token->pathname );
84
                push @strings, $&;
85
                last;
86
            } else {
87
                push @strings, $token->string;
88
            }
89
        }
90
        push @tokens,
91
            C4::TmplToken->new(
92
            join( '', reverse @strings ),         C4::TmplTokenType::DIRECTIVE,
93
            $token ? $token->line_number : $line, $self->{filename}
94
            );
95
    }
76
    while($work){
96
    while($work){
77
        # if there is a template_toolkit tag
97
        # if there is a template_toolkit tag
78
        if( $work =~ m/\[%.*?%\]/ ){
98
        if( $work =~ m/\[%.*?%\]/ ){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt (-4 / +3 lines)
Lines 43-49 Link Here
43
        [%~ action_block = action_block _ '<input type="hidden" name="op" value="edit_form" />' ~%]
43
        [%~ action_block = action_block _ '<input type="hidden" name="op" value="edit_form" />' ~%]
44
        [%~ action_block = action_block _ '<input type="hidden" name="public" value="' _ public _ '" />' ~%]
44
        [%~ action_block = action_block _ '<input type="hidden" name="public" value="' _ public _ '" />' ~%]
45
        [%~ action_block = action_block _ '<input type="hidden" name="referer" value="list" />' ~%]
45
        [%~ action_block = action_block _ '<input type="hidden" name="referer" value="list" />' ~%]
46
        [%~ action_block = action_block _ '<button class="editshelf btn btn-default btn-xs"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</button>' ~%]
46
        [%~ action_block = action_block _ '<button class="editshelf btn btn-default btn-xs"><i class="fa-solid fa-pencil" aria-hidden="true"></i> ' _ t("Edit") _ '</button>' ~%]
47
        [%~ action_block = action_block _ '</form> ' ~%]
47
        [%~ action_block = action_block _ '</form> ' ~%]
48
    [%~ END ~%]
48
    [%~ END ~%]
49
    [%~ IF can_delete_shelf ~%]
49
    [%~ IF can_delete_shelf ~%]
Lines 54-60 Link Here
54
        [%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber  _ '" />' ~%]
54
        [%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber  _ '" />' ~%]
55
        [%~ action_block = action_block _ '<input type="hidden" name="public" value="' _ public _ '" />' ~%]
55
        [%~ action_block = action_block _ '<input type="hidden" name="public" value="' _ public _ '" />' ~%]
56
        [%~ action_block = action_block _ '<input type="hidden" name="referer" value="list" />' ~%]
56
        [%~ action_block = action_block _ '<input type="hidden" name="referer" value="list" />' ~%]
57
        [%~ action_block = action_block _ '<button type="submit" class="delete-list btn btn-default btn-xs"><i class="fa fa-trash-can"></i> Delete</button>' ~%]
57
        [%~ action_block = action_block _ '<button type="submit" class="delete-list btn btn-default btn-xs"><i class="fa fa-trash-can"></i> ' _ t("Delete") _ '</button>' ~%]
58
        [%~ action_block = action_block _ '</form>' ~%]
58
        [%~ action_block = action_block _ '</form>' ~%]
59
    [%~ END ~%]
59
    [%~ END ~%]
60
    [%~ IF public AND allow_transfer ~%]
60
    [%~ IF public AND allow_transfer ~%]
Lines 64-70 Link Here
64
        [%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber  _ '" />' ~%]
64
        [%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber  _ '" />' ~%]
65
        [%~ action_block = action_block _ '<input type="hidden" name="public" value="1" />' ~%]
65
        [%~ action_block = action_block _ '<input type="hidden" name="public" value="1" />' ~%]
66
        [%~ action_block = action_block _ '<input type="hidden" name="referer" value="list" />' ~%]
66
        [%~ action_block = action_block _ '<input type="hidden" name="referer" value="list" />' ~%]
67
        [%~ action_block = action_block _ '<button type="submit" class="btn btn-default btn-xs"><i class="fa"></i> Transfer</button>' ~%]
67
        [%~ action_block = action_block _ '<button type="submit" class="btn btn-default btn-xs"><i class="fa"></i> ' _ t("Transfer") _ '</button>' ~%]
68
        [%~ action_block = action_block _ '</form>' ~%]
68
        [%~ action_block = action_block _ '</form>' ~%]
69
    [%~ END ~%]
69
    [%~ END ~%]
70
[%~ ELSE ~%]
70
[%~ ELSE ~%]
71
- 

Return to bug 36171