Re: [IUG] Paging List Print Template field format


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Excellent, thanks! 2 out of 3 ain't bad. ;-)

I'll try it on my template.

Shona
skoehn at tulsalibrary dot org
918.549.7305


-----Original Message-----
From: innopac-bounces at innovativeusers dot org [mailto:innopac-bounces at innovativeusers dot org] On Behalf Of McDonald, Stephen
Sent: Thursday, July 14, 2011 2:23 PM
To: 'IUG INNOPAC List'
Subject: Re: [IUG] Paging List Print Template field format

Shona,

1) This is probably possible, but will be tricky. The only Patron Name field available in the Print Template is $F{patron_name} which always is "lastname, firstname". You would have to write some script for the template to extract everything up to the first letter of the firstname. I can't really test it right now, but I think something like this might work:
$F{Patron_Name}.substring(0,$F{Patron_Name}.indexof(",") + 3)

2) Yes. Again, this will require writing some code for the template. I think this might do it:
$F{Patron_Barcode}.substring($F{Patron_Barcode}.length() - 2,$F{Patron_Barcode}.length())

3) No, there doesn't seem to be any field for the Print Template that will give you the code instead of the name of the pickup location.

Steve McDonald
Steve dot mcDonald at tufts dot edu

> -----Original Message-----
> From: innopac-bounces at innovativeusers dot org [mailto:innopac-
> bounces at innovativeusers dot org] On Behalf Of Koehn, Shona
> Sent: Thursday, July 14, 2011 12:14 PM
> To: IUG INNOPAC List (innopac at innovativeusers dot org)
> Subject: [IUG] Paging List Print Template field format
>
> I am working on a print template for item paging lists and wondering
> if anyone could help me with a couple of questions. Is it possible to:
>
>
> 1. Format the patron name field to print the last name, first
> letter of the first name?
>
> 2. Print just the last 2 digits of the patron barcode field?
>
> 3. Print the hold pickup location CODE instead of the display
> name?
>
> And then, of course...if yes, how?
>
> Thanks!
>
> Shona Koehn
> Web & ILS Administrator
> Tulsa City-County Library
> 918.549.7305
> skoehn at tulsalibrary dot org
>
>
> --
> This message has been scanned for viruses and dangerous content by
> MailScanner, and is believed to be clean.
>
>
>
> --- StripMime Report -- processed MIME parts --- multipart/alternative
> text/plain (text body -- kept)
> text/html
> ---
> --
> This message was distributed through the Innovative Users Group
> INNOPAC list Public replies: INNOPAC at innovativeusers dot org You are
> currently subscribed to innopac as: steve dot mcdonald at tufts dot edu dot
> Update your subscription options: http://innovativeusers.org/iug-
> discussion-list

--
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.


--
This message was distributed through the Innovative Users Group INNOPAC list
Public replies: INNOPAC at innovativeusers dot org
You are currently subscribed to innopac as: skoehn at tulsalibrary dot org dot
Update your subscription options: http://innovativeusers.org/iug-discussion-list

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.