From: Dan Scott Date: Thu, 30 Jun 2011 17:57:59 +0000 (-0400) Subject: Move templates out of a web-served directory X-Git-Tag: sprint4-merge-nov22~5128^2~75^2^2 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fdbs%2Fttopac-move-templates;p=working%2FEvergreen.git Move templates out of a web-served directory It has always been dicey to keep templates in the web-served /openils/var/web directory; with the rise of config.tt2 it is past time to get the templates out of there. Signed-off-by: Dan Scott --- diff --git a/Open-ILS/examples/oils_web.xml.example b/Open-ILS/examples/oils_web.xml.example index 07280826a2..9961490a5f 100644 --- a/Open-ILS/examples/oils_web.xml.example +++ b/Open-ILS/examples/oils_web.xml.example @@ -51,8 +51,7 @@ It's possible to override individual or sets of templates by putting them into a path in front of the default template path --> - - /openils/var/web/templates + /openils/var/templates diff --git a/Open-ILS/src/Makefile.am b/Open-ILS/src/Makefile.am index e14f4c2426..1ef6c9e7c5 100644 --- a/Open-ILS/src/Makefile.am +++ b/Open-ILS/src/Makefile.am @@ -168,6 +168,9 @@ uninstall-hook: ilscore-install: @echo $@ $(MKDIR_P) $(DESTDIR)$(TEMPLATEDIR) + cp -r @srcdir@/templates/base.tt2 $(DESTDIR)$(TEMPLATEDIR) + cp -r @srcdir@/templates/login.tt2 $(DESTDIR)$(TEMPLATEDIR) + cp -r @srcdir@/templates/default $(DESTDIR)$(TEMPLATEDIR) cp -r @srcdir@/templates/marc $(DESTDIR)$(TEMPLATEDIR) cp -r @srcdir@/templates/password-reset $(DESTDIR)$(TEMPLATEDIR) @echo "Installing string templates to $(DESTDIR)$(TEMPLATEDIR)" diff --git a/Open-ILS/src/templates/base.tt2 b/Open-ILS/src/templates/base.tt2 new file mode 100644 index 0000000000..d4f4ebbebe --- /dev/null +++ b/Open-ILS/src/templates/base.tt2 @@ -0,0 +1,27 @@ +[%- ctx.final_dtd = + '' -%] +[%- IF !ctx.dtd; ctx.dtd = ctx.final_dtd; END -%] +[% ctx.dtd %] + + + [% ctx.page_title %] + + + + + + + + + + + + + [% INCLUDE login.tt2 %] + [% content %] + + diff --git a/Open-ILS/src/templates/default/acq/common/claim_dialog.tt2 b/Open-ILS/src/templates/default/acq/common/claim_dialog.tt2 new file mode 100644 index 0000000000..741a8a6366 --- /dev/null +++ b/Open-ILS/src/templates/default/acq/common/claim_dialog.tt2 @@ -0,0 +1,60 @@ +
+ +
Claims
+
Against item: + + () +
+ + +
diff --git a/Open-ILS/src/templates/default/acq/common/final_claim_dialog.tt2 b/Open-ILS/src/templates/default/acq/common/final_claim_dialog.tt2 new file mode 100644 index 0000000000..882741cb6d --- /dev/null +++ b/Open-ILS/src/templates/default/acq/common/final_claim_dialog.tt2 @@ -0,0 +1,8 @@ +
+ + + + + +
+ diff --git a/Open-ILS/src/templates/default/acq/common/info.tt2 b/Open-ILS/src/templates/default/acq/common/info.tt2 new file mode 100644 index 0000000000..6fc5456339 --- /dev/null +++ b/Open-ILS/src/templates/default/acq/common/info.tt2 @@ -0,0 +1,24 @@ +[% which_lc = which | lower %] + diff --git a/Open-ILS/src/templates/default/acq/common/inv_dialog.tt2 b/Open-ILS/src/templates/default/acq/common/inv_dialog.tt2 new file mode 100644 index 0000000000..3bec75cf9a --- /dev/null +++ b/Open-ILS/src/templates/default/acq/common/inv_dialog.tt2 @@ -0,0 +1,30 @@ + +Choose invoice + + + + + + + + + + + + + diff --git a/Open-ILS/src/templates/default/acq/common/jubgrid.tt2 b/Open-ILS/src/templates/default/acq/common/jubgrid.tt2 new file mode 100644 index 0000000000..ce13d56449 --- /dev/null +++ b/Open-ILS/src/templates/default/acq/common/jubgrid.tt2 @@ -0,0 +1,209 @@ +[%#- +This template creates a split screen Dojo layout. The top frame +of the screen holds a list of of JUBs, or titles. Clicking on a +title in the top frame will load the purchase details for all the +copies on order for that title into the bottom frame. + +To create a display for a set of JUBs, create a Dojo store and +model for the set of JUBs, then place the following lines in your +HTML where you want the display to appear: + + <%namespace file='/oils/default/common/jubgrid.html' name='jubgrid'/> + ${jubgrid.jubgrid('dom_prefix', 'grid_jsid')} + +where 'dom_prefix' is a string that will be used as the prefix +for the DOM notes that are created by this template, and +'grid_jsid' is a valid JavaScript identifier that will name the +DOM node to which the list of JUBs will be attached. For example + + ${jubgrid.jubgrid('oils-acq-picklist', 'pickListGrid', hideDetails)} + +will create a Dojo grid with the DOM id of + + 'oils-acq-picklist-JUB-grid' + +and a jsid of + + pickListGrid + +To fill the grid with data, call the javascript function + + JUBGrid.populate(grid_jsid, model) + +'grid_jsid' is the same javascript id that was used to +instantiate the template, and model is a javascript variable +pointing to the JUB model (and store) that you have created. +-#%] + +[% UNLESS hide_details %] +
+[% END %] + + + + + + + +[% UNLESS hide_details %] + + +
+
+ + +
+
+
+[% ELSE %] +
+[% END %] +
+
+
+[% UNLESS hide_details %] + +
+
+
+ New Copy +
+ + + + + + + + + + + + + +
+ +
+
+ +
+
+
+ + +
+
+ + +
+
+
+
+
+
+
+[% END %] diff --git a/Open-ILS/src/templates/default/acq/common/li_table.tt2 b/Open-ILS/src/templates/default/acq/common/li_table.tt2 new file mode 100644 index 0000000000..645a0aeb97 --- /dev/null +++ b/Open-ILS/src/templates/default/acq/common/li_table.tt2 @@ -0,0 +1,469 @@ + + + +
+ + + + [% INCLUDE "default/acq/common/info.tt2" which = "Lit" %] + + + [% INCLUDE "default/acq/common/notes.tt2" which = "Lit" %] + + + + + + + + + + + + + + + + +
+ + + + + + + +
+ + + + +
+ + +
+
+ + + + +
+ diff --git a/Open-ILS/src/templates/default/acq/common/li_table_pager.tt2 b/Open-ILS/src/templates/default/acq/common/li_table_pager.tt2 new file mode 100644 index 0000000000..bdae5b2761 --- /dev/null +++ b/Open-ILS/src/templates/default/acq/common/li_table_pager.tt2 @@ -0,0 +1,17 @@ + +
+ + + +
diff --git a/Open-ILS/src/templates/default/acq/common/notes.tt2 b/Open-ILS/src/templates/default/acq/common/notes.tt2 new file mode 100644 index 0000000000..609cf6c812 --- /dev/null +++ b/Open-ILS/src/templates/default/acq/common/notes.tt2 @@ -0,0 +1,62 @@ +[% which_lc = which | lower %] + diff --git a/Open-ILS/src/templates/default/acq/financial/claim_eligible.tt2 b/Open-ILS/src/templates/default/acq/financial/claim_eligible.tt2 new file mode 100644 index 0000000000..6df7fcaeea --- /dev/null +++ b/Open-ILS/src/templates/default/acq/financial/claim_eligible.tt2 @@ -0,0 +1,57 @@ +[% WRAPPER "default/base.tt2" %] +[% ctx.page_title = "Items Eligible For Claiming" %] + +
+

Items Eligible For Claiming

+
+ Show items ready to claim for: + + +
+
+ +
+ + + + + + + + + + + + + + + + +
Items
+ + +
+ +
+ There were no items matching your search. +
+
+ +
+
+ + + +[% END %] diff --git a/Open-ILS/src/templates/default/acq/financial/list_currency_types.tt2 b/Open-ILS/src/templates/default/acq/financial/list_currency_types.tt2 new file mode 100644 index 0000000000..2b00688386 --- /dev/null +++ b/Open-ILS/src/templates/default/acq/financial/list_currency_types.tt2 @@ -0,0 +1,35 @@ +[% WRAPPER default/base.tt2 %] +
+
Currency Type
+
+ + +
+
+
+ +
+
+ + + +[% END %] + + diff --git a/Open-ILS/src/templates/default/acq/financial/list_funding_sources.tt2 b/Open-ILS/src/templates/default/acq/financial/list_funding_sources.tt2 new file mode 100644 index 0000000000..2a5d91d4a8 --- /dev/null +++ b/Open-ILS/src/templates/default/acq/financial/list_funding_sources.tt2 @@ -0,0 +1,51 @@ +[% WRAPPER 'default/base.tt2' %] + + + + +
+ +
+
Funding Sources
+
+ + +
+
+ + + + + + +
+ + +
+
+ + + + +[% END %] diff --git a/Open-ILS/src/templates/default/acq/financial/list_funds.tt2 b/Open-ILS/src/templates/default/acq/financial/list_funds.tt2 new file mode 100644 index 0000000000..4211e17bac --- /dev/null +++ b/Open-ILS/src/templates/default/acq/financial/list_funds.tt2 @@ -0,0 +1,162 @@ +[% WRAPPER 'default/base.tt2' %] +[% ctx.page_title = 'Funds' %] + + + + + + + + + + +
Funds + + + + +
+ Fund Propagation & Rollover +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ Propagation creates new funds for the subsequent fiscal year based on the + funds for the selected fiscal year. Only funds with the propagate setting + enabled will be affected. No money or encumbrances are altered + during this process. +
+
+ +
+
+ The year end close out operation moves encumbrances from the selected fiscal + year to the analogous funds in the subsequent fiscal year and it deactivates + funds for the selected fiscal year. Additionally, for all funds that have + the "Rollover" setting enabled, this process will move all unspent money to + the analogous fund in the subsequent fiscal year. +
+
Context Org Unit:
Include Funds for Descendant Org Units:
+ +
+
+ When Dry Run is selected, the system will generate a summary of + the changes that would occur during the selected operation(s). + No data will be changed. +
+
+ +
+
+
+
+ +
+ Context Org Unit + + + Year + + +
Refresh
+
+ +
+
+ +
+
+ +
+ + + + + + + +
+
+
+ +[% END %] diff --git a/Open-ILS/src/templates/default/acq/financial/view_fund.tt2 b/Open-ILS/src/templates/default/acq/financial/view_fund.tt2 new file mode 100644 index 0000000000..a1fcc3dd38 --- /dev/null +++ b/Open-ILS/src/templates/default/acq/financial/view_fund.tt2 @@ -0,0 +1,257 @@ +[% WRAPPER 'default/base.tt2' %] + + +
+
Fund Details
+
+ +
+ +
+ Create Allocation +
+ + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+ +
+ +
+
+
+
+ Transfer Money +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
+ +
+
+
+
+ + +
+
+ + +
+ +
+
+ + + + + + + + + + + + + + + + +
IDNameCodeCurrency TypeOwnerBalanceTotal AllocatedSpent BalanceTotal DebitsTotal SpentTotal Encumbered
+
+
+
+ + +
+ + +
+
+ + + + + + + +
+
+
+
+
+ + +
+ + +
+ +
+ + +
+
+
+
+ +
+ +
+
+
+ Add Tag +
+ + +
+
+
+
+
+
+ + + + + +[% END %] diff --git a/Open-ILS/src/templates/default/acq/financial/view_funding_source.tt2 b/Open-ILS/src/templates/default/acq/financial/view_funding_source.tt2 new file mode 100644 index 0000000000..55a372df16 --- /dev/null +++ b/Open-ILS/src/templates/default/acq/financial/view_funding_source.tt2 @@ -0,0 +1,173 @@ +[% WRAPPER 'default/base.tt2' %] + + +
+
Funding Source Details
+
+ +
+ + +
+ Apply Credit +
+ + + + + + + + + + + + +
+ +
+ +
+ +
+
+
+
+ Allocate to Fund +
+ + + + + + + + + + + + + + + + + + +
+ + +
+ +
+ +
+ +
+
+
+
+ +
+
+ +
+ + +
+
+ + + + + + + + + + + + + +
IDNameCodeBalanceTotal CreditsTotal DebitsCurrency TypeOwner
+
+
+
+ +
+ + +
+
+ + +
+
+
+
+ + +
+ + +
+
+ + + + + + + +
+
+
+
+
+ +
+
+ + + + +[% END %] + diff --git a/Open-ILS/src/templates/default/acq/financial/view_provider.tt2 b/Open-ILS/src/templates/default/acq/financial/view_provider.tt2 new file mode 100644 index 0000000000..f37911eda6 --- /dev/null +++ b/Open-ILS/src/templates/default/acq/financial/view_provider.tt2 @@ -0,0 +1,118 @@ +[% WRAPPER default/base.tt2 %] + + +
+
+ +
+
+
+ + + + + + + + + + +
IDNameCodeOwnerCurrency Type
+
+
+
+ +
+ +
+ + +
+ Create Order Record Field +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ +
+
+
+ + + +
+ + +
+
+ + + + + + + + + + + +
IDCodeDescriptionTagSubfieldXPath
+
+
+
+ +[% END %] + diff --git a/Open-ILS/src/templates/default/acq/invoice/view.tt2 b/Open-ILS/src/templates/default/acq/invoice/view.tt2 new file mode 100644 index 0000000000..05920f5aa8 --- /dev/null +++ b/Open-ILS/src/templates/default/acq/invoice/view.tt2 @@ -0,0 +1,137 @@ +[% WRAPPER 'default/base.tt2' %] +[% ctx.page_title = 'Invoicing' %] + +
+ +
+
Invoice
+
+
+ +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Direct Charges, Taxes, Fees, etc.

+
Charge TypeFundTitle/DescriptionBilledPaidDelete
Delete
+ Add Charge... +
+

+
+ TotalTotalBalance
+ + + + +
+
+
+
+
+
+
+
+ Select a fund for the new items:
+

+

+ + + + +
+
+ + +[% END %] diff --git a/Open-ILS/src/templates/default/acq/lineitem/findbib.tt2 b/Open-ILS/src/templates/default/acq/lineitem/findbib.tt2 new file mode 100644 index 0000000000..c2269c1c7f --- /dev/null +++ b/Open-ILS/src/templates/default/acq/lineitem/findbib.tt2 @@ -0,0 +1,73 @@ +[% WRAPPER "default/base.tt2" %] +[% ctx.page_title = "Locate Bib Record" %] + + + + +
+
+
+
+ +
+
+
+
+
+ +
+
+
+ View MARC + Select + + + + + + + + + + +
+
+
+
+ + + +