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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt (-18 / +19 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Add to list</title>
3
<title>[% t('Koha › Add to list') %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
5
6
Lines 8-23 Link Here
8
9
9
[% UNLESS (authorized) %]
10
[% UNLESS (authorized) %]
10
    <p align="center">
11
    <p align="center">
11
        [% IF (errcode==1) %]Could not create a new list. Please check the name.<br/>[% END %]
12
        [% IF (errcode==1) %][% t('Could not create a new list. Please check the name.') %]<br />[% END %]
12
        [% IF (errcode==2) %]Sorry, you do not have permission to add items to this list.<br/>[% END %]
13
        [% IF (errcode==2) %][% t('Sorry, you do not have permission to add items to this list.') %]<br />[% END %]
13
        <a href="javascript:self.close();">Close this window.</a>
14
        <a href="javascript:self.close();">[% t('Close this window.') %]</a>
14
    </p>
15
    </p>
15
[% ELSE %]
16
[% ELSE %]
16
17
17
                [% IF ( multiple ) %]
18
                [% IF ( multiple ) %]
18
		    <h1>Add [% total %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html%]</em>: [% ELSE %]a list:[% END %]</h1>
19
		    <h1>[% t('Add') %] [% total %] [% t('items to') %] [% IF ( singleshelf ) %]<em>[% shelfname | html%]</em>: [% ELSE %][% t('a list:') %][% END %]</h1>
19
                [% ELSE %]
20
                [% ELSE %]
20
                        <h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]a list:[% END %]</h1>
21
                        <h1>[% t('Add to') %] [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %][% t('a list:') %][% END %]</h1>
21
                [% END %]
22
                [% END %]
22
		<ul>
23
		<ul>
23
		    [% FOREACH biblio IN biblios %]
24
		    [% FOREACH biblio IN biblios %]
Lines 36-62 Link Here
36
37
37
[% UNLESS ( newshelf ) %]
38
[% UNLESS ( newshelf ) %]
38
     <fieldset class="rows">
39
     <fieldset class="rows">
39
    <legend>Select an existing list</legend>
40
    <legend>[% t('Select an existing list') %]</legend>
40
    <ol>
41
    <ol>
41
        <li>
42
        <li>
42
            <label>Choose list</label>
43
            <label>[% t('Choose list') %]</label>
43
            <select name="shelfnumber" id="shelfnumber">
44
            <select name="shelfnumber" id="shelfnumber">
44
                [% IF private_shelves.count %]
45
                [% IF private_shelves.count %]
45
                    <optgroup label="Private lists">
46
                    <optgroup label="[% t('Private lists') %]">
46
                        [% FOREACH private_shelf IN private_shelves %]
47
                        [% FOREACH private_shelf IN private_shelves %]
47
                            <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
48
                            <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
48
                        [% END %]
49
                        [% END %]
49
                    </optgroup>
50
                    </optgroup>
50
                [% END %]
51
                [% END %]
51
                [% IF private_shelves_shared_with_me.count %]
52
                [% IF private_shelves_shared_with_me.count %]
52
                    <optgroup label="Private lists shared with me">
53
                    <optgroup label="[% t('Private lists shared with me') %]">
53
                        [% FOREACH private_shelf IN private_shelves_shared_with_me %]
54
                        [% FOREACH private_shelf IN private_shelves_shared_with_me %]
54
                            <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
55
                            <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
55
                        [% END %]
56
                        [% END %]
56
                    </optgroup>
57
                    </optgroup>
57
                [% END %]
58
                [% END %]
58
                [% IF public_shelves.count %]
59
                [% IF public_shelves.count %]
59
                    <optgroup label="Public lists">
60
                    <optgroup label="[% t('Public lists') %]">
60
                        [% FOREACH public_shelf IN public_shelves %]
61
                        [% FOREACH public_shelf IN public_shelves %]
61
                            <option value="[% public_shelf.shelfnumber %]">[% public_shelf.shelfname | html%]</option>
62
                            <option value="[% public_shelf.shelfnumber %]">[% public_shelf.shelfname | html%]</option>
62
                        [% END %]
63
                        [% END %]
Lines 73-85 Link Here
73
	[% END %]
74
	[% END %]
74
	</fieldset>
75
	</fieldset>
75
76
76
	<p>... or...</p>
77
	<p>[% t('... or...') %]</p>
77
[% END %]
78
[% END %]
78
79
79
    <fieldset class="rows"><legend>Add to a new list:</legend>
80
    <fieldset class="rows"><legend>[% t('Add to a new list:') %]</legend>
80
	<ol><li>
81
	<ol><li>
81
	    <label for="newvirtualshelf">
82
	    <label for="newvirtualshelf">
82
		List name:
83
		[% t('List name:') %]
83
	    </label>
84
	    </label>
84
	    [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
85
	    [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
85
	    [% UNLESS ( biblionumbers ) %]
86
	    [% UNLESS ( biblionumbers ) %]
Lines 91-100 Link Here
91
	    <input type="hidden" name="confirmed" value="1" />
92
	    <input type="hidden" name="confirmed" value="1" />
92
	</li>
93
	</li>
93
	<li>
94
	<li>
94
	    <label for="category">Category:</label>
95
	    <label for="category">[% t('Category:') %]</label>
95
	    <select name="category" id="category">
96
	    <select name="category" id="category">
96
		<option value="1">Private</option>
97
		<option value="1">[% t('Private') %]</option>
97
		<option value="2">Public</option>
98
		<option value="2">[% t('Public') %]</option>
98
	    </select>
99
	    </select>
99
	</li></ol>
100
	</li></ol>
100
    </fieldset>
101
    </fieldset>
Lines 106-112 Link Here
106
<!-- SAVE -->
107
<!-- SAVE -->
107
		    <fieldset class="action">
108
		    <fieldset class="action">
108
            <input type="hidden" name="sortfield" value="title" />
109
            <input type="hidden" name="sortfield" value="title" />
109
			<input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a>
110
			<input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">[% t('Cancel') %]</a>
110
		    </fieldset>
111
		    </fieldset>
111
		</form>
112
		</form>
112
<!-- /SAVE -->
113
<!-- /SAVE -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/downloadshelf.tt (-12 / +13 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Download shelf</title>
3
<title>[% t('Koha › Download shelf') %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
5
<body id="lists_downloadshelf" class="lists" style="padding:1em;">
6
<body id="lists_downloadshelf" class="lists" style="padding:1em;">
Lines 8-16 Link Here
8
    <div class="dialog [% m.type %]">
9
    <div class="dialog [% m.type %]">
9
        [% SWITCH m.code %]
10
        [% SWITCH m.code %]
10
        [% CASE 'unauthorized' %]
11
        [% CASE 'unauthorized' %]
11
            You do not have permission to view this list.
12
            [% t('You do not have permission to view this list.') %]
12
        [% CASE 'does_not_exist' %]
13
        [% CASE 'does_not_exist' %]
13
            This list does not exist.
14
            [% t('This list does not exist.') %]
14
        [% CASE %]
15
        [% CASE %]
15
            [% m.code %]
16
            [% m.code %]
16
        [% END %]
17
        [% END %]
Lines 20-46 Link Here
20
21
21
22
22
[% IF ( format ) %]
23
[% IF ( format ) %]
23
    <p>Your download should begin automatically.</p>
24
    <p>[% t('Your download should begin automatically.') %]</p>
24
[% ELSE %]
25
[% ELSE %]
25
<div id="export" class="detailtagcell">    <form method="post" action="/cgi-bin/koha/virtualshelves/downloadshelf.pl">
26
<div id="export" class="detailtagcell">    <form method="post" action="/cgi-bin/koha/virtualshelves/downloadshelf.pl">
26
<form method="post" action="/cgi-bin/koha/virtualshelves/downloadshelf.pl">
27
<form method="post" action="/cgi-bin/koha/virtualshelves/downloadshelf.pl">
27
	<fieldset class="rows">
28
	<fieldset class="rows">
28
    <legend>Download list</legend>
29
    <legend>[% t('Download list') %]</legend>
29
	<ol><li>
30
	<ol><li>
30
    <label for="format">Format: </label>
31
    <label for="format">[% t('Format:') %] </label>
31
        <select name="format" id="format">
32
        <select name="format" id="format">
32
        <option value="">-- Choose format --</option>
33
        <option value="">[% t('-- Choose format --') %]</option>
33
	    <option value="iso2709">iso2709</option>
34
	    <option value="iso2709">[% t('iso2709') %]</option>
34
	    <option value="ris">RIS</option>
35
	    <option value="ris">[% t('RIS') %]</option>
35
	    <option value="bibtex">BibTex</option>
36
	    <option value="bibtex">[% t('BibTex') %]</option>
36
	    [% FOREACH csv_profile IN csv_profiles %]
37
	    [% FOREACH csv_profile IN csv_profiles %]
37
	    <option value="[% csv_profile.export_format_id %]">CSV - [% csv_profile.profile %]</option>
38
	    <option value="[% csv_profile.export_format_id %]">[% t('CSV -') %] [% csv_profile.profile %]</option>
38
	    [% END %]
39
	    [% END %]
39
	</select>
40
	</select>
40
	</li></ol>
41
	</li></ol>
41
	</fieldset>
42
	</fieldset>
42
	<fieldset class="action"><input type="hidden" name="shelfid" value="[% shelfid %]" />
43
	<fieldset class="action"><input type="hidden" name="shelfid" value="[% shelfid %]" />
43
	<input type="submit" name="save" value="Save" />  <a class="cancel close" href="#">Cancel</a>
44
	<input type="submit" name="save" value="Save" />  <a class="cancel close" href="#">[% t('Cancel') %]</a>
44
	</fieldset>
45
	</fieldset>
45
    </form>
46
    </form>
46
47
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/merge.tt (-3 / +4 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; [% shelf %] merge</title>
3
<title>[% t('Koha ›') %] [% shelf %] [% t('merge') %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'header.inc' %]
5
[% INCLUDE 'header.inc' %]
5
6
Lines 7-14 Link Here
7
8
8
[% IF ( fields ) %][% INCLUDE virtualshelves/merge/selection.tmpl %]
9
[% IF ( fields ) %][% INCLUDE virtualshelves/merge/selection.tmpl %]
9
[% ELSE %]
10
[% ELSE %]
10
<h1>DOIT</h1><pre>[% new %]</pre>
11
<h1>[% t('DOIT') %]</h1><pre>[% new %]</pre>
11
<h1>ITEMS</h1><pre>[% items %]</pre>
12
<h1>[% t('ITEMS') %]</h1><pre>[% items %]</pre>
12
[% END %]
13
[% END %]
13
14
14
[% INCLUDE 'intranet-bottom.inc' %]
15
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt (-43 / +44 lines)
Lines 1-29 Link Here
1
<SUBJECT>
1
[% PROCESS 'i18n.inc' %]
2
Your list: [% shelfname %]
2
<subject>
3
<END_SUBJECT>
3
[% t('Your list:') %] [% shelfname %]
4
<end_subject>
4
5
5
[% USE HtmlToText %]
6
[% USE HtmlToText %]
6
7
7
<HEADER>
8
<header>
8
[% FILTER html2text %]
9
[% FILTER html2text %]
9
    <p>Hi,</p>
10
    <p>[% t('Hi,') %]</p>
10
11
11
    <p>Here is your list called [% shelfname %], sent from our online catalog.</p>
12
    <p>[% t('Here is your list called') %] [% shelfname %][% t(', sent from our online catalog.') %]</p>
12
13
13
    <p>Please note that the attached file is a MARC bibliographic records file
14
    <p>[% t('Please note that the attached file is a MARC bibliographic records file') %]
14
    which can be imported into personal bibliographic software like EndNote,
15
    [% t('which can be imported into personal bibliographic software like EndNote,') %]
15
    Reference Manager or ProCite.</p>
16
    [% t('Reference Manager or ProCite.') %]</p>
16
    <hr/>
17
    <hr />
17
[% END %]
18
[% END %]
18
19
19
<END_HEADER>
20
<end_header>
20
21
21
<MESSAGE>
22
<message>
22
[% FILTER html2text %]
23
[% FILTER html2text %]
23
24
24
    [% IF comment %]
25
    [% IF comment %]
25
        <p>[% comment %]</p>
26
        <p>[% comment %]</p>
26
        <hr/>
27
        <hr />
27
    [% END %]
28
    [% END %]
28
    <ol>
29
    <ol>
29
    [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
30
    [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
Lines 39-45 Your list: [% shelfname %] Link Here
39
40
40
            <p>
41
            <p>
41
            [% IF ( BIBLIO_RESULT.HASAUTHORS ) %]
42
            [% IF ( BIBLIO_RESULT.HASAUTHORS ) %]
42
            <span>Author(s): [% IF ( BIBLIO_RESULT.author ) %][% BIBLIO_RESULT.author %][% END %]
43
            <span>[% t('Author(s):') %] [% IF ( BIBLIO_RESULT.author ) %][% BIBLIO_RESULT.author %][% END %]
43
44
44
            [% IF ( BIBLIO_RESULT.MARCAUTHORS ) %]
45
            [% IF ( BIBLIO_RESULT.MARCAUTHORS ) %]
45
                [% IF ( BIBLIO_RESULT.author ) %]; [% END %]
46
                [% IF ( BIBLIO_RESULT.author ) %]; [% END %]
Lines 50-72 Your list: [% shelfname %] Link Here
50
                    [% UNLESS ( loop.last ) %];[% END %]
51
                    [% UNLESS ( loop.last ) %];[% END %]
51
                [% END %]
52
                [% END %]
52
            [% END %]
53
            [% END %]
53
            </span><br/>
54
            </span><br />
54
            [% END %]
55
            [% END %]
55
56
56
            [% IF ( BIBLIO_RESULT.ISBN ) %]
57
            [% IF ( BIBLIO_RESULT.ISBN ) %]
57
            <span>
58
            <span>
58
                ISBN: [% FOREACH isbn IN BIBLIO_RESULT.ISBN %]
59
                [% t('ISBN:') %] [% FOREACH isbn IN BIBLIO_RESULT.ISBN %]
59
                          [% isbn %]
60
                          [% isbn %]
60
                          [% UNLESS ( loop.last ) %]; [% END %]
61
                          [% UNLESS ( loop.last ) %]; [% END %]
61
                      [% END %]
62
                      [% END %]
62
            </span><br/>
63
            </span><br />
63
            [% END %]
64
            [% END %]
64
65
65
            [% IF BIBLIO_RESULT.publishercode %]
66
            [% IF BIBLIO_RESULT.publishercode %]
66
            <span>
67
            <span>
67
                Published by: [% BIBLIO_RESULT.publishercode %]
68
                [% t('Published by:') %] [% BIBLIO_RESULT.publishercode %]
68
                [% IF ( BIBLIO_RESULT.publicationyear ) %]
69
                [% IF ( BIBLIO_RESULT.publicationyear ) %]
69
                    in [% BIBLIO_RESULT.publicationyear %]
70
                    [% t('in') %] [% BIBLIO_RESULT.publicationyear %]
70
                [% END %]
71
                [% END %]
71
                [% IF ( BIBLIO_RESULT.pages ) %]
72
                [% IF ( BIBLIO_RESULT.pages ) %]
72
                    , [% BIBLIO_RESULT.pages %]
73
                    , [% BIBLIO_RESULT.pages %]
Lines 74-149 Your list: [% shelfname %] Link Here
74
                [% IF BIBLIO_RESULT.item('size') %]
75
                [% IF BIBLIO_RESULT.item('size') %]
75
                , [% BIBLIO_RESULT.item('size') %]
76
                , [% BIBLIO_RESULT.item('size') %]
76
                [% END %]
77
                [% END %]
77
            </span><br/>
78
            </span><br />
78
            [% END %]
79
            [% END %]
79
80
80
            [% IF BIBLIO_RESULT.collection %]
81
            [% IF BIBLIO_RESULT.collection %]
81
            <span>
82
            <span>
82
                Collection: [% BIBLIO_RESULT.seriestitle %]
83
                [% t('Collection:') %] [% BIBLIO_RESULT.seriestitle %]
83
            </span><br/>
84
            </span><br />
84
            [% END %]
85
            [% END %]
85
86
86
            [% IF ( BIBLIO_RESULT.subject ) %]
87
            [% IF ( BIBLIO_RESULT.subject ) %]
87
            <span>
88
            <span>
88
                Subject: [% BIBLIO_RESULT.subject %]
89
                [% t('Subject:') %] [% BIBLIO_RESULT.subject %]
89
            <span><br/>
90
            <span><br />
90
            [% END %]
91
            [% END %]
91
92
92
            [% IF ( BIBLIO_RESULT.copyrightdate ) %]
93
            [% IF ( BIBLIO_RESULT.copyrightdate ) %]
93
            <span>
94
            <span>
94
                Copyright year: [% BIBLIO_RESULT.copyrightdate %]
95
                [% t('Copyright year:') %] [% BIBLIO_RESULT.copyrightdate %]
95
            </span><br/>
96
            </span><br />
96
            [% END %]
97
            [% END %]
97
98
98
            [% IF ( BIBLIO_RESULT.notes ) %]
99
            [% IF ( BIBLIO_RESULT.notes ) %]
99
            <span>
100
            <span>
100
                Notes : [% BIBLIO_RESULT.notes %]
101
                [% t('Notes :') %] [% BIBLIO_RESULT.notes %]
101
            </span><br/>
102
            </span><br />
102
            [% END %]
103
            [% END %]
103
104
104
            [% IF ( BIBLIO_RESULT.unititle ) %]
105
            [% IF ( BIBLIO_RESULT.unititle ) %]
105
            <span>
106
            <span>
106
                Unified title: [% BIBLIO_RESULT.unititle %]
107
                [% t('Unified title:') %] [% BIBLIO_RESULT.unititle %]
107
            </span><br/>
108
            </span><br />
108
            [% END %]
109
            [% END %]
109
110
110
            [% IF ( BIBLIO_RESULT.serial ) %]
111
            [% IF ( BIBLIO_RESULT.serial ) %]
111
            <span>
112
            <span>
112
                Serial: [% BIBLIO_RESULT.serial %]
113
                [% t('Serial:') %] [% BIBLIO_RESULT.serial %]
113
            </span><br/>
114
            </span><br />
114
            [% END %]
115
            [% END %]
115
116
116
            [% IF ( BIBLIO_RESULT.dewey ) %]
117
            [% IF ( BIBLIO_RESULT.dewey ) %]
117
            <span>
118
            <span>
118
                Dewey: [% BIBLIO_RESULT.dewey %]
119
                [% t('Dewey:') %] [% BIBLIO_RESULT.dewey %]
119
            </span><br/>
120
            </span><br />
120
            [% END %]
121
            [% END %]
121
122
122
            [% IF ( BIBLIO_RESULT.classification ) %]
123
            [% IF ( BIBLIO_RESULT.classification ) %]
123
            <span>
124
            <span>
124
                Classification: [% BIBLIO_RESULT.classification %]
125
                [% t('Classification:') %] [% BIBLIO_RESULT.classification %]
125
            </span><br/>
126
            </span><br />
126
            [% END %]
127
            [% END %]
127
128
128
            [% IF ( BIBLIO_RESULT.lccn ) %]
129
            [% IF ( BIBLIO_RESULT.lccn ) %]
129
            <span>
130
            <span>
130
                LCCN: [% BIBLIO_RESULT.lccn %]
131
                [% t('LCCN:') %] [% BIBLIO_RESULT.lccn %]
131
            </span><br/>
132
            </span><br />
132
            [% END %]
133
            [% END %]
133
            [% IF ( BIBLIO_RESULT.url ) %]
134
            [% IF ( BIBLIO_RESULT.url ) %]
134
            <span>
135
            <span>
135
                URL: [% BIBLIO_RESULT.url %]
136
                [% t('URL:') %] [% BIBLIO_RESULT.url %]
136
            </span>
137
            </span>
137
            [% END %]
138
            [% END %]
138
            </p>
139
            </p>
139
140
140
            [% IF ( OPACBaseURL ) %]
141
            [% IF ( OPACBaseURL ) %]
141
            <p>
142
            <p>
142
                In online catalog: [% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% BIBLIO_RESULT.biblionumber %]
143
                [% t('In online catalog:') %] [% OPACBaseURL %][% t('/cgi-bin/koha/opac-detail.pl?biblionumber=') %][% BIBLIO_RESULT.biblionumber %]
143
            </p>
144
            </p>
144
            [% END %]
145
            [% END %]
145
            [% IF ( BIBLIO_RESULT.ITEM_RESULTS.size ) %]
146
            [% IF ( BIBLIO_RESULT.ITEM_RESULTS.size ) %]
146
            <p>Items:
147
            <p>[% t('Items:') %]
147
            <ul>
148
            <ul>
148
                [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]<li>
149
                [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]<li>
149
                    [% ITEM_RESULT.branchname %]
150
                    [% ITEM_RESULT.branchname %]
Lines 154-163 Your list: [% shelfname %] Link Here
154
            </ul>
155
            </ul>
155
            </p>
156
            </p>
156
            [% END %]
157
            [% END %]
157
            <hr/>
158
            <hr />
158
        </li>
159
        </li>
159
    [% END %]
160
    [% END %]
160
    </ol>
161
    </ol>
161
162
162
[% END %]
163
[% END %]
163
<END_MESSAGE>
164
<end_message>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelfform.tt (-9 / +10 lines)
Lines 1-16 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo; Lists &rsaquo;  Sending your list</title>
1
[% PROCESS 'i18n.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]<title>[% t('Koha › Lists ›') %]  [% t('Sending your list') %]</title>
2
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
3
</head>
4
</head>
4
<body id="lists_sendshelfform" class="lists" style="padding: 1em;">
5
<body id="lists_sendshelfform" class="lists" style="padding: 1em;">
5
<div class="container">[% IF ( email ) %]
6
<div class="container">[% IF ( email ) %]
6
7
7
    [% IF ( SENT ) %]
8
    [% IF ( SENT ) %]
8
        <h3>Message sent</h3>
9
        <h3>[% t('Message sent') %]</h3>
9
        <p>The list was sent to: [% email | html %]</p>
10
        <p>[% t('The list was sent to:') %] [% email | html %]</p>
10
        <p><a class="close focus" href="#">Close window</a></p>
11
        <p><a class="close focus" href="#">[% t('Close window') %]</a></p>
11
    [% END %]
12
    [% END %]
12
    [% IF ( error ) %]
13
    [% IF ( error ) %]
13
    <p>Problem sending the list...</p>
14
    <p>[% t('Problem sending the list...') %]</p>
14
    [% END %]
15
    [% END %]
15
    
16
    
16
[% ELSE %]
17
[% ELSE %]
Lines 18-36 Link Here
18
<form action="/cgi-bin/koha/virtualshelves/sendshelf.pl" method="post">
19
<form action="/cgi-bin/koha/virtualshelves/sendshelf.pl" method="post">
19
20
20
<fieldset class="rows"> 
21
<fieldset class="rows"> 
21
<legend>Sending your list</legend>
22
<legend>[% t('Sending your list') %]</legend>
22
<ol>   <li>
23
<ol>   <li>
23
        <label for="email">Email address:</label>
24
        <label for="email">[% t('Email address:') %]</label>
24
        <input type="text" id="email" name="email" size="43" class="focus" />
25
        <input type="text" id="email" name="email" size="43" class="focus" />
25
    </li>
26
    </li>
26
    <li>
27
    <li>
27
            <label for="comment">Comment:</label>
28
            <label for="comment">[% t('Comment:') %]</label>
28
            <textarea id="comment" name="comment" rows="4" cols="40"></textarea>
29
            <textarea id="comment" name="comment" rows="4" cols="40"></textarea>
29
    </li>
30
    </li>
30
    <li>
31
    <li>
31
        <input type="hidden" name="shelfid" value="[% shelfid %]" />
32
        <input type="hidden" name="shelfid" value="[% shelfid %]" />
32
    </li></ol></fieldset>
33
    </li></ol></fieldset>
33
       <fieldset class="action"> <input type="submit" value="Send" /> <a class="cancel close" href="#">Cancel</a> </fieldset>
34
       <fieldset class="action"> <input type="submit" value="Send" /> <a class="cancel close" href="#">[% t('Cancel') %]</a> </fieldset>
34
</form>
35
</form>
35
36
36
[% END %]</div>
37
[% END %]</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-100 / +100 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
Lines 5-32 Link Here
5
[% SET PUBLIC = 2 %]
6
[% SET PUBLIC = 2 %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Koha &rsaquo; [% IF op == 'view' %]Lists &rsaquo; Contents of [% shelf.shelfname | html %][% ELSE %]Lists[% END %][% IF op == 'add_form' %] &rsaquo; Create new list[% END %][% IF op == 'edit_form' %] &rsaquo; Edit list [% shelf.shelfname | html %][% END %]</title>
9
<title>[% t('Koha ›') %] [% IF op == 'view' %][% t('Lists › Contents of') %] [% shelf.shelfname | html %][% ELSE %][% t('Lists') %][% END %][% IF op == 'add_form' %] [% t('› Create new list') %][% END %][% IF op == 'edit_form' %] [% t('› Edit list') %] [% shelf.shelfname | html %][% END %]</title>
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
[% Asset.css("css/datatables.css") %]
11
[% Asset.css("css/datatables.css") %]
11
<style type="text/css">textarea { width: 100%; }</style>
12
<style type="text/css">textarea { width: 100%; }</style>
12
13
13
[% BLOCK list_permissions %]
14
[% BLOCK list_permissions %]
14
    <li>
15
    <li>
15
        <label for="allow_changes_from">Allow changes to contents from: </label>
16
        <label for="allow_changes_from">[% t('Allow changes to contents from:') %] </label>
16
        <select name="allow_changes_from" id="allow_changes_from" onchange="AdjustRemark()">
17
        <select name="allow_changes_from" id="allow_changes_from" onchange="AdjustRemark()">
17
18
18
            [% IF shelf.allow_change_from_owner %]<option value="0">Nobody</option>[% ELSE %]<option value="0" selected="selected">Nobody</option>[% END %]
19
            [% IF shelf.allow_change_from_owner %]<option value="0">[% t('Nobody') %]</option>[% ELSE %]<option value="0" selected="selected">[% t('Nobody') %]</option>[% END %]
19
20
20
            [% IF shelf.allow_change_from_owner && (( !shelf.is_public && !shelf.is_shared ) || !shelf.allow_change_from_others ) %]
21
            [% IF shelf.allow_change_from_owner && (( !shelf.is_public && !shelf.is_shared ) || !shelf.allow_change_from_others ) %]
21
                <option value="1" selected="selected">Owner only</option>
22
                <option value="1" selected="selected">[% t('Owner only') %]</option>
22
            [% ELSE %]
23
            [% ELSE %]
23
                <option value="1">Owner only</option>
24
                <option value="1">[% t('Owner only') %]</option>
24
            [% END %]
25
            [% END %]
25
26
26
            [% IF shelf.allow_change_from_others %]<option value="2" selected="selected">Anyone seeing this list</option>[% ELSE %]<option value="2">Anyone seeing this list</option>[% END %]
27
            [% IF shelf.allow_change_from_others %]<option value="2" selected="selected">[% t('Anyone seeing this list') %]</option>[% ELSE %]<option value="2">[% t('Anyone seeing this list') %]</option>[% END %]
27
28
28
        </select>
29
        </select>
29
        &emsp; <span id="anyone_remark" style="display:none;color:red;">The Anyone permission has no actual effect while this list is strictly private.</span>
30
          <span id="anyone_remark" style="display:none;color:red;">[% t('The Anyone permission has no actual effect while this list is strictly private.') %]</span>
30
    </li>
31
    </li>
31
[% END %]
32
[% END %]
32
</head>
33
</head>
Lines 36-62 Link Here
36
[% INCLUDE 'cat-search.inc' %]
37
[% INCLUDE 'cat-search.inc' %]
37
38
38
<div id="breadcrumbs">
39
<div id="breadcrumbs">
39
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
40
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
40
    [% IF op != 'list' %]
41
    [% IF op != 'list' %]
41
        <a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a>
42
        <a href="/cgi-bin/koha/virtualshelves/shelves.pl">[% t('Lists') %]</a>
42
    [% ELSE %]
43
    [% ELSE %]
43
        Lists
44
        [% t('Lists') %]
44
    [% END %]
45
    [% END %]
45
    [% IF shelf AND shelf.is_private %] &rsaquo;
46
    [% IF shelf AND shelf.is_private %] ›
46
        [% IF op == 'view' OR op == 'edit_form' %]
47
        [% IF op == 'view' OR op == 'edit_form' %]
47
            <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&amp;category=[% PRIVATE %]">Your lists</a>
48
            <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PRIVATE %]">[% t('Your lists') %]</a>
48
        [% ELSE %]
49
        [% ELSE %]
49
            Your lists
50
            [% t('Your lists') %]
50
        [% END %]
51
        [% END %]
51
    [% ELSIF shelf AND shelf.is_public %] &rsaquo;
52
    [% ELSIF shelf AND shelf.is_public %] ›
52
        [% IF op == 'view' %]
53
        [% IF op == 'view' %]
53
            <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&amp;category=[% PUBLIC %]">Public lists</a>
54
            <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PUBLIC %]">[% t('Public lists') %]</a>
54
        [% ELSE %]
55
        [% ELSE %]
55
            Public lists
56
            [% t('Public lists') %]
56
        [% END %]
57
        [% END %]
57
    [% END %]
58
    [% END %]
58
59
59
[% IF op == 'view' %]&rsaquo; Contents of <i>[% shelf.shelfname | html %]</i>[% END %][% IF op == 'add_form' %] &rsaquo; Create new list[% END %][% IF op == 'edit_form' %] &rsaquo; Edit list <i>[% shelf.shelfname | html %]</i>[% END %]</div>
60
[% IF op == 'view' %][% t('› Contents of') %] <i>[% shelf.shelfname | html %]</i>[% END %][% IF op == 'add_form' %] [% t('› Create new list') %][% END %][% IF op == 'edit_form' %] [% t('› Edit list') %] <i>[% shelf.shelfname | html %]</i>[% END %]</div>
60
61
61
<div id="doc3" class="yui-t2">
62
<div id="doc3" class="yui-t2">
62
<div id="bd">
63
<div id="bd">
Lines 70-122 Link Here
70
    <div class="dialog [% m.type %]">
71
    <div class="dialog [% m.type %]">
71
        [% SWITCH m.code %]
72
        [% SWITCH m.code %]
72
        [% CASE 'error_on_update' %]
73
        [% CASE 'error_on_update' %]
73
            <span>An error occurred when updating this list.</span>
74
            <span>[% t('An error occurred when updating this list.') %]</span>
74
        [% CASE 'error_on_insert' %]
75
        [% CASE 'error_on_insert' %]
75
            <span>An error occurred when creating this list.</span>
76
            <span>[% t('An error occurred when creating this list.') %]</span>
76
        [% CASE 'error_on_delete' %]
77
        [% CASE 'error_on_delete' %]
77
            <span>An error occurred when deleting this list.</span>
78
            <span>[% t('An error occurred when deleting this list.') %]</span>
78
        [% CASE 'error_on_add_biblio' %]
79
        [% CASE 'error_on_add_biblio' %]
79
            [% IF m.item_barcode %]
80
            [% IF m.item_barcode %]
80
               <span>The item ([% m.item_barcode %]) has not been added to the list. Please verify it is not already in the list.</span>
81
               <span>[% t('The item (') %][% m.item_barcode %][% t(') has not been added to the list. Please verify it is not already in the list.') %]</span>
81
            [% ELSE %]
82
            [% ELSE %]
82
                <span>The record ([% m.bibnum %]) has not been added to the list. Please verify it is not already in the list.</span>
83
                <span>[% t('The record (') %][% m.bibnum %][% t(') has not been added to the list. Please verify it is not already in the list.') %]</span>
83
            [% END %]
84
            [% END %]
84
        [% CASE 'success_on_update' %]
85
        [% CASE 'success_on_update' %]
85
            <span>List updated.</span>
86
            <span>[% t('List updated.') %]</span>
86
        [% CASE 'success_on_insert' %]
87
        [% CASE 'success_on_insert' %]
87
            <span>List created.</span>
88
            <span>[% t('List created.') %]</span>
88
        [% CASE 'success_on_delete' %]
89
        [% CASE 'success_on_delete' %]
89
            <span>List deleted.</span>
90
            <span>[% t('List deleted.') %]</span>
90
        [% CASE 'success_on_add_biblio' %]
91
        [% CASE 'success_on_add_biblio' %]
91
            [% IF m.item_barcode %]
92
            [% IF m.item_barcode %]
92
                <span>The item ([% m.item_barcode %]) has been added to the list.</span>
93
                <span>[% t('The item (') %][% m.item_barcode %][% t(') has been added to the list.') %]</span>
93
            [% ELSE %]
94
            [% ELSE %]
94
                <span>The record ([% m.bibnum %]) has been added to the list.</span>
95
                <span>[% t('The record (') %][% m.bibnum %][% t(') has been added to the list.') %]</span>
95
            [% END %]
96
            [% END %]
96
        [% CASE 'success_on_remove_biblios' %]
97
        [% CASE 'success_on_remove_biblios' %]
97
            <span>The item has been removed from the list.</span>
98
            <span>[% t('The item has been removed from the list.') %]</span>
98
        [% CASE 'does_not_exist' %]
99
        [% CASE 'does_not_exist' %]
99
            <span>This list does not exist.</span>
100
            <span>[% t('This list does not exist.') %]</span>
100
        [% CASE 'item_does_not_exist' %]
101
        [% CASE 'item_does_not_exist' %]
101
            [% IF m.item_barcode %]
102
            [% IF m.item_barcode %]
102
                <span>The item ([% m.item_barcode %]) does not exist.</span>
103
                <span>[% t('The item (') %][% m.item_barcode %][% t(') does not exist.') %]</span>
103
            [% ELSE %]
104
            [% ELSE %]
104
                <span>The record ([% m.bibnum %]) does not exist.</span>
105
                <span>[% t('The record (') %][% m.bibnum %][% t(') does not exist.') %]</span>
105
            [% END %]
106
            [% END %]
106
        [% CASE 'unauthorized_on_view' %]
107
        [% CASE 'unauthorized_on_view' %]
107
            <span>You do not have permission to view this list.</span>
108
            <span>[% t('You do not have permission to view this list.') %]</span>
108
        [% CASE 'unauthorized_on_update' %]
109
        [% CASE 'unauthorized_on_update' %]
109
            <span>You do not have permission to update this list.</span>
110
            <span>[% t('You do not have permission to update this list.') %]</span>
110
        [% CASE 'unauthorized_on_delete' %]
111
        [% CASE 'unauthorized_on_delete' %]
111
           <span>You do not have permission to delete this list.</span>
112
           <span>[% t('You do not have permission to delete this list.') %]</span>
112
        [% CASE 'unauthorized_on_add_biblio' %]
113
        [% CASE 'unauthorized_on_add_biblio' %]
113
            <span>You do not have permission to add a record to this list.</span>
114
            <span>[% t('You do not have permission to add a record to this list.') %]</span>
114
        [% CASE 'no_biblio_removed' %]
115
        [% CASE 'no_biblio_removed' %]
115
            <span>No record was removed.</span>
116
            <span>[% t('No record was removed.') %]</span>
116
        [% CASE 'Koha::Exceptions::Virtualshelves::DuplicateObject' %]
117
        [% CASE 'Koha::Exceptions::Virtualshelves::DuplicateObject' %]
117
            <span>An error occurred when creating this list. The name [% shelfname %] already exists.</span>
118
            <span>[% t('An error occurred when creating this list. The name') %] [% shelfname %] [% t('already exists.') %]</span>
118
        [% CASE 'Koha::Exceptions::Virtualshelves::UseDbAdminAccount' %]
119
        [% CASE 'Koha::Exceptions::Virtualshelves::UseDbAdminAccount' %]
119
            <span>List could not be created. (Do not use the database administrator account.)</span>
120
            <span>[% t('List could not be created. (Do not use the database administrator account.)') %]</span>
120
        [% CASE 'DBIx::Class::Exception' %]
121
        [% CASE 'DBIx::Class::Exception' %]
121
            [% m.msg %]
122
            [% m.msg %]
122
        [% CASE %]
123
        [% CASE %]
Lines 129-135 Link Here
129
   <div class="yui-g">
130
   <div class="yui-g">
130
    [% IF itemsloop %]
131
    [% IF itemsloop %]
131
132
132
    <h3>Contents of <i>[% shelf.shelfname | html %]</i></h3>
133
    <h3>[% t('Contents of') %] <i>[% shelf.shelfname | html %]</i></h3>
133
    <div class="pages">[% pagination_bar %]</div>
134
    <div class="pages">[% pagination_bar %]</div>
134
    <form action="/cgi-bin/koha/virtualshelves/shelves.pl" id="listform" method="post" class="checkboxed">
135
    <form action="/cgi-bin/koha/virtualshelves/shelves.pl" id="listform" method="post" class="checkboxed">
135
        <input type="hidden" name="op" value="remove_biblios" />
136
        <input type="hidden" name="op" value="remove_biblios" />
Lines 149-192 Link Here
149
        <span class="clearall"></span>
150
        <span class="clearall"></span>
150
151
151
        <span class="addto">| </span>
152
        <span class="addto">| </span>
152
        &nbsp;
153
         
153
        [% IF CAN_user_reserveforothers && Koha.Preference('DisplayMultiPlaceHold') %]
154
        [% IF CAN_user_reserveforothers && Koha.Preference('DisplayMultiPlaceHold') %]
154
            <div class="btn-group"><button class="btn btn-default btn-xs placehold"><i class="fa fa-sticky-note-o"></i> Place hold</button></div>
155
            <div class="btn-group"><button class="btn btn-default btn-xs placehold"><i class="fa fa-sticky-note-o"></i> [% t('Place hold') %]</button></div>
155
        [% END %]
156
        [% END %]
156
        [% IF can_remove_biblios %]
157
        [% IF can_remove_biblios %]
157
            <div class="btn-group"><button type="submit" class="btn btn-default btn-xs list-remove"><i class="fa fa-trash"></i> Remove selected</button></div>
158
            <div class="btn-group"><button type="submit" class="btn btn-default btn-xs list-remove"><i class="fa fa-trash"></i> [% t('Remove selected') %]</button></div>
158
        [% END %]
159
        [% END %]
159
        [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<div class="btn-group"><button type="submit" class="btn btn-default btn-xs merge-items"><i class="fa fa-compress"></i> Merge selected</button></div>[% END %]
160
        [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<div class="btn-group"><button type="submit" class="btn btn-default btn-xs merge-items"><i class="fa fa-compress"></i> [% t('Merge selected') %]</button></div>[% END %]
160
        </div>
161
        </div>
161
    [% END %]
162
    [% END %]
162
</div>
163
</div>
163
164
164
    <table id="searchresults">
165
    <table id="searchresults">
165
            <tr>
166
            <tr>
166
                [% IF ( itemsloop ) %]<th class="checkall">&nbsp;</th>[% END %]
167
                [% IF ( itemsloop ) %]<th class="checkall"> </th>[% END %]
167
168
168
                [% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %]
169
                [% UNLESS ( item_level_itypes ) %]<th>[% t('Item type') %]</th>[% END %]
169
                <th>
170
                <th>
170
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber %]&amp;sortfield=title&amp;direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction %][% END %]">Title</a>
171
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber %]&sortfield=title&direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction %][% END %]">[% t('Title') %]</a>
171
                    [% IF sortfield == 'title' %]
172
                    [% IF sortfield == 'title' %]
172
                        <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
173
                        <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] [% t('sort') %]" />
173
                    [% ELSE %]
174
                    [% ELSE %]
174
                        <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
175
                        <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
175
                    [% END %]
176
                    [% END %]
176
                </th>
177
                </th>
177
                <th>
178
                <th>
178
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber %]&amp;sortfield=author&amp;direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction %][% END %]">Author</a>
179
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber %]&sortfield=author&direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction %][% END %]">[% t('Author') %]</a>
179
                   [% IF sortfield == 'author' %]
180
                   [% IF sortfield == 'author' %]
180
                        <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
181
                        <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] [% t('sort') %]" />
