If your bothering to encode the Handle into a QR code, and you are
registered with handle.net, I would use that handle.net version of your
handle instead of your local repository's domain. (i.e. persistance of URL).

As Steve said you could be having URL encoding issues, try doing a log.info()
to see if you are generating the right URL.


We've had two projects locally with making cover pages for our PDF's.

One was to build a curation task, that an administrator can run over a
collection, and will move the original PDF to a bundle called PRESERVATION,
and put the cover-page version into a bundle called DISPLAY. We also then
changed the UI to link to the DISPLAY bundle version of the PDF with the
cover-page attached to it.

The other implementation of this same thing is to go back to the OAIS
reference model (SIP, AIP, DIP), keep the ORIGINAL bundle PDF alone (our
AIP), but to intercept requests for it and make a cover-page version of
that PDF on-the-fly in response to the request, and serve that (DIP).

As much as we've thought that the on-the-fly generation of a citation PDF
would slow us down, at least on development (quad-core i7 with
solid-state), it only adds a marginal delay (100-200ms).



We too have put the QR code on the page. I'm not sure if that will stay on
the cover-page when we deploy this to production, but we've been looking at
it.

We are using the itextpdf library, instead of the Google Charts API.

BarcodeQRCode qrCode = new BarcodeQRCode(handleURI, 100, 100, null);


Our code for the curation / citation-PDF is at:
https://github.com/osulibraries/DSpaceOSUKB/tree/citation-pdf
There's no public write-up or documentation yet, as this is still in
development.

Peter Dietz



On Sun, Jul 22, 2012 at 11:13 PM, Steve Swinsburg <
[email protected]> wrote:

>  Hi,
>
>  You need to encode the URL to the item before submitting it to the
> google API. The & in your URL is truncating the request. If you URL encode
> it first then you won't have that problem.
>
>  Cheers,
> Steve
>
> Sent from my iPad
>
> On 23/07/2012, at 12:55, "Nemiz, Elvi S." <[email protected]> wrote:
>
>   Dear Keiji,
>
>  I have actually added the QR-code in the cover page by using the
> parameter coverpage.logo2 in dspace.cfg. I am using Google Chart API (
> https://developers.google.com/chart/infographics/docs/qr_codes) to
> generate the QR-code but I am only limited to set the QR code for the base
> URL of our repository. Is it possible to add QR-code on-the-fly on the
> cover page grabbing the URI of the item? Right now I just set
> coverpage.logo2 =
> http://chart.apis.google.com/chart?cht=qr&chs=150x150&chl=http://repository.seafdec.org.ph&chld=H|0and
>  it did generate the QR-code in the cover page but the QR-code is for
> our base URL http://repository.seafdec.org.ph only. Our supervisor wanted
> to generate the QR-code of the item in the cover page of every pdf file
> downloaded e.g. for the item
> http://repository.seafdec.org.ph/handle/10862/863, the QR-code should be
> generated on the fly with a URL GET request
> http://chart.apis.google.com/chart?cht=qr&chs=150x150&chl=http://repository.seafdec.org.ph/handle/10862/863&chld=H|0.
> Hope I am clear with what I want to achieve and hoping that it is not that
> difficult to implement. I am worried that I will messed up the code in
> coverpage.java as I am not really a java programmer.
>
>  Thank you so much for your help.
>
>  Regards,
> Elvi
>
> On Thu, Nov 24, 2011 at 4:04 PM, SUZUKI Keiji <[email protected]> wrote:
>
>> Hi Elvi,
>>
>> > Hello Keiji, thank you so much for the patch. Sorry for posting another
>> > question;-) I just noticed that the cover page font size were all 12
>> > (header, footer, date) if I set the coverpage.pdfa = true. I've seen
>> that
>> > you've set the font size for header to 15 as seen in this code:
>> >     protected static final Font FONT_HEADER = (pdfa ? FONT_EMBED :
>> > setFont(FONT_SANS, Font.FontFamily.HELVETICA, 15, Font.NORMAL));
>>
>>  Attached the new CoverPage.java that is customized to your environment.
>> It removed CJK fonts, changed sans and sans serif fonts to embed fonts
>> and enabled these embed fonts to use header-font, tag-font and so on.
>>
>> You have to set sans and sans serif fonts as embed fonts in dspace.cfg
>> as follows.
>>
>> coverpage.font.sans  = fonts/arial.ttf,US-ASCII
>> coverpage.font.serif = fonts/another.ttf,US-ASCII
>>
>> The "coverpage.font.embed" and "coverpage.font.cjk.*" properties were
>> removed.
>>
>> > Another thing is how can you set the logo above the header text?
>>
>>  I had tried to realize this, but I couldn't. If you would like to
>> setthe logo above
>> the header text, I think you can use the following steps instead.
>>
>> 1. Set "coverpage.logo" property and unset "coverpage.header" in
>> dspace.cfg
>> 2. Hard coding the header text in the program. Consult the lines 477-483
>> in
>>     the new CoverPage.java
>> 3. Rebuild DSpace.
>>
>> You can change the contents of the page freely according to your
>> environment.
>> Please consult the book "iText in action" for details.
>>
>> Thank you,
>> Keiji Suzuki
>> Ebetsu, Japan
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>  _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to