Re: [OPEN-ILS-GENERAL] misc_util.tt2 and our 508 tag...

2014-07-25 Thread Jason Stephenson
On 07/24/2014 05:31 PM, Lazar, Alexey Vladimirovich wrote:

 Yes, but probably safest not to experiment on a live system. Also, if
 you are not using this approach already, consider using a separate
 folder for your locally customized template files. Otherwise they
 would get overwritten by the next upgrade. Having a separate
 directory for customized files would also let you more easily keep
 track of differences and cross-merge with template files from newer
 versions.

I highly recommend that you learn to use git if you are going to
customize your catalog or other bits of Evergreen. You can keep your
customizations in their own branches in your local git repository and
can check their compatibility with future releases of Evergreen by
merging them from time to time.

git makes it a lot easier to manage changes to files than just
eyeballing them or using other command line tools like diff, etc. In
fact, git is designed to do nothing but manage differences in files
across development and other branches.

You can also track Evergreen development via git, as well as checkout
just the branches for the releases that interest you. That is, you can
install official Evergreen releases from git checkouts. Using git does
not mean you have to install the master branch.


-- 
Jason Stephenson
Assistant Director for Technology Services
Merrimack Valley Library Consortium
1600 Osgood ST, Suite 2094
North Andover, MA 01845
Phone: 978-557-5891
Email: jstephen...@mvlc.org



Re: [OPEN-ILS-GENERAL] misc_util.tt2 and our 508 tag...

2014-07-24 Thread Tony Bandy
Hi Kathy,

OK...that helps!  I was flying around the file system opening up various *.tt2 
files looking for info! :)

At the risk of driving you (and everyone else crazy) if I open up the 
authors.tt2 file...can I just remove the offending lines?

Just curious

Thanks again for any thoughts on this...

--Tony

Tony Bandy
to...@ohionet.orgmailto:to...@ohionet.org
OHIONET
1500 West Lane Ave.
Columbus, OH  43221-3975
614-486-2966 x19

From: open-ils-general-boun...@list.georgialibraries.org 
[mailto:open-ils-general-boun...@list.georgialibraries.org] On Behalf Of Kathy 
Lussier
Sent: Thursday, July 24, 2014 3:52 PM
To: open-ils-general@list.georgialibraries.org
Subject: Re: [OPEN-ILS-GENERAL] misc_util.tt2 and our 508 tag...

Hi Tony,

Currently, that 508 information is coming from record/authors.tt2.

I hope this helps!
Kathy


Kathy Lussier

Project Coordinator

Massachusetts Library Network Cooperative

(508) 343-0128

kluss...@masslnc.orgmailto:kluss...@masslnc.org

Twitter: http://www.twitter.com/kmlussier
On 7/24/2014 3:14 PM, Tony Bandy wrote:
Hello everyone,

(If this should be on the EG developers list, please advise.  I was unsure 
which list to send to)

-

Our consortium is wanting to move the MARC 508 tag down on our tpac display.  
As of right now, it's located directly under the title on our catalog coming in 
with a CAST designation  (See TCN # 576841 at cool-cat.org as an example).

If I look in the misc_util.tt2 file I see no specific code build for the 508 
tag as related in the documentation here:  
http://docs.evergreen-ils.org/2.4/_designing_your_catalog.html#_adding_and_removing_marc_fields_from_the_record_details_display_page)

Should I build out a new definition that explicitly names the 508 tag in the 
misc_util.tt2 file...would that approach work?  If so, how do I remove the 
stock mapping of the 508 field?

Thanks in advance for your help!

--Tony


Tony Bandy
to...@ohionet.orgmailto:to...@ohionet.org
OHIONET
1500 West Lane Ave.
Columbus, OH  43221-3975
614-486-2966 x19




Re: [OPEN-ILS-GENERAL] misc_util.tt2 and our 508 tag...

2014-07-24 Thread Lazar, Alexey Vladimirovich

On 2014-07-24, at 14:57 , Tony Bandy to...@ohionet.org wrote:

 OK…that helps!  I was flying around the file system opening up various *.tt2 
 files looking for info!

Hello, Tony.

When fishing for strings in pile of files, the find command can be handy. 
Something like:

/openils/var$ find ./ -type f -print0 | xargs -0 grep ‘508'

The first couple of results in my case were: 
./templates/opac/parts/record/authors.tt2:xpath = '//*[@tag=508]'
./templates/opac/parts/record/contents.tt2:xpath = '//*[@tag=508”]’

Although, be ready to cancel the command with Ctrl+C, in case it gets to a 
reports output or logs folder.

 At the risk of driving you (and everyone else crazy….) if I open up the 
 authors.tt2 file…can I just remove the offending lines?

Yes, but probably safest not to experiment on a live system. Also, if you are 
not using this approach already, consider using a separate folder for your 
locally customized template files. Otherwise they would get overwritten by the 
next upgrade. Having a separate directory for customized files would also let 
you more easily keep track of differences and cross-merge with template files 
from newer versions.

Aleksey Lazar
IS Developer and Integrator - PALS
http://www.mnpals.org/