181
                   [% ELSE %]
182
                   [% ELSE %]
182
                       <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
183
                       <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
183
                   [% END %]
184
                   [% END %]
184
                 </th>
185
                 </th>
185
                <th>Date added</th>
186
                <th>[% t('Date added') %]</th>
186
                <th>
187
                <th>
187
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber %]&amp;sortfield=itemcallnumber&amp;direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction %][% END %]">Call number</a>
188
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber %]&sortfield=itemcallnumber&direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction %][% END %]">[% t('Call number') %]</a>
188
                   [% IF sortfield == 'itemcallnumber' %]
189
                   [% IF sortfield == 'itemcallnumber' %]
189
                        <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
190
                        <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] [% t('sort') %]" />
190
                   [% ELSE %]
191
                   [% ELSE %]
191
                       <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
192
                       <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
192
                   [% END %]
193
                   [% END %]
Lines 211-230 Link Here
211
                [% END %]
212
                [% END %]
212
                    <p class="hold">
213
                    <p class="hold">
213
                        [% IF ( itemsloo.notforloan ) %]
214
                        [% IF ( itemsloo.notforloan ) %]
214
                            <span class="noholdstext">No holds allowed</span>
215
                            <span class="noholdstext">[% t('No holds allowed') %]</span>
