You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- in post-install.xql, apply chmod & setuid so that the xquery files can be run as dba without needing to establish a session in eXide or monex
- add timing and logging to the calibre step
- switch sample to a volume with document number-based cross references, as page-number based cross references take much longer to generate
- increment version to 0.5
let $new-volumes := request:get-parameter('volumes', ())
147
178
let $format := request:get-parameter('format', 'all')
148
179
let $output-directory := local:output-directory()
149
-
let $login := xmldb:login('/db', 'admin', '') (: TODO: hook in proper login form :)
150
180
let $body :=
151
181
<div>
152
182
<h2>{$titles[2]}</h2>
153
183
{
154
-
if (not(sm:is-dba(sm:id()/sm:id/sm:real/sm:username/string()))) then
155
-
<p class="bg-danger">This resource is limited to admin users. Please log infirst via <a href="/exist/apps/eXide">eXide</a>.</p>
156
-
elseif ($new-volumes) then
184
+
if (exists($new-volumes)) then
157
185
(
158
186
local:form($new-volumes, $format)
159
187
,
@@ -191,9 +219,9 @@ let $body :=
191
219
else
192
220
(
193
221
local:form((), $format),
194
-
<p>Please enter volume IDs, one per line. (Click <a href="?volumes=frus1949v01&format=epub">here</a> totry generating frus1949v01as an epub.)</p>,
195
-
<p>Before generating Mobi-bound EPUBs, make sure you have installed <a href="http://calibre-ebook.com/download">Calibre</a>.</p>,
196
-
<p>Generating an ebook can take as much as5-10 minutes each. Open the Monex <a href="/exist/apps/monex/console.html">Console</a> to follow status updates. If an ebook job is taking too long to generate, you can kill the entire query via the Monex <a href="/apps/monex/index.html">Monitoring</a> tab, under "Running Queries."</p>,
222
+
<p>Please enter volume IDs, one per line. (Click <a href="?volumes=frus1969-76v18&format=epub">here</a> totry generating frus1969-76v18as an epub.)</p>,
223
+
<p>Before generating Mobi-bound EPUBs, make sure you have installed <a href="https://calibre-ebook.com/download">Calibre</a>.</p>,
224
+
<p>Generating an ebook can take as much as5-10 minutes each (or even longer for volumes with page-number-based back-of-book indexes). Open the Monex <a href="/exist/apps/monex/console.html">Console</a> to follow status updates. If an ebook job is taking too long to generate, you can kill the entire query via the Monex <a href="/apps/monex/index.html">Monitoring</a> tab, under "Running Queries."</p>,
197
225
<p>Ebooks are saved on your hard disk at: <code>{$output-directory}</code>.</p>
0 commit comments