215
                        [% ELSE %]
216
                        [% ELSE %]
216
                            [% IF ( itemsloo.ITEM_RESULTS.size ) %]
217
                            [% IF ( itemsloo.ITEM_RESULTS.size ) %]
217
                                <a id="reserve_[% itemsloo.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber %]">Holds</a>
218
                                <a id="reserve_[% itemsloo.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber %]">[% t('Holds') %]</a>
218
                                [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber %]&amp;findborrower=[% holdfor_cardnumber %]">Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></span>[% END %]
219
                                [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber %]&findborrower=[% holdfor_cardnumber %]">[% t('Place hold for') %] [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></span>[% END %]
219
                            [% ELSE %]
220
                            [% ELSE %]
220
                                <span class="noholdstext">No holds allowed</span>
221
                                <span class="noholdstext">[% t('No holds allowed') %]</span>
221
                            [% END %]
222
                            [% END %]
222
                        [% END %]
223
                        [% END %]
223
                        [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
224
                        [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
224
                            | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber %]">Edit record</a>
225
                            | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber %]">[% t('Edit record') %]</a>
225
                        [% END %]
226
                        [% END %]
226
                        [% IF ( CAN_user_editcatalogue_edit_items ) %]
227
                        [% IF ( CAN_user_editcatalogue_edit_items ) %]
227
                            | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber %]">Edit items</a>
228
                            | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber %]">[% t('Edit items') %]</a>
228
                        [% END %]
229
                        [% END %]
229
                    </p>
230
                    </p>
230
            </td>
231
            </td>
Lines 235-241 Link Here
235
                [% FOREACH result IN itemsloo.ITEM_RESULTS %]
236
                [% FOREACH result IN itemsloo.ITEM_RESULTS %]
236
                    <li>[% result.holdingbranch %] [% IF ( result.location_intranet ) %] ([% result.location_intranet %]) [% END %]
237
                    <li>[% result.holdingbranch %] [% IF ( result.location_intranet ) %] ([% result.location_intranet %]) [% END %]
237
                        [% IF ( result.itemcallnumber ) %]
238
                        [% IF ( result.itemcallnumber ) %]
238
                            [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% result.itemcallnumber |uri %]%22">[% result.itemcallnumber %]</a>]
239
                            [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% result.itemcallnumber |uri %]%22">[% result.itemcallnumber %]</a>]
239
                        [% END %]
240
                        [% END %]
240
                    </li>
241
                    </li>
241
                [% END %]
242
                [% END %]
Lines 258-278 Link Here
258
        <fieldset class="rows">
259
        <fieldset class="rows">
259
260
260
        [% IF op == 'add_form' %]
261
        [% IF op == 'add_form' %]
261
            <legend>Create a new list</legend>
262
            <legend>[% t('Create a new list') %]</legend>
262
            <input type="hidden" name="op" value="add" />
263
            <input type="hidden" name="op" value="add" />
263
        [% ELSE %]
264
        [% ELSE %]
264
            <legend>Edit list <i>[% shelf.shelfname | html %]</i></legend>
265
            <legend>[% t('Edit list') %] <i>[% shelf.shelfname | html %]</i></legend>
265
            <input type="hidden" name="op" value="edit" />
266
            <input type="hidden" name="op" value="edit" />
266
        [% END %]
267
        [% END %]
267
        <input type="hidden" name="referer" value="[% referer | html %]" />
268
        <input type="hidden" name="referer" value="[% referer | html %]" />
268
        <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber %]" />
269
        <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber %]" />
269
        <ol>
270
        <ol>
270
            <li>
271
            <li>
271
                <label for="shelfname" class="required">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value="[% shelf.shelfname |html %]" required="required" class="required" />
272
                <label for="shelfname" class="required">[% t('Name:') %] </label><input type="text" id="shelfname" name="shelfname" size="25" value="[% shelf.shelfname |html %]" required="required" class="required" />
272
            <span class="required">Required</span>
273
            <span class="required">[% t('Required') %]</span>
273
            </li>
274
            </li>
274
            <li>
275
            <li>
275
                <span class="label">Owner: </span>
276
                <span class="label">[% t('Owner:') %] </span>
276
                [% IF op == 'add_form' %]
277
                [% IF op == 'add_form' %]
277
                    <input type="hidden" name="owner" id="owner" value="[% loggedinusernumber %]" />[% loggedinusername %]</li>
278
                    <input type="hidden" name="owner" id="owner" value="[% loggedinusernumber %]" />[% loggedinusername %]</li>
278
                [% ELSE %]
279
                [% ELSE %]
Lines 283-306 Link Here
283
                    [% END %]
284
                    [% END %]
284
                [% END %]
285
                [% END %]
285
            </li>
286
            </li>
286
            <li><label for="sortfield" >Sort this list by: </label>
287
            <li><label for="sortfield">[% t('Sort this list by:') %] </label>
287
            <select name="sortfield">
288
            <select name="sortfield">
288
            [% IF shelf.sortfield == "title" %]<option value="title" selected="selected">Title</option>[% ELSE %]<option value="title">Title</option>[% END %]
289
            [% IF shelf.sortfield == "title" %]<option value="title" selected="selected">[% t('Title') %]</option>[% ELSE %]<option value="title">[% t('Title') %]</option>[% END %]
289
            [% IF shelf.sortfield == "author" %]<option value="author" selected="selected">Author</option>[% ELSE %]<option value="author">Author</option>[% END %]
290
            [% IF shelf.sortfield == "author" %]<option value="author" selected="selected">[% t('Author') %]</option>[% ELSE %]<option value="author">[% t('Author') %]</option>[% END %]
290
            [% IF shelf.sortfield == "copyrightdate" %]<option value="copyrightdate" selected="selected">Copyrightdate</option>[% ELSE %]<option value="copyrightdate">Copyrightdate</option>[% END %]
291
            [% IF shelf.sortfield == "copyrightdate" %]<option value="copyrightdate" selected="selected">[% t('Copyrightdate') %]</option>[% ELSE %]<option value="copyrightdate">[% t('Copyrightdate') %]</option>[% END %]
291
            [% IF shelf.sortfield == "itemcallnumber" %]<option value="itemcallnumber" selected="selected">Call number</option>[% ELSE %]<option value="itemcallnumber">Call number</option>[% END %]
292
            [% IF shelf.sortfield == "itemcallnumber" %]<option value="itemcallnumber" selected="selected">[% t('Call number') %]</option>[% ELSE %]<option value="itemcallnumber">[% t('Call number') %]</option>[% END %]
292
            </select></li>
293
            </select></li>
293
            <li><label for="category">Category: </label>
294
            <li><label for="category">[% t('Category:') %] </label>
294
                <select id="category" name="category" onchange="AdjustRemark()">
295
                <select id="category" name="category" onchange="AdjustRemark()">
295
                [% IF shelf.is_private %]
296
                [% IF shelf.is_private %]
296
                    <option value="1" selected="selected">Private</option>
297
                    <option value="1" selected="selected">[% t('Private') %]</option>
297
                [% ELSE %]
298
                [% ELSE %]
298
                    <option value="1">Private</option>
299
                    <option value="1">[% t('Private') %]</option>
299
                [% END %]
300
                [% END %]
300
                [% IF shelf.is_public %]
301
                [% IF shelf.is_public %]
301
                    <option value="2" selected="selected">Public</option>
302
                    <option value="2" selected="selected">[% t('Public') %]</option>
302
                [% ELSE %]
303
                [% ELSE %]
303
                    <option value="2">Public</option>
304
                    <option value="2">[% t('Public') %]</option>
304
                [% END %]
305
                [% END %]
305
                           </select></li>
306
                           </select></li>
306
307
Lines 312-323 Link Here
312
    <fieldset class="action">
313
    <fieldset class="action">
313
        <input type="submit" value="Save" class="submit" />
314
        <input type="submit" value="Save" class="submit" />
314
        [% IF referer == 'view' %]
315
        [% IF referer == 'view' %]
315
           <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber %]" class="cancel">Cancel</a>
316
           <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber %]" class="cancel">[% t('Cancel') %]</a>
316
       [% ELSE %]
317
       [% ELSE %]
317
            [% IF category == PUBLIC %]
318
            [% IF category == PUBLIC %]
318
                <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&amp;category=[% PUBLIC %]" class="cancel">Cancel</a>
319
                <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PUBLIC %]" class="cancel">[% t('Cancel') %]</a>
319
            [% ELSE %]
320
            [% ELSE %]
320
                <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&amp;category=[% PRIVATE %]" class="cancel">Cancel</a>
321
                <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PRIVATE %]" class="cancel">[% t('Cancel') %]</a>
321
            [% END %]
322
            [% END %]
322
        [% END %]
323
        [% END %]
323
    </fieldset>
324
    </fieldset>
Lines 327-366 Link Here
327
[% END %]
328
[% END %]
328
329
329
[% IF op == 'list' %]
330
[% IF op == 'list' %]
330
    <h2>Lists</h2>
331
    <h2>[% t('Lists') %]</h2>
331
    <div id="tabs" class="toptabs">
332
    <div id="tabs" class="toptabs">
332
        <ul>
333
        <ul>
333
            <li id="privateshelves_tab" class="active"><a href="#tab_content">Your lists</a></li>
334
            <li id="privateshelves_tab" class="active"><a href="#tab_content">[% t('Your lists') %]</a></li>
334
            <li id="publicshelves_tab" class="active"><a href="#tab_content">Public lists</a></li>
335
            <li id="publicshelves_tab" class="active"><a href="#tab_content">[% t('Public lists') %]</a></li>
335
        </ul>
336
        </ul>
336
337
337
        <div id="tab_content">
338
        <div id="tab_content">
338
            <table id="listresultst">
339
            <table id="listresultst">
339
                <thead>
340
                <thead>
340
                    <tr>
341
                    <tr>
341
                        <th class="NoVisible">Type</th>
342
                        <th class="NoVisible">[% t('Type') %]</th>
342
                        <th>List name</th>
343
                        <th>[% t('List name') %]</th>
343
                        <th>Contents</th>
344
                        <th>[% t('Contents') %]</th>
344
                        <th>Type</th>
345
                        <th>[% t('Type') %]</th>
345
                        <th>Owner</th>
346
                        <th>[% t('Owner') %]</th>
346
                        <th>Sort by</th>
347
                        <th>[% t('Sort by') %]</th>
347
                        <th>Creation date</th>
348
                        <th>[% t('Creation date') %]</th>
348
                        <th>Modification date</th>
349
                        <th>[% t('Modification date') %]</th>
349
                        <th>Actions</th>
350
                        <th>[% t('Actions') %]</th>
350
                    </tr>
351
                    </tr>
351
                    <tr class="filters_row">
352
                    <tr class="filters_row">
352
                        <th></th>
353
                        <th></th>
353
                        <th><input class="filter text_filter" id="searchshelfname_filter" placeholder="List name"></th>
354
                        <th><input class="filter text_filter" id="searchshelfname_filter" placeholder="[% t('List name') %]"></th>
354
                        <th></th>
355
                        <th></th>
355
                        <th></th>
356
                        <th></th>
356
                        <th><input class="filter text_filter" id="searchowner_filter" placeholder="Owner"></th>
357
                        <th><input class="filter text_filter" id="searchowner_filter" placeholder="[% t('Owner') %]"></th>
357
                        <th>
358
                        <th>
358
                            <select class="filter text_filter" id="searchsortby_filter">
359
                            <select class="filter text_filter" id="searchsortby_filter">
359
                                <option value=""></option>
360
                                <option value=""></option>
360
                                <option value="title">Title</option>
361
                                <option value="title">[% t('Title') %]</option>
361
                                <option value="author">Author</option>
362
                                <option value="author">[% t('Author') %]</option>
362
                                <option value="copyrightdate">Copyrightdate</option>
363
                                <option value="copyrightdate">[% t('Copyrightdate') %]</option>
363
                                <option value="itemcallnumber">Call number</option>
364
                                <option value="itemcallnumber">[% t('Call number') %]</option>
364
                            </select>
365
                            </select>
365
                        </th>
366
                        </th>
366
                        <th></th>
367
                        <th></th>
Lines 377-383 Link Here
377
<form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
378
<form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
378
    <!-- Value will be set here by placeHold() -->
379
    <!-- Value will be set here by placeHold() -->
379
    <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
380
    <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
380
    <input type="hidden" name="multi_hold" value="1"/>
381
    <input type="hidden" name="multi_hold" value="1" />
381
</form>
382
</form>
382
383
383
</div>
384
</div>
Lines 387-403 Link Here
387
<div class="yui-b">
388
<div class="yui-b">
388
  <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
389
  <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
389
    <fieldset class="brief noprint">
390
    <fieldset class="brief noprint">
390
      <h4>Add items</h4>
391
      <h4>[% t('Add items') %]</h4>
391
      <ol>
392
      <ol>
392
        <li>
393
        <li>
393
          <label for="barcodes">Barcodes:</label>
394
          <label for="barcodes">[% t('Barcodes:') %]</label>
394
          <textarea name="barcodes" id="barcodes" class="focus" autocomplete="off" rows="5"></textarea>
395
          <textarea name="barcodes" id="barcodes" class="focus" autocomplete="off" rows="5"></textarea>
395
          <input type="hidden" name="op" value="add_biblio" />
396
          <input type="hidden" name="op" value="add_biblio" />
396
          <input type="hidden" name="referer" value="view" />
397
          <input type="hidden" name="referer" value="view" />
397
          <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber %]" />
398
          <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber %]" />
398
        </li>
399
        </li>
399
        <li>
400
        <li>
400
          <label for="biblionumbers">Biblio numbers:</label>
401
          <label for="biblionumbers">[% t('Biblio numbers:') %]</label>
401
          <textarea name="biblionumbers" id="biblionumbers" class="focus" autocomplete="off" rows="5"></textarea>
402
          <textarea name="biblionumbers" id="biblionumbers" class="focus" autocomplete="off" rows="5"></textarea>
402
          <input type="hidden" name="op" value="add_biblio" />
403
          <input type="hidden" name="op" value="add_biblio" />
403
          <input type="hidden" name="referer" value="view" />
404
          <input type="hidden" name="referer" value="view" />
404
- 

Return to bug 20988